content
stringlengths
23
1.05M
#include "CPU.asm" #bank rom top: sti16 str_1, uart_print.data_pointer cal uart_println sti 0x00, counter loop: ; loop 5 times lda counter ; run itoa on counter and store in uitoa_b.buffer sta uitoa_b.input_byte cal uitoa_b sti16 loop_str, uart_print.data_pointer ; print "loop #"...
SECTION code_fp_math32 PUBLIC cm32_sdcc___fs2uint PUBLIC cm32_sdcc___fs2uchar EXTERN m32_f2uint EXTERN cm32_sdcc_fsread1 cm32_sdcc___fs2uint: cm32_sdcc___fs2uchar: call cm32_sdcc_fsread1 jp m32_f2uint
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" %include "string_macros.inc" cglobal UsedSpawnsArray @LJMP 0x00658658, _UnitClass__Read_INI_Get_HouseType_From_Name_SpawnX @LJMP 0x00434843, _BuildingClass__Read_INI_Get_HouseType_From_Name_SpawnX @LJMP 0x004D7B9A, _InfantryClass__...
section .init global _init _init: push ebp mov ebp, esp ; gcc will nicely put the contents of crtbegin.o's .init section here. section .fini global _fini _fini: push ebp mov ebp, esp ; gcc will nicely put the contents of crtbegin.o's .fini section here.
.include "../../apps/library/ascii.inc" .org 0x0000 jmp bios_entrypoint ; this table contains a list of ROM available ; functions for the Ashet home computer ; This table must be at 0x0004, entries can ; be called indirect as with the standard calling convention: ; ; ; push args/retval here ; ipget 2 ...
IF !__CPU_INTEL__ & !__CPU_GBZ80__ SECTION code_sound_ay PUBLIC ay_wyz_stop_effect EXTERN asm_wyz_stop_effect ;void ay_wyz_stop_effect(void) ay_wyz_stop_effect: call asm_wyz_stop_effect ret ; SDCC bridge for Classic IF __CLASSIC PUBLIC _ay_wyz_stop_effect defc _ay_wyz_stop_effect = ay_wyz_stop_effect ENDIF E...
AlanGettingStrongerText: text "My @" text_ram wStringBuffer4 text "'s" line "getting stronger," para "exactly as I" line "calculated!" done UnknownText_0x64cf3: text "By the way, we" line "knocked out a wild" para "@" text_ram wStringBuffer4 text " just" line "the other day." para "Studying up in" li...
.model small .stack 100h .data wordArray dw 1000,2000,3000 sum dw ? .code extrn clrscr:proc, writeint:proc, crlf:proc main proc mov ax,@data ; init data segment mov ds,ax call ClrScr mov sum,0 mov cx,3 ; loop counter mov bx,offset wordArray L1: mo...
# # Echo IO # read input, add 1, write to output # loop: io 0x0 addi 0x01 br loop
; set cursor stuff: ldi xr #0E ; Display on, cursor on, blink off : 00001110 stw xr #FE ; store to port B ldi xr #0 ; clear RS/RW/E bits stw xr #FF ; store to port A ldw xr enable ; enable write to lcd stw xr #FF ; store to port A ldi xr #0 ; clear RS/RW/E bits stw xr #FF ; store to port A ; en...
; msx_macros.asm __gets: call INLIN ld (BUF - 0x2), hl ret __puts: ld a, (hl) and a ret z call CHPUT inc hl jr __puts macro color, fg, bg, bd ld a, fg ld (FORCLR), a ld a, bg ld (BAKCLR), a ld a, bd ld (BDRCLR), a call CHGCLR endm macro echo, string ld hl, string call __puts end...
TITLE ../openssl/crypto/bn/asm/bn-586.asm IF @Version LT 800 ECHO MASM version 8.00 or later is strongly recommended. ENDIF .686 .XMM IF @Version LT 800 XMMWORD STRUCT 16 DQ 2 dup (?) XMMWORD ENDS ENDIF .MODEL FLAT OPTION DOTNAME IF @Version LT 800 .text$ SEGMENT PAGE 'CODE' ELSE .text$ SEGMENT ALIGN(64) 'CODE' ENDIF ...
; void p_stack_clear(p_stack_t *s) SECTION code_adt_p_stack PUBLIC p_stack_clear defc p_stack_clear = asm_p_stack_clear INCLUDE "adt/p_stack/z80/asm_p_stack_clear.asm"
%define nop8 db 0x0F, 0x1F, 0x84, 0x00, 0x00, 0x00, 0x00, 0x00 %macro cache_line 0 nop8 nop8 nop8 nop8 nop8 nop8 nop8 nop8 %endmacro GLOBAL foo ALIGN 256 foo: ; This number of nops was adjusted in a way to align hot loops in both cases at a 64 bytes boundary ; Hot loops should have the same alignment, otherw...
#define __CLUCK2SESAME_SUNRISESUNSET_LOADLOOKUPTABLEENTRYFROMFLASH_ASM #include "Platform.inc" #include "FarCalls.inc" #include "Flash.inc" #include "Arithmetic32.inc" #include "SunriseSunset.inc" radix decimal SunriseSunset code global loadLookupTableEntryFromFlash loadLookupTableEntryFromFlash: setupIndf...
BITS 32 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_SF|FLAG_PF ;TEST_FILE_META_END mov ecx, 0 ;TEST_BEGIN_RECORDING lea ecx, [esp-0x20] and ecx, 0xFFFFFFF0 mov dword [ecx+0x0], 0x023490 mov dword [ecx+0x4], 0x023490 mov dword [ecx+0x8], 0x033490 mov dword [ecx+0xc], 0x000010 cvttps2dq xmm1, [ecx] mo...
dnl ARM64 mpn_rsh1add_n and mpn_rsh1sub_n. dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 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:...
extern m7_ippsHMACGetSize_rmf:function extern n8_ippsHMACGetSize_rmf:function extern y8_ippsHMACGetSize_rmf:function extern e9_ippsHMACGetSize_rmf:function extern l9_ippsHMACGetSize_rmf:function extern n0_ippsHMACGetSize_rmf:function extern k0_ippsHMACGetSize_rmf:function extern ippcpJumpIndexForMergedLibs extern ippcp...
page 80,132 ; ; Coswitch for Icon V8 interpreter running in 32 bit protected mode ; under OS/2 2.0, compiled with OptLink (the C Set/2 default). ; ; Author: Robert Goldberg ; ; Modified for OS/2 2.0: Mark Emmer ; ; Note: Must assemble with /Ml switch to preserve case of names! ; ; Coswitch algorithm in C...
;======================================================= ;InfoHUD timers and stuff ;======================================================= org $809490 jmp $9497 ; skip resetting player 2 inputs org $8094DF plp ; patch out resetting of controller 2 buttons and enable debug mode rtl org $828...
SECTION .data tekst db 'Hello world', 0x00 ; tekst do wypisania SECTION .text global _start _start: mov eax, tekst call wypisz call endl call koniec ; liczenie długości stringa dlugosc: push ebx ; dodaję miejsce pomocnicze na ebx mov ebx, eax ; i kopiuję na nie eax petla: cmp byte [eax]...
;id - 201914044 ;i tried to implement this (prime number between 1 to 10): ;for (int i=1;i<=10;i++){ ; int ctr=0; ; for(int j=2;j<=(i-1);j++){ ; if(i%j == 0){ ; ctr++; ; break; ; } ; } ; if(ctr == 0 && i != 1){ ; printf("%d",i); ; } ;} ;Somehow couldn't succeed .model small .stack 100h include 'emu8086.inc'...
; Verified: ; 2021-11-29: CPU CGB E - CPU-CGB-06 (non-CGB mode) ; 2021-11-29: CPU CGB B - CPU-CGB-02 (non-CGB mode) ; 2021-11-29: DMG-CPU C (blob) - DMG-CPU-08 ; INCLUDE "hardware.inc" DEF CART_COMPATIBILITY EQU CART_COMPATIBLE_DMG INCLUDE "m3-bg-lcdc/m3-bg-lcdc.inc"
global _start section .text _start: jmp exit_ten mov rax, 60 mov rdi, 12 syscall mov rax, 60 mov rdi, 0 syscall exit_ten: mov rax, 60 mov rdi, 10 syscall mov rax, 60 mov rdi, 1 syscall section .data
;--- 16-bit sample: using Open Watcom's register calling convention ;--- assemble: jwasm -zf1 owfc16.asm ;--- link DOS: wlink sys dos file owfc16.obj ;--- link OS/2: wlink sys os2 file owfc16.obj .286 .model compact, fastcall include owfchlp.inc ;defines macro @StoreArg includelib clibc.lib in...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Dirk Lausecker 1997 -- All Rights Reserved PROJECT: MM-Projekt MODULE: Driver Template FILE: Manager.asm AUTHOR: Dirk Lausecker REVISION HISTORY: Name Date Description ---- ---- ----------- DL 17.07.97 Initial revi...
// // Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714 // // /// // Resource Bindings: // // Name Type Format Dim Slot Elements // ------------------------------ ---------- ------- ----------- ---- -------- // Buffer0 texture byte ...
// seed 2 lbi r0, 186 // icount 0 slbi r0, 113 // icount 1 lbi r1, 117 // icount 2 slbi r1, 242 // icount 3 lbi r2, 219 // icount 4 slbi r2, 148 // icount 5 lbi r3, 61 // icount 6 slbi r3, 97 // icount 7 lbi r4, 5 // icount 8 slbi r4, 138 // icount 9 lbi r5, 201 // icount 10 slbi r5, 21 // icount 11 lbi r6, 113 // icou...
* Cursor control V0.9  Tony Tebby QJUMP * * cursen [#n] enables the cursor * curdis [#n] disables the cursor * section exten * xdef cursen xdef curdis * xref ut_par0 check for no parameters xre...
.org 0 jp start .org $100 regstore: ds 32 start: ld sp,$F000 call setupexit ld a,$44 ld ($0000),a ld a,$50 ld ($a169),a setupmemory: ld hl,$0000 push hl pop af ld bc,$0000 ld de,$0000 ld hl,$0000 ex af,af' exx ld hl,$0200 push hl pop af ld bc,$cf98 ld de,$90d8 ld hl,$a169 ld ix,$0000 ld iy,$00...
.model small .386 .stack 200h .data a DD 0 stacknum DW 0 b DD 0 c DD 0 dcx DW 0 res dd 0 Bytestr DB 'Binary: $' Errorstr DB 'Error $' Overflowstr DB ' overflow$' Resstr DB 'Result: $' Underflowstr DB 'Underflow$' Summstr DB 'Summ: $' Diffstr DB 'Difference: $' Nanstr DB 'Nan$' digit ...
; ; ZX Spectrum specific routines ; by Stefano Bodrato, 21/09/2006 ; ; int zx_basemem; ; ; This function returns the base memory size in kbytes ; ; $Id: zx_basemem.asm,v 1.2 2015/01/19 01:33:07 pauloscustodio Exp $ ; PUBLIC zx_basemem zx_basemem: ld a,(23733) srl a inc a srl a sub 16 ; subtract the ROM size l...
title "Cmos Access Routines" ;++ ; ; Copyright (c) 1992 NCR Corporation ; ; Module Name: ; ; mccmos.asm ; ; Abstract: ; ; Procedures necessary to access CMOS/ECMOS information. ; ; Author: ; ; David Risner (o-ncrdr) 20 Apr 1992 ; ; Revision History: ; ;-- .386p .xlist ;...
ORG 0000H DB 11111110B ORG 0001H DB 01101000B ORG 0002H DB 11101000B ORG 0003H DB 10011110B ORG 0004H DB 01101000B ORG 0005H DB 11101000B ORG 0006H DB 11100010B ORG 0008H DB 01101000B ORG 0009H DB 11100010B ORG 000aH DB 01101000B ...
; Define a border V2.01  1998 Tony Tebby ; ; 2003-10-06 2.01 Fixed extended colour calls with width=0. (MK) ; ; A border is put around the inside edge of the hit area, and the active ; area shrunk appropriately. ; ; Registers: ; Entry Exit ; D1 colour ; D2 width ; A0 cdb ; section con include 'dev8_keys_er...
; ; serial.asm ; #include "main.inc" #include "sdmmc.inc" GLOBAL serial_init, getch, putch, putsz, puts, GLOBAL putHex, printf, printLBA, putNL, dump serial_data IDATA _HexTemp res 1 _HexTemp2 res 1 _HexCount res 1 _HexRows res 1 _BSRsave res 1 serial CODE serial_init...
; ; Page the graphics bank in/out - used by all gfx functions ; Doesn't really page on the MC-1000, but we hang the interrupts, ; just in case they become critical. ; ; ; $Id: swapgfxbk.asm,v 1.5 2017-01-02 22:57:58 aralbrec Exp $ ; SECTION code_clib PUBLIC swapgfxbk PUBLIC _swapgfxbk ...
; unsigned char zxn_mmu_from_addr(unsigned int addr) SECTION code_clib SECTION code_arch PUBLIC zxn_mmu_from_addr EXTERN asm_zxn_mmu_from_addr defc zxn_mmu_from_addr = asm_zxn_mmu_from_addr
LD SP,$fffe ; $0000 Setup Stack XOR A ; $0003 Zero the memory from $8000-$9FFF (VRAM) LD HL,$9fff ; $0004 Addr_0007: LD (HL-),A ; $0007 BIT 7,H ; $0008 JR NZ, Addr_0007 ; $000a LD A,$80 ; $0011 LD (HL-),A ; $0013 LD ($FF00+C),A ; $0014 INC C ; $0015 LD A,$f3 ; $0016 LD ($FF00+C)...
addi $t1, $t1, 1 # Counting - 1 bne $t1, 10, Continue nop li $t1, 0 Continue: sw $t1, 0x7f40($0) loop_0: lw $s0, 0x7f50($0) # Read Time Length beq $s0, 0, loop_0 nop li $t2, 55000000 beq $s0, 1, NextWait nop li $t2, 110000000 NextWait: sw $t2, 0x7f04($0) # Set Timer eret
aLine 0 nNew newNodePtr, {0:D} gNewVPtr temp gMoveNext temp, Root nMoveAbs newNodePtr, 1380, 435.455 aLine 1 gBne temp, null, 4 aLine 2 gMove Rear, newNodePtr Jmp 3 aLine 5 pSetPrev temp, newNodePtr aLine 7 pSetNext newNodePtr, temp aLine 8 pSetNext Root, newNodePtr aLine 9 pSetPrev newNodePtr, Root aLine 10 aSt...
LOAD A,10 STORE A,#(800) LOAD A,#(800) PUSH A LOAD A,3 PUSH A POP B POP A PLUS PUSH C POP A STORE A,#(801) LOAD A,#(801) PUSH A LOAD A,2 PUSH A POP B POP A MULTI PUSH C POP A PRINT A PRINTLN END
SECTION code_fp_am9511 PUBLIC floor EXTERN cam32_sccz80_floor defc floor = cam32_sccz80_floor ; SDCC bridge for Classic IF __CLASSIC PUBLIC _floor EXTERN cam32_sdcc_floor defc _floor = cam32_sdcc_floor ENDIF
; console.asm ; Author Dave B. ; May 5th, 2018 errorlevel -302; disable bankswitch warning #include "p16f15324.inc" #include "../../src/common/q_macros.inc" #include "../../src/common/forth.inc" extern forth_temp1, forth_temp2, forth_temp3, forth_temp4 global InitConsole global SendConPacket_IRQ ...
ifdef BuildTI8 read "..\SrcTI\TI_V1_KeyboardDriver.asm" endif ifdef BuildENT read "..\SrcENT\ENT_V1_KeyboardDriver.asm" endif ifdef BuildMSX read "..\SrcMSX\MSX_V1_KeyboardDriver.asm" endif ifdef BuildCPC read "..\SrcCPC\CPC_V1_KeyboardDriver.asm" endif ifdef BuildZXS read "..\SrcZX\ZX...
; Adaptación del mantransfer v3 a ROM ; CAMBIOS: ; - Etiquetas por ahí, etiquetas por allá... el ensamblador de ZX Spin ; no soporta algunas directivas, y además hay que tener en cuenta ; que aunque el loader se va a ejecutar desde la memoria de pantalla ; realmente está grabado en la ROM. ; - Antes de grabar e...
page ,132 title COMMAND Initialization ;/* ; * Microsoft Confidential ; * Copyright (C) Microsoft Corporation 1991 ; * All Rights Reserved. ; */ ; ; Revision History ; ================ ; M002 SR 07/15/90 Resize right at th...
[bits 64] exit_process equ 0x0210 vm_reserve equ 0x0410 vm_commit equ 0x0414 stream_read equ 0x0508 section .text xor rdx,rdx mov r8d,2 mov eax,vm_reserve syscall test rax,rax mov rdx,rax jz abort mov r8d,1 mov eax,vm_commit mov rbx,rdx syscall test eax,eax jnz abort mov edx,1 lea r8,[rbx + 0x0FF0] mov r9d,0x20 ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (c) Copyright GeoWorks 1991-1995. All Rights Reserved. GEOWORKS CONFIDENTIAL PROJECT: GEOS MODULE: Pyramid FILE: pyramidDeck.asm AUTHOR: Jon Witort, Jan 7, 1991 ROUTINES: Name Description ---- ----------- MT...
; This file is generated from a similarly-named Perl script in the BoringSSL ; source tree. Do not edit by hand. default rel %define XMMWORD %define YMMWORD %define ZMMWORD %ifdef BORINGSSL_PREFIX %include "boringssl_prefix_symbols_nasm.inc" %endif section .text code align=64 global rsaz_1024_sqr_avx2 ALIGN 64 rsa...
; ; input & display disabling startup code v1.0.2 ; ; minimum requirements: 68000, OCS, Kickstart 1.2 ; compiles with genam and phxass. ; ; Written by Harry Sintonen. Public Domain. ; thanks to _jackal & odin-_ for testing. ; FROMC EQU 0 include "exec/types.i" include "exec/nodes.i" include "exec/por...
; Top-hole Golf ; Copyright 2020-2021 Matthew Clarke ; ******************* ; **** CONSTANTS **** ; ******************* joy_c_UP = $01 joy_c_DOWN = $02 joy_c_LEFT = $04 joy_c_RIGHT = $08 joy_c_FIRE = $10 ; NOTE: these are offsets that we use to index CIAPRA (= $dc00). joy_c_PORT1 = 1 joy_c_PORT2 ...
_CeladonMansion1Text1:: text "MEOWTH: Meow!@@" _CeladonMansion1Text2:: text "My dear #MON" line "keep me company." para "MEOWTH even brings" line "money home!" done _CeladonMansion1Text3:: text "CLEFAIRY: Pi" line "pippippi!@@" _CeladonMansion1Text4:: text "NIDORAN: Kya" line "kyaoo!@@" _CeladonMansion1T...
; BSD ; char *index_callee(const char *s, int c) SECTION code_string PUBLIC _index_callee EXTERN _strchr_callee defc _index_callee = _strchr_callee
TITLE Showing the Time (ShowTime.ASM) ; This program locates the cursor and displays the ; system time. It two MS-Windows structures. ; Last update: 8/14/01. INCLUDE Irvine32.inc Comment @ Definitions copied from Irvine32.inc (SmallWin.inc): COORD STRUCT X WORD ? Y WORD ? COORD ENDS SYSTEMTIME ...
* Spreadsheet 12/05-92 O.Fink * - print page include win1_keys_wwork include win1_keys_wstatus include win1_keys_qdos_io include win1_keys_err include win1_spread_keys include win1_mac_oli section prog xdef fil_prnt xref.s mli.prpica,mli.prelit,mli.prdraf,mli.prff xref.l wst_po...
lui $1,54913 ori $1,$1,54336 lui $2,4369 ori $2,$2,5613 lui $3,803 ori $3,$3,48932 lui $4,37946 ori $4,$4,48986 lui $5,28843 ori $5,$5,36689 lui $6,57034 ori $6,$6,40009 mthi $1 mtlo $2 sec0: nop nop nop sltu $1,$6,$6 sec1: nop nop or $6,$4,$4 sltu $0,$6,$6 sec2: nop nop xori $6,$1,33027 sltu $1,$6,$6 sec3:...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: Epson Escape P2 24-pin driver FILE: escp2generInfo.asm AUTHOR: Dave Durran, 27 Mar 1990 REVISION HISTORY: Name Date Description --...
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: printer drivers FILE: pageEndASFOnly.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- PrintEndPage Tidy up...
; uint64 mul_mod(uint64 x, uint64 y, uint64 m) ; return (x * y) % m .CODE mul_mod_64 PROC mov rax, rcx mul rdx div r8 mov rax, rdx ret mul_mod_64 ENDP END
; Точка входа в ядро. Вызывает функцию 'main' [bits 32] [extern KernelEntry] global _start _start: call KernelEntry ret
# Hello { name } .data msg1: .asciiz "Enter a value: " msg2: .asciiz "Enter another value: " msg3: .asciiz "Sum is: " .text main: # Print msg1 li $v0, 4 la $a0, msg1 syscall # Read first int li $v0, 5 syscall # Save int to register move $s0, $v0 # Print msg2 li $v0, 4 la $a0, msg2 syscall # Read second int li $v0...
@15872 D=A @15616 M=D @15617 M=D @Func_Output_Clean_end 0;JMP (Func_Output_Clean_begin) @15616 D=M @15617 A=M M=D @15617 MD=M+1 @15616 M=D @16384 D=A @15619 M=D (loop_KOXVIFJH_begin) @15619 A=M M=0 @15619 MD=M+1 @15620 M=D @24576 D=A @15620 AM=M-D D=A @if_GGWQWUUS_end D;JNE @loop_KO...
; int ungetc_unlocked(int c, FILE *stream) SECTION code_clib SECTION code_stdio PUBLIC ungetc_unlocked EXTERN asm_ungetc_unlocked ungetc_unlocked: pop af pop ix pop hl push hl push hl push af jp asm_ungetc_unlocked
#include "init.asm" #define ptr 128 main: read 80; write i2c_addr; i2c_wait_0: read *i2c_stat; and 4; branch i2c_wait_0; i2c_wait_1: read 0; // High address write i2c_wdata; read 1; write i2c_stat; i2c_wait_a: read *i2c_stat; and 4; eq 0; branch i2c_wait_a; i2c_wait_5: read *i2c_stat; and 4; branch i...
def main(en:bool, a:i8<4>, b:i8<4>) -> (y:i8<4>) { y:i8<4> = daddrega_i8v4(a, b, en, en, en) @dsp(??, ??); }
splashline0 !pet "Puddle Software", 0 splashline1 !pet "Interactive Fiction", 0 splashline2 !pet "8bitgames.itch.io", 0 splashline3 !pet "", 0 splashline4 !pet " Interpreter: Ozmoo 7.0", 0 splash_index_col !byte 12, 10, 11, 0, 0
; ; Close a file by the BASIC driver ; NOTE: We don't set a drive number, here ; ; Stefano - 5/7/2006 ; ; int close(int handle) ; ; $Id: close.asm,v 1.5 2015/01/21 08:09:27 stefano Exp $ PUBLIC close EXTERN zxhandl EXTERN zx_setint EXTERN zx_goto ; BASIC variable names for numeric values .svar defb 'S',0 .c...
SECTION code_fcntl PUBLIC console_01_output_char_proc_reset_scroll_limit console_01_output_char_proc_reset_scroll_limit: ; set scroll limit to window height ld a,(ix+19) ; a = rect.height ld (ix+20),a ret
;name: %{FileName}.asm ; ;description: ; bits 64 %include "../%{FileName}/%{FileName}.inc" global main section .bss ;uninitialized read-write data section .data ;initialized read-write data section .rodata ;read-only data section .text main: push rbp mov rbp,rsp ;TODO: put your code here......
GLOBAL _syscall ;_syscall(int id, int arg1, int arg2, int arg3) _syscall: push rbp mov rbp, rsp int 80h leave ret
; ; Copyright (c) 2016-2017 Heim László ; ; test1 for aengine ; Testing sprites ; %include 'third-party/io.inc' %include 'third-party/mio.inc' %include 'third-party/util.inc' %include 'include/graphics/sprite.inc' global main section .text ; main: ; ; Main function for testing ; mov eax, 0x00100004 ...
#ruledef test { ld {x} => { assert(x < 0x10) 0x110 @ x`4 } ld {x} => { assert(x >= 0x10 && x < 0x100) 0x22 @ x`8 } ld {x} => { assert(x >= 0x100) 0x33 @ x`16 } } ld var ; = 0x2215 var = 0x15
start: LDA 9 STA iteration + 1 iteration: NUL print: CMP iteration + 1, iteration BRB done LDA 65 STA 0 LDA 108 STA 0 LDA 101 STA 0 LDA 120 STA 0 LDA 10 STA 0 INC iteration JMP print done: HLT
SFX_Shooting_Star_Ch4: dutycycle 228 unknownsfx0x10 47 unknownsfx0x20 4, 64, 224, 7 unknownsfx0x20 4, 96, 224, 7 unknownsfx0x20 4, 128, 224, 7 unknownsfx0x20 8, 160, 224, 7 unknownsfx0x20 8, 160, 224, 7 unknownsfx0x20 8, 128, 224, 7 unknownsfx0x20 8, 96, 224, 7 unknownsfx0x20 8, 48, 224, 7 unknownsfx0x20 15,...
; void *p_queue_back(p_queue_t *q) SECTION code_clib SECTION code_adt_p_queue PUBLIC p_queue_back EXTERN asm_p_queue_back defc p_queue_back = asm_p_queue_back
TITLE LIBSTUFF - Copyright (C) SLR Systems 1994 INCLUDE MACROS INCLUDE IO_STRUC INCLUDE LIBRARY .DATA EXTERNDEF LIB_HEADER:BYTE EXTERNDEF CURN_LIB_BLOCK:DWORD,OBJ_DEVICE:DWORD,DICT_BLOCKS:DWORD,NUMBLKS:DWORD,LAST_LIB_GINDEX:DWORD EXTERNDEF CURN_LIBNUM:DWORD,CURN_DICT_LOG:DWORD,CURN_LIB_BLOCK_PTR:...
SECTION "Map_302C", ROM0[$B800] Map_302C_Header: hdr_tileset 0 hdr_dimensions 9, 7 hdr_pointers_a Map_302C_Blocks, Map_302C_TextPointers hdr_pointers_b Map_302C_Script, Map_302C_Objects hdr_pointers_c Map_302C_InitScript, Map_302C_RAMScript hdr_palette $06 ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: GeoDex MODULE: Misc FILE: miscMiddleBWBitmap.asm AUTHOR: Ted H. Kim, 2/6/90 REVISION HISTORY: Name Date Description ---- ---- ----------- ted 2/6/90 In...
; sample test file for lab 14 .ORIG x5000 .FILL x40 .FILL x2E .STRINGZ "poTTer." .END
Map_187B34: dc.w word_187B38-Map_187B34 dc.w word_187B58-Map_187B34 word_187B38: dc.w 5 dc.b $E8, $E, 0, 0, $FF, $E0 dc.b $E8, $E, 8, 0, 0, 0 dc.b 0, 4, 0, $C, $FF, $E0 dc.b 0, $E, 0, $E, $FF, $F0 dc.b 0, 4, 0, $1A, 0, $10 word_187B58: dc.w 2 dc.b $E8, $F, 0, $1C, ...
%ifndef EXE_LENGTH %include "../UltimaPatcher.asm" %include "include/uw1.asm" %include "include/uw1-eop.asm" %endif [bits 16] startPatch EXE_LENGTH, \ expanded overlay procedure: enqueueGridCoords startBlockAt addr_eop_enqueueGridCoords push bp mov bp, sp ; bp-based stack frame: %assign arg_height...
;;============================================================================ ;; MCKL/lib/asm/aes_aesni_sse2.asm ;;---------------------------------------------------------------------------- ;; MCKL: Monte Carlo Kernel Library ;;---------------------------------------------------------------------------- ;; Copyright...
; These lists determine the battle music and victory music, and whether to ; award HAPPINESS_GYMBATTLE for winning. ; Note: CHAMPION and RED are unused for battle music checks, since they are ; accounted for prior to the list check. GymLeaders: db FALKNER db WHITNEY db BUGSY db MORTY db PRYCE db JASMINE db CHU...
SECTION rodata_clib PUBLIC keys_cursor PUBLIC keys_qaop PUBLIC keys_8246 keys_cursor: defw $100b, $400b, $800b, $200b, $0801, $0103, $0000, $0000 ; Actually z]jqxb keys_qaop: defw $8001, $0401, $8006, $0405, $0807, $0203, $0000, $0000 keys_8246: defw $0100, $1004, $4004, $0400, $4000, $0804, $0000, $0000
format MZ entry .code: start segment .code start: mov ax, .data mov ds, ax mov dx, msg mov ah, 9h int 21h mov ah, 4ch int 21h segment .data msg db 'Hello World', '$'
proc imp.msvcrt.dll!_onexit Label_004028D4 attrs [[jumponly]] # call_from : 00401500 Label_004028D4: 004028D4: FF 25 D0 61 40 00 : jmp dword [0x4061d0] end proc
:020000040000FA :030000000200AF4C :030043000208D0E0 :10008300021A6D00000080FBE479217836B8000283 :100093008004F709D8FCE4900001784979018002D3 :1000A300F0A3D8FCD9FA12190812008675D000758E :1000B30081BF02008BBB0102E722C082C083898219 :1000C3008A83BB0003E08002E493D083D08222BB07 :1000D3000106E7FA09E7801BC082C08389828A8...
SECTION code_clib SECTION code_fp_am9511 PUBLIC asm_dmulpow10 EXTERN asm_am9511_float8, asm_am9511_fmul_callee EXTERN _am9511_exp10 ; multiply DEHL' by a power of ten ; DEHL' *= 10^(A) ; ; enter : DEHL'= float x ; A = signed char ; ; exit : success ; ; DEHL'= x * 10^(A...
; ***************************************************************************** ; ***************************************************************************** ; ; Name: int32fromstr.asm ; Author: Paul Robson (paul@robsons.org.uk) ; Date: 21st February 2021 ; Reviewed: 7th March 2021 ; Purpose: Convert string ...
; TypeNames indexes (see data/types/names.asm) const_def PHYSICAL EQU const_value const SOUND ; $00 const FIGHTING ; $01 const FLYING ; $02 const POISON ; $03 const GROUND ; $04 const ROCK ; $05 const BIRD ; $06 const BUG ; $07 const GHOST ; $08 ...
init: aseg org 100h ld a, 0 org 104h ld a, 1 org 108h ld a, 2 org 10Ch ld a, 3 org 102h ld b, 0 org 106h ld b, 1 org 10Ah ld b, 2 org 10Eh ld b, 3 end init
PLAYER_BEGIN SET . include "player_const.asm" SUBROUTINE include "player_code.asm" include "player_frqtab.asm" echo "PLAYER: ",[. - PLAYER_BEGIN] SNGBEGIN = . .song include "song.asm" ECHO "SONG: ",[.-.song] echo "TOTAL: ",[. - PLAYER_BEGIN]
INTERRUPTS SEGMENT AT 0H ;This is where the disk interrupt ORG 13H*4 ;holds the address of its service routine DISK_INT LABEL DWORD INTERRUPTS ENDS CODE_SEG SEGMENT ASSUME CS:CODE_SEG ORG 100H ;ORG = 100H to make this into a .COM file ...
;======================================================== COMMENT # FCB_PARS.ASM Copyright (c) 1991 - Microsoft Corp. All rights reserved. Microsoft Confidential ================================================= Uses DOS FCB call 29h to parse a file name The following rules are observed based on the filename...
; ; PIC16F84A VIDEO Flappy Block Game ; ZACH BALDWIN JAN 2021 ; processor 16F84A ; Define processor #include <xc.inc> ; CONFIG CONFIG FOSC = HS ; Oscillator Selection bits (HS oscillator) CONFIG WDTE = OFF ; Watchdog Timer (WDT disabled) CONFIG PWRTE = OFF ; P...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; convert 3 to a double precision float and store in xmm0 mov ecx, 3 cvtsi2ss xmm0, ecx ; convert 1 to a double precision float and store in xmm1 mov ecx, 1 cvtsi2ss xmm1, ecx ;TEST_BEGIN_RECORDING addss xmm0, xmm1 ;TEST_END_RECOR...
kernel/kernel: file format elf64-littleriscv Disassembly of section .text: 0000000080000000 <_entry>: 80000000: 00001117 auipc sp,0x1 80000004: 15010113 addi sp,sp,336 # 80001150 <stack0> 80000008: 6505 lui a0,0x1 8000000a: f14025f3 csrr a1,mhartid ...
%include "include/u7si-all-includes.asm" defineAddress 326, 0x0567, handleKeyInput defineAddress 326, 0x0627, handleKeyInput_end defineAddress 326, 0x06D7, mappingTable defineAddress 326, 0x06EB, mappingTable_end %include "../u7-common/patch-processKeyInDialogMode.asm"
SECTION code_clib SECTION code_fp_math48 PUBLIC am48_dip EXTERN mm48_int ; integer part of double ; AC'= integer_part(AC') ; ; if AC'>=0: AC' is set equal to the nearest integer that is ; less than or equal to the number in AC'. ; ; if AC'< 0: AC' is set equal to the nearest inte...