content
stringlengths
23
1.05M
SECTION "HRAM", HRAM hTransferVirtualOAM:: ds 10 ; ff80 hROMBankBackup:: db ; ff8a hBuffer:: db ; ff8b hSRAMBank:: db ; ff8c hRTCDayHi:: db ; ff8d hRTCDayLo:: db ; ff8e hRTCHours:: db ; ff8f hRTCMinutes:: db ; ff90 hRTCSeconds:: db ; ff91 ds 2 hHours:: db ; ff94 ds 1 hMinutes:: db ; ff96 ds 1 hSeconds:: d...
; ; LZ49 decrunch ; input ; hl compressed data adress ; de output adress of data ; ; output ; hl last adress of compressed data read (you must inc once for LZ49 stream) ; de last adress of decrunched data write +1 ; bc always 3 ; a always zero ; ixl undetermined ; flags (inc a -> 0) ;org...
; /*--------------------------------------------------*/ ; /* */ ; /* Module GENSCSI.SS */ ; /* */ ; /* SCRIPTS routines for generic SCSI operations. */ ; /* ...
;--------------------LIBRARY SPECIFICATION------------------- ; ; NAME : CTree_C.asm ; ; FUNCTIONS : Counter Command Tree ; ; NOTES : ; ;------------------------------------------------------------ ; REVISION HISTORY : ; 9/1/98 First Draft ; ;--------------------------------------------------------...
SFX_Teleport_Enter2_3_Ch8: noise_note 2, 15, 1, 50 noise_note 2, 0, 0, 0 noise_note 2, 15, 1, 34 noise_note 1, 0, 0, 0 sound_ret
; 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 ...
\ ****************************************************************** \ * Event Vector Routines \ ****************************************************************** \\ System vars .old_eventv SKIP 2 .start_eventv ; new event handler in X,Y { \\ Set new Event handler sei lda &220 ; EVENTV sta old_eventv ...
; Kludgey startup for Peters Plus Sprinter ; ; djm 18/5/99 ; ; $Id: pps_crt0.asm,v 1.4 2007/06/27 20:49:27 dom Exp $ ; MODULE pps_crt0 ;-------- ; Include zcc_opt.def to find out some info ;-------- INCLUDE "zcc_opt.def" ;-------- ; Some scope definitions ;-------- ...
; Load a byte from a look-up table in flash in 8 cycles. ; Clobbers Z. ; - A r* to which to write the looked-up byte. ; - A r* from which to read an offset into the look-up table. This can be the r* stored to. ; - The address of the start of the look-up table. .macro lut load_immediate_z @2 add r30, @1 adc r31, ...
// Original test: ./nfischer/hw4/problem6/jal_0.asm // Author: nfischer // Test source code follows //jal jal 255 //jump by imm halt
get_order: call clear_textarea ld a,56+128 ld (ATT),a call SETTROOPDRAWPOS ld d,0 ld e,c ld hl,troop_chars add hl,de ld a,(hl) call PRINTUDG ld a,56 ld (ATT),a ld d,text_row1 ld e,0 call SETDRAWP...
[org 0x0100] start: mov ax, 7 mov bx, 0xABCD mov cx,ax mov dx,1000000000000000b shr dx,cl xor bx,dx end: mov ax, 0x4c00 int 21h
dc.w word_3CA0A-Map_FBZMine dc.w word_3CA12-Map_FBZMine word_3CA0A: dc.w 1 ; DATA XREF: ROM:0003CA06o dc.b $FC, 8, $20, 0, $FF, $F4 word_3CA12: dc.w 1 ; DATA XREF: ROM:0003CA06o dc.b $FC, 8, 0, 0, $FF, $F4
SECTION code_fp_mbf32 PUBLIC modf EXTERN floor EXTERN ceil EXTERN msbios EXTERN ___mbf32_SUBCDE EXTERN ___mbf32_FPREG EXTERN l_glong EXTERN ___mbf32_return ; double modf(double value, double *iptr) modf: ld hl,4 add hl,sp call l_glong bit 7,e jr nz,isnegative push de push hl call floor p...
copyright zengfr site:http://github.com/zengfr/romhack 028D68 move.b D0, ($b7,A6) 028D6C move.b D0, ($b8,A6) 028E74 subq.b #1, ($b7,A6) [item+23] 028E78 bcc $28ea6 [item+B7] 028EA0 move.b (A0,D0.w), ($b7,A6) 028EA6 moveq #$0, D0 [item+B7] 028EFA move.b ($28,PC,D0.w), ($b7,A6) 028F00 move.b ($26,...
loop macro arg1,arg2,arg3 dc.l NARG ifne NARG dc.l arg1 loop arg2,arg3 endc endm loop 1,2,3
[bits 16] print_string_16: ; Routine: output string in SI to screen mov ah, 0Eh ; int 10h 'print char' function .repeat: mov al, [bx] cmp al, 0 je .done ; If char is zero, end of string int 10h ; Otherwise, print it add bx, 1 jmp .repeat .done: ret
; A295774: a(n) is the minimum size of a restricted planar additive basis for the square [0,2n]^2. ; Submitted by Christian Krause ; 1,4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92 mul $0,12 max $0,4 div $0,3
; int esxdos_f_write(uchar handle, void *src, size_t nbyte) SECTION code_clib SECTION code_esxdos PUBLIC _esxdos_f_write_callee PUBLIC l0_esxdos_f_write_callee EXTERN asm_esxdos_f_write _esxdos_f_write_callee: pop de dec sp pop af pop hl pop bc push de l0_esxdos_f_write_callee: push iy ...
setrepeat 2 frame 1, 07 frame 2, 09 frame 3, 09 dorepeat 1 setrepeat 3 frame 4, 08 frame 0, 08 dorepeat 6 endanim
db CLOYSTER ; pokedex id db 50 ; base hp db 95 ; base attack db 180 ; base defense db 70 ; base speed db 85 ; base special db WATER ; species type 1 db ICE ; species type 2 db 60 ; catch rate db 203 ; base exp yield INCBIN "pic/gsmon/cloyster.pic",0,1 ; 77, sprite dimensions dw CloysterPicFront dw CloysterPicBack ; att...
addi $s0,$zero,10 # x=10 addi $s1,$zero,2 # y=2 mult $s0,$s1 mfhi $t0 # remainder mflo $t1 # result
include procblit.i CGROUP group code code segment dword 'CODE' assume cs:CGROUP,ds:CGROUP ;pj_tbli_line(Pixel *s, Pixel *d, Ucoor w, Tcolxldat *tcxl) public pj_tbli_line pj_tbli_line proc near tbllp struc ;pj_tbli8 parameter structure tbll_edi dd ? ;what's there tbll_esi dd ? tbll_ecx dd ? ...
Entity start No options Constants 0 S start 1 S (2 * (8 * 6) * (49 / 7 - 3))= 2 I 2 3 I 8 4 I 6 5 I 49 6 I 7 7 I 3 8 S io.writeln End Valid context (always) No properties Def start No parameters No local variables No results ldconst 1 --> [(2 * (8 * 6) * (49 / 7 - 3))=] ldconst 2 --> [...
lda {m2} sta $fe lda {m2}+1 sta $ff lda ($fe),y cmp {m1} beq {la1}
ExclamationPointMoveSets: ; set 0 db SWORDS_DANCE db GROWTH db 0 ; end set ; set 1 db RECOVER db BIDE db SELFDESTRUCT db AMNESIA db 0 ; end set ; set 2 db MEDITATE db AGILITY db TELEPORT db MIMIC db DOUBLE_TEAM db BARRAGE db 0 ; end set ; set 3 db POUND db SCRATCH db VICEGRIP db WING_ATTACK db FL...
; int p_queue_empty(p_queue_t *q) SECTION code_clib SECTION code_adt_p_queue PUBLIC p_queue_empty EXTERN asm_p_queue_empty defc p_queue_empty = asm_p_queue_empty ; SDCC bridge for Classic IF __CLASSIC PUBLIC _p_queue_empty defc _p_queue_empty = p_queue_empty ENDIF
;=============================================================================== ; Copyright 2017-2020 Intel Corporation ; ; 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.apa...
bits 64 default rel section .text extern part1 extern part2 global entryPoint entryPoint: push rbp mov rbp, rsp push rcx call part1 pop rcx call part2 leave ret
; ******************************************************************************************* ; ******************************************************************************************* ; ; Name : str.asm ; Purpose : Convert number to string ; Date : 22nd August 2019 ; Review : 1st September 2019 ; Author : ...
BITS 64 db 'prout' yolo: db 'abaaaaaaaaaaaaaaaa' mov al, [rdx] test eax,eax jnz yolo
;*** The height of the displayed data... bmp_96x2_1_window = 91 ;*** The height of the bitmap data. This can be larger than ;*** the displayed data height, if you are scrolling or animating ;*** the data... bmp_96x2_1_height = 91 if >. != >[.+(bmp_96x2_1_height)] align 256 endif BYTE $00 ; leave t...
.ref _picoRTOS_tick .ref _picoRTOS_switch_context .def _arch_INT14 .def _arch_RTOSINT .def _arch_start_first_task .def _arch_test_and_set SAVE_CONTEXT .macro ;; isr relevant registers are auto-saved ;; align stack asp ;; other relevant registers push DP:ST1 push RPC push XT push AR1H:AR0H push XAR...
lda {c1},y clc adc #<{c2} sta {c1},y lda {c1}+1,y adc #>{c2} sta {c1}+1,y
;; Windows doesn't support fork instead we have to use CreateProcess and/or ;; CreateThread, but CreateProcess can only run the external program and ;; cannot run itself within our program. Hence we use CreateThread to emulate ;; the simulatenous execution. However keep mind that the thread result isn't ;; reliable ind...
SECTION code_driver PUBLIC sd_read_byte EXTERN asm_sd_read_byte ;Do a read bus cycle to the SD drive, via the CSIO ; ;output L = byte read from SD drive defc sd_read_byte = asm_sd_read_byte
SECTION code_fp_am9511 PUBLIC cam32_sdcc_log2 EXTERN asm_sdcc_read1, _am9511_log2 .cam32_sdcc_log2 call asm_sdcc_read1 jp _am9511_log2
.IFNDEF __UI_CONTAINER_ASM__ .DEFINE __UI_CONTAINER_ASM__ .INCLUDE "Modules/ui_button.asm" ; Constant for when no widget is selected. .DEFINE UI_CONTAINER_NO_WIDGET_SELECTED_INDEX $FF .STRUCT sUIContainerInstance ; Pointer to the descriptor for this container pDescriptor DW ; Index of the c...
copyright zengfr site:http://github.com/zengfr/romhack 001590 lea ($20,A0), A0 00249A move.l -(A6), (A4)+ [123p+ 6C, enemy+6C] 00249C rts [123p+ 6E, 123p+ 70, enemy+6E, enemy+70] 0024B6 move.l -(A6), (A4)+ [123p+ 6C, enemy+6C] 0024B8 rts [123p+ 6E, 123p+ 70, enemy+6E, enemy+70] 0024E8 move.l -(A6), (A4)+ ...
subi $t1, $t1, 1 # Count - 1 sw $t1, 0x7f40($0) eret
; Aurora palette ; section driver ; xdef aur256_palette xdef aur256_palend ; aur256_palette dc.b $00,$25,$49,$6D,$93,$B7,$DB,$FF ; dc.b $00,$FF,$49,$92,$25,$6D,$DB,$B7,$03,$1C,$1F,$E0,$E3,$FC,$40,$F3 dc.b $C0,$80,$A0,$20,$60,$4D,$C9,$D2,$B2,$A5,$2D,$EB,$FB,$F7,$E7,$EF dc.b $EB,$F9,$F9,$FB,$FE,$F7,$F5,$FD,$57,$C7...
TITLE CPMIO2 - device IO for MSDOS NAME CPMIO2 ;** Old style CP/M 1-12 system calls to talk to reserved devices ; ; $Std_Con_Input ; $Std_Con_Output ; OUTT ; TAB ; BUFOUT ; $Std_Aux_Input ; $Std_Aux_Output ; $Std_Printer_Output ; $Std_Con_Input_Status ; $Std_Con_Input_Flush ; ; Revision History: ; ...
BDOS EQU 5 #include "tracing.inc" #ifdef TRACING PUBLIC PRTSTRZ, NEWLINE, PRTCHR PUBLIC PRTSTRD PUBLIC PRT_HLHLC, PRT_DEDEB PUBLIC PRTHEXWORDHL, PRTHEXWORDIX, PRTHEXWORDDE PUBLIC PRTHEX, PRTHEX_D, PRTHEX_C, PRTHEX_B PUBLIC PRTDEC_HL, PRTDEC_DE EXTERN STR, PTEXT, SWAP, PRTHL PRTSTRD: EX (SP),HL PUSH AF ...
.386 .model flat, stdcall include user32.inc include kernel32.inc include msvcrt.inc includelib user32.lib includelib kernel32.lib includelib msvcrt.lib .data len db 0 str1 db 'a','b','c',0 str2 db 255 dup('x') .code start PROC ;strcpy mov CL, 0 mov EBX, offset str1 .while 1 mov AL, [EBX] .if AL == 0 ...
; ----------------------------------------------------------------------------- ; Copyright (c) 1988-2018 Robert A. Stoerrle ; ; 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...
[bits 32] [section .text] INT_VECTOR_SYS_CALL equ 0x80 _NR_GET_PID equ 36 global get_pid get_pid: mov eax, _NR_GET_PID int INT_VECTOR_SYS_CALL ret
buf: .byte 0x3c,0x21,0x44,0x4f,0x43,0x54,0x59,0x50 .byte 0x45,0x20,0x48,0x54,0x4d,0x4c,0x20,0x50 .byte 0x55,0x42,0x4c,0x49,0x43,0x20,0x22,0x2d .byte 0x2f,0x2f,0x57,0x33,0x43,0x2f,0x2f,0x44 .byte 0x54,0x44,0x20,0x48,0x54,0x4d,0x4c,0x20 .byte 0x34,0x2e,0x30,0x31,0x20,0x54,0x72,0...
INCLUDE "config_private.inc" SECTION code_driver SECTION code_driver_terminal_output PUBLIC rc_01_output_hbios0_oterm_msg_putc PUBLIC rc_01_output_hbios0_oterm_msg_putc_raw PUBLIC rc_01_output_hbios0_oterm_msg_putc_send EXTERN asm_hbios EXTERN l_jpix rc_01_output_hbios0_oterm_msg_putc: ; enter : c = char to ou...
; MMURTL Operating System Source Code ; Written by Richard A. Burgess ; ; This code is released to the public domain. ; "Share and enjoy....." ;) ; ; ; This is the main Data/Code file for the MMURTL OS. ; It contains important structures and initialization code ; including the first instructions exe...
COMMENT @---------------------------------------------------------------------- Copyright (c) GeoWorks 1988 -- All Rights Reserved PROJECT: PC GEOS MODULE: MOUSE DRIVER -- Logitech Bus Mouse device-dependent code FILE: logibus.asm AUTHOR: Adam de Boor ROUTINES: Name Description ---- --------...
;***************************************************************************** ;* x86-optimized functions for pullup filter ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or modify ;* it under the terms of the GNU General Public License as published by ;* the Free Software...
f1: PUSH %14 MOV %15,%14 @f1_body: MOV $0,%13 JMP @f1_exit @f1_exit: MOV %14,%15 POP %14 RET f2: PUSH %14 MOV %15,%14 @f2_body: MOV $0,%13 JMP @f2_exit @f2_exit: MOV %14,%15 POP %14 RET f3: PUSH %14 MOV %15,%14 @f3_body: MOV $0,%13 JMP @f3_exit @f3_exit: MOV %14,%15 ...
;THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX ;SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO ;END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ;ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS ;IN USING, DISPLAYI...
; ------------------------------------------------------------------ ; MichalOS Music Player - duo MMF decoder ; ------------------------------------------------------------------ start_poly_mmf: mov [.filesize], bx call start.draw_player_background call os_check_adlib jc .adliberror .error_bypass: clr dx mo...
;;############################################################################# ;; FILE: CLAdiv.asm ;; ;; DESCRIPTION: CLA divide function using Newton Raphson Approximation ;; ;; Group: C2000 ;; Target Family: C28x+CLA ;; ;;############################################################################# ;...
SECTION code_l PUBLIC l_minu_bc_hl l_minu_bc_hl: ; return unsigned minimum of bc and hl ; ; enter : hl = unsigned 16 bit number ; bc = unsigned 16 bit number ; ; exit : hl = smaller of the two unsigned numbers ; bc = unchanged ; carry set if hl was smaller, z flag se...
ld x6, 0(x0) ld x7, 1(x0) and x5, x6, x7 sd x5, 2(x0) or x5, x6, x7 sd x5, 3(x0) add x5, x6, x7 sd x5, 4(x0) sub x5, x6, x7 sd x5, 5(x0) beq x6, x7, 4 sd x6, 6(x0) beq x6, x6, 4 sd x7, 7(x0) //skipped sd x7, 8(x0)
;heapBot:=$D1887C ;write_port: ; ld de,$C979ED ; ld hl,heapBot - 3 ; ld (hl),de ; jp (hl) ;read_port: ; ld de,$C978ED ; ld hl,heapBot - 3 ; ld (hl),de ; jp (hl) ; since we're an OS, we can use the in/out instructions ;@DOES unlock flash ;@DESTROYS AF,BC flash_unlock: ld bc,$24 ld a,$8c out (bc),a ld bc,$06 i...
TilePointersEnd: dl grass_offset + 256 - 1 dl tree_stump_1_offset + 256 - 1 dl tree_stump_2_offset + 256 - 1 dl tree_cut_1_offset + 256 - 1 dl tree_cut_2_offset + 256 - 1 dl bush_1_offset + 256 - 1 dl bush_2_offset + 256 - 1 dl gold_1_offset + 256 - 1 dl gold_2_offset + 256 - 1 dl stone_1_offset + 256 - 1 dl...
; A006308: Coefficients of period polynomials. ; 3,10,21,55,78,136,171,253,406,465,666,820,903,1081,1378,1711,1830,2211,2485,2628,3081,3403,3916,4656,5050 add $0,1 cal $0,72205 ; a(n) = (p^2 - p + 2)/2 for p = prime(n); number of squares modulo p^2. mov $1,$0 mul $1,17 sub $1,68 div $1,17 add $1,3
Map_229BD4: dc.w Frame_229BD8-Map_229BD4 dc.w Frame_229BFE-Map_229BD4 Frame_229BD8: dc.w 6 dc.b $CC, $D, 8, 0,$FF,$F0 dc.b $DC, $D, 0, $E,$FF,$F0 dc.b $EC, $D, 0,$16,$FF,$F0 dc.b $FC, $D, 8,$16,$FF,$F0 dc.b $C, $D, 0,$16,$FF,$F0 dc.b $1C, $D, 8,$16,$FF,$F0 Frame_229BFE: dc.w $C dc.b $CC, 5, 8,...
Name: Mrotmat.asm Type: file Size: 11816 Last-Modified: '1992-09-24T02:25:45Z' SHA-1: EC4B9E2D1B037322DE2B0DCB47EFDA82B5DF5FBF Description: null
%include "lib.asm" extern ExitProcess global _start section .bss buffer resb 25 section .code max: %define num1 WORD [EBP+8] %define num2 WORD [EBP+10] %define num3 WORD [EBP+12] enter 0,0 mov AX, num1 cmp AX, num2 jge max_skip2 mov AX, num2 max_skip2: cmp AX, num3 jge max_skip3 mov AX, num3...
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; cpm_00_output_cons ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; ; The console is written via bdos function 2. ; ; ;;;;;;;;;;;;;;;;;;;; ; DRIVER CLASS DIAGRAM ; ;;;;;;;;;;;;;;;;;;;; ; ; CHAR...
/* * AssemblerApplication2.asm * * Created: 6/19/2015 2:22:36 AM * Author: ROTP */ ;let's see if we can get far enough to fire up port 3 with pwm? ;pin 3 = PD1 ;DDRD - The Port D Data Direction Register - read/write ;PORTD - The Port D Data Register - read/write ;PIND - The Port D Input Pins Register - rea...
;------------------------------------------------------------------------------- ; exit.nasm - various functions for process termination. ;------------------------------------------------------------------------------- module libc.exit %include "lib/stdlib.ah" exportproc _abort, _atexit, _exit, __exit externproc _...
; Original address was $B60D ; Sand trap .word $0000 ; Alternate level layout .word $0000 ; Alternate object layout .byte LEVEL1_SIZE_14 | LEVEL1_YSTART_180 .byte LEVEL2_BGPAL_01 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 .byte LEVEL3_TILESET_03 | LEVEL3_VSCROLL_LOCKED .byte LEVEL4_BGBANK_INDEX(19) | LEVEL4_INITACT_NO...
.ORIG x3000 LD R4, DATA_LOC LOOP_TEST LDR R0, R4, #0 BRn OK LDR R1, R4, #1 ADD R4, R4, #2 LOOP NOT R2, R1 ADD R2, R2, #1 ADD R2, R0, R2 BRnz NZ ;R0>R1 ADD R0, R2, #0 BRnzp LOOP NZ BRn N ;R0<R1 BRnzp LOOP_TEST ;R0==R1 N ADD R2, R2, #-1 NOT R2, R2 ADD R1, R2, #0 BRnzp LOOP OK HA...
; ; TIKI-100 specific routines ; by Stefano Bodrato, Fall 2015 ; ; int set_psg(int reg, int val); ; ; Play a sound by PSG ; ; ; $Id: set_psg.asm,v 1.2 2016-06-10 21:13:58 dom Exp $ ; SECTION code_clib PUBLIC set_psg PUBLIC _set_psg EXTERN asm_set_psg set_psg: _set_psg: pop bc pop de pop hl push hl pu...
; There are three sections in a program - ; data, text and bss(memory for future use) section .data ; name given to memory loc -> text ; db -> define bytes ; "Hello, World" is the ascii string. ; You can also define individual bytes by their ascii values ; Here 10 is the ascii value of \n text db "Hello, World",...
.namespace sprite-demo { .const WHICH_SPRITE 0 .const SPRITE_WIDTH 1 .const SPRITE_HEIGHT 1 .const SPRITE_TILE_PAGE 28 .const SPRITE_DATA_PAGE 5 .const SPRITE_DATA_IDX 0 .const SPRITE_TILE 0x01 # face; full block is 0xDB .const SPRITE_BG_COLOR 0x00 .const SPRITE_FG_...
; ; Word: keyboard@ ; Dictionary: ( - k) ; Date: 4th February 2018 ; Macro: No ; Notes: ; pop hl call IO_ScanKeyboard push de ld e,a ld d,0 jp (hl)
; void *w_vector_front_fastcall(w_vector_t *v) SECTION code_adt_w_vector PUBLIC _w_vector_front_fastcall defc _w_vector_front_fastcall = asm_w_vector_front INCLUDE "adt/w_vector/z80/asm_w_vector_front.asm"
main: nor $s0, $0, $0 nor $s1, $s0, $0
; A105674: Highest minimal distance of any Type I (strictly) singly-even binary self-dual code of length 2n. ; 2,2,2,2,2,4,4,4,4,4,6,6,6,6,6,8,6,8,8,8,8,8,10,10,10,10,10 mov $1,$0 lpb $1 sub $1,4 mov $2,$1 lpe add $0,$2 div $0,6 mul $0,2 add $0,2
/* This is an assembly language implementation of mulsi3, divsi3, and modsi3 for the sparc processor. These routines are derived from the SPARC Architecture Manual, version 8, slightly edited to match the desired calling convention, and also to optimize them for our purposes. */ #ifdef L_mulsi3 .text .a...
LoadSpinnerArrowTiles:: ld a, [wSpritePlayerStateData1ImageIndex] srl a srl a ld hl, SpinnerPlayerFacingDirections ld c, a ld b, $0 add hl, bc ld a, [hl] ld [wSpritePlayerStateData1ImageIndex], a ld a, [wCurMapTileset] cp FACILITY ld hl, FacilitySpinnerArrows jr z, .asm_44ff6 ld hl, GymSpinnerArrows .asm_...
/* Università di Bologna Corso di laurea in Informatica 11925 - Architettura degli elaboratori Stefano Volpe #969766 28/10/2020 0.asm RAM[2] = RAM[1] - RAM[0] - 2 */ @1 D = M // D = RAM[1] @2 M = D // RAM[2] = D @0 D = M // D = RAM[0] @2 M = M - D // RAM[2] -= D @2 D = A M = M - D
.code _text segment ; typedef struct il2c_jmp_buf_t ; { ; uint64_t Frame; ; uint64_t Rbx; ; uint64_t Rsp; ; uint64_t Rbp; ; uint64_t Rsi; ; uint64_t Rdi; ; uint64_t R12; ; uint64_t R13; ; uint64_t R14; ; uint64_t R15; ; uint64_t Rip; ; uint32_t MxCsr; ; uint16_t FpC...
; dir - list all available files UseTestData equ 0 ; 1 - use test data; 0 - use real IO PrintChar equ &BB5A WaitChar equ &BB06 org &8000 SendDirCmd: ld a, 1 ; Load DIR cmd into accumulator call SendControlByte ; Send DIR command NextFile: call RecvCo...
assume cs:code code segment s1: db 'This is good.','$' s2: db 'Till good is better','$' s3: db 'Practices makes perfect','$' s4: db 'accomplish sth','$' s : dw offset s1, offset s2, offset s3, offset s4 row: db 2, 5, 8, 11 start: mov ax, cs mov ds, ax mov bx, offset s mov si, offset row mo...
Use16 org 0x7C00 start: cli ; disabling interrupts mov ax, cs ; segment registers' init mov ds, ax mov es, ax mov ss, ax mov sp, 0x7C00 ; stack backwards => ok mov ax, 0xB800 mov gs,...
MtMoon1FWildMons: def_grass_wildmons 10 ; encounter rate db 8, DIGLETT db 7, ZUBAT db 9, ZUBAT db 8, GEODUDE db 8, ZUBAT db 10, ZUBAT db 10, GEODUDE db 8, PARAS db 11, ZUBAT db 10, CLEFAIRY end_grass_wildmons def_water_wildmons 0 ; encounter rate end_water_wildmons
; =============================================================== ; Dec 2013 ; =============================================================== ; ; size_t p_forward_list_size(p_forward_list_t *list) ; ; Return number of items in list. O(n). ; ; =============================================================== SECTION ...
TITLE DIRECTRY - GW BASIC 2.0 DIRECTORY HANDLING ROUTINES ;*** ; DIRECTRY - GW BASIC 2.0 Directory handling routines ; ; Copyright <C> 1986, Microsoft Corporation ; ;Purpose: ; ; BASIC Syntax mapping to included runtime entry points: ; ; ; - CHDIR Statement: ; ; CHDIR pathname ; | ; B$CDIR ; ; ; - MKDIR Sta...
;Starts with r1 = n > 1 LDC r1 5 MOV r2 r1 ;loop MOV r10 r2 SUBI r2 r10 1 MUL r3 r2 r1 MOV r1 r3 CMP r9 r2 1 BNEZ 2 r9 MOV r31 r1
; A118639: Smallest number expressible using the next Roman-numeral symbol. ; Submitted by Jon Maiga ; 1,4,9,40,90,400,900,4000,9000,40000,90000,400000,900000 lpb $0 sub $0,1 add $1,1 mov $2,$3 mul $2,5 trn $2,$1 add $2,3 mov $3,$1 add $3,$1 add $1,$2 lpe mov $0,$2 add $0,1
; =============================================================== ; Dec 2013 ; =============================================================== ; ; void *obstack_1grow(struct obstack *ob, char c) ; ; Append char c to the growing object. ; ; =============================================================== SECTION code_...
; Original address was $A9AC ; "Unused Level 2" .word Unused2_ExitL ; Alternate level layout .word Unused2_ExitO ; Alternate object layout .byte LEVEL1_SIZE_05 | LEVEL1_YSTART_070 .byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG .byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_LOCKED | LEVEL...
SECTION "Map_3B30", ROM0[$B800] Map_3B30_Header: hdr_tileset 0 hdr_dimensions 7, 7 hdr_pointers_a Map_3B30_Blocks, Map_3B30_TextPointers hdr_pointers_b Map_3B30_Script, Map_3B30_Objects hdr_pointers_c Map_3B30_InitScript, Map_3B30_RAMScript hdr_palette $06 ...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: ResEdit/Document FILE: documentClipboard.asm AUTHOR: Cassie Hartzog, Jan 11, 1993 ROUTINES: Name Description ---- ----------- Docu...
section .data msg1 : db 'debug here --',10 l1 : equ $-msg1 msg2 : db 'enter the limit ( >0 ) : ' l2 : equ $-msg2 msg3 : db 'msg 3 here' l3 : equ $-msg3 msg4 : db 'msg 4 here' l4: equ $-msg4 msg5 : db 'msg 5 here',10 l5: equ $-msg5 space:db ' ' newline:db '',10 section .bss num: resw 1 limit: r...
; --------------------------------------------------------------------------- ; Sprite mappings - bubbles (LZ) ; --------------------------------------------------------------------------- Map_Bub_internal: dc.w @bubble1-Map_Bub_internal dc.w @bubble2-Map_Bub_internal dc.w @bubble3-Map_Bub_internal dc.w @bubble...
<% from pwnlib.shellcraft.aarch64.linux import syscall %> <%page args="old, new"/> <%docstring> Invokes the syscall rename. See 'man 2 rename' for more information. Arguments: old(char): old new(char): new </%docstring> ${syscall('SYS_rename', old, new)}
<% from pwnlib.shellcraft.mips import push, mov, pushstr from pwnlib.shellcraft.mips.linux import syscall from pwnlib.constants import SOCK_STREAM, SYS_socket, SYS_connect from pwnlib.util.net import sockaddr %> <%page args="host, port, network='ipv4'"/> <%docstring> Connects to the host on the specified port. ...
; NoirVisor - Hardware-Accelerated Hypervisor Solution ; ; Copyright 2018-2021, Zero Tang. All rights reserved. ; ; This file saves processor states for UEFI. ; ; This program is distributed in the hope that it will be successful, but ; without any warranty (no matter implied warranty of merchantability or ; fitness fo...
ori $1, $0, 2 ori $2, $0, 10 ori $3, $0, 2 ori $4, $0, 9 sw $1, 0($0) sw $1, 4($0) sw $1, 8($0) sw $4, 12($0) sw $1, 16($0) sw $1, 20($0) sw $2, 24($0) sw $3, 28($0) sw $3, 32($0) sw $4, 36($0) sw $2, 40($0) sw $2, 44($0) sw $3, 48($0) sw $4, 52($0) sw $3, 56($0) sw $4, 60($0) sw $4, 64($0) sw $1, ...
; void __CALLEE__ *ba_AddMem_callee(uchar q, uchar numblocks, uint size, void *addr) ; 05.2005 aralbrec XLIB ba_AddMem_callee LIB BAAddMem .ba_AddMem_callee pop af pop hl pop de pop bc ex (sp),hl ld b,c ld c,l pop hl push af jp BAAddMem
; ; Spectrum C Library ; ; ANSI Video handling for ZX Spectrum ; ; Handles colors referring to current PAPER/INK/etc. settings ; ; ** alternate (smaller) 4bit font capability: ; ** use the -DPACKEDFONT flag ; ** ROM font -DROMFONT ; ; set it up with: ; .text_cols = max columns ; .text_rows = max rows ; .DOTS+1...
; ; ZX Spectrum specific routines ; by Stefano Bodrato, MAR 2010 ; ; int ulaplus_get(attribute); ; ; $Id: ulaplus_get.asm,v 1.2 2015/01/19 01:33:11 pauloscustodio Exp $ ; PUBLIC ulaplus_get ulaplus_get: ;__FASTCALL__ ld bc,$bf3b ld a,l and 63 ; mask to be sure we're reading the palette in a,(c) ; see if ULAPlu...