content
stringlengths
23
1.05M
.686p KBD_SERVICE_PRINT EQU 1 KBD_SERVICE_PUT EQU 2 MOUSE_SERVICE_INFO EQU 3 GRAPHCHAR_SERVICE EQU 4 RANDROM_NUMBER EQU 5 SLEEPTIME EQU 6 TURNONSCREEN EQU 7 TURNOFFSCREEN EQU 8 CPUMANUFACTORY EQU 9 TIMESTAMP EQU 10 SWITCHSCREEN EQU 11 CPUINFO EQU 12 DRAW_MOUSE EQU 13 RESTORE_MOUS...
;; xOS32 ;; Copyright (C) 2016-2017 by Omar Mohammad. use32 KERNEL_HEAP = VBE_BACK_BUFFER + VBE_BUFFER_SIZE + 0x1000000 USER_HEAP = KERNEL_HEAP + 0x8000000 ; 128 MB KMALLOC_FLAGS = PAGE_PRESENT OR PAGE_WRITEABLE MALLOC_FLAGS = PAGE_PRESENT OR PAGE_WRITEABLE OR PAGE_USER ; kmalloc: ; Allocates memory in the...
org 0000h ;assume buzzer to be connected to P1.0 mov tmod,#01h ;T0 Mode 1 mov th0,#0fbh ;settings for 10ms delay mov tl0,#0b4h clr p1.0 ;clear pin initially buzz:setb p1.0 ;turn ON buzzer acall delay ;call delay=10ms clr p1.0 ;t...
; A010936: Binomial coefficient C(20,n). ; 1,20,190,1140,4845,15504,38760,77520,125970,167960,184756,167960,125970,77520,38760,15504,4845,1140,190,20,1 mov $1,20 bin $1,$0 mov $0,$1
; This function just returns the address of the UDG of the given str. ; If the str is EMPTY or not a letter, 0 is returned and ERR_NR set ; to "A: Invalid Argument" ; On entry HL points to the string ; and A register is non-zero if the string must be freed (TMP string) #include once <error.asm> #include once <const.a...
; A145005: Values of n at which the number of roots of the function x+n*sin(x) increases. ; Submitted by Christian Krause ; 0,5,11,18,24,30,37,43,49,55,62,68,74,81,87,93 mul $0,6 mov $1,$0 add $0,5 div $0,20 trn $1,1 add $1,$0 mov $0,$1
.text main: addi $s0, $zero, 1 j next addi $s1, $zero, 3 #no se ejecuta addi $s1, $zero, 0xffff #no se ejecuta addi $s1, $zero, 77 addi $s1, $zero, 100 next: addi $s2, $zero, 5 jal mini addi $at, $zero, 7 j exit mini: add $v0, $at, $s2 jr $ra exit: sll $v1, $at, 2
ORG $0000 ; s = n1 + n2 + n3 + ... + nn / Datos: n1, nn y s S RMB 2 ; LOAD 506.S19 | PC 8000 | MEM 0 | 0,0,20,00,20,02 | MEM 2000 | 2,3,5 | RUN N1 RMB 2 ; VALOR ESPERADO EN "S" ($0000): $0A NN RMB 2 ORG $8000 CLRA ; LIMPIO A CLR S ; LIMPIO S LDX N1 ; CARGO LA POSICION DE ...
.CODE __writecr2 proc mov cr2,rcx ret __writecr2 endp __read_ldtr proc sldt ax ret __read_ldtr endp __read_tr proc ...
SECTION rodata_font_fzx PUBLIC _ff_ao_Napier _ff_ao_Napier: BINARY "font/fzx/fonts/ao/Napier/Napier.fzx"
; A018379: Divisors of 294. ; Submitted by Jon Maiga ; 1,2,3,6,7,14,21,42,49,98,147,294 add $0,1 mov $3,1 lpb $0 sub $0,1 dif $2,2 add $2,$3 mov $1,$2 dif $2,6 mov $3,$1 lpe mov $0,$1
################################################################################ # Address: 8016ebac ################################################################################ .include "Common.s" #Check if VS Mode load r3,0x80479D30 lbz r3,0(r3) cmpwi r3,0x02 bne Exit #Init Struct? load r3...
; A010928: Binomial coefficient C(12,n). ; 1,12,66,220,495,792,924,792,495,220,66,12,1 mov $1,12 bin $1,$0 mov $0,$1
; ; Copyright 2018-2021 Mahdi Khanalizadeh ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed t...
LoadSpecialMapPalette: ld a, [wMapTileset] cp TILESET_POKECOM_CENTER jr z, .pokecom_2f cp TILESET_BATTLE_TOWER jr z, .battle_tower cp TILESET_ICE_PATH jr z, .ice_path cp TILESET_HOUSE jr z, .house cp TILESET_RADIO_TOWER jr z, .radio_tower cp TILESET_MANSION jr z, .mansion_mobile jr .do_nothing .pokecom_2...
;PUC-ECEC-CMP1057-ARQ1- ;12/02/19 ;Wellington Junio De Melo Fernandes ; ;Segundo Programa print.asm segment .data ;dados inicializados mens db "Adeus mundo cruel",10,10,"é mentira hahaha",10,10 tamm equ $-mens ; tamm=constante ao ponto que estou no caso 18 - a quantidade de palavras do vetor anterior segment .text g...
assume cs:code,ds:data,ss:stack,es:extended extended segment db 1024 dup (0) extended ends stack segment db 1024 dup (0) stack ends data segment _buff_p db 256 dup (24h) _buff_s db 256 dup (0) _msg_p db 0ah,'Output:',0 _msg_s db 0ah,'Input:',0 _a dw 0 _i dw 0 _sum dw 0 _N dw 0 data ends ...
save_scarecrow_song: ; 80057030 ; A0 = Scarecrow Song save address (copy to) ; A1 = Scarecrow Song live location (copy from) ; A2 = 0x80 lb t0, 0x0000(a1) addiu t1, t0, 1 bne t1, zero, @@copy_song ; if scarecrow song doesn't begin with a rest, copy it to the save data nop addiu sp, sp, -0x18 sw ra, 0x0014(sp)...
; general comments ; This program presents some of my ideas for how to use assembly for OOP. ; I'll be adding to it as I learn more MASM so that it becomes progressively better. ; preprocessor directives .586 .MODEL FLAT ; external files to link with ; stack configuration .STACK 4096 ; named memory allocation and ...
; Test of non-power-of-2 alignment %use smartalign bits 32 inc eax inc eax align 13 inc eax inc eax align 13 inc eax inc eax align 13 inc eax inc eax
; Subrutinas y macros ; impresión de mensajes por medio de subrutinas y macros ; macros %macro imprime 2 ; 2 - indica el numero de parametros a imprimir mov eax, 4 ; indica a la maquina que se va a escribir mov ebx, 1 ; indica a la maquina que se va a escribir en pantalla mov ecx, ...
.data a.0: .word 0 binary.1: .space 40 startSen.2: .asciiz "Give input number less than 1024\n" newline.3: .asciiz "\n" binaryLine.4: .asciiz "The binary representation of the given number is \n" i.5: .word 0 t0: .word 0 t1: .word 0 t2: .word 0 t3: .word 0 t4: .word 0 t5: .word 0 j.6: .word 0 t6: .word 0 t7:...
##Non funziona, non riesco a liberarmi di un carattere in lettura ##sospetto sia \0 ma non ne ho le prove, è ingiusto incolparlo finchè innocente ##mi do a python che è più facile ##al massimo ci ritorno (non è vero) .data .eqv DIM 44 .eqv BACKSLASH_N 10 .eqv ZERO 48 .eqv PIU 43 STR1: .asciiz "Lettera: " fileName: ....
Suma8: LD B,1 JP Suma_ Suma16: LD B,2 JP Suma_ Suma32: LD B,3 JP Suma_ Suma32: LD B,4 JP Suma_ Suma_: OR A CICLO: LD A,(DE) ADC A,(HL) LD (HL),A INC DE INC HL DJNZ CICLO RET
frame 0, 04 frame 3, 12 frame 2, 12 frame 1, 12 setrepeat 2 frame 0, 12 frame 4, 12 dorepeat 5 endanim
; Demo for TRS-80 model identification. org $4a00 import '../lib/barden_fill.asm' import '../lib/barden_move.asm' import '../lib/gp_get_trs80_model.asm' blank equ $80 screen equ $3c00 m4_txt defb 'MODEL ' m4_len equ $-m4_txt ; Identifies the model number of the TRS-80 we are running on. ; ; Uses a,b ; ; Exit: a...
SECTION rodata_font SECTION rodata_font_fzx PUBLIC _ff_kk_FairfaxILatin1 _ff_kk_FairfaxILatin1: BINARY "font/fzx/fonts/kk/FairfaxI_Latin1.fzx"
; A144197: Square array 7 x 7 read by rows. ; 0,0,0,0,0,0,1,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,0 mov $4,$0 mov $6,2 lpb $6,1 clr $0,4 mov $0,$4 sub $6,1 add $0,$6 sub $0,1 lpb $0,1 div $0,2 add $1,$0 add $1,6 div $1,9 add $3,$1 lpe mov ...
# test data .data cstr: .asciiz "eve" .text .globl palMAIN, isPalindrome # a test main palMAIN: la $a0, cstr jal isPalindrome li $v0, 10 syscall # main function to call for this task isPalindrome: # save the return address to the stack after opening space for it addi $sp,$sp,-4 sw $ra,0($sp) add $a1, $a0, $...
; args ; many_arguments(long long, long long, long long, long long, long long, long long) section .text global many_arguments many_arguments: push rbp mov rbp, rsp push r10 mov r10, [rbp - 8] pop r10 mov rsp, rbp pop rbp ret
; Bonus 6 - Abecedario invertido ; López Garay Luis Felipe ; 15211312 ; 18 de Octubre del 2018 .model small .stack 64 .data .code MAIN PROC mov cx,'Z' ABECEDARIO_INVERTIDO: mov ah,02h mov dl,cl int 21h mov ah,02h mov dl,' ' int 21h dec cx cmp cx,'A' jae ABECEDARIO_INVER...
define VM_HYPERVISOR_FLAG $D00080 define VM_HYPERVISOR_SETTINGS -1 define VM_HYPERVISOR_DATA -4 define VM_HYPERVISOR_ADRESS $0BF000 define VM_HYPERVISOR_RAM_ADRESS $D3F000 define VM_HYPERVISOR_RAM $D00000 ; some scratch RAM define VM_HYPERVISOR_LUT 0 define VM_HYPERVISOR_AWARE $DEC0ADDE _sprintf ...
A subtle breeze stirs dust across the dry desert floor. You stand at the end of the long trail from Fresno California to the Sierra Nevada Mountains.
frame 0, 05 frame 1, 05 frame 2, 05 setrepeat 2 frame 3, 04 frame 2, 04 dorepeat 4 endanim
.model small .stack 100h .data Var db ‘hello$’ Var1 db ‘world$’ .code Main proc Mov ax,@data Mov ds,ax Lea dx,var Mov ah, 9 Int 21h Lea dx,var1 Mov ah, 9 Int 21h mov ah, 4ch int 21h main endp end main
; =============================================================== ; Mar 2014 ; =============================================================== ; ; int bv_priority_queue_top(bv_priority_queue_t *q) ; ; Return char stored at front of queue. ; ; =============================================================== SECTION co...
copyright zengfr site:http://github.com/zengfr/romhack 0017A8 rts [123p+ 1] 0017AE rts [123p+ 1] 00B442 move.b #$1, ($1,A0) 00B448 rts [123p+ 1] 01BA38 move.b #$1, ($1,A0) [123p+ C0] 01BA3E move.b #$2, ($29,A0) [123p+ 1] 01BA58 subq.b #1, ($1f,A0) [123p+ 1] 05E5D6 bne $5e5da [123p+ 1, enemy+ 1] ...
ORG 100 LDA X BSA CHECK HLT CHECK, DEC 0 CIR SZE BUN DISPARI FINE, BUN CHECK I DISPARI, CLA INC STA RES BUN FINE X, DEC 1 RES, DEC 0 END
Name: Mwldrot.asm Type: file Size: 6817 Last-Modified: '1992-09-24T02:25:45Z' SHA-1: B649D21335FA33D59D9B21E0C541D395599F2E69 Description: null
SilphCo5F_Script: call SilphCo5Script_19f4d call EnableAutoTextBoxDrawing ld hl, SilphCo5TrainerHeaders ld de, SilphCo5F_ScriptPointers ld a, [wSilphCo5FCurScript] call ExecuteCurMapScriptInTable ld [wSilphCo5FCurScript], a ret SilphCo5Script_19f4d: ld hl, wCurrentMapScriptFlags bit 5, [hl] res 5, [hl] ret...
* QDOS Trap #1 Emulation V2.01  1986 Tony Tebby QJUMP * section qd * xdef qd_trap1 xdef qd_t1tab * include 'dev8_keys_qdos_sms' include 'dev8_keys_err' include 'dev8_keys_sys' include 'dev8_keys_psf' include 'dev8_smsq_smsq_base_keys' dc.l 0,0,0,0 sixteen bytes for cache patch * * set primary stac...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved PROJECT: PC GEOS MODULE: laserjet print driver FILE: textPrintStyleRun.asm AUTHOR: Dave Durran ROUTINES: Name Description ---- ----------- PrintText...
0000000000016bb0 <_obstack_allocated_p@@Base>: 16bb0: f3 0f 1e fa endbr64 16bb4: 48 8b 47 08 mov 0x8(%rdi),%rax 16bb8: 48 85 c0 test %rax,%rax 16bbb: 74 29 je 16be6 <_obstack_allocated_p@@Base+0x36> 16bbd: 0f 1f 00 nopl (%rax) 1...
li x2, 1.2 li x3, 3.5 fmul.s x1, x2, x3 outr.s x1 halt
[global int_general] [global int_0] [global int_1] [global int_2] [global int_3] [global int_4] [global int_5] [global int_6] [global int_7] [global int_8] [global int_9] [global int_10] [global int_11] [global int_12] [global int_13] [global int_14] [global int_15] [global int_16] [global int_17] [global int_18] [glo...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1991 -- All Rights Reserved PROJECT: PC GEOS MODULE: Printer/Fax/CCom FILE: ccomGraphics.asm AUTHOR: Don Reeves, April 26, 1991 ROUTINES: Name Description ---- ----------- REVISION HISTO...
.MODEL SMALL .STACK 100H .DATA MSG1 DB 'ENTER TEMPERATURE IN FARENHEIT: $' MSG2 DB 0DH, 0AH, 'THE TEMPERATURE YOU ENTERED: $' COUNTER DB 0 R DW 10 MSG3 DB 0DH, 0AH, 'TEMPERATURE IN CELCIUS: $' RESULT DB ?, '$' .CODE MAIN PROC MOV AX, @DATA MOV DS, AX MOV BX, 0 MOV AH, 09 LEA DX, MSG1 ...
; Spirograph benchmark ; John Morrice 2011 ; Released under the WTFPL %include "draw_spiro.asm" %define SPIRO_LENGTH 100000 section .data moving: dq __float64__(0.2) fixed: dq __float64__(0.5) offset: dq __float64__(0.8) section .text global main main: push rbp mov rbp, rsp sub rsp, 1...
/* Disassembling 'linear_kernels\addition\addition.bin' */ .amdcl2 .gpu Iceland .64bit .arch_minor 0 .arch_stepping 4 .driver_version 200406 .kernel add_x_x .config .dims x .cws 64, 1, 1 .sgprsnum 13 .vgprsnum 3 .floatmode 0xc0 .pgmrsrc1 0x00ac0040 .pgmrsrc2 0...
section .trampoline bits 16 KERNEL_VMA equ 0xFFFFFFFF80000000 extern kernel_pml4 extern smp_kernel_main global smp_entry smp_entry: cli cld jmp 0x000:.reset_cs .reset_cs: xor ax, ax mov ds, ax mov es, ax mov fs, ax mov gs, ax mov ss, ax lgdt [gdt32_ptr] mov eax, cr0 o...
; Reset interrupt (HuCard only). ; This routine is called when the console is powered up. _reset: sei ; disable interrupts csh ; switch cpu to high speed mode cld ; clear decimal flag ldx #$ff ; initialize the stack p...
#include "Platform.inc" #include "TailCalls.inc" #include "InitialisationChain.inc" #include "Motor.inc" #include "States.inc" radix decimal extern INITIALISE_AFTER_MOTOR PR2_FOR_15_625KHZ_PWM equ 63 CCP1CON_SINGLEPWM_MASK equ 0 CCP1CON_ALLPWMACTIVEHIGH_MASK equ b'00001100' Motor code global initialiseMotor...
format PE start: int3 push myStr call printStr printStr: mov ah,0Eh ;Setting mode to print char mov edx,[esp+4] ;Take parameter off stack pStrSub: ;Creating a subroutine (loop) mov al,byte [edx] ;Move al to the current character test al,al ;Test if it...
db DEX_GOLEM ; pokedex id db 80 ; base hp db 110 ; base attack db 130 ; base defense db 45 ; base speed db 55 ; base special db ROCK ; species type 1 db GROUND ; species type 2 db 45 ; catch rate db 177 ; base exp yield INCBIN "pic/ymon/golem.pic",0,1 ; 66, sprite dimensions dw GolemPicFront dw GolemPicBack ; attacks k...
; float cosh(float x) __z88dk_fastcall SECTION code_clib SECTION code_fp_math48 PUBLIC cm48_sdccix_cosh_fastcall EXTERN cm48_sdccixp_dx2m48, am48_cosh, cm48_sdccixp_m482d cm48_sdccix_cosh_fastcall: call cm48_sdccixp_dx2m48 call am48_cosh jp cm48_sdccixp_m482d
;; Symantec AntiVirus symtdi.sys Local Privilege Escalation ;; -- ;; Zohiartze Herce San Martin -=- http://www.48bits.com/ .386 .model flat,stdcall option casemap:none ;#################################### INCLUDE windows.inc INCLUDE kernel32.inc includelib kernel32.lib ;#####...
lda {m1}+1 cmp {c1}+1,x bcc {la1} bne !+ lda {m1} cmp {c1},x bcc {la1} !:
ori $ra,$ra,0xf divu $6,$ra ori $5,$6,53557 addu $4,$2,$4 multu $4,$0 sb $3,9($0) mult $4,$1 addu $4,$2,$0 addiu $4,$4,15152 ori $2,$2,35981 multu $1,$4 div $0,$ra sb $1,15($0) mthi $1 mult $4,$2 multu $1,$1 div $1,$ra sll $3,$0,23 lui $4,53893 divu $3,$ra mfhi $6 lb $4,7($0) lb $6,9($0) addiu $1,$4,-2816 sb $4,6($0) m...
Route16_Object: db $f ; border block db 9 ; warps warp 17, 10, 0, ROUTE_16_GATE_1F warp 17, 11, 1, ROUTE_16_GATE_1F warp 24, 10, 2, ROUTE_16_GATE_1F warp 24, 11, 3, ROUTE_16_GATE_1F warp 17, 4, 4, ROUTE_16_GATE_1F warp 17, 5, 5, ROUTE_16_GATE_1F warp 24, 4, 6, ROUTE_16_GATE_1F warp 24, 5, 7, ROUTE_16_GATE_1F...
INCLUDE "./bootstrap.asm" SECTION "Game code", ROM0[end_of_cartridge_header] main: var xpos, ds, 2 var ypos, ds, 2 call init xor a ld [xpos], a ;ld [ypos], a .dead_end: halt nop jr .dead_end init: di wait_for_vblank lcd LCDCF_OFF lda [rBGP], default_palette ...
; nasm -f elf32 ex7.asm -o ex7.o ; gcc -m32 ex7.o -o ex7.out ; ./ex7.out ; echo $? global main section .text main: mov ebp, esp; for correct debugging call func ; jump to func mov eax, 1 ; exit call int 0x80 ; system call func: mov ebx, 42; exit status ret ; return to the ...
section .text global _start ;for linker ld _start: ;entry point mov edx,len ;messg length mov ecx,msg ;messg mov ebx,1 ;fd (stdout) mov eax,4 ;system call sys_write id int 0x80 ;call kernel section .data msg db 'hello world',0xa ;string len equ $ - ...
.data hello: .asciiz "Hello world!" .text li $v0,4 la $a0,hello syscall
%include "../../defaults_bin.asm" ; Mode ; 1 +HRES ; 2 +GRPH ; 4 +BW ; 8 +VIDEO ENABLE ; 0x10 +1BPP ; 0x20 +ENABLE BLINK mov dx,0x3d8 mov al,2 out dx,al ; Palette ; 1 +OVERSCAN B ; 2 +OVERSCAN G ; 4 +OVERSCAN R ; 8 +OVERSCAN I ; 0x10 +BAC...
copyright zengfr site:http://github.com/zengfr/romhack 0040A4 move.b (A6,D0.w), ($c1,A0) [enemy+A0] 0040AA rts [enemy+C1] 0253DC beq $25442 [enemy+C1] 0267A8 beq $2680e [enemy+C1] 0291D0 beq $29236 [enemy+C1] 02A592 beq $2a602 02B7BE beq $2b824 [enemy+C1] 03675A beq $367c0 copyright ...
; ========================================== ; pmtest6.asm ; 编译方法:nasm pmtest6.asm -o pmtest6.com ; ========================================== %include "pm.inc" ; 常量, 宏, 以及一些说明 PageDirBase equ 200000h ; 页目录开始地址: 2M PageTblBase equ 201000h ; 页表开始地址: 2M+4K org 0100h jmp LABEL_BEGIN [SECTION .gdt] ; GDT ; ...
;-------------------------------------------------------- ; File Created by SDCC : FreeWare ANSI-C Compiler ; Version 2.3.1 Wed Sep 04 21:56:22 2019 ;-------------------------------------------------------- .module _mullong ;-------------------------------------------------------- ; Public variables in this module ...
Name: sin-table.asm Type: file Size: 5532 Last-Modified: '1992-12-16T08:16:10Z' SHA-1: C12942D0F4450E78EB8118B8618695BC3743D5DB Description: null
; Assembler should use basic 6502 instructions processor 6502 ; Some zero page data org $0080 ZP_ZERO .byte $00 ZP_ONE .byte $01 ZP_TWO .byte $02 ZP_D0 .word DATA_ZERO ZP_D1 .word DATA_ONE ZP_D2 .word DATA_TWO ZP_D3 .word DATA_THREE ZP_DP .word PAGE_NEXT_ROOT ; Some non zero page data org $400 DATA_ZE...
%macro print 2 mov rax,1 mov rdi,1 mov rsi,%1 mov rdx,%2 syscall %endmacro section .data nl db 10 section .bss temp resb 1 count resb 1 section .text global _start _start: pop r8 mov al,r8b mov [count],al add r8b,30h mov [temp],r8b print temp,1 pop_again: print nl,1 pop r8 up: mov al,[r8] cmp al,00 je ...
org 100h MOV CL,7AH MOV DL,4CH SUB CL,DL ret
bits 32 section .irq global read_port global write_port global load_idt global keyboard_handler global disable_cursor extern kbd_handler_irq read_port: mov edx, [esp + 4] ; Copie o núm da porta (arg) para edx in al, dx ; Copie da porta [LSB de edx] para [LSB de eax] ret ; Retorno de função Asm Intel x86 f...
@256 D=A @SP M=D // call function: Sys.init with 0 arguments @LABEL1 D=A @SP A=M M=D @SP M=M+1 @LCL D=M @SP A=M M=D @SP M=M+1 @ARG D=M @SP A=M M=D @SP M=M+1 @THIS D=M @SP A=M M=D @SP M=M+1 @THAT D=M @SP A=M M=D @SP M=M+1 @SP D=M @5 D=D-A @0 D=D-A @ARG M=D @SP D=M @LCL M=D @Sys.init 0;JMP (LABEL1) // function: name Sys....
BITS 64 ;TEST_FILE_META_BEGIN ;TEST_TYPE=TEST_F ;TEST_IGNOREFLAGS=FLAG_OF ;TEST_FILE_META_END ; ROL16ri mov cx, 0x545 ;TEST_BEGIN_RECORDING rol cx, 0x8 ;TEST_END_RECORDING
Map_8E536: dc.w word_8E538-Map_8E536 word_8E538: dc.w 2 dc.b $F4, $C, 0, 0, $FF, $F0 dc.b $FC, 1, 0, 4, $FF, $F8
; VIC Version by Schema/AIC (Leif Bloomquist) ; Original by Six/Style (Oliver VieBrooks) ; Fast POKE of hex value to screen ; also see HEXPOKE macro ; print hex char $ of number in a at location referenced by screen_temp hexstr ldy #$00 pha and #$f0 clc lsr lsr lsr lsr tax lda hexstring,x sta ($22),y ...
TITLE Macro Examples - 1 (Macro1.ASM) ; This program demonstrates the MACRO directive. INCLUDE Irvine32.inc INCLUDE macros.inc mPutchar MACRO char push eax mov al,char call WriteChar pop eax ENDM mPrintChar MACRO char,count LOCAL temp .data temp BYTE count DUP(&char),0 .code pus...
.psx ; When loading stage select (Game State 3), always load cutscene state 3, ; which is standard immediate boss selection. Does not affect middle selection ; availability, that's something different. @stage_select_mode: replace 0x8002E4B0 li v1,3 endreplace @stage_select_mode ; When stage select initially reads...
.notice "UTF8 BOM: ○●◎◇◆□■△▲▽▼"
.include "m16def.inc" .def temp = r16 .def counter = r17 .def vin_h = r18 .def vin_l = r19 jmp stack_init .org 0x1c jmp ADC_ stack_init: ldi r24, low(RAMEND) out SPL, r24 ldi r24, high(RAMEND) out SPH, r24 port_init: ldi temp , 0xFF out DDRB , temp ;PORTB output. ldi temp , 0x00 o...
; ************************************************************************************************ ; ************************************************************************************************ ; ; Name: spritedraw.asm ; Purpose: Drawing Utilities for sprites ; Created: 3rd April 2021 ; Author: Paul Robson (p...
EMSF_EXISTS EQU 01h ; EMS exits. EMSF_LIM_40 EQU 02h ; LIM 4.0 is available. EMSF_LIB_CODE EQU 04h ; Library code segs above the line. EMSF_DATA_ABOVE EQU 08h ; Task data segments above the line. EMSF_RESOURCES_ABOVE EQU 10h ; Task resources above the line. EMSF_SEARCH_PID_STACKS EQU 20h ; PatchStack search this PI...
;========================================================================================================== ; Hacks to make Malon fast, and allow you to always get her item at the vines, even if you've rescued Talon ;=======================================================================================================...
; EVM Assembly TheDivine by Chiro Hiro <chiro8x@gmail.com> PUSH1 0x20 RETURNDATASIZE CALLER ORIGIN XOR PUSH1 0x0a JUMPI REVERT JUMPDEST DUP2 DUP2 DUP1 SLOAD DUP3 NUMBER SUB BLOCKHASH XOR DUP2 MSTORE SHA3 DUP2 SSTORE RETURN
<% from pwnlib.shellcraft.powerpc.linux import syscall %> <%page args="name"/> <%docstring> Invokes the syscall unlink. See 'man 2 unlink' for more information. Arguments: name(char): name </%docstring> ${syscall('SYS_unlink', name)}
; void __stdcall ninja_injectMds(char *) ; Initialize the animation ninja global ninja_injectMds ninja_injectMds: resetStackoffset %assign var_total 0x14 %assign var_string -0x14 ; zString %assign arg_1 +0x4 ...
# Exemplo Clear # Clear 1 - Array .data size: .word 4 array1: .word 12, 45, 50, 33 .text .globl main main: #la $t4, size lw $a1, 0($t4) #la $t5, array1 lw $a0, 0($t5) jal clear2 j exit clear1: #move $t0,$zero Loop1: sll $t1,$t0,2 add $t2,$t5,$t1 sw $zero,0($t2) addi $t0,$t0,1 slt $t3,$t0,$a1 bne $t3,$z...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) Geoworks 1994 -- All Rights Reserved PROJECT: SPUI MODULE: CMain FILE: cmainKeymap.asm AUTHOR: David Litwin, May 13, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date...
db "MOUSE@" ; species name db "Adept at climbing" next "trees, it rolls" next "into a spiny ball," page "then attacks its" next "enemies from" next "above.@"
lui $1,16095 ori $1,$1,41682 lui $2,9343 ori $2,$2,43606 lui $3,12641 ori $3,$3,20610 lui $4,59831 ori $4,$4,19783 lui $5,4024 ori $5,$5,39858 lui $6,24106 ori $6,$6,18620 mthi $1 mtlo $2 sec0: nop nop nop and $0,$6,$2 sec1: nop nop or $6,$3,$3 and $1,$6,$2 sec2: nop nop addiu $6,$4,-14123 and $6,$6,$2 sec3...
// // Copyright (c) 2011, ARM Limited. All rights reserved. // // This program and the accompanying materials // are licensed and made available under the terms and conditions of the BSD License // which accompanies this distribution. The full text of the license may be found at // http://opensource.org/lic...
; void *memccpy(void * restrict s1, const void * restrict s2, int c, size_t n) SECTION code_clib SECTION code_string PUBLIC memccpy EXTERN asm_memccpy memccpy: IF __CPU_INTEL__ ld hl,2 add hl,sp ld c,(hl) inc hl ld b,(hl) inc hl ld a,(hl) inc hl ...
<% from pwnlib import shellcraft from pwnlib.context import context as ctx from pwnlib.util.iters import group %> <%docstring> Pushes an array/envp-style array of pointers onto the stack. Arguments: reg(str): Destination register to hold the pointer. array(str,list): Single argument...
dnl ARM64 mpn_mul_1 dnl Contributed to the GNU project by Torbjörn Granlund. dnl Copyright 2013 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 L...
;-------------------------------------------------------- ; File Created by SDCC : free open source ANSI-C Compiler ; Version 3.4.0 #8981 (Apr 5 2014) (Linux) ; This file was generated Tue Sep 23 01:16:16 2014 ;-------------------------------------------------------- .module test .optsdcc -mstm8 ;-----------------...
*=$0801 !byte $0C,$08,$0A,$00,$9E,$20,$32,$30,$36,$34,$00,$00,$00 *=$0810 vera_addr_low = $9F20 vera_addr_mid = $9F21 vera_addr_hi = $9F22 vera_data0 = $9F23 vera_data1 = $9F24 vera_ctrl = $9F25 vera_ien = $9F26 vera_isr = $9F27 main: lda #$10 ; White background / Black text sta $0376 lda #147 ; Clear screen ...
;第二个实验第一小问 ;x,y,z,w是数据段定义的32位数,试写出计算下面表达式的指令序列。 ;W ← x+y+24-z 。 DATAS SEGMENT ;此处输入数据段代码 Y DD 00000001H X DD 00000003H Z DD 00000002H W DD 0 DATAS ENDS STACKS SEGMENT ;此处输入堆栈段代码 STACKS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKS START: MOV AX,DATAS MOV DS,AX ;此处输入代码段代...
; ; Counts by 2 and outputs to the display. ; Never really halts #include "bhelky.cpu" ; incr_by is the location where ; we store the value to increment by incr_by = 15 ldi 0 loop: add incr_by out jmp loop hlt ; data section numvars = 1 #addr 16 - numvars ; incr_by = 2 #d8 2
; REVERSE FIBONACCI ; ; Fibonnaci sequence - in reverse .begin: data Rb, #144 data Rd, #233 .loop: mov Rc,Rd sub Rc,Rb mov Rd,Rb mov Rb,Rc jnz .loop .next: mov Rd,Rb jmp .begin
;Letra A ADD A, R0 mov R0, A ;Letra B ADD A, R1 mov R1, A ;Letra C INC R1 ADD A, R1 mov R1, A ;Letra D ADD A, @R0