content stringlengths 23 1.05M |
|---|
; void bv_priority_queue_destroy(bv_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_bv_priority_queue
PUBLIC bv_priority_queue_destroy
EXTERN asm_bv_priority_queue_destroy
defc bv_priority_queue_destroy = asm_bv_priority_queue_destroy
|
; --------
; Helpers
; --------
macro cm_header(title)
table ../resources/header.tbl
db #$28, "<title>", #$FF
table ../resources/normal.tbl
endmacro
macro cm_numfield(title, addr, start, end, increment, jsrtarget)
dw !ACTION_NUMFIELD
dl <addr>
db <start>, <end>, <increment>
dw <jsrtarget>
... |
; Copyright (c) 2021, Conor Mika
; All rights reserved.
; This source code is licensed under the BSD-style license found in the
; LICENSE file in the root directory of this source tree.
; Linking
global delay_cycle
; delay_cycle: delay one clk
;
; delays by one CPU cycle (nop)
; DO NOT USE FOR REAL TIMING
; JUST FO... |
LoadTileMapToTempTileMap::
; Load wTileMap into wTempTileMap
ldh a, [rSVBK]
push af
ld a, BANK(wTempTileMap)
ldh [rSVBK], a
hlcoord 0, 0
decoord 0, 0, wTempTileMap
ld bc, wTileMapEnd - wTileMap
call CopyBytes
pop af
ldh [rSVBK], a
ret
Call_LoadTempTileMapToTileMap::
xor a
ldh [hBGMapMode], a
call LoadTem... |
SECTION code_stdio
PUBLIC __stdio_lock_tryacquire
EXTERN asm_mtx_trylock, l_offset_ix_de
__stdio_lock_tryacquire:
; Try to acquire the FILE lock but don't block
;
; enter : ix = FILE *
;
; exit : ix = FILE *
; carry set if failed to acquire
;
; uses : af
push bc
push de
... |
; $Id: VMMRC0.asm 69221 2017-10-24 15:07:46Z vboxsync $
;; @file
; VMMRC0 - The first object module in the link.
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistrib... |
; int printf_unlocked(const char *format, ...)
SECTION code_stdio
PUBLIC _printf_unlocked
EXTERN asm_printf_unlocked
defc _printf_unlocked = asm_printf_unlocked
|
asm TicTacToe
import ../STDL/StandardLibrary
import ../STDL/CTLlibrary
signature:
domain Coord subsetof Integer
enum domain Sign = {CROSS | NOUGHT}
enum domain Status = {TURN_USER | TURN_PC}
controlled board: Prod(Coord, Coord) -> Sign
controlled status: Status
monitored userChoiceR: Coord //scelta coordinata ... |
; NB: the error is that there is no room to place the unionized section in,
; so RGBASM can't possibly error out.
IF !DEF(SECOND)
SECTION "bloat", WRAMX[$d000], BANK[2]
ds $fe0
SECTION UNION "test", WRAMX, BANK[2]
db
ELSE
SECTION UNION "test", WRAMX, ALIGN[6]
db
ENDC
|
;
; jfdctfst.asm - fast integer FDCT (non-SIMD)
;
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; This file should be assembled with NASM (Netwide Assembler),
; can *not* be assembled with Microsoft'... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Database manager.
FILE: dbCode.asm
AUTHOR: John Wedgwood, Jun 21, 1989
ROUTINES:
Name Description
---- -----------
VMOpen Open or creat... |
format PE64 console
entry _start
section '.idata' data readable import
include "win64a.inc"
library kernel32, 'kernel32.dll', \
msvcrt, 'msvcrt.dll'
import kernel32, ExitProcess, 'ExitProcess'
import msvcrt, printf, 'printf', \
malloc, 'malloc', \
free, 'free'
section '.text' ... |
;
; Basic keyboard handling for the Jupiter ACE
; By Stefano Bodrato Feb. 2001
;
; getk() Read key status
;
;
; $Id: getk.asm,v 1.5 2016-05-18 21:25:24 dom Exp $
;
SECTION code_clib
PUBLIC getk
PUBLIC _getk
.getk
._getk
call $336
cp 5 ; Delete?
jr nz,nodel
ld a,8
.nodel
IF STANDARDESCAPECHARS
cp 13
jr nz... |
;Main.s by Spencer Morley-Short, Kyle Melton
;1/30/19
;Slave_LCD
INCLUDE 'derivative.inc'
XDEF _Startup, main, _Viic
XREF __SEG_END_SSTACK ; symbol defined by the linker for the end of the stack
ORG $0060
;----I2C-VARIBLES-----------------------------
IIC_addr: DS.B 1
IIC_msg: DS.B 1 ; enable 32 bit t... |
load $a 2
load $b 3
load $c 0
load $d 0
add $c $c $a
addi $d $d 1 # counter
ife $d $b 9
jmp 5
nop
|
; Draw particles according to their state
particle_draw:
.(
.(
sprite_offset = tmpfield4
ldx #0 ; X points on the current bytes on the current block
lda #PARTICLE_FIRST_SPRITE*4
sta sprite_offset
process_one_block:
; Skip the current block if deactivated
lda particle_blocks+PARTICLE_BLOCK_OFFSET_PARAM, x
beq skip_blo... |
// Runs an infinite loop that listens to the keyboard input.
// When a key is pressed (any key), the program blackens the screen,
// i.e. writes "black" in every pixel. When no key is pressed, the
// program clears the screen, i.e. writes "white" in every pixel.
// detect keyboard input
(START)
@KBD
D=M
//... |
; a kernel(monitor now) that provides program options;
org 0x100
SECTION monitor align=16
;=========================================
set_seg:
mov ax, cs
mov ds, ax
mov es, ax
cli
mov ss, ax
mov ax, 0x1000
mov sp, ax
mov bp, ax
sti
print_hint:
call clear_screen
.set_cursor:... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Oki 9-pin print drivers
FILE: graphicsHi7IntY.asm
AUTHOR: Dave Durran 1 March 1990
ROUTINES:
Name Description
---- -----------
... |
; Project made by Yoav Shai.
; The image files should be 320x200, 256 color BMPs.
; When I wrote this thing, only God and I knew how it worked.
; Today? He stands alone.
IDEAL
MODEL small
STACK 100h
DATASEG
played db 0 ; used to flag whether we should show insturctions or not
fail... |
; Original address was $BB20
; World 7 giant piranha 2
.word W7I2_PrizeL ; Alternate level layout
.word W7I2_PrizeO ; Alternate object layout
.byte LEVEL1_SIZE_04 | LEVEL1_YSTART_140
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_05 | LEVEL3_VSCROLL_LOCKLOW | LEVEL3_PIPENOTEXIT
.... |
;
; MSX specific routines
; by Stefano Bodrato, December 2007
;
; void msx_breakon();
;
; Restore disabled BREAK
;
;
; $Id: msx_breakon.asm,v 1.1 2007/12/18 09:00:45 stefano Exp $
;
XLIB msx_breakon
XREF brksave
INCLUDE "#msxbasic.def"
msx_breakon:
ld hl,brksave
ld a,(hl)
cp 1
ret... |
# BEGIN ASSIGNMENT TAGS
# CWID = 890468754
# NaMe = Naoki Atkins
# Assignment = Mips6WhileLoopCountdown
# END ASSIGNMENT TAGS
.data
newline: .asciiz "\n"
.text
main:
Load: li $v0, 5
syscall
move $t0, $v0
Test: slti $t1, $t0, 1 # $t1 = 1 if $t0 < 1
beq $t1, $zero, While ... |
;
; Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved.
;
; Redistribution and use in source and binary forms, with or without modification,
; are permitted provided that the following conditions are met:
; 1. Redistributions of source code must retain the above copyright notice,
; this list... |
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: fprand.asm,v 1.2 2009/06/22 21:44:17 dom Exp $
;
INCLUDE "cpcfirm.def"
INCLUDE "cpcfp.def"
XLIB fprand
XDEF fprandc
XREF fa
.fprand
ld hl,fa+1
call firmware
.fprandc
defw CPCFP_FLO_RND
... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;SECTION NUMBER:
;
;GROUP MEMBER NAMES:
;1.
;2.
;3.
;4.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
.ORIG x5000 ; Start program at x5000
BITMAP_A:
; row 1
.FILL 0x0000
.FILL 0x0001
.FILL 0x0001
.FILL 0x0001
.FILL 0x0001
.... |
.name jmp_add.asm
RESET: BN org
.org 0x100
org:
LD 0xFFF0, BP
MOV BP, SP
LD loop, R4
LD 100, R3 // cmp to
LD 0, R1 // counter
LD 0x200, R2 // addr to finish
loop:
ADD 1, R1, R1
BNE R1, R3, R4
IO R1, 0x1 // should be 100
IO R2, 0x2 // should be 0x200
IO R3, 0x3 // should be 100
IO R4, 0x4 // should be... |
;==============================================================================
; Contents of this file are copyright Phillip Stevens
;
; You have permission to use this for NON COMMERCIAL USE ONLY
; If you wish to use it elsewhere, please include an acknowledgement to myself.
;
; https://github.com/feilipu/
;
; https:... |
* Implicit channel handling V0.0 1985 Tony Tebby QJUMP
*
section utils
*
xdef ut_impch open implicit channel (d3,d6)
xdef ut_impc3 open implicit channel (d3) or default #3
xdef ut_impin open implicit channel input or default #3
*
xref ut_chan get #channel
xref ut_fopnp open channel (wi... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: body.asm
AUTHOR: Steve Scholl, Nov 15, 1989
ROUTINES:
Name Description
---- -----------
GrObjBodySetBoundsLow
GrObjBodyAlloc
G... |
section .data
Snippet db "KANGAROO"
section .text
global _start
_start:
nop
; Put your experiments between the two nops...
mov ebx,Snippet
mov eax,8
DoMore: add byte [ebx],32
inc ebx
dec eax
jnz DoMore
; Put your experiments between the two nops...
nop
|
pushpc
; Waitkey
org $0EFB90
; 0efb90 lda $00f4
; 0efb93 ora $00f6
; 0efb96 and #$c0
; 0efb98 beq $fba6
LDA $F4 ; vanilla pointlessly used address; dp is better
JSL idle_waitkey ; now we have an easy 4 bytes here for the JSL
; EndMessage
org $0efbbb
; 0efbbb lda $f4
; 0efbbd ora $f6
JSL idle_endmessage
; Me... |
;
; Sharp OZ family functions
;
; ported from the OZ-7xx SDK by by Alexander R. Pruss
; by Stefano Bodrato - Oct. 2003
;
;
; void ozsound(unsigned divisor);
;
; ------
; $Id: ozsound.asm,v 1.1 2003/10/27 17:03:40 stefano Exp $
;
XLIB ozsound
LIB ozinitsound
ozsound:
call ozinitsound
xor ... |
LI R2, 0x04 # number of iterations (4)
LI R0, 0x00 # n-2 number
LI R1, 0x01 # n-1 number
JNE R2, loop
loop:
LI R3, 0x01
SUB R2, R3
JEQ R2, end
LI R3, 0x00 # reset temp
ADD R3, R0 # F(n) = F(n-2)
ADD R3, R1 # + F(n-1)
MOV R0, R1 # F(n-2) -> F(n-1)
MOV R1, R3 # F(n-1) -> F(n)
SW R3, 0x1b... |
; overworld_sprite struct members (see data/sprites.asm)
const_def
const SPRITEDATA_ADDR ; 0
const SPRITEDATA_ADDR_HI ; 1
const SPRITEDATA_SIZE ; 2
const SPRITEDATA_BANK ; 3
const SPRITEDATA_TYPE ; 4
const SPRITEDATA_PALETTE ; 5
NUM_SPRITEDATA_FIELDS EQU const_value
; sprite types
const_def 1
cons... |
;
; jdcolext.asm - colorspace conversion (SSE2)
;
; Copyright 2009, 2012 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2012, 2016, D. R. Commander.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyrigh... |
; A142471: a(0) = a(1) = 0; thereafter a(n) = a(n-1)*a(n-2) + 2.
; 0,0,2,2,6,14,86,1206,103718,125083910,12973452977382,1622770224612082123622,21052933202100473722674133293917606
sub $0,1
lpb $0
sub $0,1
add $2,9
div $2,2
mov $3,$1
mov $1,$2
mul $2,$3
lpe
div $1,2
mov $0,$1
|
Name: mn_hp_smcset.asm
Type: file
Size: 65916
Last-Modified: '1993-08-24T11:34:54Z'
SHA-1: BB136156E9C266793F2583ED891C925363F27922
Description: null
|
BITS 16
[global _start]
[extern main]
[extern AI]
[extern Update]
[global Players]
[global Bombs]
[global Powers]
[global PASSED_DATA]
[global STATE_DATA]
[global PlayerHP]
[global PlayerNOHARM]
[global BossHP]
[global BossNOHARM]
WinCol equ 20
WinRow equ 12
GridWidth equ 16
UpdateTimes equ 60
VideoBuffer equ 0x8... |
;===============================================================================
; HYBRiS (c) 1995 The Unforgiven/Immortal Riot
; Brief description:
; TSR COM-infecting, full-stealth virus
; Self-encrypted
; Wasn't scannable when it was released by FP/Tbav/AVP..
; Has quite some collection of grafical payloads (hoping ... |
; uint __CALLEE__ sp1_ScreenStr_callee(uchar row, uchar col)
; 02.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_ScreenStr_callee
PUBLIC ASMDISP_SP1_SCREENSTR_CALLEE
EXTERN sp1_GetUpdateStruct_callee
EXTERN ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
.sp1_ScreenStr_callee
pop hl
pop de
ex (s... |
; stdio_longzeroonstream
; 05.2008 aralbrec
PUBLIC stdio_longzeroonstream
; more common code from %li and %lx scan converters
.stdio_longzeroonstream
; we've read a 0 but have no way of pushing it back on the stream
; so take care of things here rather than in the common code
xor a ... |
SECTION code_fp_math32
PUBLIC ___fs2slong
EXTERN cm32_sdcc___fs2slong
defc ___fs2slong = cm32_sdcc___fs2slong
|
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80p_dsub
EXTERN cm48_sccz80p_dcallee1_0, am48_dsub
cm48_sccz80p_dsub:
; sccz80 float primitive
; Subtract two math48 floats.
;
; enter : AC'(BCDEHL') = double right_op
; stack = double left_op, ret
;
; exit : AC'(BCDEHL')... |
;;----------------------------------------------------------------------------;;
;; Align the position of the textbox in familiars menu
;; Copyright 2014 Benito Palacios (aka pleonex)
;;
;; Licensed under the Apache License, Version 2.0 (the "License");
;; you may not use this file except in compliance with the Lic... |
.data
array: .word 1 2 3 4 5 6 7 8 9 10
arraylen: .word 10
.text
main:
la $a0,array # Disregard this instruction for the counting
la $t0,arraylen # Disregard this instruction for the counting
lw $a1,0($t0)
add $v0,$zero,$zero
loop:
lw $t1,0($a0)
slt $t2,$t1,$v0
bne $t2,$zero,skip
add $v0,$zero,$t1
skip:... |
section .text
%ifdef TEST2x64
global bar
%else
global _bar
%endif
%ifdef TESTx64
bar:
%else
_bar:
%endif
mov EAX_COMMA_SPACE_ZERO
ret
|
title VRDev.cpp
.386
.387
includelib CPPOM30.LIB
includelib OS2386.LIB
CODE32 segment dword use32 public 'CODE'
CODE32 ends
DATA32 segment dword use32 public 'DATA'
DATA32 ends
CONST32_RO segment dword use32 public 'CONST'
CONST32_RO ends
BSS32 segment dword use32 public 'BSS'
BSS32 ends
EH_CODE segment dword use3... |
; void __CALLEE__ sp1_PutTilesInv_callee(struct sp1_Rect *r, struct sp1_tp *src)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
XLIB sp1_PutTilesInv_callee
XDEF ASMDISP_SP1_PUTTILESINV_CALLEE
LIB sp1_GetUpdateStruct_callee
XREF ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
XREF SP1V_DISPWIDTH, SP1V_UPDATELISTT... |
addi x1, x0, 128 // Stores memory starting locaiton of the string
ecall x1, x0, 9
upper: lbu x2, 0(x1) // Stores the first character of the string
beq x2, x0, End // Jumps to end when the null state is found
addi x2, x2, -32
sb x2, 0(x1)
addi x1, x1, 1
beq x0, x0, upper
End: ... |
KnowsMove:
ld a, MON_MOVES
call GetPartyParamLocation
ld a, [wPutativeTMHMMove]
ld b, a
ld c, NUM_MOVES
.loop
ld a, [hli]
cp b
jr z, .knows_move
dec c
jr nz, .loop
and a
ret
.knows_move
ld hl, .Text_knows
call PrintText
scf
ret
.Text_knows:
; knows @ .
text_far UnknownText_0x1c5ea8
text_end
|
xor a
ld hl, basescradr + #1031
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #01ed
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
ld d,a
ld e,a
ld (basescradr + #02ed), de
ld hl, basescradr + #05ce
ld (hl), a
inc hl
ld (hl), a
inc hl
ld (hl), a
inc hl
... |
; NoirVisor - Hardware-Accelerated Hypervisor solution
;
; Copyright 2018-2019, Zero Tang. All rights reserved.
;
; This file saves processor states for 64-bit processors.
;
; This program is distributed in the hope that it will be successful, but
; without any warranty (no matter implied warranty of merchantability o... |
;*
;* COW : Character Oriented Windows
;*
;* krun5.asm : Run/Exec
TITLE KRUN - Kernel RUN
include kernel.inc
include uevent.inc
;----------------------------------------------------------------------------
cbArgMax equ 79+1+3+128+2 ; Max size pszArg to DosExecPgm.
; 79 = max comspec filename size
; ... |
; int esxdos_f_close(uchar handle)
SECTION code_clib
SECTION code_esxdos
PUBLIC esxdos_f_close
EXTERN asm_esxdos_f_close
defc esxdos_f_close = asm_esxdos_f_close
|
port1 equ 2A0h
port2 equ 2A8h
code segment
assume cs:code
start:
L1:mov dx,port1
in al,dx
call delay
mov dx,port2
out dx,al
call delay
jmp L1
mov ah,4ch
int 21h
delay proc
mov cx,0
wat2:push cx
mov cx,200h
wat1:loop wat1
pop cx
lo... |
.text
.intel_syntax noprefix
.file "matmul_simd.c"
.section .rodata.cst8,"aM",@progbits,8
.p2align 3 # -- Begin function read_timer
.LCPI0_0:
.quad 4652007308841189376 # double 1000
.text
.globl read_timer
.p2align 4, 0x90
.type read_timer,@function
read_timer: # ... |
;Flash "0" on the screen repeatedly
start:
LD V0, 0x10
LD V1, 0x10
LD I, 0x0
startloop:
LD V3, 0x2
LD DT, V3 ;flash every two seconds
wait:
LD V3, DT
SE V3, 0 ;if dt == 0 draw
jp wait
draw:
DRW V0, V1, 5
jp startloop
|
// write some numbers to lsu
$0 -> lsu@in0
$77 -> lsu@in1
st -> lsu@opc
$1 -> lsu@in0
$177 -> lsu@in1
st -> lsu@opc
$2 -> lsu@in0
$33 -> lsu@in1
st -> lsu@opc
|
;-----------------------------------------------------------------------------------------
;
; Percussion Sequencer
; called from main track PSG driver
;
subProcessDrums
ldy psgCurrentVoice ; get voice
lda psgSubStackOffset,y ; stack offset for voice
and #$F0 ; get track mode
cmp #$10 ... |
INCLUDE Irvine32.inc
.data
score SDWORD ?,0
titleScore BYTE "Score:",0
titleGrade BYTE " Grade:",0
grade BYTE ?,0
grA BYTE "A",0
grB BYTE "B",0
grC BYTE "C",0
grD BYTE "D",0
grF BYTE "F",0
out_of_range BYTE "The integer is not <= 100 and >= 0",0
.code
main PROC
call Randomize
mov eax,101 ;set random range fr... |
ORG 0H
MOV 0F0H, #05H ;DIRECT ADDRESSING
MOV A, #05H ; IMMEDIATE ADDRESSING
MUL AB
MOV R7, A ; REGISTER ADDRESSING
HERE: SJMP HERE
|
;
; Copyright (c) 2016, Alliance for Open Media. All rights reserved
;
; This source code is subject to the terms of the BSD 2 Clause License and
; the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
; was not distributed with this source code in the LICENSE file, you can
; obtain it at ww... |
;******************************************************************************
;* FD_MUL32.ASM - 32 BIT STATE - *
;* *
;* Copyright (c) 1996 Texas Instruments Incorporated *
... |
;** msinit.asm -- ms-dos initialization code
;
; an000 version 4.0 jan. 1988
; an007 ptm 3957 - fake version for ibmcache.com
; an008 ptm 4070 - fake version for ms windows
;
;
;
;
;
; Revision History
; ================
;
; M019 SR 08/30/90 Changed nu... |
;IO1NasmLinux32.asm
;
;assemble: nasm -f elf -l IO1Nasm32Linux.lst IO1Nasm32Linux.asm
;link: gcc -o IO1Nasm32Linux IO1Nasm32Linux.o
;run: ,/IO1Nasm32Linux
;
;For 64 bit Linux
;nasm -felf64 IO1Nasm32Linux.asm && ld IO1Nasm32Linux.o && ./a.out
;
;for debugging with gdb or DDD ... |
SECTION code_fp_math16
PUBLIC ___hadd
PUBLIC _addf16
EXTERN cm16_sdcc_add
defc ___hadd = cm16_sdcc_add
defc _addf16 = cm16_sdcc_add
|
; void tshr_cls_pix(uchar pix)
SECTION code_clib
SECTION code_arch
PUBLIC _tshr_cls_pix_fastcall
EXTERN asm_tshr_cls_pix
defc _tshr_cls_pix_fastcall = asm_tshr_cls_pix
|
assume cs:code,ds:data
data segment
x db 12h
y db 45h
data ends
code segment
start:
mov ax,data
mov ds,ax
mov ah,x
mov bh,y
add ah,bh
shr ah,1
shr ah,1
mov ah,4ch
Int 21h
code ends
end start
|
frame 1, 04
frame 2, 16
setrepeat 5
frame 3, 05
frame 2, 05
dorepeat 3
frame 3, 05
frame 1, 04
frame 4, 05
endanim
|
; void *wv_priority_queue_pop(wv_priority_queue_t *q)
SECTION code_adt_wv_priority_queue
PUBLIC _wv_priority_queue_pop
EXTERN _wa_priority_queue_pop
defc _wv_priority_queue_pop = _wa_priority_queue_pop
|
;================================
;DATA
;================================
read_msg db 81 dup('$')
out_msg db 81 dup('$')
SPLIT_SCREEN DB 80 DUP ('='), '$'
CHATTING_NOTIFICATION_1 DB '-To End Chatting with ','$'
CHATTING_NOTIFICATION_2 DB ' press F3', '$'
val db ?
loc_up db 1, 0
loc_down db 14, 0
CHATSEND EQU 130
CHATR... |
; stdio_numprec
; 05.2008 aralbrec
XLIB stdio_numprec
LIB stdio_utoa_any
INCLUDE "../stdio.def"
; outputs unsigned integer to string buffer taking precision into account
;
; enter : a = precision
; b = num chars in buffer
; c = radix
; de = number
; hl = & next free position in des... |
; int fzx_puts(struct fzx_state *fs, char *s)
SECTION code_font_fzx
PUBLIC fzx_puts
EXTERN fzx0_puts_callee
fzx_puts:
pop af
pop de
pop ix
push hl
push de
push af
jp fzx0_puts_callee
|
segment .rdata, align=16
round dq 0000000000002000h
colround dq 0000200000002000h
segment .text
global _vdasm_resize_table_row_8_k8_4x_SSE41
_vdasm_resize_table_row_8_k8_4x_SSE41:
push ebp
push edi
push esi
push ebx
movq xmm6, [round]
pshufd xmm6, xmm6, 0
mov ebp, [esp + 4 + 16] ... |
copyright zengfr site:http://github.com/zengfr/romhack
00307C ext.l D0 [1p+54, boss+54, weapon+54]
0030B2 ext.l D1 [boss+54, container+54, enemy+54, weapon+54]
0039FA movem.l D0-D3, -(A6)
0039FE movem.l D0-D3, -(A6)
009ACA dbra D5, $9ac8
03C68A move.w #$280, ($54,A1) [weapon+50]
03C690 move.w #$68, (... |
; Calculate the number of cycles to delay until the start of the colorburst.
; Takes into account:
; - 1 cycle to calculate the delay length.
; - 5 cycles of overhead for the delay.
; - 3 cycles to load the pulse pattern into the serial buffer.
; - 3 cycles to turn the serial port on.
ldi r30, COLORBURST_START_CYCLES -... |
* Spreadsheet 28/12-91
* - cell order calculations
section prog
include win1_keys_wman
include win1_keys_wstatus
include win1_keys_wwork
include win1_keys_err
include win1_mac_oli
include win1_spread_keys
xdef cel_next ; get next cell in block
xdef cel_nxtg ; get n... |
;// Main.asm - The file that contains the main game loop and launcher
;// Authors: Thomas and Ben
;// Since: 3/16/18
.386
.model stdcall, flat
.stack 8192
include irvine32.inc
include characterHeader.inc
include enemyHeader.inc
include itemHeader.inc
.data
include getItemName.inc
include getEnemyName.inc
include i... |
; test
.include "./m328Pdef.inc"
// test
/* test2 */
/*
test
*/
;add UMSEL0,UMSEL0 ; two layer label eval
add r0,r31
; test 3
|
extern ExitProcess
extern MessageBoxA
extern printf
NULL equ 0
MB_OK equ 0
; Parameter passing:
; RCX, RDX, R8, R9, rest is pushed
; another source suggests 5th and 6th param to be following
; [rsp+20h], [rsp+28h]
section .text
global main
main:
sub rsp, 40 ; Allocate stack space for parameters
mov r9, MB_OK
m... |
title execve -- stub to disable C execs and spawns
;--------------------------------------------------------------------------
;
; Microsoft C Compiler Runtime for MS-DOS
;
; (C)Copyright Microsoft Corporation, 1985, 1985, 1986
;
;--------------------------------------------------------------------------
;
; Purpose
... |
DSEG SEGMENT PARA PUBLIC 'DATA'
F DW ?
N DW 6
DSEG ENDS
SSEG SEGMENT PARA STACK 'STACK'
DB 200h DUP(?)
SSEG ENDS
CSEG SEGMENT PARA 'CODE'
ASSUME CS:CSEG, DS:DSEG, SS:SSEG
Fact proc NEAR
MOV BP, SP ;сохраняем текущее положение указателя sp
MOV CX, [BP+4] ;в cx последний параметр / число
... |
;===============================================================================
;
; $Workfile: I386BRUS.ASM $
;
; Contents:
; This file contains the assembly code for some of the brush realization.
;
; Copyright (c) 1996, Cirrus Logic, Inc.
;
; $Log: X:/log/laguna/nt35/displays/cl546x/i386/I386BRUS.ASM ... |
global _start
section .text
_start:
sub byte [worst_case], 4
add byte [worst_case+1], 4
add byte [worst_case], 4
sub byte [worst_case+1], 4
section .data
worst_case db 0x00, 0xfe
|
; Read some sectors from the boot disk using our disk_read function [org 0x7c00]
mov [BOOT_DRIVE], dl ; BIOS stores our boot drive in DL, so it’s
; best to remember this for later.
mov bp, 0x8000 ; Here we set our stack saf... |
; Simplest uninitialised data
IDEAL
SEGMENT MAIN
ASSUME CS:MAIN,DS:UDATA
ORG 100h
start:
mov al, [unknown]
mov si, OFFSET unknown
mov [BYTE PTR unknown], '*'
int 20h
ENDS MAIN
SEGMENT UDATA UNINIT
unknown DB ?
DW ?
DD ?
DQ ?
DT ?
ENDS UDATA
END start
|
include "./src/Includes.inc"
section "TimerHandler", rom0
Timer::
ld a, TIMER_INTERRUPT_CODE
ld [wLastInterrupt], a ; Save last interrupt code
ld a, [wTimerCount]
inc a
ld [wTimerCount], a
jr z, TimerQuartSec ; Increment timer counter
reti
TimerQuartSec::
ld a, TIMER_TMA
ld [wTimerCount], a ; Reset timer ... |
; GLOBAL 7SEG CONSTANTS
N0 EQU 11000000B ; #DEFINE N0 11000000B
N1 EQU 11111001B
N2 EQU 10100100B
N3 EQU 10110000B
N4 EQU 10011001B
N5 EQU 10010010B
N6 EQU 10000010B
N7 EQU 11111000B
N8 EQU 10000000B
N9 EQU 10010000B
NA EQU 10001000B
NB EQU 10000011B
NC EQU 11000110B
ND EQU 10100001B
NE_ EQU 10000110B
N... |
[bits 64]
section .init
pop rax
ret
section .fini
pop rax
ret |
PUBLIC lapcat_send
; fast call
.lapcat_send
ld a, l
call 0xb8db
ld hl, 0
ret c
dec hl
ret
|
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: parseFunctionUtils.asm
AUTHOR: Cheng, 3/91
ROUTINES:
Name Description
---- -----------
InitFunctionEnv
ProcessListOfArgs
DoR... |
;;
;; Copyright (c) 2012-2021, Intel Corporation
;;
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions are met:
;;
;; * Redistributions of source code must retain the above copyright notice,
;; this list of conditions and... |
.model small
.stack 100h
.data
str db 'ce nice e assembly'
len equ $ - str
.code
; printing macro
macro print p
mov dl, p
mov ah, 02h
int 21h
endm print
; iterate through array and print its contents
proc printiter str, len
lea si, str
mov cx, l... |
# Lista 1 ex 10
# Author: Leonardo Benitez
# Brief: Faça um laço que seja executado 10 vezes.
# Variables map:
# $s0 = i
lw $s0, 0 ($gp) # load A
lw $s1, 4 ($gp) # load B
mul $s1, $s0, $s1 # B = A*B
sw $s1, 8($gp)
|
; A291299: Partial domination number of Fibonacci cube Gamma_n.
; 2,2,2,4,6,8,10,14,20,30
trn $0,2
seq $0,179041 ; Partial sums of ceiling(Fibonacci(n)/3).
mul $0,2
add $0,2
|
def fg99
GPLWSR6 EQU >83EC
; Entry point copied to RAM
fgstart:
li r2, 20 ; sequence length: prefix (8) + sender (12)
fgsend:
clr @>6000 ; signal new byte
li r1, >0038 ; >7000 >> 9
movb *r0+, r1
src r1, 7 ; >7000 + (byt... |
; Wkst11_1.asm - Write a logical shift instruction that multiplies the contents of EAX by 16
INCLUDE Irvine32.inc
.data
.code
main PROC
mov eax, 2
shl eax, 4
INVOKE ExitProcess, 0
main ENDP
END main |
;
; ANSI Video handling for the CCE-MC1000
; By Stefano Bodrato - March 2013
;
; Text Attributes
; m - Set Graphic Rendition
;
; The most difficult thing to port:
; Be careful here...
;
;
; $Id: f_ansi_attr.asm,v 1.3 2016-06-12 16:06:42 dom Exp $
;
SECTION code_clib
PUBLIC ansi_attr
EXTERN INVRS
EXTERN ... |
\\ Input file 'ball15.png'
\\ Image size=16x18 pixels=16x18
.ball15
EQUB 8, 6 ;char width, char height
.ball15_data
.ball15_data_00 ; x_offset=0, y_offset=0
EQUB 32,96,120,124,124,112,32,32
EQUB 96,127,127,127,49,123,117,32
EQUB 106,127,127,127,127,127,127,32
EQUB 34,127,127,127,127,127,55,32
EQUB 32,34,43,47,47,35,32,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.