content stringlengths 23 1.05M |
|---|
.model small
.stack 100h
.data
n dw 0
i dw 0
j dw 0
k dw 0
temp dw 0
arrayOne dw 202 dup(?)
arrayTwo dw 202 dup(?)
result dw 202 dup(?)
space dw 32
const10 dw 10d
.code
include lib.asm
get_index proc C near
arg ii, jj, nn : word
uses ax
mov ax, ii
call print_uint16 C, ax
call print_char C, space
... |
#include "../../flame32.asm"
; Tests BST
lod 0
ldl B, 31
bst A, B
; 0x80000000
|
.orig x0
start:
; Set new interrupt handler address.
lea r0, interrupt_handler
out r0, 1
; Enable standard input interrupt.
ld r0, interrupt_mask
out r0, 5
; Enter idle loop.
idle:
br idle
out r0, 0
out r0, 0
out r0, 0
interrupt_mask .fill 1
interrupt_handler:
; Read ... |
icl '../../os/symbols.asm'
org BOOTADDR
mva #0 ROS7
lda #7
ldx #OS_SET_VIDEO_MODE
jsr OS_CALL
mwa SUBPAL_START VRAM_TO_RAM
jsr lib_vram_to_ram
ldy #0
lda #$9A
sta (RAM_TO_VRAM), y
iny
lda #$38
sta (RAM_TO_VRAM), y
iny
lda #$C8
sta (RAM_TO_VRAM), y
in... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int vscanf_unlocked(const char *format, void *arg)
;
; See C11 specification.
;
; ===============================================================
SECTION code_stdio
PUBL... |
[WiiULauncher0US]
moduleMatches = 0x90DAC5CE
; Skip CBrbAICompanion::ForceIdle subroutine
0x306EBA0 = nop
[WiiULauncher0EU]
moduleMatches = 0x8F7D2702
; Skip CBrbAICompanion::ForceIdle subroutine
0x306EB80 = nop
[WiiULauncher0JP]
moduleMatches = 0x0D395735
; Skip CBrbAICompanion::ForceIdle subroutine
0x306EA30 = n... |
<% from pwnlib.shellcraft import amd64, common %>
<% from socket import htons %>
<%page args="port, network='ipv4'"/>
<%docstring>
listen(port, network)
Listens on a TCP port, accept a client and leave his socket in RAX.
Port is the TCP port to listen on, network is either 'ipv4' or 'ipv6'.
</%docstring>
%... |
include "constants.asm"
IF SPANISH = 1
include "autogenerated/text-constants-es.asm"
ELSE
include "autogenerated/text-constants.asm"
ENDIF
; the first time this is compiled, we need a few symbols to be defined
; to bootstrap the process. Comment the inclusion of trition.sym and Uncomment these
; constant... |
EXEOBJ
OUTPUT bfc
OBJSIZE EQU 65536
CODSIZE EQU 32000
read EQU -$2a
write EQU -$30
input EQU -$36
output EQU -$3c
closlib EQU -$19e
; d0
; d1 len
; d2
; d3 1
; d4 byte
; d5 offset
; d6
; d7
; a0
; a1
; a2 stack
; a3 cdptr
; a4 4
; a5 code
; a6
initcode:
dc.l $3f3,0,1,0,0,OBJSIZE/4-9,$3e9,OBJ... |
; Starter Point
#begin E000h
; Locate code in this address
#org E000h
; Get the interruptors state
IN 00H
; Move it into some low-registry
MOV C,A
; Push it into the Stack
PUSH B
; Modify flags from top of the Stack
POP PSW
; Stop the program
HLT
; End Code Section
#end
|
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;;
;;; ASM Source code for Red GBC, by Evan Bowman, 2021
;;;
;;;
;;; The following licence covers the source code included in this file. The
;;; game's characters and artwork belong to Evan Bowman, and should not be used
;;; without permi... |
org 0
cpu 8086
mov ax,cs
mov ds,ax
mov si,message
mov cx,messageEnd-message
int 0x64
mov al,'A'
int 0x65
sti
mov al,'B'
int 0x65
mov ax,0x40
mov ds,ax
mov ax,[0x6c]
delayLoop:
mov bx,[0x6c]
sub bx,ax
cmp bx,91
jbe delayLoop
mov al,'C'
int 0x65
int 0x60
mov al,'D'
in... |
;PRINTING A STRING
include io.h
ASSUME CS:CODE,DS:DATA
DATA SEGMENT
NUM DB 13,10,13,10,13,10,13,10," Hello World",13,10,13,10,13,10,13,10,'$'
DATA ENDS
CODE SEGMENT
START:
MOV AX,DATA
MOV DS,AX
LEA DX,NUM
MOV AH,09H
INT 21H
MOV AH,4CH
INT 21H
CODE ENDS
END START |
SECTION .text
GLOBAL test
test:
adc al, 0x0
adc ax, 0xe1
adc eax, 0xe11
adc sil, 0x0
adc si, 0xe1
adc esi, 0xe11
adc rax, 0xfffee12
adc rax, 0xff6ee12
adc rax, 0xf66ee12
adc rax, 0x666ee12
adc rax, 0x6666ee12
adc rax, -0x1
adc rax, -0xfffee12
adc rax, -0xff6ee12
adc rax, -0xf66ee12
adc rax, -0x666ee12
adc rax, -0x6666e... |
; void *zx_cy2saddr(uchar row)
SECTION code_clib
SECTION code_arch
PUBLIC zx_cy2saddr
EXTERN asm_zx_cy2saddr
defc zx_cy2saddr = asm_zx_cy2saddr
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _zx_cy2saddr
defc _zx_cy2saddr = zx_cy2saddr
ENDIF
|
; DOS Control Procedure V1.01 1997 Marcel Kilgus
;
; 2017-04-20 1.01 Fixed DOS_USE without any parameter (MK)
section dos
xdef dos_defs
xref iou_flnk
xref thp_ostr
xref thp_nrstr
include 'dev8_keys_thg'
include 'dev8_keys_err'
include 'dev8_keys_iod'
include 'dev8_mac_thg'
include 'dev8_smsq_qpc_ke... |
// init
@256
D=A
@R0
M=D
@LABEL1
D=A
@SP
A=M
M=D
@SP
M=M+1
@R1
D=M
@SP
A=M
M=D
@SP
M=M+1
@R2
D=M
@SP
A=M
M=D
@SP
M=M+1
@R3
D=M
@SP
A=M
M=D
@SP
M=M+1
@R4
D=M
@SP
A=M
M=D
@SP
M=M+1
@5
D=A
@R0
A=M
AD=A-D
@R2
M=D
@R0
D=M
@R1
M=D
@Sys.init
0;JMP
(LABEL1)
// function Class1.set 0
(Class1.set)
// push argument 0
@ARG
AD=M
D=M... |
;
; ZX Spectrum OPUS DISCOVERY specific routines
;
; Stefano Bodrato - 2014
;
; Write a sector.
; A standard 178K Opus disk has 0..718 sectors
; Each sector is 256 bytes long
;
; int __CALLEE__ opus_putsect_callee(int drive, int sector, char * buffer);
;
; $Id: opus_putsect_callee.asm,v 1.5 2016-07-14 17:44:18 paulosc... |
page 49,132
TITLE EXTORT - Runtime Dispatch Support
;***
;exToRt - Runtime Dispatch Support
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
; The calling sequence required to get to the runtime is not small.
; This module supports a size efficient method of getting to the
; runtime.
;
; Thi... |
;
; NEC PC8801 Library
;
; getk() Read key status
;
; Stefano Bodrato - 2018
;
;
; $Id: getk.asm $
;
SECTION code_clib
PUBLIC getk
PUBLIC _getk
; INCLUDE "target/pc88/def/n88bios.def"
.getk
._getk
; push ix
; call CHSNS
; pop ix
ld hl,r1
ld c,$fe ; lower part of keyboa... |
; Procedure to set up execute hotkeys V2.00 1990 Tony Tebby QJUMP
section hotkey
xdef hxt_res
xdef hxt_resw
xdef hxt_trn
xdef hxt_trnw
xdef hxt_exec
xdef hxt_wake
xdef hxt_ldex
xdef hxt_ldwk
xref hxt_... |
;
; jemul8 - JavaScript x86 Emulator
; Copyright (c) 2013 http://jemul8.com. All Rights Reserved.
;
; MODULE: Tests for CPU stack handling - x86 PUSH instruction
;
%include '../../tools.inc'
; Jump over data
jmp main
; --- Data ---
; Test descriptions
test1 db "should decrease SP by 2 when an 8-bit value is pushed"... |
; Original address was $AC16
; 5-3 beginning
.word W503_InsideL ; Alternate level layout
.word W503_InsideO ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_070
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG
.byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKED | LEVEL3_PIP... |
;;;
; Prints _int as a binary number.
; User uses the '.b' command to print the stack's top as a binary number.
;;;
proc PrintBinary uses rax rdx rcx, _int:QWORD ; _int saved in rcx
mov rax, -64 ; counter
mov rbx, 1 ; bitmask
shl rbx, 63
xor rdx, rdx
.mainloop:
test rcx, rbx ; Compares MSB with 1 ... |
user/_set_priority: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <main>:
#include "kernel/stat.h"
#include "user/user.h"
#include "kernel/fcntl.h"
int main(int argc, char **argv)
{
0: 1101 addi sp,sp,-32
2: ec06 sd ra,24(sp)
4: e822 ... |
// seed 4
lbi r0, 128 // icount 0
slbi r0, 0 // icount 1
lbi r1, 128 // icount 2
slbi r1, 0 // icount 3
lbi r2, 128 // icount 4
slbi r2, 0 // icount 5
lbi r3, 128 // icount 6
slbi r3, 0 // icount 7
lbi r4, 128 // icount 8
slbi r4, 0 // icount 9
lbi r5, 128 // icount 10
slbi r5, 0 // icount 11
lbi r6, 128 // icount 12
s... |
Music_Vermilion_Ch1::
tempo 156
volume 7, 7
duty 3
vibrato 12, 3, 4
toggleperfectpitch
Music_Vermilion_branch_b9f6::
notetype 12, 11, 5
octave 3
E_ 4
C# 1
D_ 1
E_ 2
A_ 4
B_ 2
A_ 2
G# 2
F# 2
E_ 2
F# 2
A_ 4
F# 1
G# 1
A_ 2
E_ 4
C# 2
E_ 2
A_ 2
G# 2
B_ 2
A_ 2
G# 2
E_ 2
F# 2
G# 2
C# 2
D_ 2... |
; Copyright © 2018-2021, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permitted provided that the following conditions are met:
;
; 1. Redistributions of source code must retain the above... |
%include "include/u7bg-all-includes.asm"
defineAddress 340, 0x0EC2, handleKeyInput
defineAddress 340, 0x0F80, handleKeyInput_end
defineAddress 340, 0x1030, mappingTable
defineAddress 340, 0x1044, mappingTable_end
%include "../u7-common/patch-processKeyInDialogMode.asm"
|
;; program to test inter-segment production and linkage of RDF objects
;; [1] should produce segment base ref
;; [2] should produce standard relocation
[GLOBAL _main]
[EXTERN _puts: far]
[BITS 16]
_main:
mov ax, seg _message ; 0000 [1]
mov ds, ax ; 0003
mov dx, _message ; 0005 [2]
call far _puts ; 0008 [2... |
; simplifying macros and functions
; nameless temporary symbols should NOT be used inside macros because they can interfere with the surrounding code
; normal labels should be used instead (which automatically become local to the macro)
; makes a VDP command
vdpComm function addr,type,rwd,(((type&rwd)&3)<<30)|((addr&$... |
dnl AMD64 mpn_mul_basecase optimised for AMD Zen.
dnl Copyright 2012, 2013, 2017 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Pub... |
[bits 64]
movd eax, mm0 ; out: 0f 7e c0
movd mm0, eax ; out: 0f 6e c0
movd rax, mm0 ; out: 48 0f 7e c0
movd mm0, rax ; out: 48 0f 6e c0
movd [0], mm0 ; out: 0f 7e 04 25 00 00 00 00
movd mm0, [0] ; out: 0f 6e 04 25 00 00 00 00
movd eax, xmm0 ; out: 66 0f 7e c0
movd xmm0, eax ; out: 66 0f 6e c0
movd rax, xmm0 ;... |
; A061249: Smallest number with digit sum = Fibonacci(n).
; 0,1,1,2,3,5,8,49,399,7999,1999999,8999999999,9999999999999999,89999999999999999999999999
seq $0,45 ; Fibonacci numbers: F(n) = F(n-1) + F(n-2) with F(0) = 0 and F(1) = 1.
seq $0,51885 ; Smallest number whose sum of digits is n.
|
COMMENT @----------------------------------------------------------------------
Copyright (c) Geoworks 1992-1994 -- All Rights Reserved
PROJECT: GEOS
MODULE: Studio
FILE: documentFlow.asm
ROUTINES:
Name Description
---- -----------
METHODS:
Name Description
---- -----------
WrapFrame... |
; void *zx_saddrcup_fastcall(void *saddr)
SECTION code_arch
PUBLIC _zx_saddrcup_fastcall
_zx_saddrcup_fastcall:
INCLUDE "arch/zx/display/z80/asm_zx_saddrcup.asm"
|
section .text
global jmp
jmp:
mov eax, 7
jmp jmp2
mov eax, 9
ret
jmp2:
ret
|
sra $4,$4,10
ori $1,$5,43569
nor $6,$5,$3
srl $4,$3,27
lw $1,16($0)
sh $4,2($0)
srlv $5,$5,$3
lh $3,10($0)
lbu $4,15($0)
or $1,$3,$3
andi $5,$0,50541
xori $0,$3,24154
sltiu $6,$6,14609
andi $6,$5,33818
subu $4,$4,$3
lb $0,7($0)
sltiu $4,$1,-8645
ori $4,$0,44772
sll $1,$1,13
sb $4,6($0)
subu $3,$3,$3
slt $0,$1,$3
slti $... |
; sum(1, 2)
var a,b,c
push 1
push 2
$sum
exit 0
FUNC @sum:
arg a, b
push a
push b
add
ret ~
ENDFUNC |
; snake game
; assembly 8086
; written by Leonardo Ono (ono.leo@gmail.com)
;
; target OS: DOS (.COM file extension)
; use: nasm snake.asm -o snake.com -f bin
%include "michalos.inc"
section .text
mov byte [0082h], 1
mov [startstack], sp
call hide_cursor
start:
call show_title
call start_playing
call sho... |
Name: yst_en_edit.asm
Type: file
Size: 52334
Last-Modified: '2016-05-13T04:52:56Z'
SHA-1: 0695381BE140785420FC08A00D702ADEC9962EBF
Description: null
|
; ***********************************************************************************
;
; Blink two LEDs (PB0 and PB1) on an ATmega328p at 1 Hz on opposite duty cycles
; using timer-triggered interrupts to toggle the LEDs.
;
; The MIT License (MIT)
;
; Copyright (c) 2020 Igor Mikolic-Torreira
;
; Permiss... |
INCLUDE MACROS
.CODE ROOT_TEXT
EXTERNDEF LOUTALL_CON:PROC
PUBLIC DOT
DOT PROC
;
;
;
PUSHAD
MOV EAX,OFF DOT_DAT
MOV ECX,1
CALL LOUTALL_CON
POPAD
RET
DOT ENDP
.DATA
DOT_DAT DB '.'
END
|
.module teste1
.pseg
;; testa salto condicional neg, carry e overflow
;; r7=0x0001
;; r0 = 0xaa55
;; r1 = 0xffff
;; r2 = 0xaa55 (0x0000 Errado)
;; r3 = 0xaa55 (senao flag de carry no lsl)
;; r4 = r3(0xaa55) (0x54aa Errado)
main:
loadlit r7,-1
loadlit ... |
;
; maximum and minimum routines.
;
.xlist
include ..\h\cmacros.inc
.list
sBegin code
assumes cs,code
cProc max,<PUBLIC>
parmW a
parmW b
cBegin
mov ax,a
cmp ax,b
jg maxdone
mov ax,b
maxdone:
cEnd
cProc min,<PUBLIC>
parmW a
parmW b
cBegin
mov ax,a
cmp ax,b
jl mindone
mov ax,b
mindone:
cEnd
cProc lmax,<PUBLI... |
; OpenBOR - http://www.chronocrash.com
; ----------------------------------------------------------------------
; All rights reserved, see LICENSE in OpenBOR root for details.
;
; Copyright (c) 2004 - 2012 OpenBOR Team
; Scales images by 2x using bilinear filtering. This implementation uses the
; SIMD capabilities of... |
%define INITIAL_KSTACK_SIZE 8
%macro SAVE_GPR 1
mov [%1-0x08], r15
mov [%1-0x10], r14
mov [%1-0x18], r13
mov [%1-0x20], r12
mov [%1-0x28], r11
mov [%1-0x30], r10
mov [%1-0x38], r9
mov [%1-0x40], r8
mov [%1-0x48], rdi
mov [%1-0x50], rsi
mov [%1-0x58], rbp
mov [%1-0x60], rsp
mov [%1-0x68], rbx
mov [%1-0x7... |
Name: Msintbl.asm
Type: file
Size: 3188
Last-Modified: '1992-09-24T02:25:45Z'
SHA-1: 1AF2AFD83CD05F22831166F29F9DC93917B969C0
Description: null
|
;15、试编写一个汇编语言程序,求出首地址为 DATA 的 100D 字数组中的最小偶数,并把它存放在 AX 中。
.model small
.data
data dw 10,9,8,7,6,5,4,3,2,1,90 dup(60)
.code
start:
mov ax,@data
mov ds,ax
call mineven
mov ah,4ch
int 21h
mineven proc
push bx
push cx
push dx
push si
m... |
SFX_Healing_Machine_3_Ch4:
duty 2
pitchenvelope 2, -4
squarenote 4, 15, 2, 1280
pitchenvelope 2, 2
squarenote 2, 15, 1, 1280
pitchenvelope 0, 0
squarenote 1, 0, 0, 0
endchannel
|
;; Licensed to the .NET Foundation under one or more agreements.
;; The .NET Foundation licenses this file to you under the MIT license.
#include "AsmMacros.h"
TEXTAREA
;;-----------------------------------------------------------------------------
;; This helper routine enregisters the appropriate arguments and... |
// Implementing a semi-struct without the struct keyword by using pointer math and inline functions
//
// struct Point {
// byte xpos; // The x-position
// byte ypos; // The y-position
// };
// Point points[NUM_POINTS];
// Commodore 64 PRG executable file
.file [name="semi-struct-1.prg", type="prg", segments="P... |
; File: io/keyboard_fb.asm
; I/O for the Family BASIC Keyboard (HVC-007).
;==============================================================================;
; Routine: io_readKeyboard
; Handles reading the keyboard hardware.
;
; Data is stored starting at tmp00... (todo: find a better solution?)
io_readKeyboard:
; init... |
TITLE Disk Free Space (DiskSpc.asm)
; This program calls INT 21h Function 7303h, to get free space information
; on a FAT-type drive volume. It displays both the volume size and free space.
; Runs under Windows 95/98/Me, but not under Windows NT/2000/XP.
; Last update: 12/11/01
INCL... |
RST_0000: ; [Region] $00:$0000 [8]
RST_0008: ; [Region] $00:$0008 [8]
RST_0010: ; [Region] $00:$0010 [8]
RST_0018: ; [Region] $00:$0018 [8]
RST_0020: ; [Region] $00:$0020 [8]
RST_0028: ; [Region] $00:$0028 [8]
RST_0030: ; [Region] $00:$0030 [8]
RST_0038: ; [Region] $00:$0038 [8]
VBlankInterrupt: ; [Region] $00:... |
EXTERN NtCallbackReturn : proc
EXTERN CvcpDispatcher : proc
EXTERN D3DKMTOpenAdapterFromHdc : proc
Cvc struct
Msg dd ?
DataLen dd ?
Data dq ?
pConnection dq ?
Cvc ends
_TEXT SEGMENT
PUBLIC KeUserCallbackDispatcher
KeUserCallbackDispatcher PROC
;int 3
mov ecx, Cvc.Msg[rsp] ;
mov rdx... |
_Route15GateText1::
text "Are you working"
line "on a #DEX?"
para "PROF.OAK's AIDE"
line "came by here."
done
|
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
;pj_xor_bytes(UBYTE data, USHORT *buf, unsigned words);
; xor a buffer with constant data. Count in 2 byte words
public pj_xor_bytes
pj_xor_bytes proc near
push ebx
push ecx
mov eax,[esp+12] ;value to xor
mov ebx,[esp+16] ... |
db 0 ; 306 DEX NO
db 70, 110, 180, 50, 60, 60
; hp atk def spd sat sdf
db STEEL, ROCK ; type
db 45 ; catch rate
db 205 ; base exp
db NO_ITEM, NO_ITEM ; items
db GENDER_F50 ; gender ratio
db 100 ; unknown 1
db 35 ; step cycles to hatch
db 5 ; unknown 2
INCBIN "gfx/pokemon/hoenn/aggron/front.dim... |
SECTION code_fp_math16
PUBLIC ___schar2h
PUBLIC _f16_f16_i8
EXTERN cm16_sdcc___schar2h
defc ___schar2h = cm16_sdcc___schar2h
defc _f16_f16_i8 = cm16_sdcc___schar2h
|
lda {m1}
eor {m2}
sta {m1}
lda {m1}+1
eor {m2}+1
sta {m1}+1
lda {m1}+2
eor {m2}+2
sta {m1}+2
lda {m1}+3
eor {m2}+3
sta {m1}+3
|
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 0
COPYFROM 14
COPYTO 0
COPYTO 1
COPYTO 2
COPYTO 3
COPYTO 4
COPYTO 5
COPYTO 6
COPYTO 7
COPYTO 8
COPYTO 9
COPYTO 12
BUMPUP 12
BUMPUP 12
BUMPUP 12
BUMPUP 12
BUMPUP 12
I... |
Name: ys_enmy6.asm
Type: file
Size: 197438
Last-Modified: '2016-05-13T04:51:45Z'
SHA-1: B605B9B3C33E7A34F03A6575A4BC9C922CC7355F
Description: null
|
%ifndef SLEEP
%define SLEEP
sleep:; input si: delay in 1.024*ms
xor ax,ax ;clear eax for using it as nanosec storeage
mov ax,si
push cx
mov cl, 10
shl ax, cl
pop cx
;shl eax,10
;eax=2^10*si
mov dx,ax
;shr eax,16
push cx
mov cl, 16
shr ax, cl
pop cx
mov cx,ax
;dx,cx=eax
mov ah, 86h
int 15... |
PS2toASCIIKeymap:
DB "??????????????`?";00-0F
DB "?????q1???zsaw2?";10-1F
DB "?cxde43?? vftr5?";20-2F
DB "?nbhgy6???mju78?";30-3F
DB "?,kio09??./l;p-?";40-4F
DB "??'?[=????\n]?\\??";50-5F
;keypad
DB "?????????1?47???";60-6F
DB "0.2568???+3-*9??";70-7F
PS2toASCIIShiftedKeymap:
DB "??????????????~?";00-0F
DB "?????Q!???... |
TITLE Integer Summation Program (Sum1.asm)
; This program inputs multiple integers from the user,
; stores them in an array, calculates the sum of the
; array, and displays the sum. Chapter 5 example.
INCLUDE Irvine32.inc
.data
first DWORD 2323423424
second BYTE "adjaslfdjsl"
.code
main PROC
; Main... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Library/User
FILE: userListUtils.asm
AUTHOR: Gene Anderson, Feb 15, 1990
ROUTINES:
Name Description
---- -----------
UserFontCreateList Q... |
; struct esx_dirent_slice *esx_slice_dirent(struct esx_dirent *)
SECTION code_esxdos
PUBLIC _esx_slice_dirent_fastcall
EXTERN asm_esx_slice_dirent
defc _esx_slice_dirent_fastcall = asm_esx_slice_dirent
|
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_FPU_C1|FLAG_FPU_PE
;TEST_FILE_META_END
FLDPI
;TEST_BEGIN_RECORDING
lea edi, [esp-0xc]
FST dword [edi]
FSUB dword [edi]
mov edi, 0
;TEST_END_RECORDING
|
;
; DGC 2011-06-16: This program appears to copy the character ROM data
; to memory location 300H. I think the idea was to
; run this program and then run the CP/M command that
; saves a chunk of memory to disk.
;
ORG 100H
;
; SET UP STACK
LXI H,0
DAD SP
; ENTRY... |
;
; jcgryext.asm - grayscale colorspace conversion (AVX2)
;
; Copyright (C) 2011, 2016, D. R. Commander.
; Copyright (C) 2015, Intel Corporation.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdex... |
ld a, 24
ld (basescradr + #05d3), a
ld a, 62
ld (basescradr + #06d3), a
inc a
ld (basescradr + #04f2), a
ld (basescradr + #07d3), a
ld (basescradr + #0c6d), a
ld a, 1
ld (basescradr + #00f2), a
ld (basescradr + #086d), a
ld (basescradr + #08cf), a
ld a, 255
ld hl, basescradr + #00f3
ld (hl... |
;no args
print_nl:
push ax
mov ah, 0x0e
mov al, 0x0a ; newline
int 0x10
mov al, 0x0d
int 0x10
pop ax
ret
;arg in bx
print:
push ax
push bx
mov ah, 0x0e
start:
mov al, [bx] ; if
cmp al, 0
je done
int 0x10
add bx, 1
jmp start
done:
pop bx
pop ax
ret |
;-----------------------------------------------------------------------------
!ct scr
* = $0801
; BASIC stub: "1 SYS 2061"
!by $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00
;-----------------------------------------------------------------------------
start:
sei
; lda #$35
; sta $01
... |
IDEAL
SEGMENT SEG1
ASSUME CS:SEG1
ORG 100H
start:
int 20h
ENDS SEG1
END start
|
.model small
.data
.code
main proc
mov al,35H
add al,48H
daa
endp
end main |
Name: ys_w37.asm
Type: file
Size: 23431
Last-Modified: '2016-05-13T04:51:45Z'
SHA-1: F3D9878CAFAD849BAF68709144F72B26A6E05FEA
Description: null
|
#not the best solution. checkout the sommaselettiva_best.asm for a optimized algorithm
.data
.text
.globl somma
somma:
# $a0 k, $a1 arr addr
addi $t0 $0 5 # dim array n
addi $t1 $0 2 # divisore
addi $v0 $0 0 #somma
beq $a0 1 pari
dispari:
beq $t0 0 end
div $t0 $t1
mfhi $t2
addi $t0 $t0 -1
addi $a... |
; void *wv_stack_pop(wv_stack_t *s)
SECTION code_adt_wv_stack
PUBLIC _wv_stack_pop
EXTERN _w_array_pop_back
defc _wv_stack_pop = _w_array_pop_back
|
bits 64
section .text
global _start
_start:
jmp filename
_open: ; fd = open(filename, O_RDONLY)
pop rdi ; filename's address
mov rsi, 0x0 ; O_RDONLY
mov rax, 0x2 ; syscall id for open
syscall
jmp buffer
_read: ; read(fd, buffer, 0x... |
%macro INI 0
push ebp
mov ebp, esp
pusha
%endmacro
%macro END 0
popa
mov esp, ebp
pop ebp
%endmacro
section .text
extern paint_shot
extern create_shot
global paint_ultrashot
paint_ultrashot:
INI
%define punt_object [ebp + 8]
%define punt_map [ebp + 12]
mov edi, punt_object
cmp byte [edi + 6],... |
page ,132
title ftol - truncate TOS to 32-bit integer
;/*
; * PROJECT: Universal C++ RunTime (UCXXRT)
; * FILE: ftol.asm
; * DATA: 2021/04/25
; *
; * PURPOSE: Universal C++ RunTime
; *
; * LICENSE: Relicensed under The MIT License from The CC BY 4.0 License
; *
; * DEVELOPER: MiroKaku (mir... |
copyright zengfr site:http://github.com/zengfr/romhack
00606E tst.b ($83,A6)
006072 bne $60e0 [123p+ 83, enemy+83]
0060D4 move.b #$1, ($83,A6)
0060DA jmp $9af4.l [123p+ 83, enemy+83]
01A63C move.b D0, ($83,A6)
01A640 move.b D0, ($80,A6)
01A8A0 move.b D0, ($83,A6)
01A8A4 move.b #$1, ($c8,A6) ... |
global _ZN5tysos5tysos10ExceptionsM_0_20CallExceptionHandler_Rv_P2yy
_ZN5tysos5tysos10ExceptionsM_0_20CallExceptionHandler_Rv_P2yy:
push rbp
mov rbp, [rsp + 24]
call [rsp + 16]
pop rbp
ret
|
; void wv_stack_destroy(wv_stack_t *s)
SECTION code_clib
SECTION code_adt_wv_stack
PUBLIC wv_stack_destroy
EXTERN asm_wv_stack_destroy
defc wv_stack_destroy = asm_wv_stack_destroy
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _wv_stack_destroy
defc _wv_stack_destroy = wv_stack_destroy
ENDIF
|
; Varian 2
Dseg segment
outA db "Vvedite A: $"
outD db "Vvedite D: $"
outC db "Vvedite C: $"
outREZ db "Rezult of function: $"
; Max in dword - 8000h (if jA - neg)
varA dw 0
varD dw 0
varC dw 0
varY dw 0
Dseg ends
include coollibheader.inc
mov AL,2
lea dx,outA ; Input va... |
[BITS 16]
org 7c00h
mov ax, cs
mov ds, ax
mov es, ax
mov esp, 7c00h
jmp load_stage2
disk_rw_struct:
db 16 ; size of disk_rw_struct, 10h
db 0 ; reversed, must be 0
dw 0 ; number of sectors
dd 0 ; target address
dq 0 ; start LBA number
read_disk_by_int13h:
mov eax, dword [esp... |
0D00 2A 00 0E
0D03 ED 5B 02 0E
0D07 19
0D08 22 04 0E
0D0B DF 5B
0E00 38
0E01 4A
0E02 F8
0E03 2A
0E04 00
|
GLOBAL syscallHandler
EXTERN loadSysNum
EXTERN syscallDispatcher
SECTION .text
; en rax viene el numero de syscall a ejecutar
syscallHandler:
pushState
push rdi
mov rdi, rax
call loadSysNum
pop rdi
call syscallDispatcher
popState
iretq ; ret especifico para volver de interrupcio... |
format elf64 executable
entry _start
; public _start
new_line equ 10
end_sym equ 0
message db "testing string", new_line, end_sym
length = $ - message
section '.data' writable
_m db "message", 10, 0
_l = $ - _m
; rax - 64
; eax - 32
; ax - 16
; al/ah - 8
; byte - 8 bit
; word - 16 bit
; dword - 32 bit
; qw... |
; Labels for validating commands (these are not functions) and calling commands' functions
; Calls quit function
callQuit:
call quit
; Check args for mkf command
checkMkf:
call getNextArg ; Get the argument for the make file command
cmp ebx, 0 ; If EBX contains 0, there are too few args
jz showTooFewArgsErr
jnz... |
Name: zel_comn.asm
Type: file
Size: 109961
Last-Modified: '2016-05-13T04:27:09Z'
SHA-1: BDF90751FD9ADBDDFB8B9C9A556FDEA021C9E8BA
Description: null
|
[bits 64]
adcx eax, ebx ; out: 66 0f 38 f6 c3
adcx ebx, [0] ; out: 66 0f 38 f6 1c 25 00 00 00 00
adcx rax, rbx ; out: 66 48 0f 38 f6 c3
adcx rbx, [0] ; out: 66 48 0f 38 f6 1c 25 00 00 00 00
adox eax, ebx ; out: f3 0f 38 f6 c3
adox ebx, [0] ; out: f3 0f 38 f6 1c 25 00 00 00 00
adox rax, rbx ; out: f3 48 0f 38 f6... |
# hello.asm
# Writes "Hello, world!" to the screen"
# set start row col
MOV %RX 1
MOV %RY 1
# set character to draw
MOV %RA 0xFF
# call routine draw routine
JMP .draw_char
# Increase col by one, set new char, call next draw
ADD 1 %RX
MOV %RA 0xFF
JMP .draw_char
|
lda {c1}+1,y
cmp #>{c2}
bcc {la1}
bne !+
lda {c1},y
cmp #<{c2}
bcc {la1}
!:
|
; Keen Dreams Source Code
; Copyright (C) 2014 Javier M. Chavez
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
... |
; The OS Alpha Kernel
; Copyright (C) 2021 Adam Judge
;
; File: floppy.asm
; Last modified: 25 May 2020
; Description: Floppy driver subroutines
; Variables
sectors_per_track dw 0
num_sides dw 0
; Read sectors from floppy into buffer
; Params: AX = start LBA, ES:BX = buffer, CX = number of LBAs
... |
SECTION "level_mngr_ram", WRAM0
_curLevelPackAddr:: ds 2
_curLevelWidth:: ds 1
_curLevelHeight:: ds 1
SECTION "level_mngr_hram", HRAM
hCurNodeIndex: ds 1 ; temp value used to store the current node colour
SECTION "level_mngr_functions", ROM0
_loadLevel:: ; level index is in A
ld b, a ; save level index into B
... |
[bits 32]
global get_second
global get_minute
global get_hour
global get_weekday
global get_dayofmonth
global get_month
global get_year
global get_century
global get_time_int
global get_time_str
extern port_byte_in
extern port_byte_out
extern int_to_hex_ascii
get_time:
; dw: data [ebp+8]
push ebp
mov ebp, esp
pus... |
COMMENT @----------------------------------------------------------------------
Copyright (c) Geoworks 1992-1994 -- All Rights Reserved
PROJECT: GEOS
MODULE: Studio
FILE: documentMisc.asm
ROUTINES:
Name Description
---- -----------
INT GotoPageCommon Go to the next page
METHODS:
Name ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.