content
stringlengths
23
1.05M
;Beetle Adventure Racing ;New Scoring System ;Redirect subroutine to my code .org 8014fbb0 jal 80000100 .org 80000100 ;Save registers to stack addi $K1,$ZERO,0x08 sub $SP,$SP,$K1 sw $T0,0($SP) sw $A3,4($SP) ;Get score memory address add $A3,$ZERO,$ZERO lui $A3,0x8036 addi $A3,$A3,0x3D68 ;Load curr...
// Commodore 64 PRG executable file .file [name="strcpy-0.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .segment Basic :BasicUpstart(main) .label dst1 = $400 .label dst2 = ...
extern printf extern ExitProcess section .text global main main: sub rsp, 32 mov rdx, -1 sub rsp, qword 64 ;alloc offset:0 mov qword [rsp+0], qword 2 ; sub rsp, qword 64 ;alloc a offset:64 mov rax, qword [rsp+64] ; mov qword [rsp+0], rax ;Store into var "a" [64] sub rsp, qword 64 ;alloc offset:128 mo...
include io.h cr equ 10 lf equ 13 .model small .stack 200h .Data promptN1 db cr, lf, 'Enter a NumberBase -> ', 0 promptN2 db cr, lf, 'Enter a NumberGuesses -> ', 0 promptN3 db cr, lf, 'The number Greater :( ', 0 promptN4 db cr, lf, 'The number Less :( ', 0 promptN5 db cr, lf, 'Afaaaaaaaaaaaaaaaarin Pesare Gooolam :)...
extern m7_ippsSHA512MessageDigest:function extern n8_ippsSHA512MessageDigest:function extern y8_ippsSHA512MessageDigest:function extern e9_ippsSHA512MessageDigest:function extern l9_ippsSHA512MessageDigest:function extern n0_ippsSHA512MessageDigest:function extern k0_ippsSHA512MessageDigest:function extern ippcpJumpInd...
.data str: .asciiz "Dividendo: " str2: .asciiz "Divisor: " str3: .asciiz "Quociente: " str4: .asciiz "\n" .eqv print_int, 1 .eqv print_string, 4 .eqv read_int, 5 .text .globl main main: subiu $sp, $sp 12 sw $ra, ($sp) sw $a0, 4($sp) sw $a1, 8($sp) la $a0, str li $v0, print_string syscall li $v0, read_in...
; Copy a string  1992 Jochen Merz section utility xdef ut_cpyst ;+++ ; Copy a string. If the destination address is zero, nothing is copied. ; If source address is zero, destination string length is set to zero. ; ; Entry Exit ; a0 ptr to destination preserved ; a1 ptr to source preserved ;--- cpy.reg reg ...
; Copyright (c) 2019-2022 Andreas T Jonsson ; ; This software is provided 'as-is', without any express or implied ; warranty. In no event will the authors be held liable for any damages ; arising from the use of this software. ; ; Permission is granted to anyone to use this software for any purpose, ; including comme...
TITLE Program Template (template.asm) ; Author: ; Course / Project ID Date: ; Description: INCLUDE Irvine32.inc .data main PROC push 3 push 8 call rcrsn exit main ENDP rcrsn PROC push ebp mov ebp,esp mov eax,[ebp + 12] mov ebx,[ebp+8] cmp eax,ebx ...
;++ ; ; WOW v1.0 ; ; Copyright (c) 1991, Microsoft Corporation ; ; WINSTACK.ASM ; Win16 stack munging routines ; ; History: ; ; Created 18-Jun-1991 by Jeff Parsons (jeffpar) ; Copied from WIN31 and edited (as little as possible) for WOW16 ;-- ;**********************************************...
; PIC16F628A Configuration Bit Settings ; ASM source line config statements #include "p16F628A.inc" ; CONFIG ; __config 0x3F70 __CONFIG _FOSC_INTOSCIO & _WDTE_OFF & _PWRTE_ON & _MCLRE_ON & _BOREN_ON & _LVP_OFF & _CPD_OFF & _CP_OFF #define NUMBER_0 b'01110111' #define NUMBER_1 b'00010100' #define NUMBER_2 b'1011001...
;/*! ; @file ; ; @ingroup fapi ; ; @brief DosQFileInfo DOS wrapper ; ; (c) osFree Project 2018, <http://www.osFree.org> ; for licence see licence.txt in root directory, or project website ; ; This is Family API implementation for DOS, used with BIND tools ; to link required API ; ; @author Yuri Prokushe...
######################################################### # # # Zamiana malych liter na wielkie # # Autor: mgr. inz. Slawomir Niespodziany # # # ######################################...
MouseEvent_xpos equ 0x00 MouseEvent_ypos equ 0x04 MouseEvent_button equ 0x08 MouseEvent_status equ 0x0C MouseEvent.STATUS_BUTTON_PRESSED equ 1 MouseEvent.STATUS_BUTTON_RELEASED equ 2 MouseEvent.STATUS_MOUSE_MOVED equ 3 MouseEvent.STATUS_UNSPECIFIED equ 4
[bits 64] LoadGDT: lgdt [rdi] ; load GDT, rdi (1st argument) contains the gdt_ptr mov ax, 0x40 ; TSS segment is 0x40 ltr ax ; load TSS mov ax, 0x10 ; kernel data segment is 0x10 mov ds, ax ; load kernel data segment in data segment registers mov es, ax mov fs, ax ...
; try to initiate a wild pokemon encounter ; returns success in Z TryDoWildEncounter: ld a, [wNPCMovementScriptPointerTableNum] and a ret nz ld a, [wd736] and a ret nz callab IsPlayerStandingOnDoorTileOrWarpTile jr nc, .notStandingOnDoorOrWarpTile .CantEncounter ld a, $1 and a ret .notStandingOnDoorOrWarpTil...
; 当CPU执行ret指令的时候相当于进行 ; POP IP 从栈中读取数据 ; 当CPU执行retf指令的时候相当于进行 ; POP IP ; POP CS ; 故ret, retf与栈有直接关系 assume cs:code data segment db 'Welcome to ASM!','$' data ends stack segment db 16 dup (0) stack ends code segment mov ah, 4ch int 21h start: mov ax, stack mov ss, ax mov sp, 16 ...
; void p_stack_init(void *p) SECTION code_adt_p_stack PUBLIC p_stack_init defc p_stack_init = asm_p_stack_init INCLUDE "adt/p_stack/z80/asm_p_stack_init.asm"
abs: PUSH %14 MOV %15,%14 @abs_body: ADDS 8(%14),12(%14),%0 MOV %0,%13 JMP @abs_exit @abs_exit: MOV %14,%15 POP %14 RET main: PUSH %14 MOV %15,%14 SUBS %15,$4,%15 @main_body: PUSH $10 PUSH $20 CALL abs ADDS %15,$8,%15 MOV %13,%0 MOV %0,-4(%14) MOV -4(%14),...
; void *sp1_TileEntry(uchar c, void *def) ; CALLER linkage for function pointers SECTION code_temp_sp1 PUBLIC sp1_TileEntry EXTERN asm_sp1_TileEntry sp1_TileEntry: ld hl,2 add hl,sp ld e,(hl) inc hl ld d,(hl) inc hl ld c,(hl) jp asm_sp1_TileEntry
; A282939: Maximum number of straight lines required to draw the boundary of any polyomino with n squares. ; 0,4,4,6,8,12,12,14,16,20,20,22,24,28,28,30,32,36,36,38 mov $1,$0 mov $2,2 add $2,$0 mod $2,4 trn $2,2 add $1,$2 mul $1,2
%include "include/u7bg-all-includes.asm" defineAddress 214, 0x0ED3, doesItemFit_getBulkOfItems defineAddress 214, 0x0F16, doesItemFit_getBulkOfItems_end %define doesItemFit_reg_pn_droppedIbo di %define doesItemFit_reg_pn_destinationIbo si %assign doesItemFit_var_droppedItemBulk -0x02 %ass...
#initial lui $1,0x2819 ori $1,$1,0x9384 lui $2,0x7cfd ori $2,$2,0x5738 lui $3,0x883c ori $3,$3,0x8847 lui $4,0x9382 ori $4,$4,0xacfe sw $1,0($0) sw $2,4($0) sw $3,8($0) sw $4,12($0) #lh ori $5,$0,5 ori $1,$0,1 add $5,$5,$1 lh $1,0($5) or $6,$0,$5 ori $7,$0,7 lh $2,2($6) ori $2,$0,0x2928 ori $3,$0,0x2929 xor $5,$2,$3 lu...
; ; Copyright (c) 2020 Phillip Stevens ; ; This Source Code Form is subject to the terms of the Mozilla Public ; License, v. 2.0. If a copy of the MPL was not distributed with this ; file, You can obtain one at http://mozilla.org/MPL/2.0/. ; ; feilipu, August 2020 ; ;-----------------------------------------------...
-- 7 Billion Humans (2053) -- -- 65: Defrag Ordered -- -- Author: ansvonwa -- Size: 125 -- Speed: 15 step n step n if c == datacube and ne == datacube: comment 0 comment 1 pickup c step ne step ne step ne drop step n step nw comment 2 pickup e drop step e step e step e comment 4 pickup e step w st...
; Initialize the stack pointer MOV XL, 0xFF MOV XH, 0xFF MOV SP, X MOV D, 1 MOV [SP], D MOV E, [SP] MOV [SP], 2 MOV F, [SP] MOV [SP], 00000011b MOV G, [SP] MOV [SP], 0xAA MOV H, [SP] MOV [SP], ABh MOV H, [SP] ; Write register E to the Output Port OUTB E ; Write register F to the Output Port OUTB F ; Write regis...
;/* ---------------------------------------------------------------------- ;* Copyright (C) 2010-2013 ARM Limited. All rights reserved. ;* ;* $Date: 17. January 2013 ;* $Revision: V1.4.1 ;* ;* Project: CMSIS DSP Library ;* Title: arm_bitreversal2.S ;* ;* Description: This...
;_ faterr.asm ; Copyright (C) 1985-1994 Digital Mars ; All rights reserved. ; 32 bit fatal error exit ; $Revision: 1.1.1.2 $ include macros.asm extrn __Exit:near ifdef _WIN32 extrn __win32_faterr:near endif ifdef M_UNIX extrn _write:near endif ifdef __OS2__ ext...
// use with .import directive { loop_raster: ldy $d012 bne loop_raster }
camlMatrix_math__mult_sv_1045: subq $8, %rsp .L164: movq %rax, %rsi .L165: subq $40, %r15 movq caml_young_limit@GOTPCREL(%rip), %rax // Check heap for allocation cmpq (%rax), %r15 jb .L166 leaq 8(%r15), %rax movq $4343, -8(%rax) movq camlM...
DATA SEGMENT DATA ENDS SSEG SEGMENT STACK dw 100h dup(?) SSEG ENDS CODE SEGMENT ASSUME CS:CODE, DS:DATA, SS: SSEG start: mov ax, DATA mov ds, ax mov ax,1 mov bx,2 mov cx,3 mov dx,4 ; IRP input,<ax,bx,cx,dx> push input endm ;AX<=>BX, CX<=>DX IRP change,<cx,dx,ax,bx> pop chang...
nor $3,$0,$3 srl $5,$1,31 sltu $0,$2,$3 xori $5,$3,22661 addu $3,$1,$3 sh $3,14($0) lw $3,16($0) srlv $4,$3,$3 lb $3,16($0) addu $3,$2,$3 sltiu $6,$4,-26627 sltiu $1,$4,26163 andi $3,$3,47461 sb $1,10($0) lhu $4,8($0) addu $1,$4,$3 lhu $4,16($0) subu $5,$0,$3 andi $4,$4,30996 subu $1,$5,$3 sll $0,$1,0 lh $1,2($0) sb $3...
; stdio_errno_zc ; 06.2008 aralbrec XLIB stdio_errno_zc LIB stdio_error_zc XREF _errno .stdio_errno_zc ld (_errno),hl jp stdio_error_zc
;---------------------------------------------------------------- ; constants ;---------------------------------------------------------------- PRG_COUNT = 1 ;1 = 16KB, 2 = 32KB MIRRORING = %0001 ;%0000 = horizontal, %0001 = vertical, %1000 = four-screen ;-------------------------------------------------------...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;; ;;; Microsoft Research Singularity ;;; ;;; Copyright (c) Microsoft Corporation. All rights reserved. ;;; ;;; This file contains ARM-specific assembly code. ;;; ; Assembler source for FPA support code and e...
print_str: lodsb cmp al,0x00 je .done mov ah,0x0E int 0x10 jmp print_str .done: ret
; You may customize this and other start-up templates; ; The location of this template is c:\emu8086\inc\0_com_template.txt org 100h ;#INCLUDE<STDIO.H> ;INT MAIN (){ MOV AX, 02 ; INT A=2; MOV BX, 03 ; INT B=3; ADD AX, BX ; INT C = A+B; ...
; A212351: Maximal number of "good" manifolds in an n-nice polytope. ; Submitted by Christian Krause ; 6,8,12,24,40,80,128,256,512,1024,2048,4096,8192,16384,32768,65536,131072,262144,524288,1048576 mov $1,2 pow $1,$0 mov $0,$1 lpb $0 div $0,2 pow $0,2 div $0,10 add $1,2 lpe mov $0,$1 mul $0,2
; ----------------------------------------------------------------------------- ; .:: MCU Initialization Routine ::. ; ; Steps: ; 1) Initialize stack ; 2) Initialize gp. registers ; 3) Initialize 16bit timer1 ; 4) Initialize 8bit timer2 ; 5) Initialize shift register and color ; 6) Initialize SPI ; 7...
dnl SPARC v9 32-bit mpn_addmul_1 -- Multiply a limb vector with a limb and add dnl the result to a second limb vector. dnl Copyright 1998, 2000, 2001, 2003 Free Software Foundation, Inc. dnl This file is part of the GNU MP Library. dnl The GNU MP Library is free software; you can redistribute it and/or modify d...
; void *wa_priority_queue_data_fastcall(wa_priority_queue_t *q) SECTION code_clib SECTION code_adt_wa_priority_queue PUBLIC _wa_priority_queue_data_fastcall EXTERN asm_wa_priority_queue_data defc _wa_priority_queue_data_fastcall = asm_wa_priority_queue_data
;------------------- ; test for adiw/sbiw ;------------------- ldi r25,0x02 ldi r24,0xd8 adiw r24,0x30 ldi r27,0x02 ldi r26,0xd8 adiw r26,0x0f ;------------------- ldi r29,0x02 ldi r28,0x18 sbiw r28,0x30 ldi r31,0x02 ldi r30,0x18 sbiw r30,0x0f ;-------------...
Name: yst_game.asm Type: file Size: 6089 Last-Modified: '2016-05-13T04:52:55Z' SHA-1: 976D25AEB73B61734A26C8BAEAD893B97853A1E1 Description: null
lda ({z2}),y sec sbc {z1} sta {z1} iny lda ({z2}),y sbc {z1}+1 sta {z1}+1
# definisco un'area dati # con 'n' word (c0, c1, ... cn) # i quali indacano i vari nomi dei casi (c0 = case 0, ...) .data tab_ind: .word c0, c1 .text la $t0, tab_ind li $t1, 1 # rappresenta il k di prova su cui saltare "switch (k)" sll $t1, $t1, 2 # k * 4 addu $t0, $t0, $t1 # trovo l'indirizzo di salto, da...
; -------------------------------------- ; Visual Display Unit ; -------------------------------------- JMP Start ; Jump past the data table DB "Hello World!" DB 00 Start: MOV AL, C0 ; Make AL point to video RAM MOV BL, 02 ; Make BL point to the first character in the string MOV CL, [BL] ; Copy the data ...
; program to print 16 bit number data segment a db 0F7h ; <ascii for F><ascii of 1> data ends ; program print 'F1' on the screen ; 'F1' -> '0F' ; print ; 'F1' -> '01' ; print code segment start: assume cs:code, ds:data mov ax,data mov ds,ax mov bl, a and bl, 0F0h ; mask out the last 4 bits (F1 -> F0) ror bl, 4 ; rot...
.MODEL SMALL .STACK 100H .DATA PROMPT_1 DB "Please Enter a String: $" PROMPT_2 DB 0DH,0AH,"Total Number of Vowels in the String: $" STRING DB 32 VOWEL DB ? .CODE MAIN PROC MOV AX, @DATA MOV DS, AX MOV AH, 9 MOV DX, OFFSET PROMPT_1 INT 21H MOV AH, 0AH MOV DX, OFFSET ...
; ; S-OS (The Sentinel) Japanese OS - Stdio ; ; (HL)=char to display ; ;---------------------------------------------------------------- ; ; $Id: fputc_cons.asm,v 1.4 2016-05-15 20:15:46 dom Exp $ ; ;---------------------------------------------------------------- ; SECTION code_clib PUBLIC fputc_cons_native .fputc...
0: CPi 100 7 //1.loop pc 1: CPi 110 8 //2.loop pc 2: CPi 120 9 //3.loop pc 3: CPi 130 0 //1.loop counter 4: CPi 140 0 //2.loop counter 5: CPi 150 0 //3.loop counter 6: CPi 4111 1 //LED 7: ADDi 130 1 8: ADDi 140 1 9: ADDi 150 1 10: CP 151 150 11: CPi 200 4 12: LT 151 200 13: BZJ 100 151 //marks end of loop ...
; shrink (i : byte) : byte ; ----------------- ; This function takes an integer and converts it ; to a byte by omitting the 8 most significant bits. section .code global _shrink _shrink push rbp mov rbp, rsp mov ax, di and rax, 0xff pop rbp ret
code equ trap_Error -1 equ trap_Print -2 equ trap_Milliseconds -3 equ trap_Cvar_Set -4 equ trap_Cvar_VariableValue -5 equ trap_Cvar_VariableStringBuffer -6 equ trap_Cvar_SetValue -7 equ trap_Cvar_Reset -8 equ trap_Cvar_Create -9 equ trap_Cvar_InfoStringBuffer -10 equ t...
# Zeynep Cankara -- 04/03/2019 # Course: CS223 # Section: 02 # Lab: 02 # preLIMver2.asm -- Performs number conversions #************************ # * # text segment * # * #************************ .globl __start .text __start: # Print an intro message li $v0, 4 la $a0, intro syscall # Function call...
;; Program design: ; draw rectangle in term ; exit 0 ;; Register usage in program ; On syscall ; rax = syscall number ; rdi = first parameter of syscall ; rsi = second parameter of syscall ; rdx = third parameter of syscall ; ; Program start ; rcx = argc ; rsi = pop argv parameter ; rax = tmp integer ; ; Program loops...
; uint in_KeyPressed(uint scancode) SECTION code_clib PUBLIC in_KeyPressed PUBLIC _in_KeyPressed ; Determines if a key is pressed using the scan code ; returned by in_LookupKey. ; enter: L = mask + flags ; H = port ; bit 7 of L set if SHIFT needs to be pressed ; bit 6 of L set if CTR...
# setup r2 and r2 load r2 0x0005 load r1 0x0001 # setup h load p0 0x0068 .top # Print h prt 0x0000 0x0000 # Increment r1 add r1 0x0001 # compare and branch cmp r1 r2 nbranch 0x0001 top # # if it's done, write an g load p0 0x0067 prt 0x0000 0x0000
; void adt_HeapAdd(void *item, void **array, uint n, void *compare) ; 08.2005 aralbrec SECTION code_clib PUBLIC ADTHeapAdd EXTERN ADTHeapSiftUp ; enter: HL = N+1 (number of items in array after this one added) ; BC = array address ; DE = &item ; IX = compare(DE=&array[child], HL=&array[parent...
processor 6502 org $0801 ; sys2061 sysline: .byte $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00 org $080d ; sys2061 lda #$00 sta $02 incloop: lda $02 cmp $d012 bne incloop inc $d021 adc #$10 sta $02 decloop: lda $02 cmp $d012 bne decloop dec $d021 sbc #$10 sta $02 jmp ...
; ulong esxdos_m_getdate(void) SECTION code_clib SECTION code_esxdos PUBLIC esxdos_m_getdate EXTERN asm_esxdos_m_getdate defc esxdos_m_getdate = asm_esxdos_m_getdate ; SDCC bridge for Classic IF __CLASSIC PUBLIC _esxdos_m_getdate defc _esxdos_m_getdate = esxdos_m_getdate ENDIF
%include 'lib.inc' section .data msg db 'Digite um número: ',NULL _even db 'O número é par!', LF, NULL _odd db 'O número é ímpar!', LF, NULL section .bss num resb 10 section .text global _start _start: mov ecx, msg call print mov ecx, num mov edx, 10 call scan lea esi, ...
copyright zengfr site:http://github.com/zengfr/romhack 012F0A move.b #$63, ($1df,A5) [base+1DE] 012F10 addq.b #2, ($1dd,A5) [base+1DF] 012F50 bpl $12f62 [base+1DF] 012F58 subq.b #1, ($1de,A5) [base+1DF] copyright zengfr site:http://github.com/zengfr/romhack
; We want longer item names and descriptions. ; Normally names are embedded in a 16 byte struct, and descriptions at 0x1A. ; Names originally at 0x08630E5C and descriptions at 0x08639558. ; See also battle_spoils.asm. @NameLen equ 0x10 @DescLen equ 0x30 ; For names, the game already multiplies by 16. We just adjust ...
# Sample assembly code # (augment as the assember and loader are built out) .class Sample:Obj .field x # This is in addition to inherited fields .field y .method added forward .method $constructor enter call $:added const "Scrabble: The game\n" call String:print pop const 418 const 383...
;Based on http://dustlayer.com/c64-coding-tutorials/2013/4/8/episode-2-3-did-i-interrupt-you BORDERAD = $d020 ; We want to flash that green money color FLASHCOL = 5 UNFLCOL = 14 ; number of jiffies we want to wait FLASHDEL = 40 ; number of jiffies/256 we want to wait SOUNDDEL = 2 ; Autorun on load * = $0801 ...
# Author: Leonardo Benitez # Date: 20/03/2019 # Brief # Read a text file with an "array of integers" # Just 1 digit integers, writen in sequence # Calculates the sum # Variables map # s0: file descriptor # s1: sum # s2: counter # s3: maxCounter .data Dread: .space 32 Dfilename: .asciiz "data.txt" .text ...
; ; Fast background save ; ; Generic version (just a bit slow) ; ; $Id: bksave.asm,v 1.7 2016-07-02 09:01:35 dom Exp $ ; SECTION code_clib PUBLIC bksave PUBLIC _bksave EXTERN pixeladdress .bksave ._bksave push ix ld hl,4 add hl,sp ld e,(hl) inc hl ...
; void *w_vector_data(b_vector_t *v) SECTION code_adt_w_vector PUBLIC _w_vector_data EXTERN _w_array_data defc _w_vector_data = _w_array_data
format binary org 7C00h include 'boot.asm' org 7E00h init: .init_mem: mov al, '~' call add_symbol_to_memory main: call handle_code_input jmp main includes: ;include 'libcursor.asm' ; included in boot.asm ;include 'libtext.asm' ; included in boot.asm include 'libkbd.asm' include 'libmem.asm' include 'lib...
; ; We keep a mirrored screen at 0x9000 - 80x24 ; ; ; SECTION code_clib PUBLIC generic_console_cls PUBLIC generic_console_vpeek PUBLIC generic_console_scrollup PUBLIC generic_console_printc PUBLIC generic_console_ioctl PUBLIC generic_console_set_ink PUBLIC ...
; Main module (main.asm) ; Last update: 4/10/05 INCLUDE Irvine32.inc .code main PROC exit main ENDP END main
%include "D:/GGOS/Source/Assembly/settings.asm" [ORG 0x7C00] ;mov ah, 02 ;mov al, 01 ;CX := ((CYLINDER AND 255)SHL 8) OR ((CYLINDER AND 768) SHR 2) OR SECTOR; ;xor cx, cx ;or cx, 02 ;mov dh, 0 ;mov bx, 0x500 ;mov es, bx ;xor bx, bx mov ah, 42h xor bx, bx mov ds, bx mov si, DAP int 13h cmp ah, 0 je BOOTADD hang: j...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1989 -- All Rights Reserved PROJECT: PC GEOS MODULE: Graphics FILE: graphicsGetState.asm AUTHOR: Steve Scholl, Oct 7, 1989 ROUTINES: Name Description ---- ----------- GBL GrGetMixMode R...
Map_GumballItem_: dc.w word_4A3D4-Map_GumballItem_ word_4A3D4: dc.w 1 ; DATA XREF: ROM:0004A3D2o dc.b $F0, $F, 0, 0, $FF, $F0
.include "constants.inc" .include "header.inc" TileAddrY=$0200 TileAddrX=$0203 .segment "ZEROPAGE" PtrBg: .res 2 DirFlag: .res 1 FrameCounter: .res 1 .segment "CODE" .import reset_handler .export main .proc irq_handler RTI .endproc .proc nmi_handler PHA TXA PHA TYA PHA LDA #$00 ...
; DCL_DF13_CLA.asm - Direct Form 1 implementation in third order ; version 1.0, August 2015 ; C type definition: ; typedef volatile struct { ; float c[8]; // coefficients: { b0, b1, b2, b3, a0, a1, a2, a3 } ; float d[8]; // data: { e(k), e(k-1), e(k-2), e(k-3), u(k), u(k-1), u(k-2), u(k-3) } ; } DF13; ; define C ca...
%ifndef EXE_LENGTH %include "../UltimaPatcher.asm" %include "include/uw1.asm" %include "include/uw1-eop.asm" %endif [bits 16] startPatch EXE_LENGTH, \ expanded overlay procedure: runeKey startBlockAt addr_eop_runeKey push bp mov bp, sp ; bp-based stack frame: %assign arg_character 0x04 ...
[bits 64] global execat global exit ;execat (rdi = argc, rsi = argv, rdx = rip) execat: jmp rdx ret ; exec_user(rdi = argc, rsi = argv, rdx = rip, rcx = rsp) global exec_user exec_user: xor rax, rax mov ax, 0x23 mov ds, ax mov es, ax mov fs, ax mov gs, ax mov rbp, rcx push rax ; push...
.file "deflate.c" .section .text.unlikely,"ax",@progbits .LCOLDB1: .section .rodata .align 64 .local configuration_table .type configuration_table, @object configuration_table: .value 0 .value 0 .value 0 .value 0 .quad deflate_stored .long 262148 .long 262152 .quad deflate_fast .long 327684 .long ...
kernel: 檔案格式 elf32-i386 Disassembly of section .text: 80100000 <multiboot_header>: 80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh 80100006: 00 00 add %al,(%eax) 80100008: fe 4f 52 decb 0x52(%edi) 8010000b: e4 .byte 0xe4 8010000c <entry>: # Entering...
%macro import 1 %defstr %%incfile %!PROJECTBASEDIR/%{1}.inc %defstr %%decfile %!'PROJECTBASEDIR'/%{1}.dec db %%incfile, `\n` db %%decfile, `\n` %endmacro %ifenv PROJECTBASEDIR import foo %else %warning No PROJECTBASEDIR defined %endif %ifenv %!PROJECTBASEDIR import foo %else %warning No PROJECTBASEDIR defined %en...
; CRT0 for the ZX81 - HIGH RESOLUTION MODE (arx816 trick by Andy Rea) ; Display handler modifications (to preserve IY) by Stefano Bodrato ; ; ; - - - - - - - ; ; $Id: zx81_hrg_arx.def,v 1.13 2015-07-07 07:11:17 stefano Exp $ ; ; - - - - - - - PUBLIC hrg_on PUBLIC _hrg_on PUBLIC hrg_off PUBLIC _hrg_of...
.MODEL small .STACK 100h .DATA mensagem DB 'Digite algo', 13, 10,'$' buffer BYTE 100 DUP(0) .CODE mov ax,@data mov ds,ax mov dx, OFFSET mensagem ; escreve uma frase na tela mov ah,9 ; a frase deve terminar com $ int 21h ; funcao ah=9 da int 21h ...
BITS 16 org 0x7c00 jmp short entry nop db "MSDOS5.0" dw 512 db 4 dw 4 db 2 dw 512 dw 0 db 248 dw 250 dw 63 dw 255 dd 0 dd 256000 db 128 db 0 db 41 dd 2963790959 db "NO NAME " db "FAT 16 " times 0x3e - ($ - $$) db 0 entry: mov ax, 0 ; init registers mov ss, ax mov s...
;/** @file ; ; This code provides low level routines that support the Virtual Machine ; for option ROMs. ; ; Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR> ; This program and the accompanying materials ; are licensed and made available under the terms and conditions of the BSD Li...
; SPIR-V ; Version: 1.0 ; Generator: Khronos Glslang Reference Front End; 10 ; Bound: 177 ; Schema: 0 OpCapability Shader %1 = OpExtInstImport "GLSL.std.450" OpMemoryModel Logical GLSL450 OpEntryPoint Fragment %4 "main" %56 OpExecutionMode %4 OriginU...
LCDINST EQU 002H LCDDATA EQU 003H STRLEN EQU 29 START LD HL, STRING LD B, STRLEN OLOOP LD C, (HL) INC HL OUTI JR NZ, OLOOP JP START STRING DB LCDINST, 38H DB LCDINST, 38H DB LCDINST, 06H DB LCDINST, 0eH DB LCDINST, 01H DB LCDINST, 80H DB LCDDATA, "A" DB LCDDATA, "l" DB LCDDATA, "i" DB LCDDATA, "c" ...
; ; pikos_disk.asm ; pikOS disk handling routine. ; ; A typical disk is accessed through 3 values: cylinder, head and sector (CHS). ; We can use the BIOS interrupt int 0x13 after setting al to 0x02 to access a ; disk. ; Load the sectors in DH from the drive in DL into the register ES:BX. disk_load: pusha ...
org $C000 level_tiles: DB 0,0,0,0,0,0,0,0 DB 7,31,63,127,127,255,255,255 DB 224,248,252,254,254,255,255,254 DB 4,1,0,64,0,4,0,0 DB 0,0,0,0,0,4,0,0 DB 0,0,0,16,0,0,0,0 DB 0,0,16,40,16,0,0,0 DB 0,0,0,22,111,223,255,223 DB 0,0,15,247,222,125,254,253 DB 0,21,175,255,255,255,255,255 DB 252,246,191,127,255,127,255,255 DB 10...
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS= ;TEST_FILE_META_END ; ADD32rr mov ecx, 0x7fffffff mov edx, 0x6ffeeeee ;TEST_BEGIN_RECORDING add ecx, edx ;TEST_END_RECORDING
; FV-1 Testing ; ; Program: Negative ADDR_PTR ; ; POT0: PTR NEG | POS ; ; Where does negative ADDR_PTR point? or 0x7fffff wra 0,0.0 ; write max to start of delay or 0x800000 wra 0x3fff,0.0 ; write min to halfpoint of delay sof 1.0,0.5 ; offset start rdax POT0,-1.0 ; subtract POT0 sof -2.0,0.0 ; invert a...
; _________________ ; // \\ ; || HOW TO COMPILE IT || ; \\_________________// ; ; ------ x86 ------ ; nasm -f elf even.asm ; ld -s -o even even.asm ; ; ------ x86_64 ------ ; nasm -f elf64 even.asm ; ld -s -o even even.asm ; ; ------ COMPILER ------ ; ./compiler.sh even ; ./compiler.sh even....
;============================================================== ; Hacked from the SMS version, plus some snippets from Wickeycolumbus' Snake. ; Many constants and memory addresses are still using SMS values. ; Cleanup is still pending. ;============================================================== ;==================...
; void wv_priority_queue_destroy(wv_priority_queue_t *q) SECTION code_clib SECTION code_adt_wv_priority_queue PUBLIC wv_priority_queue_destroy EXTERN asm_wv_priority_queue_destroy defc wv_priority_queue_destroy = asm_wv_priority_queue_destroy ; SDCC bridge for Classic IF __CLASSIC PUBLIC _wv_priority_queue_destro...
; uint zx_px2bitmask(uchar x) SECTION code_arch PUBLIC zx_px2bitmask zx_px2bitmask: INCLUDE "arch/zx/display/z80/asm_zx_px2bitmask.asm"
._CPU = 6809 ._default_base_page = true 0x0000: LDA <0x50 ; Force base page LDA >0x50 ; Force direct LDA 0x50 ; Let the assembler choose
PrintSafariZoneBattleText: ld hl, wSafariBaitFactor ld a, [hl] and a jr z, .no_bait dec [hl] ld hl, SafariZoneEatingText jr .done .no_bait dec hl ld a, [hl] and a ret z dec [hl] ld hl, SafariZoneAngryText jr nz, .done push hl ld a, [wEnemyMonSpecies] ld [wd0b5], a call GetMonHeader ld a, [wMonHCatchR...
SECTION code_fp_math16 PUBLIC _ldexpf16_callee EXTERN cm16_sdcc_ldexp_callee defc _ldexpf16_callee = cm16_sdcc_ldexp_callee
; Assembly Level Program 3a ; Sort a given set of 'n' numbers in ascending and descending orders using the Bubble Sort algorithm. .model SMALL .data ARRAY dB 05h, 07h, 06h, 04h, 10h, 09h LEN dB $-ARRAY .code ; Initialize Data Segment MOV AX, @DATA MOV DS, AX ; Clear Counter Register MOV CX, 00h MOV CL,...
dnl AMD64 mpn_bdiv_q_1, mpn_pi1_bdiv_q_1 -- schoolbook Hensel division by dnl 1-limb divisor, returning quotient only. dnl Copyright 2001, 2002, 2004-2006, 2009, 2011, 2012 Free Software dnl Foundation, Inc. dnl This file is part of the GNU MP Library. dnl dnl The GNU MP Library is free software; you can redist...
VermilionGymObject: db $3 ; border block db $2 ; warps db $11, $4, $3, $ff db $11, $5, $3, $ff db $0 ; signs db $5 ; objects object SPRITE_ROCKER, $5, $1, STAY, DOWN, $1, OPP_LT_SURGE, $1 object SPRITE_GENTLEMAN, $9, $6, STAY, LEFT, $2, OPP_GENTLEMAN, $3 object SPRITE_BLACK_HAIR_BOY_2, $3, $8, STAY, LEFT, $...