content
stringlengths
23
1.05M
.MODEL SMALL .STACK 100H .DATA ;variables .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX ; enter your code here ;Taking input of Uppercase letter mov ah,1 int 21h mov cl , al ;Next line without carriage return mov dl, 0ah mov ah , 2 int 21h ;To lower...
dnl PowerPC-32/VMX and PowerPC-64/VMX mpn_and_n, mpn_andn_n, mpn_nand_n, dnl mpn_ior_n, mpn_iorn_n, mpn_nior_n, mpn_xor_n, mpn_xnor_n -- mpn bitwise dnl logical operations. dnl Copyright 2006 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; yo...
; ; Copyright (c) 2020, k4m1 <k4m1@protonmail.com> ; All rights reserved. See /LICENSE for full license agreement. ; ; let's implement malloc+free in hopefully sane way. ; ; Memory block header: ; 4 bytes: used/free ; 2 bytes: size ; %ifndef __MM_ASM__ %define __MM_ASM__ %define __MM_MEM_USED "used" %define __MM_MEM_...
; ; a2q4.asm ; ; Fix the button subroutine program so that it returns ; a different value for each button ; ; initialize the Analog to Digital conversion ldi r16, 0x87 sts ADCSRA, r16 ldi r16, 0x40 sts ADMUX, r16 ; initialize PORTB and PORTL for ouput ldi r16, 0xFF out DDRB,r16 sts DDRL,r16 clr r...
;;kernel.asm bits 32 ;tell NASM to make code for a 32bit processor section .text align 4 ; dd= double word dd 0x1BADB002 ; magic dd 0x00 ; flags dd - (0x1BADB002 + 0x00) ; checksum global start extern kmain ; func...
SeafoamIslands1F_Object: db $7d ; border block def_warps warp 4, 17, 0, LAST_MAP warp 5, 17, 0, LAST_MAP warp 26, 17, 1, LAST_MAP warp 27, 17, 1, LAST_MAP warp 7, 5, 1, SEAFOAM_ISLANDS_B1F warp 25, 3, 6, SEAFOAM_ISLANDS_B1F warp 23, 15, 4, SEAFOAM_ISLANDS_B1F def_signs def_objects object SPRITE_BOUL...
; char *dirname(char *path) SECTION code_string PUBLIC dirname EXTERN asm_dirname defc dirname = asm_dirname ; SDCC bridge for Classic IF __CLASSIC PUBLIC _dirname defc _dirname = dirname ENDIF
; int b_vector_at(b_vector_t *v, size_t idx) SECTION code_adt_b_vector PUBLIC b_vector_at EXTERN b_array_at defc b_vector_at = b_array_at
; void *memset_wr(void *s, int c, size_t n) IF !__CPU_GBZ80__ SECTION code_clib SECTION code_string PUBLIC memset_wr_callee EXTERN asm_memset_wr memset_wr_callee: pop hl pop bc pop de ex (sp),hl jp asm_memset_wr ; SDCC bridge for Classic IF __CLASSIC PUBLIC _memset_wr_callee defc _memset_wr_cal...
; void wa_stack_destroy(wa_stack_t *s) SECTION code_adt_wa_stack PUBLIC _wa_stack_destroy EXTERN _w_array_destroy defc _wa_stack_destroy = _w_array_destroy
%include "../lib/syscall.inc" %define O_RDONLY 0 %define PROT_READ 0x01 %define MAP_PRIVATE 0x0002 section .data fname: db './ch04/runs.txt', 0 section .text global _start print_string: ; print newline terminated string push rdi call string_length pop rsi mov rdx, rax mov rax, NR_WRITE mov rdi, 1 sysc...
;******************************************************************************* ; ide.nasm - E-IDE resource manager. ; Based on Minix 2.0.0 code. ;******************************************************************************* module $eide %include "rmk.ah" %include "errors.ah" %include "module.ah" %include "thread....
;;;------------------------------------------------- ;; Configure the system clock & flash timing ;; ;; Code for F303x8, clock set to 48 MHz from HSI ;; ;; Different speed can be achieved by changing the value ;; of PLL_MUL in RCC_CFGR. ;; Cfg_RCC PROC PUSH {R0, R1, R2, LR} ; --- Flash timing config --- ...
SFX_Battle_0F_Ch8: noise_note 2, 14, 1, 75 noise_note 10, 15, 1, 68 noise_note 2, 14, 1, 58 noise_note 6, 15, 1, 52 sound_ret
;Sprite source code generated with EASYSOURCE V3.02 ; 1991/92 Albin Hessler Software ;************************************************ ; -> tmov <- 1993 Jul 02 23:13:48 section sprite xdef mes_tmov xref mes_zero mes_tmov sp1_tmov dc.w $0100,$0000 ;form, time/adaption dc.w $0018,$000F...
;============================================================== ; WLA-DX banking setup ;============================================================== .memorymap defaultslot 0 ; rom area slotsize $4000 slot 0 $0000 slot 1 $4000 slot 2 $8000 ; ram are...
; ; Metasploit Framework ; http://www.metasploit.com ; ; Source for exec (single) ; ; Authors: vlad902 <vlad902@gmail.com> ; Size : 113 ; cld call startup mov eax,[ebp+0x3c] mov edi,[ebp+eax+0x78] add edi,ebp mov ecx,[edi+0x18] mov ebx,[edi+0x20] add ebx,ebp next_export: dec ecx mov esi,[ebx+ecx*...
.file "test1.c" | GNU C (GCC) version 4.8.0 (m68k-elf) | compiled by GNU C version 4.7.2, GMP version 4.2.4, MPFR version 2.4.1, MPC version 0.8 | GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 | options passed: -imultilib m68000 | -iprefix d:\sysgcc\m68k-elf\bin\../lib/gcc/m68k-elf/4.8.0/...
; Joshua Saunders ; CO SCI 917 ; Assignment 7: ; CountingNearlyMatchingElements.asm ; ; Prompt: ; ; Write a procedure named CountNearMatches that receives pointers to two arrays ; of signed doublewords, a parameter that indicates the length of the two ; arrays, and a parameter that indicates the maximum allowed differe...
;BASICS OF GNU 8085 LDA 2000; MOV B, A; MOV C, B; ADD B; hlt
;; ; ; Name: encoder_dword_xor ; Qualities: Null-Free Decoder ; Platforms: MacOS X / PPC ; Authors: H D Moore <hdm [at] metasploit.com> ; Version: $Revision: 1612 $ ; License: ; ; This file is part of the Metasploit Exploit Framework ; and is subject to the same licenses and copyrig...
/* * Automatic Subroutines */ Delay: // Delay(Amount) PUSH { R0-R1 } MOVI R0,0 PEEK R1,2 DelaySubroutineWait: ADDI R0,R0,1 CMP R0,R1 BNE DelaySubroutineWait POP { R0-R1 } RET Write: // Write(MemoryLoc, Value) PUSH { R0-R1 } PEEK R1,2 // value - second param PEEK R0,3 // memory location - first param STRI R1,R0,0 P...
.MODEL SMALL .STACK 100H .DATA ;variables s db '**********',0dh,0ah,'$' .CODE MAIN PROC ;initialize DS MOV AX,@DATA MOV DS,AX ; enter your code here lea dx, s mov ah, 9 ;Displaying string 10 times int 21h int 21h int 21h int 21h int 21h int 21h int 21h...
[ORG 0x7C00];BIOS loads bootsector here %ifndef KERNEL_MEMORY %error "Kernel start address not defined" ;kernel_memory must be 16 byte aligned %endif %ifndef KERNEL_SIZE_SECTORS %error "Kernel size (in sectors) not defined" %endif [BITS 16] ;for real mode; 16-bit instructions cli ...
Name: zel_enmy3.asm Type: file Size: 334969 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 03E16D840FA79B53D57770236DA6E734C06577EE Description: null
; ///////////////////////////////////////////////////////////////////////////// ; Znake (ZX Spectrum 48K) ; ----------------------------------------------------------------------------- ; graphics.asm ; ----------------------------------------------------------------------------- ; Copyright (C) 2016, Chris Wyatt ;...
Mus82_LZ_Header: smpsHeaderStartSong 1 smpsHeaderVoice Mus82_LZ_Voices smpsHeaderChan $06, $03 smpsHeaderTempo $02, $06 smpsHeaderDAC Mus82_LZ_DAC smpsHeaderFM Mus82_LZ_FM1, $F4, $0C smpsHeaderFM Mus82_LZ_FM2, $E8, $0D smpsHeaderFM Mus82_LZ_FM3, $F4, $18 smpsHeaderFM ...
fillback ( ASCII - ) RST 24 223 LD HL,9216 33 0 36 LD B,23 6 23 PUSH BC 197 LD B,32 6 32 LD A,(HL) 126 CP 32 254 32 JR NZ +2 32 2 LD A,E 123 LD (HL),A 119 INC HL 35 DJNZ -10 16 246 POP BC 193 DJNZ -16 16 240 JP (IY) 253 233 fillfore ( ASCII - ) RST 24 223 LD HL,9216 33 0 36 LD B...
; Program 4.3 ; Negative Division - NASM (64-bit) ; Copyright (c) 2019 Hall & Slonka SECTION .text global _main _main: mov eax, -534 cdq mov ebx, 15 idiv ebx mov rax, 60 xor rdi, rdi syscall
; ; jcgrammx.asm - grayscale colorspace conversion (MMX) ; ; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB ; Copyright 2011 D. R. Commander ; ; Based on ; x86 SIMD extension for IJG JPEG library ; Copyright (C) 1999-2006, MIYASAKA Masaru. ; For conditions of distribution and use, see copyright ...
; signed long long __fs2ulonglong (float f) SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdccixp_ds2ulonglong EXTERN cm48_sdccixp_dread3, am48_dfix64u, l_store_64_dehldehl_mbc cm48_sdccixp_ds2ulonglong: ; double to unsigned long long ; ; enter : stack = sdcc_float x, result *, ret ; ; exit ...
; --------------------------------------------------------------------------- ; Object 3D - Eggman (GHZ) ; --------------------------------------------------------------------------- BossGreenHill: moveq #0,d0 move.b obRoutine(a0),d0 move.w BGHZ_Index(pc,d0.w),d1 jmp BGHZ_Index(pc,d1.w) ; =====================...
; ; Startup for m100 optrom mostly based on Stephen Adolph optrom demo: ; http://bitchin100.com/wiki/index.php?title=OPTROM_Switching&oldid=2419 ; Alexei Gordeev, Nov 2020 ; ; guaranteed safe place to put some variables defc ALTLCD_RAM = $FCC0 defc ALTLCD_LEN = 320 defc OPON = $FAA4 ...
; in mov $1,$0 add $1,5 sub $1,7 ; out mov $1,$0 sub $1,2
; RAM DISK Version section version xdef rd_vmess xdef rd_vmend xdef rd_vers ; V2.02 Sub-directories added. ; ; V2.03 FS.MKDIR corrected. ; ; V2.04 Should have been the same as V2.05, but some 2.04 (non released ; versions) were the same as V2.03. ; ; V2.05 Und...
; size_t b_array_capacity(b_array_t *a) SECTION code_adt_b_array PUBLIC b_array_capacity defc b_array_capacity = asm_b_array_capacity INCLUDE "adt/b_array/z80/asm_b_array_capacity.asm"
SECTION code_clib PUBLIC VDM_DISPLAY defc VDM_DISPLAY = $cc00 ;Default address ; This default address can be overridden on the command line ; with -pragma-export:VDM_DISPLAY=0xnnn
_CeladonHouseText1:: text "Heheh! Gambler's" line "fallacy brings" cont "dough, big time!" done _CeladonHouseText2:: text "CHIEF!" para "We just shipped" line "2000 #MON as" cont "slot prizes!" done _CeladonHouseText3:: text "Do touch the" line "poster at the" cont "GAME CORNER!" para "Fear reverse" l...
/* is_negative.asm * Tests whether its argument is negative * * Programmer: Mayer Goldberg, 2010 */ IS_NEGATIVE: CMP(STARG(0), IMM(0)); JUMP_LT(L_IS_NEGATIVE_T); MOV(R0, IMM(0)); RETURN; L_IS_NEGATIVE_T: MOV(R0, IMM(1)); RETURN;
.data test: .word 0 .text main: ########## if-statement Example #1 ########## # if (i == j) # f = g + h; # f = f - i; # $s0 = f, $s1 = g, $s2 = h, $s3 = i, $s4 = j li $s0, 10 # f li $s1, 6 # g li $s2, 3 # h li $s3, 1 # i li $s4, 2 # j bne $s3, $s4, L1 # i != j add $s0, $s1, $s2 # f = g + h ...
bits 64 section .data sample: db 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff, 0x11, 0x22 section .bss section .text global main main: mov rax, 0x_1122_3344_5566_7788 push rax push sample push qword[sample] pop r15 pop r14 pop rbx mov rax, 60 ...
.byte $01 ; Unknown purpose .byte OBJ_CFIRE_GOOMBAPIPE_R, $19, $13 .byte OBJ_GOOMBA, $20, $18 .byte OBJ_CFIRE_GOOMBAPIPE_R, $2B, $13 .byte OBJ_PARAGOOMBA, $39, $15 .byte OBJ_GREENPIRANHA_FIRE, $4A, $11 .byte OBJ_GOOMBA, $53, $17 .byte OBJ_GOOMBA, $55, $10 .byte OBJ_PARAGOOMBA, $61, $14 .byte OBJ_GOOMBA, $6B,...
; MsgBoxAsk demo (msgboxAsk.asm) INCLUDE Irvine32.inc .data caption BYTE "Survey Completed",0 question BYTE "Thank you for completing the survey." BYTE 0dh,0ah BYTE "Would you like to receive the results?",0 results BYTE "The results will be sent via email.",0dh,0ah,0 .code main PROC mov ebx,...
; Copyright (C) 2020-2021, Vi Grey ; 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 copyright ; notice, this list of conditions and ...
; JDH-8 OPERATING SYSTEM ; INCLUDED IN OSTEXT.ASM osmain: sw [ADDR_MB], 1 sw16 [ADDR_SP], 0xFEFF call [ADDR_RAM] .loop: jmp [.loop]
; Functions dealing with VRAM. DMATransfer:: ; Return carry if the transfer is completed. ldh a, [hDMATransfer] and a ret z ; Start transfer ldh [rHDMA5], a ; Execution is halted until the transfer is complete. xor a ldh [hDMATransfer], a scf ret UpdateBGMapBuffer:: ; Copy [hBGMapTileCount] 16x8 tiles fro...
@256 D=A @SP M=D @133 0;JMP @R15 M=D @SP AM=M-1 D=M A=A-1 D=M-D M=0 @END_EQ D;JNE @SP A=M-1 M=-1 (END_EQ) @R15 A=M 0;JMP @R15 M=D @SP AM=M-1 D=M A=A-1 D=M-D M=0 @END_GT D;JLE @SP A=M-1 M=-1 (END_GT) @R15 A=M 0;JMP @R15 M=D @SP AM=M-1 D=M A=A-1 D=M-D M=0 @END_LT D;JGE @SP A=M-1 M=-1 (END_LT) @R15 A=M 0;JMP @5 D=A @LCL A...
; ; MSX C Library ; ; getkey() Wait for keypress ; ; Stefano Bodrato - Apr. 2001 ; ; ; $Id: fgetc_cons.asm,v 1.4 2007/12/07 11:28:59 stefano Exp $ ; XLIB fgetc_cons LIB msxbios INCLUDE "#msxbios.def" .fgetc_cons ld ix,CHGET call msxbios ld l,a ld h,0 ret
; Platform specific colour transformation ; ; Entry: a = colour ; Exit: a = colour to use on screen ; Used: hl,bc,f ; MODULE code_clib PUBLIC conio_map_colour EXTERN __CLIB_CONIO_NATIVE_COLOUR conio_map_colour: ld c,__CLIB_CONIO_NATIVE_COLOUR rr c ret c and 15 ld c,a ld...
%macro imprimir 2 ; nro de params mov eax, 4 mov ebx, 1 mov ecx, %1 ; primer param mov edx, %2 ; segundo param int 0x80 %endmacro %macro leer 2 mov eax, 3 ; leer datos mov ebx, 0 ; device a leer es el teclado mov ecx, %1 ; guardar mov edx, %2 ; numero de bytes int 0x80 %endmacro...
Route11Script: call EnableAutoTextBoxDrawing ld hl, Route11TrainerHeaders ld de, Route11ScriptPointers ld a, [wRoute11CurScript] call ExecuteCurMapScriptInTable ld [wRoute11CurScript], a ret Route11ScriptPointers: dw CheckFightingMapTrainers dw DisplayEnemyTrainerTextAndStartBattle dw EndTrainerBattle Route...
data align 4 LABELV gamecodetoui byte 4 4 byte 4 2 byte 4 3 byte 4 0 byte 4 5 byte 4 1 byte 4 6 align 4 LABELV uitogamecode byte 4 4 byte 4 6 byte 4 2 byte 4 3 byte 4 1 byte 4 5 byte 4 7 align 4 LABELV handicap_items address $69 address $70 address $71 address $72 address $73 address $74 address $75 address $76 address...
bits 64 andn ecx,edi,r14d blsr edi,r14d blsmsk edi,r14d blsi edi,r14d bzhi ecx,r14d,edi pext ecx,edi,r14d pdep ecx,edi,r14d mulx ecx,edi,r14d bextr ...
L1: addi $t0, $zero, 255 addi $t1, $zero, 255 addi $t2, $zero, 255 j L0 addi $t3, $zero, 255 # in delay slot, ought to be executed addi $t4, $zero, 255 # never reached addi $t5, $zero, 255 # never reached L0: addi $t6, $zero, 255 addi $t7, $zero, 255 j L1 #nop here
;======================================================================= ; Copyright Baptiste Wicht 2013-2016. ; Distributed under the terms of the MIT License. ; (See accompanying file LICENSE or copy at ; http://www.opensource.org/licenses/MIT_1_0.txt) ;===============================================================...
[bits 32] extern term_put_string global keyboard_init global keyboard_test keyboard_test_string: db 'keyboard was pressed!', 0 ; Setup IRQ1 on Interrupt Descriptor Table Slot 21 keyboard_init: pushad mov ecx, keyboard_test ; IDT 0x21 location (8 byte per entry) mov eax, 0x21 << 3 ;add eax, 0x000fd3...
global _s, checkGreater section .text _s: mov rdi,10 ;x mov rsi,20 ;y call checkGreater ;calling checkGreater checkGreater: cmp rdi, rsi ; comparing x and y jg _greater ;jumpt to _greater if x>y jng _else ;else jmp to _else _greater: mov rax, 1 ;code for write syscall mov rdi, 1 mov rsi...
; This is an example of setting up 32-bit program with flat memory model ; using DPMI. It requires 32-bit DPMI host in order to start. include '80386.inc' include 'format/mz.inc' heap 0 ; no additional memory segment loader use16 push cs pop ds mov ax,1687h int 2Fh or ax,ax ; DPMI insta...
// finalTest // // Extra tests beyond the first four programs. // For the single-cycle implementation. // // CS/ECE 552, Spring 2006 // Andy Phelps 30 March 2006 // Modified // Pratap Ramamurthy 6th May, 2007 // Rotate left by 16, 15, 14,...1 bits. lbi r0, 16 // r0 = 0x0010 // loop count lbi r1, 1 ...
db "CAVE@" ; species name db "As it digs to" next "expand its nest," next "it habitually digs" page "up gemstones that" next "it then hoards in" next "its nest.@"
; ; DGC 2011-06-16: This program seems to read raw tracks from the disk in ; drive B and store them in RAM at 300H. I think the ; idea was to run this and then run the CP/M command that ; saved a chunk of memory to disk. ; ; ORG 100H ; ; SET UP STACK LXI H,0 DAD ...
MAS ; Is coded as LAA DMS ; Is coded as LLL REI ; Is coded as RET with 011 on the xxx part
0x0000: cmove $3 $2 $0 0x0001: add $3 $0 $0 0x0002: imm $1 20 0x0003: imm $2 91 0x0004: imm $3 53 0x0005: imm $0 13 0x0006: jump $6 $0 0x0007: cmove $0 $0 $0 0x0008: div $3 $2 $0 0x0009: add $3 $0 $0 0x000a: jump $6 $1 0x000b: jump $6 $1 0x000c: jump $6 $1 0x000d: jump $6 $2 0x000e: jump $6 $3 0x000...
TITLE (.asm) INCLUDE Irvine32.inc INCLUDE Macros.inc .data NumA QWORD 0000002147483647h PointA BYTE 6 NumB QWORD 0000000000000884h PointB BYTE 1 .code main PROC ;TEST1 mWrite "測試測資 : 2147.483647 / 88.4" call crlf mov edi,OFFSET NumA mov ah,PointA mov esi,OFFSET NumB mov al,PointB call QD...
; 1 "synth_sse_accurate.S" ; 1 "<built-in>" ; 1 "<command line>" ; 1 "synth_sse_accurate.S" ; 9 "synth_sse_accurate.S" ; 1 "mangle.h" 1 ; 13 "mangle.h" ; 1 "config.h" 1 ; 14 "mangle.h" 2 ; 1 "intsym.h" 1 ; 15 "mangle.h" 2 ; 10 "synth_sse_accurate.S" 2 ; 28 "synth_sse_accurate.S" %include "asm_nasm.inc" _...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: NIKE MODULE: FILE: mainAbbrev.asm AUTHOR: Lulu Lin, Aug 23, 1994 ROUTINES: Name Description ---- ----------- INT WPReadAbbrevPhrase To read in t...
ORG 100h ; for COM file. ; setting data segment value mov ax,900h mov ds,ax ; set staring index register to 1 mov si,1h ; set ax to 10 , which indicated that it should print 10x10 square mov ax,10 ; n=10 mov bx,ax mov cx,ax ; storing ax register value to memory mov [si+10h],ax ; storing 1 to ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC/GEOS MODULE: uiHeight.asm FILE: uiHeight.asm AUTHOR: Gene Anderson, Jul 6, 1992 ROUTINES: Name Description ---- ----------- REVISION HISTORY: N...
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: Text Library FILE: uiCharBGColorControl.asm ROUTINES: Name Description ---- ----------- GLB CharBGColorControlClass Style menu object ...
#bits 32 HALT = 1 << 0 ERROR = 1 << 1 JUMP = 1 << 2 ; alu ops ADD = 0 << 3 SUB = 1 << 3 SHR = 2 << 3 SHL = 3 << 3 ASR = 4 << 3 XOR = 5 << 3 AND = 6 << 3 OR = 7 << 3 ; mem ops MEM = 1 << 6 STORE = 1 << 7 ; reg write WRITE = 1 << 8 ; wrmux -- write mux WM_RESULT = 0 << 9 WM_L ...
; 16-bit Integer to ASCII (decimal) ; http://map.grauw.nl/sources/external/z80bits.html#5.1 ; ; Input: HL = number to convert, DE = location of ASCII string ; Output: ASCII string at (DE) Num2Dec: ld bc,-10000 call Num1 ld bc,-1000 call Num1 ld bc,-100 call Num1 ld c,-10 call Num1 ld c,b Num1: ld a,'0'-1 ...
lui $1,55387 ori $1,$1,20737 lui $2,53563 ori $2,$2,18417 lui $3,44382 ori $3,$3,45165 lui $4,12316 ori $4,$4,63550 lui $5,35029 ori $5,$5,48129 lui $6,41039 ori $6,$6,22407 mthi $1 mtlo $2 sec0: nop nop nop xor $3,$6,$6 sec1: nop nop or $6,$5,$1 xor $5,$6,$6 sec2: nop nop addiu $6,$2,8650 xor $2,$6,$6 sec3...
Name: zel_enmy0.asm Type: file Size: 526862 Last-Modified: '2016-05-13T04:36:32Z' SHA-1: 8FEE6CB0260D9CF39C75A4A4F8C4BF1D73C4C9D5 Description: null
ata_lba_read: mov ebx, eax, ; Backup the LBA ; Send the highest 8 bits of the lba to hard disk controller shr eax, 24 or eax, 0xE0 ; Select the master drive mov dx, 0x1F6 out dx, al ; Finished sending the highest 8 bits of the lba ; Send the total sectors to read mov eax, ecx m...
@SP M=M+1 A=M-1 M=0 @LCL D=M @0 D=D+A @R12 M=D @SP AM=M-1 D=M @R12 A=M M=D (Sys.init$LOOP_START) @ARG D=M @0 A=D+A D=M @SP M=M+1 A=M-1 M=D @LCL D=M @0 A=D+A D=M @SP M=M+1 A=M-1 M=D @SP AM=M-1 D=M @SP A=M-1 M=M+D @LCL D=M @0 D=D+A @R12 M=D @SP AM=M-1 D=M @R12 A=M M=D @ARG D=M @0 A=D+A D=M @SP M=M+1 A=M-1 M=D @SP M=M+1 A...
; QDOS Trap #0 Emulation V2.01  1993 Tony Tebby QJUMP section qd xdef qd_trap0 include 'dev8_keys_68000' dc.l 0,0,0,0 ; 16 bytes for cache patch ;+++ ; Goto supervisor mode ;--- qd_trap0 bset #sr..s,(sp) ; ... set supervisor mode rte ; and return end
; ; Small C z88 Character functions ; Written by Dominic Morris <djm@jb.man.ac.uk> ; ; 1/3/99 djm ; ; Hurrah, this is our first table for our isxxx routines! ; ; $Id: ispunct.asm,v 1.7 2016/03/06 21:41:15 dom Exp $ ; SECTION code_clib PUBLIC _ispunct PUBLIC ispunct EXTERN asm_ispunct ; FASTCALL ._ispunct .i...
; Ciclo anidado utilizando el stack y temas anteriores. ; Este programa imprime un bloque lleno de un cierto caracter ; con un tamaño dado por variables. .Model small .Stack 64 .Data char db 'x' ; Caracter de relleno n_cols dw 40 ; La mitad del ancho (40) n_rows dw 13 ; La mitad de la altura (13 ó 12.5) ....
;;;;; ;PIX; ;;;;; SECTION .data SECTION .bss SECTION .text global pix extern pixtime ; @brief: rax := rax % r8 ; @arguments: none ; @modifies: rax, rdx %macro mod 0 div r8 ; divide by modular expression mov rax, rdx ; result is in rdx, moving to rax %endmacro ; @br...
; Instantiates two global objects which act like the objects used to represent ; on-screen inventory dialogs during the drag-and-drop movement of items, ; but which can be configured to move items to and from arbitrary ; destinations, not just open containers/inventories. [bits 16] startPatch EXE_LENGTH, ...
; KILLSOUND kills QSSS sound & a job named "SOUNDFILE JOB" V1.01 (c) W. Lenerz 2004 ; copyright (c) - see the licence in the documentation ; v. 1.01 2004 Nov 27 18:28:34 section sound xdef killsound xref sndname include dev8_keys_qdos_io include dev8_keys_qdos_ioa include dev8_smsq_q40_hdop_data include ...
SYS_EXIT equ 1 SYS_READ equ 3 SYS_WRITE equ 4 STDIN equ 0 STDOUT equ 1 segment .data msg_1 db "Enter a digit:", 0x20 len_1 equ $ - msg_1 msg_2 db "Please enter as second digit:", 0x20 len_2 equ $ - msg_2 msg_3 db "The sum is:", 0x20 len_3 equ $ - msg_3 segment .bss num_1 resb 2...
global asm_reg_args_h asm_reg_args_h: push rsi push rdi push rbx mov rsi, r8 mov rbx, rcx mov rdi, rdx call asm_reg_args pop rbx pop rdi pop rsi ret global asm_reg_args asm_reg_args: mov rax, rbx mov rcx, rdi add ecx, esi shl eax, 3 sub eax, ecx ret ...
; void shadow_relocate(void * address) SECTION smc_lib PUBLIC _shadow_relocate EXTERN asm_push_di EXTERN asm_pop_ei_jp EXTERN asm_shadow_relocate ._shadow_relocate pop bc pop hl push hl push bc call asm_push_di call asm_shadow_relocate jp asm_pop_ei_jp
.byte $01 ; Unknown purpose .byte OBJ_BIGQBLOCK_3UP, $35, $14 .byte OBJ_BIGQBLOCK_TANOOKI, $57, $14 .byte OBJ_BIGQBLOCK_HAMMER, $65, $06 .byte $FF ; Terminator
#include "Platform.inc" #include "FarCalls.inc" #include "Adc.inc" #include "Isr.inc" #include "Lcd.inc" #include "TestFixture.inc" radix decimal ContrastWhenLcdDisabledButAdcStillEnabledTest code global testArrange testArrange: fcall initialiseAdc fcall initialiseLcd fcall initialiseIsr enableInterrupts...
; ; Copyright (C) 2011-2012 Intel Corporation. ; SPDX-License-Identifier: MIT ; PUBLIC AtomicIncrement extern numthreadsStarted:dword .code AtomicIncrement PROC lea rcx, numthreadsStarted inc DWORD PTR [rcx] ret AtomicIncrement ENDP end
; ; Z88dk Generic Floating Point Math Library ; ; TOS >= FA ; ; $Id: dgt.asm,v 1.1 2008/07/27 21:44:57 aralbrec Exp $: XLIB dgt LIB dcompar LIB f_yes LIB f_no .dgt call dcompar jp z,f_no jp p,f_no jp f_yes
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) New Deal 1999 -- All Rights Reserved PROJECT: GeoSafari FILE: safariGame.asm AUTHOR: Gene Anderson REVISION HISTORY: Name Date Description ---- ---- ----------- Gene 9/25/98 Initial revision DESCRIPT...
; ; TIKI-100 graphics routines ; by Stefano Bodrato, Fall 2015 ; ; Edited by Frode van der Meeren ; ; Palette is always 16 colors long, 'len' is the number ; of colors being passed, which will be copied many times ; ; void __FASTCALL__ gr_setpalette(int len, char *palette) ; ; Changelog: ; ; v1.2 - FrodeM ; * Ma...
; uint zx_saddr2px_fastcall(void *saddr) SECTION code_clib SECTION code_arch PUBLIC _zx_saddr2px_fastcall EXTERN asm_zx_saddr2px defc _zx_saddr2px_fastcall = asm_zx_saddr2px
.586 .MODEL flat,stdcall option casemap:none include windows.inc include user32.inc include kernel32.inc include msvcrt.inc includelib user32.lib includelib kernel32.lib includelib msvcrt.lib ;typedef mybyte typedef ptr byte .data var01 mybyte 2 arrNum01 DWORD 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 arrNum02 byt...
; ; print64.asm ; KripayaOS Project ; Author(s): [Ashwin: ashwonixer123@gmail.com] ; [bits 64] print64: ; Save the registers push rax push rdx push rdi push rsi mov rdx, vga_start shl rdi, 8 .loop: ; Check if character is null cmp byte[rsi], 0 je .done ; Check if the string is too long cmp rd...
Route22GateScript: call EnableAutoTextBoxDrawing ld hl, Route22GateScriptPointers ld a, [wRoute22GateCurScript] call CallFunctionInTable ld a, [wYCoord] cp $4 ld a, ROUTE_23 jr c, .asm_1e69a ld a, ROUTE_22 .asm_1e69a ld [wLastMap], a ret Route22GateScriptPointers: dw Route22GateScript0 dw Route22GateScrip...
.program: ji i4 noop DATA_SECTION_OFFSET[0..32] DATA_SECTION_OFFSET[32..64] lw $ds $is 1 add $$ds $$ds $is move $r4 $sp ; save locals base register cfei i80 ; allocate 80 bytes for all locals addi $r1 $r4 i72 ; get_ptr lw $r0 data_0 ; literal insta...
; ; Startup for Gameboy ; module gb_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- defc crt0 = 1 INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- EXTERN _main ;main() is always external to crt0 code EXTERN asm_im1_handler ...
; Copyright 2018-2019 Brian Otto @ https://hackerpulp.com ; ; Permission to use, copy, modify, and/or distribute this software for any ; purpose with or without fee is hereby granted, provided that the above ; copyright notice and this permission notice appear in all copies. ; ; THE SOFTWARE IS PROVIDED "AS I...
// Test provided by Karu //Test of producing a zero lbi r1, 0xff lbi r2, 0x1 sub r2, r1, r1 sub r1, r1, r1 halt
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% (c) Copyright GeoWorks 1995. All Rights Reserved. GEOWORKS CONFIDENTIAL PROJECT: GEOS MODULE: Pyramid FILE: pyramidGame.asm AUTHOR: Jon Witort, Jan 7, 1991 ROUTINES: Name Description ---- ----------- MTD MSG...
LXI H, 2200H; MOV B, M; LXI H, 2500H; MVI A, 00H; MVI C, 00H; LOOP: ADD M; JNC SKIP; INR C; SKIP: INX H; DCR B; JNZ LOOP; STA 2300H; XRA A; MOV A, C; STA 2301H; HLT;