content stringlengths 23 1.05M |
|---|
;
; 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
;
;-----------------------------------------------... |
format elf64
public EhPrepare as 'EhPrepareAVX2'
public EhSolver as 'EhSolverAVX2'
include "struct.inc"
include "params.inc"
include "struct_eh.inc"
include "macro_eh.asm"
section '.text' executable align 64
include "proc_ehprepare_avx2.asm"
include "proc_ehsolver_avx2.asm"
section '.data' writeable align 64
include... |
INCLUDE "src/display/LCDC.asm"
INCLUDE "src/display/LoadFont.asm"
INCLUDE "src/display/ResetDisplay.asm"
INCLUDE "src/display/WaitVBlank.asm"
INCLUDE "src/display/LoadPalette.asm" |
.byte $01 ; Unknown purpose
.byte OBJ_GREENCHEEP, $0B, $12
.byte OBJ_GREENCHEEP, $0F, $13
.byte OBJ_BLOOPERWITHKIDS, $0B, $15
.byte OBJ_GREENPIRANHA, $14, $06
.byte OBJ_GREENPIRANHA, $1A, $17
.byte OBJ_GREENPIRANHA, $22, $05
.byte OBJ_REDPIRANHA, $29, $06
.byte OBJ_GREENTROOPA, $20, $09
.byte OBJ_GREENCHEEP,... |
;--------------------------------------------------------
; File Created by C51
; Version 1.0.0 #1069 (Apr 23 2015) (MSVC)
; This file was generated Sun Feb 26 19:39:14 2017
;--------------------------------------------------------
$name All_timers
$optc51 --model-small
R_DSEG segment data
R_CSEG segment code
... |
Hardware_Init:
; Check if external memory is present
mov al, 1
xor ah, ah
mov bx, 0A000h
Hardware_Init1:
mov es, ax
mov cx, [0000h]
mov [0000h], word 0A55Ah
cmp [0000h], word 0A55Ah
pushf
mov [0000h... |
copyright zengfr site:http://github.com/zengfr/romhack
005AE0 cmpi.b #$0, ($5,A1)
005AE6 bne $5bd6 [item+ 5]
005BFE cmpi.b #$8, ($5,A0)
005C04 beq $5c18 [item+ 5]
005CC8 cmpi.b #$8, ($5,A0)
005CCE beq $5ce2 [item+ 5]
005E7E cmpi.b #$8, ($5,A0)
005E84 beq $5e98 [item+ 5]
0065F4 move.b #... |
@include
;-------------------------------------------------------------------------------
; GIEPY Normal Sprite code
;-------------------------------------------------------------------------------
pushpc
org $02a9ca ; This address is overritten by SA-1 patch.
dl InitSpriteTableFix ; So strict checking is... |
SFX_Go_Outside_1_Ch7:
noisenote 2, 15, 1, 84
noisenote 12, 7, 1, 35
noisenote 2, 11, 1, 84
noisenote 12, 6, 1, 35
noisenote 6, 4, 1, 84
endchannel
|
;;
;
; Name: stager_sock_find
; Qualities: Can Have Null
; Platforms: BSDi
; Authors: skape <mmiller [at] hick.org>
; optyx <optyx [at] uberhax0r.net>
; Version: $Revision: 1633 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to... |
; M.Bruestle 15feb2012
;
; Today I’ve written a little assembler program to confirm my assumption
; about the following (wrong) sentence in the ACWG (p 86):
; "When an communication instruction is executed the value of Wdesc, the
; pointer to the data and the message length are copied into registers
; in the link ... |
INCLUDE "gbhw.inc" ; hardware defs from devrs.com
;sprite constants
_SPR0_Y EQU _OAMRAM
_SPR0_X EQU _OAMRAM+1
_SPR0_NUM EQU _OAMRAM+2
_SPR0_ATT EQU _OAMRAM+3
_SPR1_Y EQU _OAMRAM+4
_SPR1_X EQU _OAMRAM+5
_SPR1_NUM EQU _OAMRAM+6
_SPR1_ATT EQU _OAMRAM+7
;when to move the sprite
_MOVX EQU _RAM
_MOVY EQU _RAM+1
;S... |
//////////////////////////////////////////////////////////////////////////////
// astro_vars_data.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// Variables and data that are needed throughout the ... |
copyright zengfr site:http://github.com/zengfr/romhack
0208E0 tst.b ($79,A6) [base+792, base+794]
0208E4 bne $20902 [base+7B5]
0209FA move.b ($f,A4), ($79,A6) [base+7AC]
020A00 move.w ($0,A4), ($5a,A6) [base+7B5]
0210B2 tst.b ($79,A6)
0210B6 bne $210c0
02256C move.b ($f,A4), ($79,A6)
022572 mo... |
; Program code for NES 101 Tutorial
; Code by Michael Martin, 2001-2
; Assign the sprite page to page 2.
sprite = $200
; Allocate memory in the zero page segment. If we
; really wanted to, we could scatter these declarations
; through the code (P65 1.1 lets us do so) but not all
; assemblers allow this, and it doesn... |
.MODEL SMALL
.STACK 100H
.DATA
ILLI_MSG DB 0AH,'ILLIGAL INPUT',0AH,'$'
OVER DB 0AH,'OVERFLOW!',0AH,'$'
MSG1 DB 0AH,'ENTER TIME IN SECOND',0AH,'$'
MSG2 DB 0AH,'OUTPUT: ','$'
.CODE
MAIN PROC
MOV AX,@DATA ;initializing data segment
MOV DS,AX
MOV AH,9
LEA DX,MSG1 ;printing msg1
INT 21H
CALL INDEC ; call INDEC proc... |
Route2Object:
db $f ; border block
db $8 ; warps
db $9, $c, $0, DIGLETTS_CAVE_EXIT
db $b, $3, $0, VIRIDIAN_FOREST_EXIT
db $b, $4, $1, VIRIDIAN_FOREST_EXIT
db $13, $f, $0, ROUTE_2_HOUSE
db $23, $10, $0, ROUTE_2_GATE
db $23, $11, $1, ROUTE_2_GATE
db $27, $10, $2, ROUTE_2_GATE
db $2b, $3, $2, VIRIDIAN_FOREST_EN... |
.pc = VVRAM "Virtual video RAM (VVRAM)" virtual
vvram: .fill 320,0
.pc = VVRAM_TEMP "Temp virtual video RAM (VVRAM_TEMP)" virtual
vvram_temp: .fill 320,0 |
hook_token_stop := $d9 - $ce
hook_parser:
db $83 ; hook signifier
cp a,2
jr z,.maybe_stop
xor a,a
ret
.maybe_stop:
ld a,hook_token_stop ; check if stop token
cp a,b
ld a,$ab
jp z,_JError
xor a,a
ret
hook_app_change:
db $83
;ld c,a ; huh
ld a,b
cp a,cxPrgmEdit ; only allow when editing
ld b,a
ret ... |
SFX_Cry02_3_Ch4:
duty 0
squarenote 8, 15, 5, 1152
squarenote 2, 14, 1, 1504
squarenote 8, 13, 1, 1500
endchannel
SFX_Cry02_3_Ch5:
dutycycle 165
squarenote 7, 9, 5, 1089
squarenote 2, 8, 1, 1313
squarenote 8, 6, 1, 1306
SFX_Cry02_3_Ch7:
endchannel
|
;
; ZX81 libraries - Stefano 7/8/2009
;
;----------------------------------------------------------------
;
; $Id: filltxt.asm,v 1.7 2015/01/19 01:33:26 pauloscustodio Exp $
;
;----------------------------------------------------------------
;
; Fill text memory with specified character code
;
;------------------------... |
; find one character in a string 06/01-92 O.Fink
section string
include win1_keys_err
xdef st_findc ; find one character
;+++
; find one character in a string
; abcdef -> find "d" -> d1=4
;
; Entry Exit
; ... |
SFX_Battle_19_Ch1:
unknownnoise0x20 2, 132, 67
unknownnoise0x20 2, 196, 34
unknownnoise0x20 8, 242, 52
endchannel
|
SFX_Faint_Fall_Ch5:
duty_cycle 1
pitch_sweep 10, -7
square_note 15, 15, 2, 1920
pitch_sweep 0, 8
sound_ret
|
# $Id: e_hlt_0.asm,v 1.2 2001/03/22 00:39:00 ellard Exp $
#@ tests for constant in hlt.
hlt 100
|
; The following link-time assertion is known by RGBASM to be okay.
; This previously caused it to still pass the assertion to RGBLINK with an empty
; RPN expression
SECTION "rgbasm passing asserts", ROM0[0]
db 0
assert @
|
; float __fsadd_callee(float a1, float a2)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciyp_dsadd_callee
EXTERN cm48_sdcciyp_dcallee2, am48_dadd, cm48_sdcciyp_m482d
cm48_sdcciyp_dsadd_callee:
; add two sdcc floats
;
; enter : stack = sdcc_float a2, sdcc_float a1, ret
;
; exit : dehl = ... |
; size_t wv_priority_queue_max_size(wv_priority_queue_t *q)
SECTION code_adt_wv_priority_queue
PUBLIC wv_priority_queue_max_size
defc wv_priority_queue_max_size = asm_wv_priority_queue_max_size
INCLUDE "adt/wv_priority_queue/z80/asm_wv_priority_queue_max_size.asm"
|
copyright zengfr site:http://github.com/zengfr/romhack
003A06 movem.l D0-D3, -(A6)
003A0A movem.l D0-D3, -(A6)
009ACA dbra D5, $9ac8
0517D4 move.b ($3e,A6), ($36,A6)
0522CE move.b ($36,A6), ($2e,A6) [container+38, container+3A]
0522D4 move.l ($a,A6), ($e,A6)
05245E move.b ($36,A6), ($2e,A6) [contain... |
get macro arg1,arg2,arg3
dc.l arg1
arg2
arg3 dc.l \4
move.\0 d0,d1
endm
get.b 1,<dc.l 2>,label,four
|
; void __FASTCALL__ *adt_QueuePopBack(struct adt_Queue *q)
; 11.2006 aralbrec
PUBLIC adt_QueuePopBack
EXTERN _u_free
; enter: HL = struct adt_Queue *
; exit : HL = top item, item removed from queue
; = 0 and carry reset if queue empty
.adt_QueuePopBack
ld a,(hl) ; reduce count
dec (h... |
.text
main:
# Prompt user to input non-negative number
la $a0,prompt
li $v0,4
syscall
li $v0,5 #Read the number(n)
syscall
move $t2,$v0 # n to $t2
# Call function to get fibonnacci #n
move $a0,$t2
move $v0,$t2
jal fib #call fib (n)
move $t3,$v0 #result is in $t3
# Output message and n
la $a0,result ... |
;
; MSX specific routines
; by Stefano Bodrato, 30/11/2007
;
; int msx_text();
;
; Switch to text mode
;
; $Id: msx_text.asm,v 1.2 2007/12/07 11:28:59 stefano Exp $
;
XLIB msx_text
LIB msxbios
INCLUDE "#msxbios.def"
msx_text:
ld ix,TOTEXT
jp msxbios
|
.data
EXTERN g_get_camera_data: qword
EXTERN g_camera_active: byte
EXTERN g_camera_struct: qword
.code
asm_get_camera_data PROC
pushf
; Steal the camera pointer
push rbx
lea rbx, [r13 + rdx + 654h]
sub rbx, 24h
mov [g_camera_struct], rbx
pop rbx
cmp g_camera_active, 0
... |
MODULE State
Start EQU $
POST EQU 1
GET EQU 0
DISPLAY "State @ ",/H,$
type DB 0 ; default to GET requests
bank DEFB 0,0,"RS" ; zero marker, if this stays zero, we're doing filenames
filename DS $ff,0 ; filename - 256 chars enough? FIXME
length DS 6 ; < 16384
offset DEFB "0",0 ; < 16384 (and in th... |
MansionMonsB1:
db $0A
IF DEF(_RED)
db 33,KOFFING
db 31,KOFFING
db 35,GROWLITHE
db 32,PONYTA
db 31,KOFFING
db 40,WEEZING
db 34,PONYTA
db 35,GRIMER
db 42,WEEZING
db 42,MUK
ENDC
IF DEF(_BLUE)
db 33,GRIMER
db 31,GRIMER
db 35,VULPIX
db 32,PONYTA
db 31,GRIMER
db 40,MUK
db 34,PONYTA
db ... |
; L0013.asm - first map, ba lands on the moon
; Generated 07.09.2000 by mlevel
; Modified 07.09.2000 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
DROPSPEED1 EQU $ff00 ;normal
DROPSPEED2 EQU $0001
;DROPSPEED1 EQU $fc00 ;fast
;DROPSPEED2 EQU $0004
;------------------------------------... |
SFX_Battle_36_Ch4:
duty 0
squarenote 2, 15, 1, 1920
squarenote 2, 15, 1, 1792
squarenote 2, 15, 1, 1936
squarenote 2, 15, 1, 1792
squarenote 2, 15, 1, 1952
squarenote 2, 15, 1, 1792
squarenote 2, 15, 1, 1968
squarenote 2, 15, 1, 1792
squarenote 2, 15, 1, 1984
squarenote 2, 15, 1, 1792
squarenote 2, 15, 1, 2... |
; Static Name Aliases
;
TITLE bn_mulw.c
.386
F_TEXT SEGMENT WORD USE16 PUBLIC 'CODE'
F_TEXT ENDS
_DATA SEGMENT WORD USE16 PUBLIC 'DATA'
_DATA ENDS
_CONST SEGMENT WORD USE16 PUBLIC 'CONST'
_CONST ENDS
_BSS SEGMENT WORD USE16 PUBLIC 'BSS'
_BSS ENDS
DGROUP GROUP _CONST, _BSS, _DATA
ASSUME DS: DGROUP,... |
bits 16
org 0x0
%define int_default_cs 0
%define str_prt_port 0
; In an arbitrary real-mode environment, the IVT is usually stored
; at the base address of 0.
IVT:
; Here is a comprehensive list consisting of 256 Interrupt Handlers.
; Vectors from 0 to 31 are mostly used by Exception Handlers.
dw virt_divide_faul... |
Name: zel_init_fra.asm
Type: file
Size: 280654
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: 64A37CB7451DD25D9432E3CDCF63A5EA259CD5F9
Description: null
|
INCLUDE "hardware.inc"
SECTION "sram", SRAM
; Create a 1 byte variable
sByteVariable::
ds 1
; Create a 2 byte variable
sWordVariable::
ds 2
; Create a 16 byte buffer
sBuffer::
ds 16
.end::
SECTION "entry", ROM0[$100]
jp start
SECTION "cart_type", ROM0[$147]
db CART_ROM_MBC5_RAM_BAT
SECTION "cart_sram_si... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Chaves.asm - Utilizacao de perifericos
;Prof. Roberto M. Ziller - 04.01.2000
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
COMMAND EQU 20H
CHAVES EQU 21H
LEDS EQU 22H
ORG 2000H
MVI A,02H ; Porta A como entrada, B ... |
lda {m1}
and {m2}
sta {m1}
lda {m1}+1
and {m2}+1
sta {m1}+1
lda {m1}+2
and {m2}+2
sta {m1}+2
lda {m1}+3
and {m2}+3
sta {m1}+3 |
; 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
cblock
d1
endc
org 0
goto prepare
prepare:
movlw... |
// seed 1
lbi r0, 23 // icount 0
slbi r0, 33 // icount 1
lbi r1, 139 // icount 2
slbi r1, 91 // icount 3
lbi r2, 71 // icount 4
slbi r2, 253 // icount 5
lbi r3, 171 // icount 6
slbi r3, 172 // icount 7
lbi r4, 90 // icount 8
slbi r4, 254 // icount 9
lbi r5, 218 // icount 10
slbi r5, 184 // icount 11
lbi r6, 221 // icou... |
; Input
; get content from the user
;
; 2016-06-13 Scott Lawrence
;
; This code is free for any use. MIT License, etc.
.module Input
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; GetNibbleFromUser
; returns a byte read from the user to b
; if user hits 'enter' (default ... |
dnl x86-64 mpn_add_n/mpn_sub_n optimized for Pentium 4.
dnl Contributed to the GNU project by Torbjorn Granlund.
dnl Copyright 2007, 2008, 2010-2012 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 ... |
;
; VGM YMZ280B chip
;
YMZ280B: MACRO
super: Chip YMZ280B_name, Header.ymz280bClock, System_Return
ENDM
; ix = this
; iy = header
YMZ280B_Construct: equ Chip_Construct
; jp Chip_Construct
; ix = this
YMZ280B_Destruct: equ Chip_Destruct
; jp Chip_Destruct
;
SECTION RAM
YMZ280B_instance: YMZ280B
ENDS
YMZ280B_na... |
;
; NatLoader - CMike bootloader - adapted from one of my other projects
; It loads KERNEL.BIN from boot drive into 0x2000:0000
; The boot drive must be a floppy formatted as a FAT12
; volume
;
bits 16
cpu 386
org 0x7C00
%define TARGET_SEGMENT 0x2000
%define TARGET_OFFSET 0x0000
section .text
jmp short... |
@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 32
section .text
align 4
dd 0x1BADB002
dd 0x00
dd - (0x1BADB002+0x00)
global start
extern kernel
start:
cli ;clears the interrupts
call kernel
hlt ; halt the cpu(pause it from executing... |
main: ori $4, $0, 0x8000 # a = 0x8000
ori $5, $0, 0x00A9 # b = 0x00A9
ori $16, $0, 1974 # c = 1974
mult $4, $4 # x = a * a
mflo $17 # Move lower 32 bits of mult into x
sw $17, 0x20($0) # Store x into 0x20
mult $17, $5 # y = x * b
mflo $18 # Move lower 32 bits of mult into y
sw $18, 0x24($0) # Store y ... |
START:
LDA #$FF ; Store 255 in the DDRB register in the 65C22
STA $B402
LDA #00 ; Clear the accumulator
CLC
FORWARD:
ADC #$01 ; Count up in the accumulator
STA $B400 ; Display the contents of the accumulator using PORTB
JSR DELAY ; Delay for a bit
CMP #$FF ; Compare with 255
BNE FORWARD ; Continue ... |
%use altreg
%macro spush 0
push r7
push r6
push r2
push r10
push r8
push r9
push r3
push r1
%endmacro
%macro spop 0
pop r1
pop r3
pop r9
pop r8
pop r10
pop r2
pop r6
pop r7
%endmacro
%define SYS_READ 0x00
%define SYS_WRITE 0x01
%define SYS_OPEN ... |
; QL RAM disk MDV Emulation V2.02 1985 Tony Tebby QJUMP
section rd
xdef rd_emul emulation check
xdef rd_mdv emulate MDV
include 'dev8_keys_sys'
include 'dev8_keys_iod'
include 'dev8_keys_hdr'
include 'dev8_keys_err'
inclu... |
.686
.model flat,stdcall
option casemap:none
include .\bnlib.inc
include .\bignum.inc
.code
bnMovzx proc uses edi bn:DWORD,dwVal:DWORD
mov ecx,BN_ALLOC_BYTES
mov edi,bn
mov edx,dwVal
xor eax,eax
shr ecx,2
rep stosd ;mov [edi].BN.bSigned,FALSE
mov edi,bn
inc eax
mov [edi].BN.dwSize,eax;set size to 1
mov [e... |
;
; ANSI Video handling for the MSX
;
; BEL - chr(7) Beep it out
;
;
; Stefano Bodrato - Oct. 2017
;
;
; $Id: f_ansi_bel.asm $
;
SECTION code_clib
PUBLIC ansi_BEL
.ansi_BEL
ret
|
db 000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h; 000
db 000h,000h,07Eh,081h,0A5h,081h,081h,0BDh,099h,081h,07Eh,000h,000h,000h; 001
db 000h,000h,07Eh,0FFh,0DBh,0FFh,0FFh,0C3h,0E7h,0FFh,07Eh,000h,000h,000h; 002
db 000h,000h,000h,06Ch,0FEh,0FEh,0FEh,0FEh,07Ch,038h,010h,000h,000h,000h; 003
db ... |
; ASM source file created by SevenuP v1.20
; SevenuP (C) Copyright 2002-2006 by Jaime Tejedor Gomez, aka Metalbrain
;GRAPHIC DATA:
;Pixel Size: ( 24, 32)
;Char Size: ( 3, 4)
;Sort Priorities: X char, Char line, Y char
;Data Outputted: Gfx
;Interleave: Sprite
;Mask: No
goblin_gira:
DEF... |
; Basic startup code
; Make sure ruledef has been included
#include "CESCA.cpu"
#bank program
; Reset vector (PC = 0x00): no need to take extra precautions
mov R0, 0
mov OUT, R0 ; Clear 7 segment display
mov LCDcmd, Init ; Initialize LCD display
mov LCDcmd, Clr ; Clear LCD display
|
;Mrch 10
;--bug fix --- it was totally screwed when used on a real atari
;;changed two lda BALL_FUDGE_SPEED to lda #BALL_FUDGE_SPEED
; switch to CLEAN_START macro for stack clearing
;removed extraneous clc before cmps;;temporarilyish cleared up problem.....
;fixed capitalization of instructions
;(back to no illegal op... |
; Attribute Render with Scrolling — ATTRSCRL.asm
; Copyright (c) 2021 Janrey Licas
; This code is licensed under MIT license. (see LICENSE for details)
.MODEL TINY
.CODE
MOV AX, 0B800H ; It is an address for the VGA card text mode.
MOV ES, AX ; Let Extra Segment Register holds the address of the VGA card for text m... |
SECTION .text
GLOBAL square_p256
square_p256:
sub rsp, 0x80 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x50 ], rbx; saving to stack
mov [ rsp + 0x58 ], rbp; saving to stack
mov [ rsp + 0x60 ], r12; saving to stack
mov [ rsp + 0x68 ], r13; saving to stack
mov [ rsp + 0x70 ], r14; saving to stack
mov [ rsp + 0x... |
;-------------------------------------------------------------------------
; Native serial i/o functionality using SID/SOD for micro8085_cilb
; Functions below assumes support for INTEL 8085 "undocumented" opcodes
SECTION code_clib
EXTERN pspiclk
PUBLIC _spi_rxbuf
PUBLIC _spi_rxbyt... |
SFX_Fly_3_Ch8:
noise_note 2, 15, 1, 18
noise_note 2, 0, 0, 0
noise_note 2, 10, 1, 18
noise_note 2, 0, 0, 0
noise_note 2, 13, 1, 18
noise_note 2, 0, 0, 0
noise_note 2, 8, 1, 18
noise_note 2, 0, 0, 0
noise_note 2, 11, 1, 18
noise_note 2, 0, 0, 0
noise_note 2, 6, 1, 18
noise_note 2, 0, 0, 0
noise_note 2, 9, 1... |
IF !DEF(INC_LCDC)
INC_LCDC = 1
INCLUDE "src/display/WaitVBlank.asm"
; Turns the LCD on
;
; @destroys hl
lcd_on: MACRO
ld hl, rLCDC
set 7, [hl]
ENDM
; Turns the LCD off. Does NOT wait until Vblank
;
; @destroys hl
lcd_off_unsafe: MACRO
ld hl, rLCDC
res 7, [hl]
ENDM
; Turns off the LCD.
; If... |
lda {c1}
sta $fe
lda {c1}+1
sta $ff
lda ($fe),y |
MODULE posx
SECTION code_driver
PUBLIC posx
PUBLIC _posx
EXTERN __mode
EXTERN __console_x
EXTERN tmode
INCLUDE "target/gb/def/gb_globals.def"
; int8_t posx(void);
posx:
_posx:
LD A,(__mode) ; Banked
AND T_MODE
JR NZ,posx_1
... |
AP2equAPmulXunsgEorP:
MLTU22: ; MLTU22 \ AP(2)= AP* Xunsg(EOR P)
ld a,(regX)
ld (varQ),a ; Q = regX
AP2equAPmulQunsgEorP:
: ;.MLTU2 \ AP(2)=AP*Qunsg(EORP)
xor $FF ; use 2 bytes of P and A for result
srl a
ld (varPhi),a ; hi P+1
xor a
ld b,16
ld hl,varP
rr (hl) ; P \ lo
.MUL7: ... |
.include("elf.inc")
.cpu(all)
.target(elf32)
//.external(_GLOBAL_OFFSET_TABLE_)
//.external(printf = "printf")
.section(".text", SHF_ALLOC | SHF_EXECINSTR){
.entrypoint
.public(main)
main:
mov eax,4
mov ebx,1
mov ecx,offset TextString
mov edx,TextLength ... |
page ,132
title doexec -- (xenix) exec a child process
;***
;doexec.asm - execute a child process
;
; Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved.
;
;Purpose:
; defines _doexec() - execute a child process (overlay existing process)
; This is complicated and involves some knowledge of DOS
; ar... |
PROCESSOR 6502
; Add top 2 floats on stack
MAC addfloat ; @push
plfloattofac
plfloattoarg
import I_FPLIB
jsr FADDT
pfac
ENDM
; Subtract top 2 floats on stack
MAC subfloat ; @push
plfloattofac
plfloattoarg
import I_FPLIB
jsr FSUBT
pfac
ENDM
; Multiply top 2 floats on stack
MAC mulfloat ; @push
... |
include "../../../src/common/assert.inc"
include "../../../src/common/struct.inc"
// reuse struct should error out
namespace point {
struct()
field(xPos, 2)
field(yPos, 2)
endstruct()
}
namespace point {
struct() // ERROR
}
|
GLOBAL getStackPtr
GLOBAL setStackPtr
GLOBAL buildStack
GLOBAL loadTR
GLOBAL loadGDTR
GLOBAL flushPaging
%include "./asm/macros.m"
PD equ 0x10000
loadTR:
mov rax,rdi
mov rbx, cs
ltr ax
ret
gdtr dw 0 ;Limit
dq 0 ;Base
loadGDTR:
mov [gdtr+2], rdi
mov rax, rsi
mov [gdtr], ax
lgdt [gdtr]
ret
f... |
; Test the page wrapping bug in the indirect addressing mode of the JMP instruction
;
; Expected Value: $00 = $65
;
; 6502js fails this test, works fine in Visual 6502, of course
; Setup addresses
LDA #$16
STA $02FF ; LSB
LDA #$00
STA $0300 ; MSB it should read
LDA #$06
STA $0200 ; MSB it actually will read
; Put B... |
.data
message_title: .asciiz "Program to calculate the root of a quadratic equation \n"
message1: .asciiz "Enter value for a\n "
message2: .asciiz "Enter value for b\n "
message3: .asciiz "Enter value for c\n "
neg_one: .float -1.0
number1: .float 4.0
number2: .float 2.0
complex_root: .asciiz ... |
//******************************************************************************
// alttp_msu.asm
//
// Author: qwertymodo
// Date Created: 1 Nov 2014
// Date Modified: 7 Nov 2014
// Assembler: bass v14
//
// Implements MSU-1 audio streaming in The Legend of Zelda: A Link to the Past
// Original patch by C... |
/*************************************************************************/
/* */
/* LD-CELP G.728 */
/* */
/* Low-Delay ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: Spell Check library
FILE: spell.asm
AUTHOR: Andrew Wilson, Feb 4, 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descri... |
DisplayOakLabEmailText:
ld a, [wSpritePlayerStateData1FacingDirection]
cp SPRITE_FACING_UP
ret nz
call EnableAutoTextBoxDrawing
tx_pre_jump OakLabEmailText
OakLabEmailText::
text_far _OakLabEmailText
text_end
|
SECTION code_clib
SECTION code_l
PUBLIC l_neg_64_dehldehl
EXTERN l_cpl_64_dehldehl, l_inc_64_dehldehl
l_neg_64_dehldehl:
; negate dehl'dehl
;
; enter : dehl'dehl = longlong
;
; exit : dehl'dehl = -longlong
;
; uses : af, de, hl, de', hl', carry unaffected
call l_cpl_64_dehldehl
... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; convert 1 to a double precision float and store in xmm0
mov ecx, 1
cvtsi2sd xmm0, ecx
;TEST_BEGIN_RECORDING
; load 2.5 (in double precision float form)
lea rcx, [rsp-8]
mov DWORD [rcx], 0
mov DWORD [rcx+4], 0x40040000
subsd x... |
.text
## Player 1
.eqv ESQ_1 0x1C000000 #A -> Andar Esquerda
.eqv DIR_1 0x23000000 #D -> Andar Direita
.eqv CIMA_1 0x1D000000 #W -> Pular
.eqv BAIXO_1 0x1B000000 #S -> Abaixar
.eqv SOCO_1 0x31000000 #N -> Soco
.eqv CHUTE_1 0x32000000 #B -> Chute
.eqv HADUKEN 0xF023F02A #HADUKEN
.e... |
; ===============================================================
; Feb 2014
; ===============================================================
;
; int w_vector_shrink_to_fit(w_vector_t *v)
;
; Release any excess memory allocated for the vector's array.
;
; After calling, vector.capacity == vector.size
;
; ===========... |
; Global Descriptor Table
; https://wiki.osdev.org/Global_Descriptor_Table
gdt_init:
; load GDT (reloading)
mov rax, GDT_PTR
lgdt [rax]
ret
section .data
GDT:
dq 0
dq 0x0020980000000000 ; ring 0, code segment
dq 0x0020F80000000000 ; ring 3, code segment, DPL=11=3
; P=... |
; ===============================================================
; Dec 2013
; ===============================================================
;
; int stricmp(const char *s1, const char *s2)
;
; Perform caseless compare of string s1 to string s2. Return
; when the first differing char is found with *s1 - *s2.
;
; ==... |
Name: ys_mplay3.asm
Type: file
Size: 155260
Last-Modified: '2016-05-13T04:51:15Z'
SHA-1: B80E3649D8C2E703067BFF75235AD9C357F6459F
Description: null
|
//////////////////////////////////////////////////////////////////////////////
// nv_sprite_raw_collisions_code.asm
// Copyright(c) 2021 Neal Smith.
// License: MIT. See LICENSE file in root directory.
//////////////////////////////////////////////////////////////////////////////
// Contains code, data, and supporting ... |
; Prueba de velocidad de lectura del disco duro:
; mide el tiempo de leer 2 Mbs
; TMR1:
ldi r16, 0x05
out TCCR1B,r16
clr r16
out TCNT1H,r16
out TCNT1L,r16
clr r16
sts LBA_DIR, r16
sts LBA_DIR+1, r16
sts LBA_DIR+2, r16
sts LBA_DIR+3, r16
speed_loop:
ldi r16, 1
sts SECTOR_... |
TITLE Reset-Disabling program (No_Reset.asm)
; This program disables the usual DOS reset command
; (Ctrl-Alt-Del), by intercepting the INT 9 keyboard
; hardware interrupt. It checks the shift status bits
; in the MS-DOS keyboard flag and changes any Ctrl-Alt-Del
; to Alt-Del. The computer can only b... |
; ----------------------------------------------------------------------------
; Copyright (c) 2016, Microsoft Research, Daan Leijen
; This is free software; you can redistribute it and/or modify it under the
; terms of the Apache License, Version 2.0. A copy of the License can be
; found in the file "license.txt" at t... |
; 1 "synth_i586.S"
; 1 "<built-in>"
; 1 "<command line>"
; 1 "synth_i586.S"
; 33 "synth_i586.S"
; 1 "mangle.h" 1
; 13 "mangle.h"
; 1 "config.h" 1
; 14 "mangle.h" 2
; 1 "intsym.h" 1
; 15 "mangle.h" 2
; 34 "synth_i586.S" 2
%include "asm_nasm.inc"
_sym_mangle dct64_i386
_sym_mangle synth_1to1_i586_asm
EXTERN dct64_i386... |
PlaySlowCry:
ld a, [wScriptVar]
call LoadCry
jr c, .done
ld hl, wCryPitch
ld a, [hli]
ld h, [hl]
ld l, a
ld bc, -$140
add hl, bc
ld a, l
ld [wCryPitch], a
ld a, h
ld [wCryPitch + 1], a
ld hl, wCryLength
ld a, [hli]
ld h, [hl]
ld l, a
ld bc, $60
add hl, bc
ld a, l
ld [wCryLength], a
ld a, h
ld [w... |
CeladonMansionRoofHouse_Script:
jp EnableAutoTextBoxDrawing
CeladonMansionRoofHouse_TextPointers:
dw CeladonMansion5Text1
dw CeladonMansion5Text2
CeladonMansion5Text1:
TX_FAR _CeladonMansion5Text1
db "@"
CeladonMansion5Text2:
TX_ASM
lb bc, EEVEE, 25
call GivePokemon
jr nc, .asm_24365
ld a, HS_CELADON_MANSI... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=
;TEST_FILE_META_END
; SUB32ri
mov ebx, 0xc
;TEST_BEGIN_RECORDING
sub ebx, 0x44444
;TEST_END_RECORDING
|
PAGE 60,132
TITLE Edlcmd2 - PART2 procedures called from EDLIN
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;======================= START OF SPECIFICATIONS =========================
... |
/*
* rgb_dmx.asm
*
* 8 channel dmx receiver with 10-bit resolution bit-angle-modulation (BAM)
*
*/
.include "m32def.inc"
.equ F_CPU = 16000000 ; cpu speed
.def tmp = r16
.def flags = r17
.def timerCompareCount = r18
.def OVFCompL = r19
.def OVFCompH = r20
.def SREGBuffer = r21
.def dmxByte = r22
.def... |
.loadtable "m12-give-strings/m12-give-table.tbl"
.str "@\creceiver took\n the \citem\n from \csender's stuff." |
Route9_Object:
db $2c ; border block
def_warps
def_signs
sign 25, 7, 11 ; Route9Text11
def_objects
object SPRITE_COOLTRAINER_F, 13, 10, STAY, LEFT, 1, OPP_JR_TRAINER_F, 5
object SPRITE_COOLTRAINER_M, 24, 7, STAY, LEFT, 2, OPP_JR_TRAINER_M, 7
object SPRITE_COOLTRAINER_M, 31, 7, STAY, RIGHT, 3, OPP_JR_TRAINER... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.