content
stringlengths
23
1.05M
processor 6502 org $1000 loop: ldx #$20 lda #$03 sta $d000,X sta $d001,X jmp loop
SECTION code_fp_math32 PUBLIC cm32_sdcc_ceil EXTERN cm32_sdcc_fsread1, m32_ceil_fastcall cm32_sdcc_ceil: call cm32_sdcc_fsread1 jp m32_ceil_fastcall
;init code for SNES ;much borrowed from Damian Yerrick ;some borrowed from Oziphantom .p816 .smart .segment "CODE" RESET: sei ; turn off IRQs clc xce ; turn off 6502 emulation mode rep #$38 ;AXY16 and clear decimal mode. ldx #$1fff txs ; set the stack pointer phk plb ;set b to current bank, 0...
; time program .model small .data msg dw 10,13,"Current system time is : $" h db 00 m db 00 s db 00 .code mov ax,@data mov ds,ax mov ah,2ch int 21h mov h,ch mov m,cl mov s,dh mov dx,msg mov ah,09h int 21h mov al,h call disp mov dl,':' mov al,02h ...
OPT --zxnext --syntax=abfw : ORG $1234 RELOCATE_START ASSERT 2 * relocate_count == relocate_size ASSERT 12 == relocate_count dw relocate_count dw relocate_size reloc1: ; generate two relocation records: ld hl,reloc1,,bc,reloc2-reloc1,,de,reloc1+5,,sp,absolute1 jp ...
mov si, msg loop: mov ah, 0 int 0x16 mov [si], al mov ah, 0x0E int 0x10 add [counter], byte 1 add si, 1 ;cmp [counter], word [len] or even , len as len is a constant and has a fixed size cmp [counter], byte [len+1] jl loop mov si, back call print_string mov si, msg call print_string hlt print_string: mov ah, 0x0...
TITLE HEXWOUT - Copyright (c) SLR Systems 1994 INCLUDE MACROS PUBLIC HEXDWOUTSH .DATA EXTERNDEF HEXTBL:BYTE .CODE PASS2_TEXT HEXDWOUTSH PROC ; ;OUTPUT EAX WITH LEADING ZEROS SUPPRESSED ; PUSH EBX XOR ECX,ECX MOV EBX,OFF HEXTBL PUSH EAX SHR EAX,16 CALL HEXWOUTS POP EAX CALL ...
; prng ; ; Returns a random 8-bit number in A (0-255), clobbers Y (0). ; ; Requires a 2-byte value on the zero page called "seed". ; Initialize seed to any value except 0 before the first call to prng. ; (A seed value of 0 will cause prng to always return 0.) ; ; This is a 16-bit Galois linear feedback shift register w...
[bits 16] ;xstore-rng xstorerng ; 0f a7 c0 xstore ; 0f a7 c0 ;xcrypt-ecb xcryptecb ; f3 0f a7 c8 ;xcrypt-cbc xcryptcbc ; f3 0f a7 d0 ;xcrypt-ctr xcryptctr ; f3 0f a7 d8 ;xcrypt-cfb xcryptcfb ; f3 0f a7 e0 ;xcrypt-ofb xcryptofb ; f3 0f a7 e8 montmul ; f3 0f a6 c0 xsha1 ; f3 0f a6 c8 xsha256 ; f3 0f a6 d0
; ; Tape load routine ; ; ; int __CALLEE__ tape_load_block_callee(void *addr, size_t len, unsigned char type) ; ; ; $Id: tape_load_block_callee.asm,v 1.6 2015/08/11 07:16:36 stefano Exp $ ; PUBLIC tape_load_block_callee PUBLIC ASMDISP_TAPE_LOAD_BLOCK_CALLEE EXTERN zx_fast EXTERN zx_slow ; Very simple hea...
include 'DoClear.asm' include 'DoExit.asm' include 'DoHelp.asm' include 'DoMan.asm' include 'DoZoomPlus.asm' include 'DoZoomMinus.asm'
jmp want_bin_bash got_bin_bash: xor eax, eax mov al, 0x0b pop ebx xor ecx, ecx xor edx, edx mov [ebx + 9], ah int 0x80 want_bin_bash: call got_bin_bash .Ascii "/bin/bash@"
# Si scriva un programma che: # chieda all’utente di inserire un array di interi di dimensione arbitraria. # invochi una procedura P # stampi il valore ritornato da P .data A: .space 400 string1: .asciiz "Quanti elementi? " string2: .asciiz "Inserisci l'elemento: " string3: .asciiz "\n0 : sommo indici dispari, 1 ...
INCLUDE kxarm.h area js_msvc, code, readonly MACRO FUNC_HEADER $Name FuncName SETS VBar:CC:"$Name":CC:VBar PrologName SETS VBar:CC:"$Name":CC:"_Prolog":CC:VBar FuncEndName SETS VBar:CC:"$Name":CC:"_end":CC:VBar AREA |.pdata|,ALIGN=2,PDATA DCD $FuncName DCD (($PrologName-$Func...
; 15-ex-2-1 ; declare list of int, write prog to disp all .MODEL SMALL .STACK 100 .DATA NUM DB 2,5,6,8,1,7 .CODE MAIN PROC MOV AX,@DATA MOV DS,AX ; Put the rest of your code here ; DIRECT OFFSET MOV SI, 0 ; SI/DI/BX TO CHOOSE MOV CX, 6 L1: MOV AH, 02H MOV DL, N...
bits 64 extern foo mov eax,[foo] mov rax,[foo] mov rax,[qword foo] mov eax,[a32 foo] mov rax,[a32 foo] mov rax,[a32 qword foo] mov eax,foo mov rax,dword foo mov rax,qword foo mov eax,foo mov rax,dword foo mov rax,qword foo dd foo dq foo
include "../hardware.inc" section "STAT interrupt", rom0[$0048] ; Save some variables onto the stack, and jump somewhere else ; We set the specific address for that "somewhere else" so that we can use ; A relative jump. push af push hl jr Stat section "STAT ROM", rom0[$0058] Stat: ; Toggl...
GLOBAL kbFlag section .text kbFlag: push rbp mov rbp, rsp mov rax,0 loop: in al,0x64 mov cl,al and al,0x01 cmp al,0 je loop in al,0x60 mov rsp, rbp pop rbp ret
// Test operator BYTE0() / BYTE1() in initializers // Commodore 64 PRG executable file .file [name="operator-byte0-initializer.prg", type="prg", segments="Program"] .segmentdef Program [segments="Basic, Code, Data"] .segmentdef Basic [start=$0801] .segmentdef Code [start=$80d] .segmentdef Data [startAfter="Code"] .se...
; long atol_fastcall(const char *buf) SECTION code_clib SECTION code_stdlib PUBLIC _atol_fastcall EXTERN asm_atol defc _atol_fastcall = asm_atol
; --------------------------------------------------------------------------- ; Sprite mappings - platforms on a conveyor belt (LZ) ; --------------------------------------------------------------------------- dc.w byte_12686-Map_obj63, byte_1268C-Map_obj63 dc.w byte_12692-Map_obj63, byte_12698-Map_obj63 dc....
; A132774: A natural number operator. ; 1,2,3,0,4,5,0,0,6,7,0,0,0,8,9,0,0,0,0,10,11,0,0,0,0,0,12,13,0,0,0,0,0,0,14,15 mov $5,$0 mov $7,2 lpb $7 clr $0,5 mov $0,$5 sub $7,1 add $0,$7 sub $0,1 cal $0,241151 ; Number of distinct degrees in the partition graph G(n) defined at A241150. add $3,$0 mul $3,$0 ...
SECTION .text ; INTN ; EFIAPI ; __XenHypercall2 ( ; IN VOID *HypercallAddr, ; IN OUT INTN Arg1, ; IN OUT INTN Arg2 ; ); global ASM_PFX(__XenHypercall2) ASM_PFX(__XenHypercall2): ; Save only ebx, ecx is supposed to be a scratch register and needs to be ; saved by the caller push ebx ; ...
; ******************************************************* ; * * ; * Delphi Runtime Library * ; * * ; * Copyright (c) 1996,98 Inprise Corporation * ; * * ; ******************************************************* INCLUDE SE.ASM INCLUDE FILEIO.ASM .386 .MODEL FLAT PU...
Map_SStageSonic: dc.w word_ABE2C-Map_SStageSonic dc.w word_ABE2E-Map_SStageSonic dc.w word_ABE3C-Map_SStageSonic dc.w word_ABE4A-Map_SStageSonic dc.w word_ABE5E-Map_SStageSonic dc.w word_ABE72-Map_SStageSonic dc.w word_ABE86-Map_SStageSonic dc.w word_ABE9A-Map_SStageSonic dc.w word_ABEAE-Map_SStageSonic...
.zp _str .ds 2 _str_len .ds 1 _str_x .ds 2 _str_y .ds 1 .code ;; ;; Load 16x16 sprite font data and palette. ;; ;; Parameters: ;; _si : Sprite font address ;; _bl : Sprite font bank ;; _di : VRAM address ;; _dx : Sprite data size ;; _cl : Sprite palette index ;; _ax : Spri...
-- HUMAN RESOURCE MACHINE PROGRAM -- -- 19-Countdown - SIZE 10/12 - SPEED 82/96 --- a: INBOX COPYTO 0 b: c: OUTBOX COPYFROM 0 JUMPZ a JUMPN d BUMPDN 0 JUMP b d: BUMPUP 0 JUMP c
/* * Copyright © 2012 Intel Corporation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, pub...
; ;----------- GFX paging ------------- SECTION code_clib PUBLIC pixeladdress EXTERN pixeladdress_MODE1 EXTERN pixeladdress_MODE2 EXTERN __spc1000_mode INCLUDE "target/spc1000/def/spc1000.def" ; Entry h = x ; l = y ; Exit: hl = address ; a = pixel number ; Uses: a, bc, de, hl .pixeladdress l...
include vram.i ;this draws a horizontal line 2-bytes at a time. (Color is 2 bytes) ;Assumes x and width are even. (Not much use except to ss2 routine) ;Also assumes es is set to PHAR_SEG _text segment para public use32 'code' assume cs:CGROUP,ds:DGROUP public _vram_double_hline _vram_double_hline pro...
menu_x db ? menu_y db ? menu_ancho dw ? menu_alto dw ? menu_alto_cabecera dw ? menu_cantidad_opciones dw ? menu_off dw ? menu_posicion dw ? MENU MACRO _x, _y, _ancho, _alto, _alto_cabecera, _cantidad_opciones, _off PUSH AX MOV AX, _x MOV menu_x, AL MOV AX, _y MOV men...
// Given a data source: source_data: .text ")FcX1B2p5z:a&Iv[fglv@4A%cy0wPJ.eqR/h@cilN/qPpxG*9Xg[a}v/BCD]'/Fb" .text "<,bJ/tznlfFFf64kM1VaqdDi.zuI{m[AGzOsOd4%rv<iFnIy5p3i170u]b?aU46f" .text "Ye[4*DPvn3?8M9nr:%?v'Rg*.IPUut%GW/Xh2,r]%nWwbx'KswVD?gW%6M?xvZ)a" .text "e2y8/J%xLb4...
SECTION code_fp_math32 PUBLIC cm32_sccz80_ceil EXTERN cm32_sccz80_fsread1, m32_ceil_fastcall cm32_sccz80_ceil: call cm32_sccz80_fsread1 jp m32_ceil_fastcall
lda {m1} sta $fe lda {m1}+1 sta $ff lda #<{c1} cmp ($fe),y iny lda #>{c1} sbc ($fe),y bvc !+ eor #$80 !: bmi {la1}
lorom !FEATURE_SD2SNES ?= 1 !FEATURE_DEV ?= 0 !FEATURE_PAL ?= 1 !ORIGINAL_MESSAGE_TEXT ?= 0 !PRESERVE_WRAM_DURING_SPACETIME ?= 1 !RAW_TILE_GRAPHICS ?= 1 !VERSION_MAJOR = 2 !VERSION_MINOR = 4 !VERSION_BUILD = 2 !VERSION_REV_1 = 0 !VERSION_REV_2 = 0 table ../resources/normal.tbl incsrc macros.asm incsrc defines.asm ...
LXI H,4000 // load HL with 4000H MVI M,32 // store 32H in memory location pointed by HL register pair (4000H) HLT // terminate program execution
global branch_nowhere branch_nowhere: mov dword[esp], 0xffffffff ret
; ; STRCPY - Copies HL into IX. ; ; Leaves IX at terminating 0. No other ; registers are modified. ; ; ; STRCPY PUSH HL PUSH AF STRCPY_LOOP LD A, (HL) LD (IX), A INC HL INC IX CP 0 JP NZ, STRCPY_LOOP DEC IX POP AF POP HL RET ;----------------------------------------
;****************************************************************************** ;* FLAC DSP SIMD optimizations ;* ;* Copyright (C) 2014 Loren Merritt ;* Copyright (C) 2014 James Almer ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under the terms o...
buttons_init: ; clear: set as input cbi DDRD, 2 cbi DDRD, 3 cbi DDRD, 4 ; set: set as pull up sbi PORTD, 2 sbi PORTD, 3 sbi PORTD, 4 cli ldi r16, (1<<PCIE2) sts PCICR, r16 ; pin change mask. ldi r16, (1<<PCINT18)|(1<<PCINT19)|(1<<PCINT20) sts PCMSK2, r16 sei ; enable interrupts globally ;PIND is...
.ORIG x0202 .FILL x1200 ; 0x0202 -> (x01) ISR .FILL x1600 ; 0x0204 -> (x02) Protection .FILL x1A00 ; 0x0206 -> (x03) Unaligned .FILL x1C00 ; 0x0208 -> (x04) Unknown .END
.ENUM $C000 EXPORT VBL DB VBL_HANDLER DW FRAME DB CUTOFF DW JOYP_CURRENT DB JOYP_PREV DB JOYP_ACTIVE DB JOYP_RPTTIMER DB ;Repeat timer JOYP_RPT DB hblank DS 3 CURNOTE DB LASTNOTE DB WAVEMUTE DB DRUMSMUTE DB INITSEQLINE DB ;Only used in SEQ display init to avoid pushes/pops NOTEIDX DB CUTOFFI DB CUT...
COMMENT @----------------------------------------------------------------------- Copyright (c) GeoWorks 1992 -- All Rights Reserved PROJECT: PC GEOS MODULE: CommonUI/CList (common code for specific UIs) FILE: citemBooleanGroup.asm METHODS: Name Description ---- ----------- ROUTINES: Name De...
; Copyright 2019 IBM 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.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writi...
; 实验7 assume cs:code, ds:data, ss:stack data segment db '1975', '1976', '1977', '1978', '1979', '1980' db '1981', '1982', '1983', '1984', '1985', '1986' db '1987', '1988', '1989', '1990', '1991', '1992' db '1993', '1994', '1995' ; 21年 21个字符串 dd 16, 22, 382, 1356, 2390, 8000, 16000, 24486, 50065 ...
; ; ; Copyright (C) Microsoft Corporation, 1986 ; ; This Module contains Proprietary Information of Microsoft ; Corporation and should be treated as Confidential. ; only87 equ 1 ; no emulator include emulator.asm end 
;First ASM Mystack segment stack DB 64 dup('12345678') Mystack endS MyData segment MyData endS MyCode segment Assume CS:Mycode,DS:MyData include CONIO.INC Main PROC Start: MOV AX, MYDATA MOV DS, AX XOR DX, DX ; Clear register ;MOV DL,5 ;MOV DX,1024 MOV DL,27 CALL PrintDecWord ...
copyright zengfr site:http://github.com/zengfr/romhack 01A74C dbra D7, $1a74a 01A75E dbra D4, $1a75c 01AAB0 move.w ($8,A0), ($9e,A0) [123p+ 9C] 01AAB6 tst.b ($63,A0) [123p+ 9E] copyright zengfr site:http://github.com/zengfr/romhack
.CHIP PMS171B //{{PADAUK_CODE_OPTION .Code_Option Security Disable .Code_Option Bootup_Time Fast .Code_Option LVR 3.0V .Code_Option Comparator_Edge All_Edge .Code_Option GPC_PWM Disable .Code_Option TM2_Out1 PB2 .Code_Option TMx_Bit 6BIT .Code_Option TMx_Source 16MHz .Code_Option Interrupt_Src1 PB.0 .Cod...
;****************************************************************************** ;* add_bitmaps.asm: SSE2 and x86 add_bitmaps ;****************************************************************************** ;* Copyright (C) 2013 Rodger Combs <rcombs@rcombs.me> ;* ;* This file is part of libass. ;* ;* Permission to use, c...
; Randomizer seed data rando_seed_data: ; $00 dw $0000 ; Player Id ; $02 dw $0000 ; Seed bitfield ; $04-$0f dw $0000, $0000, $0000, $0000, $0000, $0000 ; Future use ; $10-2f db "0233d47a92d14217ac52e932ffc684dd" ; Seed GUID ; $30-4f db "adaa377c2adb4ea0b2d7a9741d96...
object_const_def ; object_event constants JubilifePokeMart_MapScripts: db 0 ; scene scripts db 0 ; callbacks JubilifePokeMart_MapEvents: db 0, 0 ; filler db 2 ; warp events warp_event 2, 7, JUBILIFE_CITY, 5 warp_event 3, 7, JUBILIFE_CITY, 5 db 0 ; coord events db 0 ; bg events db 0 ; object events
[org 0x7c00] [bits 16] entry: ; jmp +0x4 dw 0xeb04 ; populated by link.py kernel_sectors dw 0 ; clear cs jmp 0x0:start_16 start_16: ; initialize segment registers & stack mov ax, cs mov ds, ax mov es, ax mov ss, ax mov bp, 0x8000 mov sp, bp ; store boot drive mov [boot_drive], dl ;...
; Constants used in assembly files ; DO NOT PUT ACTUAL CODE HERE AS IT WILL CAUSE TROUBLE %ifndef __CONSTANTS %define __CONSTANTS ; See gdt.h for explanation of selector values CODE_SEG equ 0x08 DATA_SEG equ 0x10 USER_CODE_SEG equ 0x1B USER_DATA_SEG equ 0x23 TSS_SEG equ 0x2B %endif
TITLE ECE291:MP2-RSA - Your Name - Date COMMENT % RSA Data Encryption. For this MP, you will write an interactive program which uses RSA encryption to encrypt and decrypt textual data. ECE291: Machine Problem 2 Prof. John W. Lockwood Guest Author: Brandon Tipp ...
; ; 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...
%include "macros.inc" global _getSurrenderIndex segment .rodata align=16 align 16 zeroDot001 dq 0.001 align 16 zeroDot2 dq 0.2 zeroDot4 dq 0.4 align 16 zeroDot6 dq 0.6 align 16 zeroDot8 dq 0.8 align 16 one dq 1.0 align 16 oneDot1 dq 1.1 align 16 oneDot2 dq 1.2 align 16 twoDot59 dq 2.59 segme...
.byte $01 ; Unknown purpose .byte OBJ_BOOMERANGBRO, $03, $17 .byte OBJ_BOOMERANGBRO, $0C, $17 .byte OBJ_TREASUREBOXAPPEAR, $0F, $11 .byte $FF ; Terminator
song1_header: .b $04 ;4 streams .b MUSIC_SQ1 ;which stream .b $01 ;status byte (stream enabled) .b SQUARE_1 ;which channel .b $77 ;initial volume (7) and duty (01) .w song1_square1 ;pointer to stream .b MUSIC_SQ2 ;which stream .b $01 ...
; general comments ; Create a console32 Assembly Language program to calculate the series ; SIGMA of n from 0 to ? of (x + n)^(1/2) ; where x is positive floating point number ; Determine the number of terms required until the sum is at least 50 times as large as x. ; preprocessor directives .586 .MODEL FLA...
; ================================================================== ; Simple command shell for MS-DOS and dosbox in color, using BIOS ; video interrupt and function 09h. ; ================================================================== ; by 5n4k3 ; ================================================================== ...
.MACRO LKS_cycle8 nop nop nop nop nop nop nop nop .ENDM .MACRO LKS_printfc ldx #(\1*2 + \2*64) rep #$20 lda LKS_PRINTPL-1 and #$FF00 clc adc #\3 sta LKS_BUF_BG3+0,x sep #$20 .ENDM .MACRO LKS_printf_setpal lda #\1<<2 sta LKS_PRINTPL .ENDM .MACRO LKS_printfs txy ldx #(\1*2 + \2*64) ...
section .data msg1: db "enter no::",10 len1: equ $-msg1 msg2: db "enter count of numbers::",10 len2: equ $-msg2 msg3: db "Addition Result::",10 len3: equ $-msg3 n: db "",10 section .bss a: resq 2 ;accept no res: resq 2 ;result temp_res: resq 2;runtime res no: resb 2 ;counter cnt:resb 1 ;hex counter cnt1:resb 1 ;...
; Making sure jump tables are detected, and not re-organized org #4000 start: ld de, variable ld a, (de) ld b, a ld c, b ld a, b inc a ld (de), a ld a, #05 sub b jp c, skip ld b, #00 ld hl, label1 add hl, bc add hl, bc add hl, bc jp (hl) label1: jp ...
Music_MainMenu: musicheader 4, 1, Music_MainMenu_Ch1 musicheader 1, 2, Music_MainMenu_Ch2 musicheader 1, 3, Music_MainMenu_Ch3 musicheader 1, 4, Music_MainMenu_Ch4 Music_MainMenu_Ch1: tempo 160 volume $77 dutycycle $3 tone $0001 vibrato $10, $15 stereopanning $f0 notetype $c, $f octave 3 note D_, 8 Music_...
;****************************************************************************** ;* software YUV to RGB converter ;* ;* Copyright (C) 2001-2007 Michael Niedermayer ;* (c) 2010 Konstantin Shishkov ;* ;* This file is part of FFmpeg. ;* ;* FFmpeg is free software; you can redistribute it and/or ;* modify it under...
page ,132 subttl emftran.asm - Transcendentals ;*** ;emftran.asm - Transcendentals ; ; Copyright (c) 1986-89, Microsoft Corporation ; ;Purpose: ; Transcendentals ; ; This Module contains Proprietary Information of Microsoft ; Corporation and should be treated as Confidential. ; ;Revision History: ; See ...
#bankdef a { #outp 8 * 0x00 } #bankdef b { #outp 8 * 0x10 } ; error: overlaps
; ; Spectravideo SVI specific routines ; by Stefano Bodrato ; MSX emulation layer ; ; read from joystick port ; ; ; $Id: svi_slstick.asm,v 1.6 2016-06-16 19:30:25 dom Exp $ ; SECTION code_clib PUBLIC svi_slstick EXTERN get_psg IF FORmsx INCLUDE "target/msx/def/msx.def" ELSE INCLUDE "target...
; Test to make sure moves do not happen if they will break jrs ld a, 1 jp label1 label2: jr nc,label4 jr label2 label4: jr label4 label6: REPT 128 nop ENDM label5: jr label5 label1: add a,b jr nc,label3 jp label2 label3: jr label3
;;; ; Sets the drawing target surface used by all the other drawing functions ; ; params: ; width - The width of the surface ; height - The height of the surface ; buffer - A pointer to the colour buffer array ;;; proc DrawSetTarget, width:DWORD, height:DWORD, buffer:QWORD mov [_gr_draw_target_wid...
.code Multiply128 PROC ; RCX , RDX, R8, R9 push rbx push rsi push rdi mov r10, rcx mov rsi, QWORD PTR [RDX + 08h] ; l2 mov rdi, QWORD PTR [RDX] ; h2 mov rbx, QWORD PTR [R10 + 08h] ; l1 mov rcx, QWORD PTR [R10] ; h1 ; l1 * l2 mov rax, rbx mul rsi ; result in %rdx:%rax mov r8, rax mov r9,...
; size_t balloc_blockcount_fastcall(unsigned int queue) SECTION code_alloc_balloc PUBLIC _balloc_blockcount_fastcall _balloc_blockcount_fastcall: INCLUDE "alloc/balloc/z80/asm_balloc_blockcount.asm"
# 6502 Test #11 # Heather Justice 3/26/08 # Tests stack instructions (PHA & PLA & PHP & PLP). # Assumes that loads & stores (all addressing modes). # Also assumes ADC (all addressing modes) and all flag instructions work. # test: LDA(imm(0x27)) a9 27 test: ADC(imm(0x01)) 69 01 test: SEC() 38 test: PHP() 08 test: CLC() ...
Name: ISPK-7F.asm Type: file Size: 7018 Last-Modified: '1992-02-13T07:47:44Z' SHA-1: DD933EFCBF3CE6D68C2F1CA3F07893857A9D446B Description: null
#include "Platform.inc" #include "FarCalls.inc" #include "Lcd.inc" #include "../../ShiftRegister/EnableDisableShiftRegisterMocks.inc" #include "TestFixture.inc" radix decimal udata global numberOfEnableCalls global numberOfDisableCalls global expectedCalledEnableShiftRegisterCount global expectedCalledDisa...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1993 -- All Rights Reserved PROJECT: MODULE: FILE: cndfolderPopupMenu.asm AUTHOR: Joon Song, Mar 19, 1993 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name Date Des...
; SBAS_PROCS_JOB - SBASIC Job Procedures V2.00  1994 Tony Tebby ; 2004-04-02 2.01 quit takes optional long parameter (pjw) section exten xdef sbasic xdef quit xdef job_name xref gu_mexec xref ut_gxnm1 xref ut_gtint xref ut_gxli1 include 'dev8_keys_sbasic' include 'dev8_keys_qdos_sms' include 'dev8_k...
bits 32 section .text ;;; ;;; Miscellaneous ;;; ;;; stackDump: func extern stackDumpHex global stackDump stackDump: push ebp mov ebp, esp call stackDumpHex pop ebp ret
; Interpreter routines for Protected Mode ; ============================================ ; ; Run Interpreter Routine ; Arguments: bl: Row ; Outputs: bl: New Row, dl: Column (0) ; ============================================ ; interpreter_run: push ecx .get: mov dl, 0 call string_get_row mov cl, 0x20 call ...
section .text %macro ISR_NO_ERR_CODE 1 global isr%1 isr%1: push 0 push %1 jmp service_interrupt %endmacro %macro ISR_ERR_CODE 1 global isr%1 isr%1: push %1 jmp service_interrupt %endmacro %macro ISR_FILL 0 %assign i 33 %rep 256 - 33 ISR_NO_ERR_CODE i %assign i i+1 %endrep %endmacro ISR_NO_ERR_CODE 0 ISR...
; void b_vector_destroy(b_vector_t *v) SECTION code_clib SECTION code_adt_b_vector PUBLIC b_vector_destroy EXTERN asm_b_vector_destroy defc b_vector_destroy = asm_b_vector_destroy ; SDCC bridge for Classic IF __CLASSIC PUBLIC _b_vector_destroy defc _b_vector_destroy = b_vector_destroy ENDIF
A7_Header: sHeaderInit ; Z80 offset is $D42D sHeaderPatch A7_Patches sHeaderTick $01 sHeaderCh $01 sHeaderSFX $80, $05, A7_FM5, $B0, $04 A7_FM5: sPatFM $00 ssModZ80 $02, $01, $0B, $D5 dc.b nF4, $06 saVolFM $09 dc.b nF4, $3A sStop A7_Patches: ; Patch $00 ; $D2 ; $11, $92, $6F, $0F, $19, $1D, $1C,...
; Title: Bind Shell TCP Polymorphic Shellcode - 117 byte ; Platform: linux/x86 ; Date: 2015-01-17 ; Author: Dennis 'dhn' Herrmann ; Website: https://zer0-day.pw ; Github: https://github.com/dhn/SLAE/ ; SLAE-721 ; ; The orignal shellcode is implemented by: ; Russell Willis <codinguy@gmail.com> BITS 32 global _start se...
; uint __CALLEE__ strlcpy_callee(char *dst, char *src, uint size) ; 06.2008 aralbrec SECTION code_clib PUBLIC strlcpy_callee PUBLIC _strlcpy_callee PUBLIC ASMDISP_STRLCPY_CALLEE IF FORrcmx000 EXTERN rcmx_cpir ENDIF .strlcpy_callee ._strlcpy_callee pop af pop bc pop hl pop de push af .asmentry ;...
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Copyright (c) GeoWorks 1994 -- All Rights Reserved PROJECT: Clavin MODULE: Outbox FILE: outboxNotify.asm AUTHOR: Adam de Boor, Jun 1, 1994 ROUTINES: Name Description ---- ----------- REVISION HISTORY: Name ...
; Linux/x86 bindshell shellcode ; By Daniel Roberson -- @dmfroberson -- daniel@planethacker.net ; ; For the SecurityTube Linux Assembly Expert course. ; SLAE-877 BITS 32 ; ; Port number. In network byte order. Calculate with Python: ; python -c "import socket; print '0x%04x' % socket.htons(1280)" ; PORT equ 0x5c11 ...
%ROM 0 # Read RAM size PUSH 1 INT 8 POP R6 SUB R6, 2048 MOV IHBASE, 0 # RAM TEST 8-bit MOV R3, :ENDADDR MOV R2, R3 MOD R2, 4 SUB R3, R2 :8bittest_next PUSH R3 CALL :ram_write PUSH R3 CALL :ram_check CMP R1, 1 JNE :test_fail ADD R3, 4 CMP R3, R6 JL :8bittest_next PUSH :db_ramok_len PUSH :db_...
Name: kart-data-p.asm Type: file Size: 12499 Last-Modified: '1992-08-06T06:36:55Z' SHA-1: 9F586BF2834CD45E916E9858457B06FE70682861 Description: null
; license:MIT License ; copyright-holders:Hiromasa Tanaka _sound_extend: DB 0 DW _sound_extend_trk1 DW _sound_extend_trk2 DW _sound_extend_trk3 _sound_extend_trk1: DB 201, %10, 200, 14 , 20 , 15 , 200, 0 , 0 , 5 , 200, 14 , 20 , 5 , 200, 0 DB 0 , 5 , 200, 14 , 20 , 5 , 200, 0 , 0 ...
// Original test: ./hsin/hw4/problem6/jal_0.asm // Author: hsin // Test source code follows lbi r7, 1 // r7 = 1 addi r1, r7, 0 // r1 = 1 jal .Label2 // r7 = .ra1: // jump to .Label2 .ra1: halt // Not executed .Label1: halt .Label2: addi r2, r7, 0 // r2 = .RetAddr jal .Label1 ...
%include "macros/patch.inc" %include "macros/datatypes.inc" %include "TiberianSun.inc" %include "ini.inc" cglobal IsSpectatorArray cglobal SpectatorStuffInit cglobal Load_Spectators_Spawner cextern INIClass_SPAWN cextern SpawnerActive section .bss IsSpectatorArray RESD 8 SpectatorStuffInit ...
OpenOaksPC: call SaveScreenTilesToBuffer2 ld hl, AccessedOaksPCText call PrintText ld hl, GetDexRatedText call PrintText call YesNoChoice ld a, [wCurrentMenuItem] and a jr nz, .closePC predef DisplayDexRating .closePC ld hl, ClosedOaksPCText call PrintText jp LoadScreenTilesFromBuffer2 GetDexRatedText: t...
<% from pwnlib.shellcraft import aarch64 %> <% from pwnlib.util.net import sockaddr %> <% from pwnlib.constants import SOCK_STREAM, SOCK_DGRAM, SYS_socket %> <%page args="network = 'ipv4', proto = 'tcp'"/> <%docstring> Creates a new socket </%docstring> <% sockaddr, length, address_family = sockaddr('127.0.0.1', 1,...
;INTERRUPT VERIFICATION ;05/08/2007 ;TESTED AND VERIFIED WITH AT89C52 ;PROGRAM RUN ----- SUCCESS. ORG 0000H SJMP 0030H ORG 0013H LJMP 00FFH ORG 0030H MOV IE,#84H MOV IP,#04H MOV TCON,#08H START: SJMP START ORG 00FFH ISR: NEXTA: MOV P2,#01H; coil A + ACALL DELAY MOV P2,#04H; coil B + ACALL DELAY MOV P2,#0...
;SlugmaBaseStats: ; 384da (e:44da) db DEX_SLUGMA ; pokedex id db 40 ; base hp db 40 ; base attack db 40 ; base defense db 20 ; base speed db 70 ; base special db FIRE ; species type 1 db FIRE ; species type 2 db 190 ; catch rate db 78 ; base exp yield INCBIN "pic/ymon/slugma.pic",0,1 ; 55, sprite dimensions dw SlugmaPi...
;************************************************************************** ;* walk386.ASM ;* ;* Assembly support code for the KERNEL386 global heap routines ;* for TOOLHELP.DLL ;* ;************************************************************************** INCLUDE TOOLPRIV.INC PMODE32 = 1...
DPLC_8E4B8: dc.w word_8E4D4-DPLC_8E4B8 dc.w word_8E4DC-DPLC_8E4B8 dc.w word_8E4E4-DPLC_8E4B8 dc.w word_8E4EC-DPLC_8E4B8 dc.w word_8E4F2-DPLC_8E4B8 dc.w word_8E4F8-DPLC_8E4B8 dc.w word_8E4FE-DPLC_8E4B8 dc.w word_8E506-DPLC_8E4B8 dc.w word_8E50E-DPLC_8E4B8 dc.w word_8E516-DPLC_8E4B8 dc.w word_8E51C-D...
.ORIG x1234 STW R7, R6, #2 STW R7, R6, #2 STW R7, R6, #2 STW R7, R6, #2 STW R7, R6, #2 .END
;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, DISPLAYING, ...