content stringlengths 23 1.05M |
|---|
; size_t b_array_capacity_fastcall(b_array_t *a)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC _b_array_capacity_fastcall
EXTERN asm_b_array_capacity
defc _b_array_capacity_fastcall = asm_b_array_capacity
|
; void *zx_saddrcup(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC zx_saddrcup
EXTERN asm_zx_saddrcup
defc zx_saddrcup = asm_zx_saddrcup
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _zx_saddrcup
defc _zx_saddrcup = zx_saddrcup
ENDIF
|
namespace menu {
seek(codeCursor)
namespace largeText {
enqueue pc
seek($ee53fc); jsl description; jmp $5409 //descriptions
seek($ee5532); jsl chapterName; jmp $553f //chapter names
seek($ee51f2); jsl main; nop #15 //text renderer for both description types
seek($ee540b); jsl test; nop #2 ... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27027.1
TITLE C:\Users\DAG\Documents\_Clients\CodeProject Authors Group\Windows on ARM\libxml2\libxml2-2.9.9\chvalid.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRT
INCLUDELIB OLDNAMES
PUBLIC _xmlIsBaseCharGroup
PUBLIC _xmlIs... |
DEVICE AMSTRADCPC6128
ORG 0x1200
CPC_PAGE_1 MACRO page
ld b,$74
ld a,page
or %11000000
ld c,a
out (c),c
ENDM
CPC_SET_PEN0_AND_BORDER MACRO
ld b,$7F
ld c,$00 ; penr=0
out (c),c
ld c,a
out (c),c
ld c,$10
out (c),c
ld c,a
out (c),c
ENDM
star... |
; Demonstrate MessageBoxA (MessageBox.asm)
; Demonstration of the Windows API MessageBox function, using
; various icons and button configurations.
INCLUDE Irvine32.inc
.data
captionW BYTE "Warning",0
warningMsg BYTE "The current operation may take years "
BYTE "to complete.",0
captionQ ... |
; ** Map 'BruceIsBackHome' Tile Collision **
; A = Title
; X = Actor
rts |
; ---------------------------------------------------------
; After compare, branch if
;
; reg < data : BCC
; reg = data : BEQ
; reg > data : {BEQ elsewhere} BCS
; reg <= data : BCC BEQ
; reg >= data : BCS
; ---------------------------------------------------------
; Zero page variables
ORG &0000
GUARD &0090
... |
; unsigned char esx_ide_bank_total(unsigned char banktype)
SECTION code_esxdos
PUBLIC esx_ide_bank_total
EXTERN asm_esx_ide_bank_total
defc esx_ide_bank_total = asm_esx_ide_bank_total
|
lda {m1}
sta $fe
lda {m1}+1
sta $ff
lda ($fe),y
sec
sbc #1
sta ($fe),y |
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_VRAMmemcpy_brief
asm_SMS... |
; !to "picload.prg", cbm
* = $801
loader_start = $334
interrupt_vector = $314
!source "constants.asm"
; Basic line: "1 sys2061"
!byte $0b, $08, $01,$00, $9e, $32, $30, $36, $31, 0, 0, 0
!zone picloader {
; Copy background colour
ldx loader_pic_start + 10000
stx $d020
stx $d021
; Copy bitmap data
ldx #0
.copy... |
;
; Copyright (c) 2020 Bitdefender
; SPDX-License-Identifier: Apache-2.0
;
section .text
;
; In-guest boot loader code, this code tries to locate the disk containing the MBR responsable for loading the OS
;
;;;%define DEBUG_REALMODE_GUEST
global __GuestPxeMbrLoaderCode
global __GuestPxeMbrLoaderCodeEnd
global __Guest... |
copyright zengfr site:http://github.com/zengfr/romhack
003A0E movem.l D0-D3, -(A6)
003A12 move.w D4, ($4e,A6)
009ACA dbra D5, $9ac8
057A5C move.l #$2000000, ($2,A6) [weapon+ E, weapon+10]
057A64 clr.b ($42,A6) [weapon+ 2, weapon+ 4]
057B76 move.l #$2040000, ($2,A6)
057B7E move.w ($4c,A6), D1 [weapo... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : list.asm
; Purpose : LIST Command
; Date : 29th August 2019
; Author : Paul Robson (paul@robsons.org.uk)
;
; ****... |
.data # array declarations follow this line
A: .word 2, 0, -2, 0, 3, -3, 0, 0, 4, -4 # array declaration
.text # instructions follow this line
main: la $t1, A # address of the first element of array A
addi $t0, $0, 10 # $t0 = 10
addi $s0, $0, 0 # $s0 = i
for: beq $s0, $t0, do... |
;
; Part of OS4, exception_wrappers.asm
; Author: Mikael Henriksson, miklhh
;
global general_protection_fault_wrapper
general_protection_fault_wrapper:
push ebp
mov ebp, esp
extern general_protection_fault
call general_protection_fault
pop ebp
iret
global divide_by_zero_error_wrapper
divide_by_zero_err... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
SaveBackRegion proc ODC:DWORD,TopX:DWORD,TopY:DWORD,BWidth:DWORD,BHeight:DWORD
LOCAL dcMem:DWORD
LOCAL BMMem2:DWORD
LOCAL BMemOld:DWORD
;saves a region from the specified DC into a bitmap
; and returns the handle for the bitmap
invok... |
LDA #$00
STA OAMADDR
LDA #$02
STA OAMDMA
LDA #%10010000 ; enable NMI, sprites from Pattern Table 0, background from Pattern Table 1
STA PPUCTRL
LDA #%00011110 ; enable sprites, enable background, no clipping on left side
STA PPUMASK
LDA #$00 ;;tell the ppu there is no bac... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: amateurSound.asm
AUTHOR: Chris Boyke
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
----- ---- ----... |
section .text
[bits 32]
[extern main]
call main
jmp $ |
SECTION .text
GLOBAL test
test:
shl r10, 0x0
shl r10, 0x00; fully padded
shl r10, 0
shl r10, 0x1
shl r10, 0x12
shl r10, 0x14
shl r10, 0x15
shl r10, 0x1b
shl r10, 0x1c
shl r10, 0x2
shl r10, 0x24
shl r10, 0x27
shl r10, 0x29
shl r10, 0x2b
shl r10, 0x2d
shl r10, 0x3
shl r10, 0x37
shl r10, 0x3d
shl r10, 0x6
shl r10, 0x8
shl... |
; Don't even think of reading this code
; It was automatically generated by rmd-586.pl
; Which is a perl program used to generate the x86 assember for
; any of elf, a.out, BSDI, Win32, gaswin (for GNU as on Win32) or Solaris
; eric <eay@cryptsoft.com>
;
TITLE rmd-586.asm
.386
.model FLAT
_TEXT SEGMENT
P... |
// Draw one line of VVRAM to VRAM
// ZP1: VVRAM even line address
// ZP2: VVRAM odd line address
// ZP3: VRAM line address
// Affects: AC,YR,Z,C
.macro DrawVVramLine() {
// index of the graphics table value (0-15)
lda #0
sta ZP4
// offset counter
lda #0
sta ZP4+1
loop:
// ... |
; Adição de legendas na rom Rockman ZX (J)
; Este é um port das rotinas presentes na rom Megaman ZX (E)
;
; Escrito por Diego Hahn - Janeiro de 2016
;
;
; PS: As rotinas estão com nomes genéricos.. Fica para uma versão futura um melhor detalhamento
;
.nds
.open "053.bin", "053_novo.bin", 0x0
.arm ... |
OAM_SPRITES EQU 40
SECTION "OAM WRAM", WRAM0, ALIGN[8]
wOAM::
ds 4 * OAM_SPRITES
SECTION "OAM", ROM0
; copy DMA routine to HRAM
WriteDMATransferToHRAM:
ld c, LOW(hDMA)
ld b, DMATransferEnd - DMATransfer
ld hl, DMATransfer
.copyLoop
ld a, [hli]
ld [$FF00+c], a
inc c
dec b
jr nz, .copyLoop
ret
; this rou... |
.386
.model FLAT, C
PUBLIC COUNT
.CODE
COUNT:
PUSH EBP
MOV EBP, ESP
ADD EBP, 8
MOV EBX, [EBP] ; X
MOV ECX, [EBP + 4] ; L
XOR EAX, EAX
XOR edx, edx
COMP:
BT [EBX], EDX
JNC ZERO
INC EAX
ZERO:
INC EDX
E_COMP:
LOOP COMP
POP EBP
RET
E... |
!ADD = "CLC : ADC"
!SUB = "SEC : SBC"
!BLT = "BCC"
!BGE = "BCS"
!INVENTORY_SWAP = "$7EF38C"
!INVENTORY_SWAP_2 = "$7EF38E"
!NPC_FLAGS = "$7EF410"
!NPC_FLAGS_2 = "$7EF411"
!MAP_OVERLAY = "$7EF414" ; [2]
!PROGRESSIVE_SHIELD = "$7EF416" ; ss-- ----
!HUD_FLAG = "$7EF416" ; --h- ----
!FORCE_PYRAMID = "$7EF416" ; ---- p---... |
BITS 64
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_OF
;TEST_FILE_META_END
; ROL8ri
mov ch, 0x56
;TEST_BEGIN_RECORDING
rol ch, 0x2
;TEST_END_RECORDING
|
;
; Gzip file decompressor
;
INCLUDE "Macros.asm"
DEBUG: equ 1
GZIP_CRC32: equ 1
ZLIB_ADLER32: equ 1
org 100H
READBUFFER_SIZE: equ 1000H
WRITEBUFFER_SIZE: equ 8000H
HEAP_SIZE: equ 1180H
STACK_SIZE: equ 100H
TPA: ds 2C00H
RAM: ds 0100H
RAM_RESIDENT: equ RAM
READBUFFER: ds VIRTUAL READBUFFER_SIZE
WRITEBUFFER: ds V... |
// This is a comment.
@8192
@123
// This is a comment too.
@556
|
; ******************************************************************************
; ******************************************************************************
;
; Name : tokenise.asm
; Purpose : RPL/32 Tokeniser
; Author : Paul Robson (paul@robsons.org.uk)
; Created : 6th October 2019
;
; ******************... |
; uchar tshc_aaddr2cy(void *aaddr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_aaddr2cy
EXTERN zx_saddr2cy
defc tshc_aaddr2cy = zx_saddr2cy
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshc_aaddr2cy
defc _tshc_aaddr2cy = tshc_aaddr2cy
ENDIF
|
// Lag Frame Counter
origin 0x0E1A2C
base 0x80326A2C
jal 0x8027EF18 // ROM 0x39F18
origin 0x003BB0 // Hijack BUF display
base 0x80248BB0
lui t8, 0x8034
lw t7, 0x9F20 (t8) // Read current value
lw t6, 0x9F24 (t8) // Read previous value
sw t7, 0x9F24 (t8) // Copy current value to previous value
subu t5, t7,... |
; Polymorphic equivalent for
; Linux/x86 iptables --flush
; Original at: http://shell-storm.org/shellcode/files/shellcode-825.php
; 2018-07-14 SLAE-1294 assignment 6
section .text
global _start
_start:
; Let's make esi our zero
xor esi,esi
; Going to use a PUSHAD to set up most of the data
; Do an initial null ... |
; Game Code (PCE-specific)
;==============================================================================;
;-- Defines/Constants --;
PADDLE_DEFAULT_Y_POS = (240/2)+48
PADDLE_MIN_Y_POS = 109
PADDLE_MAX_Y_POS = 240
BALL_DEFAULT_X = (256/2)+29 ; screen center x + 29
BALL_DEFAULT_Y = (240/2)+61 ; screen center x ... |
.model flat,c
.const
NegMask qword 8000000000000000h,0
AbsMask qword 7FFFFFFFFFFFFFFFh,-1
ConstCoeff_0_0 real8 0.0
ConstCoeff_1_0 real8 1.0
ConstCoeff_2_0 real8 2.0
ConstCoeff_3_0 real8 3.0
ConstCoeff_9_0 real8 9.0
ConstCoeff_27_0 real8 27.0
ConstCoeff_54_0 real8 54.0
ConstCoeff_Ne... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Resource Bindings:
//
// Name Type Format Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// PictureSampler sampler NA ... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE:
AUTHOR: Cheng, 10/91
ROUTINES:
Name Description
---- -----------
DataChainGetNextEntry
DataChainInitStackFrame
DataChainL... |
; void __CALLEE__ HeapRealloc_callee(void *heap, void *p, unsigned int size)
; 12.2006 aralbrec
SECTION code_clib
PUBLIC HeapRealloc_callee
PUBLIC _HeapRealloc_callee
PUBLIC MAHeapRealloc
PUBLIC ASMDISP_HEAPREALLOC_CALLEE
EXTERN HeapAlloc_callee, HeapFree_callee
EXTERN ASMDISP_HEAPALLOC_CALLEE, ASMDISP_HEAPFREE_CALLE... |
section .multiboot_header
header_start:
dd 0xe85250d6 ; a u32 'magic' number required by the multiboot 2 standard
dd 0 ; architecture 0 (protected mode i386)
dd header_end - header_start ; header length
dd 0x100000000 - (0xe85250d6 + 0 + (header_end - header_start)) ; u32 checksum
; this 0x100000000 hack ... |
org 100h
[map all]
section .bss ; follows=.data
buffer resb 123h
section .data
msg db "this is a message", 0
section .text
mov ax, msg
call showax
mov ax, buffer
call showax
ret
;-----------------
showax:
push cx
push dx
mov cx, 4 ; four digits to show
.to... |
SECTION "Test", ROM0
list: MACRO
db _NARG
if _NARG > 0
db \#
endc
db -1
ENDM
list
list 42
list $aa, $bb, $cc, $dd, $ee
person: MACRO
db \1, \2, \3, \4, \5
ENDM
object: MACRO
x = \1
y = \2
shift 2
person y, x, \#
ENDM
person 5, 10, $33, $44, $55
object 12, 6, $66, $77, $88
echo: MACRO
println "\#"
EN... |
copyright zengfr site:http://github.com/zengfr/romhack
024824 move.b D0, ($af,A6)
024828 moveq #$10, D0
025098 move.b D0, ($af,A6)
02509C move.b D0, ($23,A6)
0289E6 move.b D0, ($af,A6)
0289EA move.b D0, ($23,A6)
028D78 move.b D0, ($af,A6)
028D7C move.w ($8,A6), ($b2,A6)
02A082 move.b D0, ($af... |
orbboost: MACRO
db \1
dw \2
db \3, \4
ENDM
OrbBoosts:
orbboost GRISEOUS_ORB, GIRATINA, DRAGON, GHOST
orbboost ADAMANT_ORB, DIALGA, DRAGON, STEEL
orbboost LUSTROUS_ORB, PALKIA, DRAGON, WATER
db -1
|
; TRANSFER 'Hello World!' TO 'HELLO WORLD!', THEN DISPLAY IT ON SCREEN
; AND STORE THIS STRING TO THE ORIGIN ADDRESS.
DATA SEGMENT
STRING DB 'Hello World!' ; DEFINE THE STRING
LEN EQU $-STRING ; $ MEANS PRESENT ADDRESS, SUB THE BEGINNING ADDRESS OF STRING TO GET LENGTH
DATA ENDS
CODE SEGMENT
ASSUME CS:COD... |
global start
%include 'common.inc'
section code
start:
mov ax, data
mov ds, ax
SET_VIDEO_MODE MODE_V640x350x16
; Colored pattern
cld
mov ax, VGA_VIDEO_SEGMENT
mov es, ax
mov ah, 3 ; initial pattern
mov cx, 4 ; number of planes
WITH_PORT SC, SC_MAP_MASK
.FillBitMap:
mov al, ... |
.code
; void Core_Array_Reverse_(const int* source, const int* destination, int arrayLength)
Core_Array_Reverse_ proc frame
; Prolog
push rsi
.pushreg rsi
push rdi
.pushreg rdi
.endprolog
test r8d, r8d
jle InvalidLength
mov rsi, rcx ; Source
mov rdi, rdx ; Destination
mov ecx, r8d ; Array length
lea rsi, [rsi+rcx*t... |
; long atol(const char *buf)
SECTION code_clib
SECTION code_stdlib
PUBLIC atol
EXTERN asm_atol
defc atol = asm_atol
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _atol
defc _atol = atol
ENDIF
|
;***********************************DEBUG REGISTERS ***************************************
[BITS 64]
;defines de Debug
%define DEBUG_DR0 DummyTask
%define DEBUG_DR1 DummyTask
%define DEBUG_DR2 DummyTask
%define DEBUG_DR3 DummyTask
%define D_DB0_LOCAL 0x0001 ;habilitacion desabilitacion de cada debug regist... |
/*
* Decode both intra chroma blocks
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
#if !defined(__DECODE_... |
.data
matrix: .space 10000
str_space: .asciiz " "
str_enter: .asciiz "\n"
.text
li $v0, 5
syscall
move $s0, $v0
li $v0, 5
syscall
move $s1, $v0
li $t0, 0
loop_1_begin:
beq $t0, $s0, loop_1_end
li $t1, 0
loop_2_begin:
beq $t1, $s1, loop_2_end
mulu $t2, $s1, $t0
addu $t2, $t2, $t1
sll $t2, $t2, 2
li $v0, 5
syscall
sw... |
; SBSEXT_TK2_MDV - Extended MDV driver. Reverse engineered by Marcel Kilgus
xdef mdv_init
xdef mdv_io
include 'dev8_keys_iod'
include 'dev8_keys_qdos_io'
include 'dev8_keys_qdos_ioa'
include 'dev8_keys_qdos_sms'
include 'dev8_keys_hdr'
include 'dev8_keys_err'
include 'dev8_keys_sbt'
include 'dev8_keys_sys'
... |
.file "newmov"
.init main
<main:
mov r0 $-2147483647 ; Absolute Limit (as defined by numerical_limit<int32_t>)
mov r0 $2147483646 ; Absolute Limit (as defined by numerical_limit<int32_t>)
> |
; div 除法指令
; div 寄存器 | 内存地址
; 8 位 商 -> al ; 余数 -> ah
; 16位 商 -> ax ; 余数 -> dx
; 32位 商 -> eax ; 余数 -> edx
; 64位 商 -> rax ; 余数 -> rdx
; div byte [0x2002] | div bh
; div bx | div word [0x2002]
; div ebx | div dword [0x2002]
; div rbx | div qword [0x2002]
; 计算378 / 37
start:
mov ax,378
mov bl,37
div bl
end_... |
; auto-generated by gen-masm.sh
.CODE
DCThunk_size = 24
DCArgs_size_win64 = 80
DCArgs_size_sysv = 128
DCValue_size = 8
FRAME_arg0_win64 = 48
FRAME_arg0_sysv = 16
FRAME_return = 8
FRAME_parent = 0
FRAME_DCArgs_sysv = -128
FRAME_DCValue_sysv = -136
FRAME_DCArgs_win64 = -80
FRAME_DCValue_win64 = -80
CTX_thun... |
;=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
;very simple jwasm gtk example (written by jcfuller)
; create a Linux binary
; 1. assemble: jwasm -elf -zcw -Fo=gtk01.o gtk01.asm
; 2. link with LD: ld -s -o gtk01 gtk01.o -I/lib/ld-linux.so.2 `pkg-config --libs gtk+-2.0`
;
; create... |
processSoundDriver:
; determine whether to use portamento player
; or regular player...
lda soundMode
beq polyMode
and #MONO_MASK
beq nextSoundModeCheck1
jmp playMono
nextSoundModeCheck1:
lda soundMode
and #PORT_MASK
beq nextSoundModeCheck2
jmp playPort
nextSoundModeCheck2:
lda soundMode
and #ARP_MASK
beq... |
;**************************************************************************
; arch/z80/src/ez80/ez80f92_handlers.asm
;
; Licensed to the Apache Software Foundation (ASF) under one or more
; contributor license agreements. See the NOTICE file distributed with
; this work for additional information regarding copyright o... |
; Verifies INC
.segment "VECTORS"
.word $eaea
.word init
.word $eaea
.segment "ZEROPAGE"
; Used for zero page address mode testing
zp:
.byte %00000000
.byte $FF
.byte %01111111
zpx:
.byte $00 ; Padding
.byte %00000000
.byte $FF
.byte %01111111
.code
init:
inc zp
inc zp + 1
inc zp ... |
.code
GAMEFLAGS = $DE00
SPR_X_LO = $10
SPR_X_HI = $11
SPR_Y = $12
SCR_RAM = $13
COL_RAM = $15
SCR_RAM2 = $15
RASTER_LO = $17
RASTER_HI = $18
RASTERBAR = $19
SCROLLPOS = $1A
BGCOL = $1B
TMP0 = $30
TMP1 = $31
reset:
;--- VIC setup --------------------------------------------------------
... |
PROGRAM 8
BR L5
L0:
PROC 0
LDLADDR -8
LOADW
LOADW
LDLADDR -4
LOADW
CMP
BGE L3
RET 8
BR L4
L3:
LDLADDR -8
LOADW
LDLADDR -4
LOADW
LDCINT 3
ADD
STOREW
L4:
RET 8
L5:
LDGADDR 0
LDCINT 5
STOREW
LDGADDR 4
LDCINT 6
STOREW
LDGADDR 0
LDGADDR 4
... |
;/*
; * Experiment assembly implementation of block FIR filter - Chapter 3
; * blockFir.asm
; *
; * Description: This is the assembly language implementation of block FIR filter
; *
; * Created on: May 13, 2012
; * Author: BLEE
; *
; * For the book "Real Time Digital Signal Processing:
; * ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1993 -- All Rights Reserved
PROJECT: PC GEOS J
MODULE: JCalendar/Holiday
FILE: holidayData.asm
AUTHOR: TORU TERAUCHI, JUL 28, 1993
ROUTINES:
NAME DESCRIPTION
---- -----------
GetHolidayDateY... |
lda ({z2}),y
sta {m1}
iny
lda ({z2}),y
sta {m1}+1
cpx #0
beq !e+
!:
lda {m1}+1
cmp #$80
ror {m1}+1
ror {m1}
dex
bne !-
!e:
|
cpu 68020
irp op,b,w,l,q,s,d,x,p
dc.op [3]25
dc.op "Hello World"
ds.op 9
endm
irp op,s,d,x,p
dc.op 1.5
dc.op constpi*1000
dc.op constpi/1000
dc.op -constpi
endm
|
VibratoTable: ; blech.,
dw .v020 ; 01
dw .v040 ; 02
.v020
db 0, -1, -2, -2, -1, 0, 1, 2, 2, 1
db $80
dw .v020
.v040
db 0, -1
db $80
dw .v040 |
;
;=======================================================================
; HDIAG Z180 UART Driver
;=======================================================================
;
z2u_jptbl:
jp z2u_cinit ; Initialize serial port
jp z2u_cin ; Read byte
jp z2u_cout ; Write byte
jp z2u_cist ; Input status
j... |
%include "../utils/printf32.asm"
section .text
extern printf
global main
main:
push ebp
mov ebp, esp
mov eax, 211 ; to be broken down into powers of 2
mov ebx, 1 ; stores the current power
; TODO - print the powers of 2 that generate number stored in EAX
search:
cmp ebx, eax ; ebx - e... |
; ************ DESCRIZIONE SOTTOPROGRAMMA ************
Il seguente sottoprogramma denominato OVER_UNDER riceve nei registri R0 e R1 due numeri a 16 bit
in complemento a due ed effettua la somma R0 + R1 restituendola nel registro R0 al programma chiamante,
indicando se:
- il risultato è corretto (R1 = 0)
- si è verific... |
.186
.model TINY
.code
public _genint
public _exec
_SS dw 00
_SP dw 00
_cur_SS dw 00
_genint proc near
push bp
push ax
mov bp,sp
mov al,2[bp+4]
mov byte ptr [gen+1],al
pop ax
jmp gen
gen:
int 0h
pop bp
ret
_genint endp
_exec proc near
... |
%define STDOUT 1 ;standard output file
%define SYS_WRITE 4 ;system call write()
%define SYS_EXIT 1 ;system call exit()
%define EXIT_SUCCESS 0 ;EXIT_SUCCESS exit status
global main ;entry point main
bits 32 ;this program works in 32-bit protected mode
section .data
msg... |
; ----------------------------------------------------------------------------------------
; This is a simple asm function called "adder" that adds 100 and add two parameters
; as function should return an byte we use eax.
; -----------------------------------------------------------------------------------------
se... |
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.5.0 #9253 (Mar 24 2016) (Linux)
; This file was generated Mon Jul 23 11:34:32 2018
;--------------------------------------------------------
.module crc
.optsdcc -mmcs51 --model-large
;---... |
copyright zengfr site:http://github.com/zengfr/romhack
001638 move.w A0, -(A4) [base+326]
00163A move.w A4, ($326,A5) [base+41A, base+41C, base+41E]
00163E addq.w #1, ($31a,A5) [base+326]
01A676 move.w D0, ($31a,A5) [base+326]
021574 clr.w ($31a,A5) [base+326]
copyright zengfr site:http://github.com/zengfr/... |
SECTION code_driver
PUBLIC asm_disk_write
EXTERN ide_write_sector
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called from diskio.h
;
; DRESULT disk_write (
; BYTE pdrv, /* Physical drive number to iden... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; display blanking control functions
; LCDStatus is 0c024h in the OS;
;
; ozslow is same than ozunblankscreen
;
;
; ------
; $Id: ozfast.asm,v 1.3 2016/06/28 14:48:17 dom Exp $
;
SECTION c... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the t... |
;// DEMO9B.ASM
;//
;// Copyright (C)2005-2011 The NASMX Project
;//
;// This is a fully UNICODE aware, typedefined demo that demonstrates
;// using NASMX typedef system to make your code truly portable between
;// 32 and 64-bit systems using either ASCII or UNICODE
;//
;// Contributors:
;// Bryant Keller
;... |
;
; feilipu, 2019 May
;
; 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/.
;
;-------------------------------------------------------------------------
; m32_hypot - z8... |
Music_Routes1_Ch0::
tempo 152
volume 7, 7
vibrato 4, 2, 3
duty 2
toggleperfectpitch
Music_Routes1_branch_9be9::
notetype 12, 10, 1
rest 4
octave 4
D_ 2
D_ 6
D_ 2
D_ 6
D_ 2
D_ 1
C# 1
octave 3
B_ 1
octave 4
C# 1
octave 3
A_ 2
A_ 2
A_ 6
octave 4
C# 2
C# 6
C# 2
C# 4
octave 3
A_ 2
octave 4
C... |
%macro ISR_NOERRCODE 1 ; define a macro, taking one parameter
[GLOBAL isr%1] ; %1 accesses the first parameter.
isr%1:
cli
push dword 0
push dword %1
jmp isr_common_stub
%endmacro
%macro ISR_ERRCODE 1
[GLOBAL isr%1]
isr%1:
cli
push dword %1
jmp isr_common_stub
%endmacro
ISR... |
SECTION code_fp_math32
PUBLIC cm32_sccz80_tan
EXTERN cm32_sccz80_fsread1, _m32_tanf
cm32_sccz80_tan:
call cm32_sccz80_fsread1
jp _m32_tanf
|
include "../lib/toolbox.asm"
TEST034 EQU 0
CHECK_CRTC: ; Si A000==#55, on ne fait pas le test CRTC
; Test si CRTC 1 ou 2
if TEST034==1
TestLongueurVBL
print "Test VBL"
ld b,#f5 ; Boucle d'attente de la VBL
SyncTLV1
in a,(c)
rra
jr nc,synctlv1
NoSyncTLV1
in a,(c) ... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Busy soft ;; 26.11.2018 ;; Tape generating library usage example ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
org #8000
start ld hl,#0000
ld de,#4000
ld bc,#1B00
ldir
ret
length = $-start
include Ta... |
; uint zx_bitmask2px_fastcall(uchar bitmask)
SECTION code_arch
PUBLIC _zx_bitmask2px_fastcall
_zx_bitmask2px_fastcall:
INCLUDE "arch/zx/display/z80/asm_zx_bitmask2px.asm"
|
;;; iNES HEADER
.inesprg 1 ; 1x 16KB PRG code
.ineschr 1 ; 1x 8KB CHR data
.inesmap 0 ; mapper 0 = NROM, no bank swapping
.inesmir 1 ; background mirroring
;;; CONSTANTS
; Controller Constants
CONTROLLER_A = 1 << 7
CONTROLLER_B = 1 << 6
CONTROLLER_SELECT = 1 << 5
CONTROLLER_START ... |
; A quick and dirty library for CGA Low-res mode
; By Raphaël Assénat, started December 2015
;
;
%include 'lang.asm'
%include 'animation.asm'
%define SCREEN_WIDTH 320
%define SCREEN_HEIGHT 200
%define BITS_PER_PIXEL 2
%define OPTIMISED_PUT_VERT_LINE
%define SET_BGCOLOR_IMPLEMENTED
%define FLASH_BACKGROUND_IMPLEMENTED... |
; int wv_stack_reserve(wv_stack_t *s, size_t n)
SECTION code_clib
SECTION code_adt_wv_stack
PUBLIC wv_stack_reserve_callee
EXTERN w_vector_reserve_callee
defc wv_stack_reserve_callee = w_vector_reserve_callee
|
section .data
CHAR_UPPER: equ 0x0001
CHAR_LOWER: equ 0x0002
CHAR_DIGIT: equ 0x0004
CHAR_UNDER: equ 0x0008
info_table:
db 0 , 0 , 0 , 0
db 0 , 0 , 0 , 0
db 0 , 0 , 0 , 0
db 0 , 0 , 0 , 0
db 0 , 0 , 0 ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: graphicsLineStyle.asm
AUTHOR: Steve Scholl, Oct 12, 1989
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name ... |
SFX_Battle_2E_Ch5:
duty_cycle 0
square_note 2, 15, 1, 512
square_note 3, 15, 1, 1792
square_note 4, 15, 1, 1280
square_note 5, 15, 1, 2032
sound_loop 8, SFX_Battle_2E_Ch5
sound_ret
SFX_Battle_2E_Ch6:
duty_cycle_pattern 2, 3, 0, 3
square_note 2, 14, 1, 770
square_note 3, 14, 1, 2034
square_note 4, 14, 1, 15... |
user/_forktest: file format elf64-littleriscv
Disassembly of section .text:
0000000000000000 <print>:
0: 1101 addi sp,sp,-32
2: ec06 sd ra,24(sp)
4: e822 sd s0,16(sp)
6: e426 sd s1,8(sp)
8: 1000 addi s0,sp,32
a: 84... |
[HW60FPSFixv208]
moduleMatches = 0xE159AE91
# change SetBaseFramePerSec(2) calls to SetBaseFramePerSec(1), fixes UI being too fast and allows ingame to go beyond 30FPS
# (SetBaseFramePerSec divides the number 60 by the parameter to get the target framerate, so 2 = 30FPS, 1 = 60FPS)
0x0219D7B0 = li r3, 1 # Main::init
0... |
####################################################################
.data
#<Hier komen de gegevensdeclaraties>
printInfo:
.asciiz "\n[1] Nieuwe Rij Toevoegen.\n[2] Rijen Uitprinten\n[3] Leeftijd Zoeken\n[0] Programma stoppen.\n"
outOfBounds:
.asciiz "Het ingegeven nummer is out of bounds.\n"
newline:
.asciiz "\... |
dnl AMD64 mpn_mul_basecase.
dnl Contributed to the GNU project by Torbjorn Granlund and David Harvey.
dnl Copyright 2008 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU ... |
Name: System.asm
Type: file
Size: 12145
Last-Modified: '1992-02-13T07:47:47Z'
SHA-1: 83479E7C394249709F707C1FCCDB324BEEAA5071
Description: null
|
; requires NASM 2.09.10
org 0
bits 16
_start:
push byte 0x12
push word 0x1234
push dword 0x12345678
;===================general================
aaa
aad
aam
aas
adc al,al
adc al,0x10
add al,al
add al,0x10
and al,al
and al,0x10
bound si,[si]
bsf ax,ax
bsr ax,ax
bswap eax
bt ax,ax
btc ax,ax
btr a... |
PewterPokecenter_Script:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
PewterPokecenter_TextPointers:
dw PewterHealNurseText
dw PewterPokecenterText2
dw PewterJigglypuffText
dw PewterTradeNurseText
PewterHealNurseText:
script_pokecenter_nurse
PewterPokecenterText2:
text_f... |
; GetContext
mov r8, [rsp] ; Store the return address into r8
mov [rcx + 8 * 0], r8 ; Move the return address into the Context's RIP
lea r8, [rsp + 8 * 1]
mov [rcx + 8 * 1], r8 ; Store the value of RSP
mov [rcx + 8 * 2], rbx ; All other registers
mov [rcx + 8 * 3], rbp
mov [rcx + 8 * 4], r12
mov [rcx + 8 * 5], r13
mo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.