content stringlengths 23 1.05M |
|---|
Name: ys_chip2.asm
Type: file
Size: 158125
Last-Modified: '2016-05-13T04:52:57Z'
SHA-1: A3DB279205ED8E0A2DE36D4FFE613452095E3225
Description: null
|
global task_switch
task_switch:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, esp;
and eax, 0xfffff000; current
mov [eax], esp
mov eax, [ebp + 8]; next
mov esp, [eax]
pop edi
pop esi
pop ebx
pop ebp
ret
|
.definelabel TILE_SIZE,0x20
.definelabel PAL_SIZE,0x20
.definelabel FLIP_NONE,(0b00<<6)
.definelabel FLIP_HORI,(0b01<<6)
.definelabel FLIP_VERT,(0b10<<6)
.definelabel FLIP_BOTH,(0b11<<6)
.definelabel @SIZE_0,(0<<0)
.definelabel @SIZE_1,(1<<0)
.definelabel @SIZE_2,(2<<0)
.definelabel @SIZE_3,(3<<0)
.definelabel @SHAPE... |
global _start
_start:
call func
mov eax, 1
mov ebx, 0
int 0x80
func:
push ebp
mov ebp, esp
sub esp, 2
mov [esp], byte 'H'
mov [esp+1], byte 'i'
mov eax, 4
mov ebx, 1
mov ecx, esp
mov edx, 2
int 0x80
mov esp, ebp
pop ebp
ret
|
;******************************************************************************
;
; (C) Copyright MICROSOFT Corp., 1990-1991
;
; Title: COPYINST.ASM
;
; Version: 1.00
;
; Date: 24-Jul-1990
;
; Author: RAL
;
;------------------------------------------------------------------------------
;
; Change log:
;
; ... |
; float __uchar2fs (unsigned char uc)
SECTION code_fp_math48
PUBLIC cm48_sdcciyp_uchar2ds
EXTERN am48_double8u, cm48_sdcciyp_m482d
cm48_sdcciyp_uchar2ds:
; unsigned char to double
;
; enter : stack = unsigned char uc, ret
;
; exit : dehl = sdcc_float(uc)
;
; uses : af, bc, de, hl, bc', de',... |
list p=12f683
#include <p12f683.inc>
radix dec
; Begin
R0L EQU 0x20
R0H EQU 0x21
R1L EQU 0x22
R1H EQU 0x23
R2L EQU 0x24
R2H EQU 0x25
R3L EQU 0x26
R3H EQU 0x27
R4L EQU 0x28
R4H EQU 0x29
R5L EQU 0x2A
R5H EQU 0x2B
ORG 0x0000
BCF PCLATH,3
BCF PCLATH,4
GOTO L0003
ORG 0x0004
RETFIE
... |
;Testname=test; Arguments=-fbin -osmartalign64.bin; Files=stdout stderr smartalign64.bin
%use smartalign
bits 64
alignmode nop, 32
add ax,ax
align 32
alignmode generic, 32
add ax,ax
align 32
alignmode k7, 32
add ax,ax
align 32
alignmode k8, 32
add ax,ax
align 32
alignmode p6, ... |
; A047333: Duplicate of A032796.
; 1,2,3,5,6,8,9,10,12,13,15,16,17,19,20,22,23,24,26,27,29,30,31,33,34
mov $1,$0
mul $1,7
div $1,5
add $1,1
|
; THERE IS A STRING WITH 100 CHARACTERS, TEST THEM AND IF THERE IS A NUMBER(SUCH AS '1' '2' '3'...),
; SET THE FIFTH BIT OF CL 1, OTHERWISE SET IT 0.
DATA SEGMENT
STRING DB 50 DUP('A'),'1',49 DUP('B')
LEN EQU $-STRING
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV BX,... |
; TIMEPILOT
; simple fade out
org $5c00
jsr loadingFadeOut
lda <loadingFadeOut.fakeDlist
sta 560
lda >loadingFadeOut.fakeDlist
sta 561
jmp loadingFadeOut.waitF
.proc loadingFadeOut
ldy #15
continue
ldx #4
loop
lda 708,x
and #$f
beq next
dec 708,x
next
dex
bpl loop
js... |
Route5Script:
jp EnableAutoTextBoxDrawing
Route5TextPointers:
dw Route5Text1
Route5Text1:
TX_FAR _Route5Text1
db "@"
|
;Sorting integers using quicksort QSORT.ASM
;
; Objective: Sorts an array of integers using
; quick sort. Uses recursion.
; Input: Requests integers from the user.
; Terminated by entering zero.
; Output: Outputs the sorted arrray.
... |
.data 0x10020000
array: .space 80 # 20 words
.text
li $a0, 0x10020000
jal init_array
li $a0, 0x10020000
jal find_lowest_word_in_array
add $a0, $v0, $zero # lowest word in array
li $v0, 1 # print integer
syscall
b end
#------------------------#
init_array:
add $t2, $a0, $zero
li $t3, 0
_init_array_loop_start:
li $v0... |
SetHandler:
mov [rdi],ax
shr rax,16
mov [rdi+6],ax
shr rax,16
mov [rdi+8],eax
ret |
RocketHideoutB1F_Script:
call RocketHideout1Script_44be0
call EnableAutoTextBoxDrawing
ld hl, RocketHideout1TrainerHeader0
ld de, RocketHideoutB1F_ScriptPointers
ld a, [wRocketHideoutB1FCurScript]
call ExecuteCurMapScriptInTable
ld [wRocketHideoutB1FCurScript], a
ret
RocketHideout1Script_44be0:
ld hl, wCurren... |
; ----------------------------------------------------------------------------
; Altair, CIDLESA's 1981 arcade game remade for the ZX Spectrum and
; Amstrad CPC.
; ----------------------------------------------------------------------------
; --------------------------------------
; Sound for the AY chip as it is comm... |
ori $1, $0, 0
ori $2, $0, 13
ori $3, $0, 6
ori $4, $0, 14
sw $2, 0($0)
sw $4, 4($0)
sw $1, 8($0)
sw $3, 12($0)
sw $3, 16($0)
sw $3, 20($0)
sw $1, 24($0)
sw $3, 28($0)
sw $4, 32($0)
sw $2, 36($0)
sw $4, 40($0)
sw $2, 44($0)
sw $1, 48($0)
sw $4, 52($0)
sw $2, 56($0)
sw $1, 60($0)
sw $3, 64($0)
sw $4, 68($0)
sw $4, 72($0)... |
;
;Based on the SG C Tools 1.7
;(C) 1993 Steve Goldsmith
;
;$Id: vdcset.asm,v 1.1 2008/06/23 17:34:35 stefano Exp $
;
;set vdc reg, d = reg, e = val
XLIB vdcset
vdcset:
ld bc,0d600h
out (c),d
loop1:
in d,(c)
bit 7,d
jr z,loop1
inc bc
... |
;
; TI Gray Library Functions
;
; Written by Stefano Bodrato - Mar 2001
;
;
; $Id: g_clg.asm,v 1.7 2017-01-02 22:57:58 aralbrec Exp $
;
;Usage: g_clg()
INCLUDE "graphics/grafix.inc" ; Contains fn defs
PUBLIC g_clg
PUBLIC _g_clg
EXTERN graybit1
EXTERN graybit2
.g_clg
._g_clg
l... |
SECTION "Test",CODE[0]
ret
ret c
ret m
ret nc
ret nz
ret p
ret pe
ret po
ret z
reti
retn |
Name: ys_w66.asm
Type: file
Size: 22819
Last-Modified: '2016-05-13T04:50:34Z'
SHA-1: 0355E20FFE5749A9022548978358CE26A89B7858
Description: null
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: driDrive.asm
AUTHOR: Adam de Boor, Mar 9, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Des... |
lui $1,11446
ori $1,$1,7683
lui $2,581
ori $2,$2,27763
lui $3,21893
ori $3,$3,10250
lui $4,57996
ori $4,$4,10531
lui $5,22438
ori $5,$5,30601
lui $6,9166
ori $6,$6,39276
mthi $1
mtlo $2
sec0:
nop
nop
nop
or $4,$6,$6
sec1:
nop
nop
and $6,$3,$3
or $5,$6,$6
sec2:
nop
nop
addiu $6,$3,9682
or $6,$6,$6
sec3:
nop... |
* = 0 ; We just use * to count position in the CHR-rom, begin with zero is easy
; TILE $00 - rainbow
;
; 01233210
; 01233210
; 01233210
; 01233210
; 01233210
; 01233210
; 01233210
; 01233210
.byt %01011010, %01011010, %01011010, %01011010, %01011010, %01011010, %01011010, %01011010
.byt %00111100, %00111100, %00111100... |
;;; Segment 28BA (28BA:0000)
28BA:0000 00 00 00 00 42 6F 72 6C 61 6E 64 20 43 2B 2B 20 ....Borland C++
28BA:0010 2D 20 43 6F 70 79 72 69 67 68 74 20 31 39 39 31 - Copyright 1991
28BA:0020 20 42 6F 72 6C 61 6E 64 20 49 6E 74 6C 2E 00 44 Borland Intl..D
28BA:0030 69 76 69 64 65 20 65 72 72 6F 72 0D 0A 41 62 6E ivide er... |
.data
result1: .ascii "\nfirst value = "
result2: .ascii "\nsecond value = "
.text
main:
li $v0, 4
la $a0, result1
syscall
li $v0, 1
li $a0, 4
syscall
|
BITS 16
section .text
foo:
add eax, [ecx]
add eax, [ebp]
add eax, [esp]
add eax, [dword 100]
add eax, [dword 1600]
add eax, [ecx*1]
add eax, [ecx*2]
add eax, [ecx*4]
add eax, [ecx*8]
add eax, [ebp*1]
add eax, [ebp*2]
add eax, [ebp*4]
add eax, [ebp*8]
add eax, [184+ecx]
add eax, [dword 1600+ecx]
add eax, [100+ebp]
add e... |
; Textual Output Assembly Program
; === STACK SEGMENT ===
MyStack segment stack
DB 64 dup('12345678')
MyStack endS
; === DATA SEGMENT ===
MyData Segment
; --- Declare Varibles here ---
stringToPrint DB "Rick Astley$"
MyData endS
; === CODE SEGMENT ===
MyCode segment
Assume CS:MyCode,DS:MyData
; === INCLUDE DI... |
MODULE get_sprite_tile
PUBLIC get_sprite_tile
PUBLIC _get_sprite_tile
SECTION code_driver
INCLUDE "target/gb/def/gb_globals.def"
; uint8_t __LIB__ get_sprite_tile(uint8_t nb) NONBANKED;
get_sprite_tile:
_get_sprite_tile:
PUSH BC
LD HL,sp+4 ... |
org $cfc922
jml sm_check_ending_door
org $e9B1D0
jsl sm_check_ending_mb
org $e9B305
jml sm_check_ending_mb_event
org $c09E1C
jml sm_check_ending_mb_timer
org $e9B33C
jml sm_check_ending_mb_anim
org $cbde80
jml sm_setup_credits
org $f7fd00
base $b7fd00
sm_check_ending_door: ; Check ... |
editEchoTable:
.IF SRAM_MAP=32
lda #SRAM_ECHO_BANK
jsr setMMC1r1
.ENDIF
lda echoFirstRow
clc
adc echoCursorY
tax
lda echoRowsIndex,x
clc
adc echoCursorX
sta echoIndex
tay
ldx echoCursorX
lda writeScreen ;need to write screen?
beq @a
jsr writeEchoScreen ;yes
dec writeScreen ;i... |
// Tests if the `SETINI` (`$2133`) register reads the data-bus too early.
//
// This tests constantly writes the value `0x40` to `SETINI` (enable Mode 7
// EXTBG) while the previous value on the data-bus is `0x00`.
//
// Mode 7 EXTBG only uses 7 bits for the tile colour data. This means a mode 7
// tile with a data va... |
.ORIG 12288 ; = 0x3000
ADD R0 R0 0xf ; 0xf==15
TRAP 37 ; 37==0x25 |
assume cs:codesg
codesg segment
s:
db 4096 dup (0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
jmp s
; jmp short s
jmp near ptr s
jmp far ptr s
codesg ends
end s |
SECTION code_l_sccz80
PUBLIC l_i64_mult
EXTERN __i64_acc
EXTERN __i64_extra
EXTERN l_muls_64_64x64
EXTERN l_store_64_dehldehl_mbc
; Entry: acc = RHS (divisor)
; sp+2 = LHS (dividend)
; Exit: acc = LHS * RHS
l_i64_mult:
ld hl,2
add hl,sp
ld de,__i64_extra
ld bc,8
ldir
ld ix,_... |
; A262588: Duplicate of A193140.
; 0,0,0,1,0,0,1,0,1,0,1,1,0,1,1,1,0,0,1
mov $1,$0
lpb $1
mod $0,3
cmp $0,0
sub $1,4
trn $1,3
lpe
|
; int isgreater(float x, float y)
SECTION code_fp_math48
PUBLIC cm48_sdcciy_isgreater
EXTERN am48_isgreater, cm48_sdcciyp_dread2
cm48_sdcciy_isgreater:
call cm48_sdcciyp_dread2
; AC'= y
; AC = x
jp am48_isgreater
|
DEVICE none
BLOCK -8000,11
DISP 0x1234
BLOCK -8000,12
ENDT
SAVEBIN "sjio_coverage4.bin", 1, 2 ; no device error
DEVICE zxspectrum48
BLOCK -8000,13
BLOCK &, & : BLOCK 20,& ; syntax errors
ORG 0xFFFC
DB "AHOY"
SAVEBIN "sjio_coverage4.bin", 0xFF... |
SECTION code_driver
PUBLIC ide_init
EXTERN __IO_IDE_COMMAND
EXTERN __IO_IDE_HEAD
EXTERN ide_wait_ready
EXTERN ide_test_error
EXTERN ide_write_byte
EXTERN ideStatus
;------------------------------------------------------------------------------
; Routines that talk with the IDE drive, these should be called by
;... |
padding off
include "AMPS/code/68k Macro Routines.asm" ; include macro'd routines
include "AMPS/code/68k Debug.asm" ; debug data blob
include "AMPS/code/68k Initialize.asm" ; initialization code for Dual PCM
include "AMPS/code/68k Main.asm" ; all the main & misc code. Flows directly to DAC Routines.asm
includ... |
Music_CherrygroveCity:
musicheader 4, 1, Music_CherrygroveCity_Ch1
musicheader 1, 2, Music_CherrygroveCity_Ch2
musicheader 1, 3, Music_CherrygroveCity_Ch3
musicheader 1, 4, Music_CherrygroveCity_Ch4
Music_CherrygroveCity_Ch1:
tempo 152
volume $77
dutycycle $3
tone $0001
vibrato $8, $15
stereopanning $f0
not... |
FightingDojo_Object:
db $3 ; border block
def_warps
warp 4, 11, 1, LAST_MAP
warp 5, 11, 1, LAST_MAP
def_signs
def_objects
object SPRITE_HIKER, 5, 3, STAY, DOWN, 1, OPP_BLACKBELT, 1
object SPRITE_HIKER, 3, 4, STAY, RIGHT, 2, OPP_BLACKBELT, 2
object SPRITE_HIKER, 3, 6, STAY, RIGHT, 3, OPP_BLACKBELT, 3
obje... |
ItemFinder:
farcall CheckForHiddenItems
jr c, .found_something
ld hl, .Script_FoundNothing
jr .resume
.found_something
ld hl, .Script_FoundSomething
.resume
call QueueScript
ld a, $1
ld [wItemEffectSucceeded], a
ret
.ItemfinderSound:
ld c, 4
.sfx_loop
push bc
ld de, SFX_SECOND_PART_OF_ITEMFINDER
call Wa... |
.ps2
.create "output.bin",0
.definelabel value,10007FFFh
.importobj "object_code.o"
.close
|
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publi... |
; Doubling of group elements
;
; Author: Daan Sprenkels <hello@dsprenkels.com>
%include "bench.asm"
%include "fe12_mul.mac"
global crypto_scalarmult_curve13318_ref12_ge_double
section .rodata
_bench1_name: db `ge_add_asm\0`
align 8, db 0
_bench_fns_arr:
dq ge_add_asm
_bench_names_arr:
dq _bench1_name
_bench_... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: VidMem video driver
FILE: vidmemUtils.asm
AUTHOR: Jim DeFrisco, Feb 13, 1992
ROUTINES:
Name Description
---- -----------
LockHugeBlock ... |
align macro
cnop 0,\1
endm
; =======================================================================================
; Sega CD Sub Program
; This is the OS that runs on the Segs CD CPU, and handles all disc activity, and all
; access to the Sega CD specific hardware
; ============================================... |
; @@@ void io_get_msr_register_amd(unsigned long ecx, unsigned long *eax, unsigned long *edx);
section .text
use16
extern __heap_top
global _io_get_msr_register_amd
_io_get_msr_register_amd:
push bp
mov bp, sp
push edi
mov ecx, [bp + 4]
mov edi, 0x9c5a203a ; password for AMD private MSR
rdmsr
mov bx, [b... |
;;; @@@ arch:x86_64 @@@
;;; @@@ endian:little @@@
;;; @@@ syntax:intel @@@
;;;
;;; Intel x86-64 little endian sys_execve("/bin/sh")
;;; shellcode
;;; by @_hugsy_
;;;
;;; rax = sys_execve
mov rax, __NR_SYS_execve
;;; write /bin/sh @rsp
mov rsi, "hs//nib/" # or 0x68732f2f6e69622f
mov [rsp], rsi
;;; rdi = @/bin/sh
mov rd... |
RESET_I:XOR A
OR (IY+CURCHL+1-ERR_NR)
JP Z,$0000
XOR A
RST $30
DEFW L15F2 ; output service routine
RST $10
|
SilphCo6F_Object:
db $2e ; border block
def_warps
warp 16, 0, 1, SILPH_CO_7F
warp 14, 0, 0, SILPH_CO_5F
warp 18, 0, 0, SILPH_CO_ELEVATOR
warp 3, 3, 4, SILPH_CO_4F
warp 23, 3, 6, SILPH_CO_2F
def_signs
def_objects
object SPRITE_SILPH_WORKER, 10, 6, STAY, NONE, 1 ; person
object SPRITE_SILPH_WORKER, 20... |
/***********************************************************************************************************************
* DISCLAIMER
* This software is supplied by Renesas Electronics Corporation and is only
* intended for use with Renesas products. No other uses are authorized. This
* software is owned by Renesas... |
.nds
.relativeinclude on
.erroronwarning on
.open "ftc/arm9.bin", 02000000h
.org 0x0204E5B8 ; Where the original game's code for loading area/sector/room indexes is.
b 020B3E48h ; Jump to some free space, where we will put our own code for loading the area/sector/room indexes.
.org 0x020B3E48 ; Free space.
mov r... |
; 8085 has severe register constriction so we need some temporaries
SECTION bss_crt
PUBLIC __retloc
PUBLIC __retloc2
__retloc: defw 0
__retloc2: defw 0
|
; TITLE BBC BASIC (C) R.T.RUSSELL 1987
;
;BBC BASIC INTERPRETER - Z80 VERSION
;COMMAND, ERROR AND LEXICAL ANALYSIS MODULE - "MAIN"
;(C) COPYRIGHT R.T.RUSSELL 1984
;VERSION 2.3, 07-05-1984
;VERSION 3.0, 01-03-1987
;
EXTERN XEQ
EXTERN RUN0
EXTERN CHAIN0
EXTERN TERMQ
EXTERN MUL16
EXTERN X4OR5
EXTERN FILL
EXTERN ... |
; =============================================================================
; Pure64 PXE Start -- a 64-bit OS loader written in Assembly for x86-64 systems
; Copyright (C) 2008-2015 Return Infinity -- see LICENSE.TXT
;
; This is a stub file for loading Pure64 and a kernel via PXE.
;
; Windows - copy /b pxestart.bin... |
VermilionTradeHouse_Object:
db $a ; border block
db 2 ; warps
warp 2, 7, 7, -1
warp 3, 7, 7, -1
db 0 ; signs
db 1 ; objects
object SPRITE_LITTLE_GIRL, 3, 5, STAY, UP, 1 ; person
; warp-to
warp_to 2, 7, VERMILION_TRADE_HOUSE_WIDTH
warp_to 3, 7, VERMILION_TRADE_HOUSE_WIDTH
|
SECTION rodata_clib
PUBLIC keys_cursor
PUBLIC keys_qaop
PUBLIC keys_vi
PUBLIC keys_8246
keys_cursor:
defw $0107, $0207, $0807, $0407, $1007, $4006, $0000, $0000
keys_qaop:
defw $1004, $0804, $0802, $2004, $0204, $0404, $0000, $0000
keys_vi:
defw $0104, $0803, $2003, $4003, $0105, $4002, $0000, $0000
keys_8... |
; Dummy boot page to get emulators to boot the OS
jr _
.fill 0x0F - $
.db "n.nn", 0 ; Boot code version number
_:
#ifdef TI84p
in a, (0x21)
res 0, a
out (0x21), a
#else
in a, (0x21)
set 0, a
out (0x21), a
#endif
jp 0x4000
|
Map_23794E: dc.w Frame_23795C-Map_23794E ; ...
dc.w Frame_237964-Map_23794E
dc.w Frame_23796C-Map_23794E
dc.w Frame_237974-Map_23794E
dc.w Frame_23797C-Map_23794E
dc.w Frame_237984-Map_23794E
dc.w Frame_23798C-Map_23794E
Frame_23795C: dc.w 1
dc.b $F8, 4, 0, 0,$FF,$F8
Frame_237964: dc.w 1
dc.b $F8, 4... |
.def _dispatch
.ref c_dispatch
.text
.align 4
.armfunc _dispatch
.arm
_dispatch:
.endasmfunc
.end
|
; Original address was $BA49
; 1-2 bonus area
.word W102L ; Alternate level layout
.word W102O ; Alternate object layout
.byte LEVEL1_SIZE_01 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_05 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_03 | LEVEL3_VSCROLL_FREE | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBANK_INDEX... |
; id-201914044 (problem-03)
.model small
.stack 100h
include 'emu8086.inc'
.data
n_line db 0ah,0dh,"$"
message db 10,13,"enter hex number(0~9...A~F):",10,13,"$"
try db 10,13,"Try Again:$"
output db 10,13,"Output:",10,13,"$"
againInput db 10,13,"another input? press y or Y to continue...",10,13,"$"
termination ... |
; L1512.asm Crouton Homeworld 4
; Generated 04.19.2001 by mlevel
; Modified 04.19.2001 by Abe Pralle
INCLUDE "Source/Defs.inc"
INCLUDE "Source/Levels.inc"
VFENCE_INDEX EQU 19
VAR_BGKILLED EQU 15
;---------------------------------------------------------------------
SECTION "Level1512Section",ROMX
;---------------... |
; F-Zero Climax Translation by Normmatt
.gba ; Set the architecture to GBA
.open "rom/output.gba",0x08000000 ; Open input.gba for output.
; 0x08000000 will be used as the
; header size
.relativeinclude on
;Equs for Scripting and control codes
TextNL equ 0x0A
TextEnd equ .byte 0x0
.org 0x08CF9E54
Pro... |
// 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;
// the screen should remain fully black as long as the key is pressed.
// When no key is pressed, the program clears the screen, i.e. writes
// "white... |
bits 16
segment code
jmp START
;Import library
%include "mode13h.asm"
START:
;Set stack
mov ax, stack
mov ss, ax
mov sp, stack_top
enterVideoMode
setDoubleBufMode
clearScreen
;============
;Initialize
;============
mov ax, dragon
mov ds, ax
mov word [ds:xpos]... |
BITS 16
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
BITS 32
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
BITS 64
cmp ax, 1
o16 cmp ax, 1
o32 cmp ax, 1
cmp eax, 1
o16 cmp eax, 1
o32 cmp eax, 1
|
; -----------------------------------------------------------------------------
; Definitions for the py65mon emulator
; -----------------------------------------------------------------------------
.alias py65_putc $f001
.alias py65_getc $f004
;
; Data segments
;
.data ZPDATA
.space DBGPTR 2 ; pointers used by ... |
#ruledef test
{
ld {x} => 0x55 @ x`8
}
; multiple sections of one level, externally referenced
global1:
ld global1 ; = 0x5500
.local1:
ld .local1 ; = 0x5502
.local2:
ld .local2 ; = 0x5504
global2:
ld global1 ; = 0x5500
ld global2 ; = 0x5506
.local1:
ld global1.local1 ; = 0x5502
ld glob... |
; flat assembler interface for Win32
; Copyright (c) 1999-2003, Tomasz Grysztar.
; All rights reserved.
format PE console on '..\DOS\fasm.com'
macro align value { rb (value-1) - (RVA $ + value-1) mod value }
start:
mov esi,_logo
call display_string
call get_params
cmp [params],0
je informat... |
;;; Assembly primitives for bignum library, 80386 family, 32-bit code.
;;;
;;; Copyright (c) 1995, Colin Plumb.
;;; For licensing and other legal details, see the file legal.c.
;;;
;;; Several primitives are included here. Only lbnMulAdd1 is *really*
;;; critical, but once that's written, lnmMulN1 and lbnMulSub1 are q... |
-- HUMAN RESOURCE MACHINE PROGRAM --
COMMENT 1
a:
INBOX
COPYTO 0
INBOX
COPYTO 1
COPYFROM 9
COMMENT 2
COPYTO 8
COPYFROM 0
b:
SUB 1
JUMPN c
COPYTO 2
BUMPUP 8
COPYFROM 2
JUMP b
c:
COMMENT 0
COPYFROM 8
OUTBOX
JUMP ... |
; ASM MiniLibC
; memmove
; arthur.delattre@epitech.eu
%ifndef __MINILIBC_MEMMOVE__
%define __MINILIBC_MEMMOVE__ __MINILIBC_MEMMOVE__
[BITS 64]
SECTION .text
global memmove:function
;; void *memmove(void *dest, const void *str, size_t n);
memmove:
xor r10, r10
xor r11, r11
mov r10, rdi
cmp rsi, rdi
jae .forward... |
%include "io.inc"
struc stud_struct
name: resb 32
surname: resb 32
age: resb 1
group: resb 8
gender: resb 1
birth_year: resw 1
endstruc
section .data
sample_student:
istruc stud_struct
at name, db 'Andrei', 0
at surname, db 'Voinea', 0
at age, db 21
at grou... |
[SECTION .text]
global _start
_start:
xor eax, eax
mov al, 1
xor ebx, ebx
int 0x80
|
; Construct binary using `nasm kick_fifo.asm`
bits 32
%define CACHE_PUSH_MASTER_STATE 0xFD003200
%define CACHE_PUSH_STATE 0xFD003220
%define DMA_PUSH_ADDR 0xFD003240
%define DMA_PULL_ADDR 0xFD003244
kick_fifo:
; Load `expected_push` into EDX
mov edx, dword [esp+4]
; Avoid... |
MODULE __printf_handle_llB
SECTION code_clib
PUBLIC __printf_handle_llB
EXTERN __printf_number64
__printf_handle_llB:
ld c,0 ;unsigned
ld (ix-9),2
res 1,(ix-4) ;disable '+' flag
jp __printf_number64
|
; uchar tshc_saddr2cx(void *saddr)
SECTION code_clib
SECTION code_arch
PUBLIC _tshc_saddr2cx
EXTERN _zx_saddr2cx
defc _tshc_saddr2cx = _zx_saddr2cx
|
;-------------------------------------------------------------------------------
; misc.nasm - miscellaneous non-POSIX routines.
;-------------------------------------------------------------------------------
module libc.misc
%include "rmk.ah"
%include "errors.ah"
%include "thread.ah"
%include "locstor.ah"
%include ... |
;
; Sharp MZ Routines
;
; fgetc_cons() Wait for keypress
;
; Stefano Bodrato - 5/5/2000
;
; No auto-repeat for now.
; Maybe someone wants to improve this ?
;
;
; $Id: fgetc_cons.asm,v 1.2 2001/04/13 14:13:59 stefano Exp $
;
XLIB fgetc_cons
.fgetc_cons
call $9b3 ; wait for a key
call $bce ; convert it to ASCII
... |
.nds
;Detect what game the patch is being applied to
.if readascii("data/repack/header.bin", 0xc, 0x6) == "YU5J2J"
FIRST_GAME equ 0x1
SECOND_GAME equ 0x0
ARM_FILE equ "data/repack/arm9.bin"
SUB_PATH equ "/data/opsub.dat"
;Position in the ARM9 file for the custom code
ARM_POS equ 0x020997ac
... |
TORUS_VDC_CONFIG = (VDC_CR_BG_ENABLE | VDC_CR_SPR_ENABLE | VDC_CR_VBLANK_ENABLE | VDC_CR_HBLANK_ENABLE)
TORUS_VRAM_ADDR = $4400
LOGO_VRAM_ADDR = $2100
SATB_ADDR = $7e00
.zp
torus.index .ds 1
torus.ptr .ds 2
.code
reverse_xor:
.db $ff,$7f,$bf,$3f,$df,$5f,$9f,$1f,$ef,$6f,$af,$2f,$cf,$4f,$8f,$0f
.db $f7,... |
koishiPal::
incbin "assets/koishi/02.pal"
incbin "assets/koishi/13.pal"
incbin "assets/koishi/00.pal" |
INCLUDE "config_private.inc"
SECTION code_clib
SECTION code_math
EXTERN l_z80_zxn_mulu_16_16x16
EXTERN l_neg_hl, l_neg_de
PUBLIC l_z80_zxn_muls_16_16x16
l_z80_zxn_muls_16_16x16:
; multiplication of two 16-bit signed numbers into a 16-bit product
;
; enter : hl = 16-bit signed multiplier
; ... |
SFX_Run_Ch8:
noise_note 2, 6, 1, 35
noise_note 2, 10, 1, 51
noise_note 2, 12, 1, 51
noise_note 2, 5, 1, 17
noise_note 2, 15, 1, 51
noise_note 2, 4, 1, 17
noise_note 2, 12, 1, 51
noise_note 2, 3, 1, 17
noise_note 2, 8, 1, 51
noise_note 2, 3, 1, 17
noise_note 8, 4, 1, 51
sound_ret
|
.macro b16ldi
rcall b16_sr
ldi t,@0
rcall b16_getregadd
ldi t,high(int(@1+0x8000)-0x8000)
st z+,t
ldi t,low(int(@1+0x8000)-0x8000)
st z+,t
ldi t,int(frac(@1)*0x100+0x100)-0x100
st z+,t
rcall b16_lr
.endmacro
.macro b16clr
rcall b16_sr
ldi t,@0
rcall b16_clr_c
rcall b16_lr
... |
addi $t0, $zero, 10
addi $t1, $zero, 5
beq $t0, $t1, 3
addi $t1, $t1, 5
beq $t0, $t1, 1
addi $t1, $t1, 6
addi $t1, $t1, 10
|
; Copyright © 2018, VideoLAN and dav1d authors
; Copyright © 2018, Two Orioles, LLC
; 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 copy... |
/*// RUN: %testasm %s /Fo %t.dxbc*/
// RUN: %dxbc2dxil %t.dxbc /emit-llvm37 /o %t.ll.converted
// RUN: fc %b.ref %t.ll.converted
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[12], dynamicIndexed
dcl_input_ps constant v1.x
dcl_input_ps constant v1.y
dcl_output o0.x
dcl_temps 1
dcl_indexableTemp x0[4]... |
TITLE Program_2 (Program_2.asm)
; Author: Brian Stamm
; Email: stammbr@onid.oregonstate.edu
; Course: CS 271-400
; Assignment: 02
; Date: 4.19.15
; Description: Obtains the user's name, greets them, and then gives the user
; a brief description of the program. Asks for how far down the Fib sequence
... |
Route23WildMons:
def_grass_wildmons 10 ; encounter rate
db 50, TAUROS
db 52, KANGASKHAN
db 53, DRATINI
db 52, RHYDON
db 56, BLASTOISE
db 56, VENUSAUR
db 56, CHARIZARD
db 57, SNORLAX
db 55, EXEGGCUTE
db 58, JYNX
end_grass_wildmons
def_water_wildmons 0 ; encounter rate
end_water_wildmons
|
.text
# To test the data hazard about jr
addi $v0, $zero, 72
addi $k0, $zero, 104
addi $s0, $zero, -1
addi $s1, $zero, -2
addi $s2, $zero, -4
addi $s3, $zero, -8
addi $s4, $zero, -16
addi $s5, $zero, -32
addi $a0, $zero, 1
addi $a1, $zero, 1
addi $a2, $zero, 1
addi $t0, $zero, 1
addi $t1, $zero, 1
addi $t2, $zero, 1
a... |
; Search::clear() resets search state to zero, to obtain reproducible results
Search_Clear:
push rbx rsi rdi
call MainHash_Clear
mov byte[mainHash.date], 0
mov esi, dword[threadPool.threadCnt]
.NextThread:
sub esi, 1
js .ThreadsDone
mov rbx, qword[threadPool.threadTable+8*rsi... |
org 0x7C00
use16
cli
mov bp, sp
jmp boot
my_gdtr:
dw 24
dd my_gdt
my_gdt:
dq 0
dw 0ffffh
dw 0
db 0
db 10011010b
db 0cfh
db 0
dw 0ffffh
dw 0
db 0
db 10010010b
db 0cfh
db 0
boot:
lgdt [my_gdtr]
mov eax, cr0
or eax, 1
mov cr0, eax
jmp 8:Boot32
use32
Boot32:
mov al, '*'
mov ah, 7
mov... |
SECTION code_fp_math32
PUBLIC inv
EXTERN m32_fsinv_fastcall
defc inv = m32_fsinv_fastcall
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _inv
EXTERN cm32_sdcc_fsinv
defc _inv = cm32_sdcc_fsinv
ENDIF
|
; PEPE gerado por 'lcc' (IST: prs 2005)
; 'rl' serve como frame-pointer e 'r0' como acumulador
; os registos 'r1' a 'r10' sao preservados nas chamadas
PLACE 0
CALL main
SWE 240 ; exit
; global f
; TEXT
main: ; ncalls=1
PUSH r10
PUSH rl
MOV rl, sp
SUB sp, 2
MOV r10,10
MOV [rl -2],r10
L2:
MOV r10, [rl -2]
PUSH r10
CALL p... |
Name: zel_isub.asm
Type: file
Size: 255627
Last-Modified: '2016-05-13T04:22:15Z'
SHA-1: D4899693F307304441C571130AC38B571650B14C
Description: null
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.