content stringlengths 23 1.05M |
|---|
.MODEL flat, c
.CODE
MmxShifter PROC
push ebp
mov ebp, esp
xor eax, eax
mov edx, [ebp+16] ; edx = shift_op
cmp edx, ShiftOpTableCount
jae BadShiftOp ; invalid operation
mov eax, 1 ; set success return code
movq mm0, [ebp+8] ; loads a
movd mm1, dword ptr[ebp+20] ; load count into low dword
jmp ... |
; -----------------------------------------------------------------------------
; Garbage collector related functions that managed items that support the
; cell interface. It uses the unmanaged array type to holld collections of
; cells.
; Martin Heermance <mheermance@gmail.com>
; --------------------------------------... |
%include "arch/const.inc"
[bits 32]
[section .text]
extern kernel_main
extern arch_init
extern setup_paging
global kernel_start
;这个标签是整个内核的入口,从loader跳转到这儿
kernel_start:
mov esp, KERNEL_STACK_TOP_PHY
mov byte [TEXT_START_ADDR_PHY+160*4+0], 'K'
mov byte [TEXT_START_ADDR_PHY+160*4+1], 0X07
mov byte [TEXT_START_... |
;RaTol Symbolinen konekieli: koeteht 2
;Tero Kukka IY96A
;Tiedosto: alik2.asm
;Luotu 27.4.1998
;Aliohjelma _etsi:
public _etsi ;near
.model small ;huom! muistimalli
.stack 00h ;pinon koko
.data ;muuttujalohko
.code
... |
;
; ZX IF1 & Microdrive functions
;
; int if1_setname(char* name, int location);
;
; Put a 10 characters file name at the specified location
; Truncate or fill with blanks when necessary.
; Return with the file name length
;
; $Id: if1_setname.asm,v 1.1 2004/10/08 12:33:24 stefano Exp $
;
XLIB if1_setnam... |
0D00 DD 21 01 0E
0D04 FD 21 03 0E
0D08 21 05 0E
0D0B DD 7E 00
0D0E FD 86 00
0D11 77
0D12 2B
0D13 DD 7E FF
0D16 FD 8E FF
0D19 77
0D1A DF 5B
0E00 4A
0E01 38
0E02 2A
0E03 F8
0E04 00
0E05 00
|
SECTION .text
GLOBAL square_p224
square_p224:
sub rsp, 0xc8 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0x98 ], rbx; saving to stack
mov [ rsp + 0xa0 ], rbp; saving to stack
mov [ rsp + 0xa8 ], r12; saving to stack
mov [ rsp + 0xb0 ], r13; saving to stack
mov [ rsp + 0xb8 ], r14; saving to stack
mov [ rsp + 0x... |
/*
* init_vdp.asm
* Written for use with GNU AS
*
* Copyright © 2020 Ben Sampson <github.com/billyrayvalentine>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See the COPYING file for mo... |
ORG $B000
dc.b $A9,$10,$8D,$12,$FF,$A9,$80,$8D,$14,$FF,$A9,$3B,$8D,$06,$FF,$A9
dc.b $11,$8D,$07,$FF,$A9,$32,$8D,$16,$FF,$A9,$48,$8D,$15,$FF,$EA,$A9
dc.b $22,$8D,$16,$FF,$A9,$11,$8D,$07,$FF,$A9,$88,$8D,$14,$FF,$A9,$3D
dc.b $8D,$06,$FF,$A9,$17,$8D,$07,$FF,$A9,$01,$8D,$16,$FF,$A9,$22,$8D
dc.b $15,$FF,$EA,$A9,$48,$8D... |
;
; Copyright 2018-2021 Mahdi Khanalizadeh
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed t... |
; TITLE RWCHAR - Character read/write for MSHERC.
;***
;RWCHAR
;
; Copyright <C> 1987, 1988, Microsoft Corporation
;
;Purpose:
; Single character read and write.
;
;******************************************************************************
include hgcdefs.inc
code segment para public 'code'
... |
Name: zel_bms1.asm
Type: file
Size: 119253
Last-Modified: '2016-05-13T04:20:48Z'
SHA-1: 2AB9CA6078FB98AA5F29669DC5CC0DAF42DD11B2
Description: null
|
object_const_def ; object_event constants
const ELMSHOUSE_ELMS_WIFE
const ELMSHOUSE_ELMS_SON
ElmsHouse_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
ElmsWife:
jumptextfaceplayer ElmsWifeText
ElmsSon:
jumptextfaceplayer ElmsSonText
ElmsHousePC:
jumptext ElmsHousePCText
ElmsHouseBookshelf:
jumpstd diff... |
TILE_WIDTH EQU 8 ; pixels
LEN_1BPP_TILE EQU 1 * TILE_WIDTH ; bytes
LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
NUM_PAL_COLORS EQU 4
PAL_COLOR_SIZE EQU 2
PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff
SCREEN_WIDTH EQU 20 ; tiles
SCREEN_HEIGHT EQU 18 ; t... |
; void __CALLEE__ *im2_CreateGenericISR_callee(uchar numhooks, void *addr)
; 04.2004 aralbrec
SECTION code_clib
PUBLIC im2_CreateGenericISR_callee
PUBLIC _im2_CreateGenericISR_callee
PUBLIC asm_im2_CreateGenericISR
EXTERN IM2CreateCommon
.im2_CreateGenericISR_callee
._im2_CreateGenericISR_callee
pop hl
pop de... |
; Thanks to ToriHino for this test case (which failed in version 1.8.1)
CONST: PROC
CHARS: PROC
OUTSIDE equ 0
ENDP
LEFT_X1 equ 5
REPT LEFT_X1 - 1
db CHARS.OUTSIDE
ENDM
ENDP
|
copyright zengfr site:http://github.com/zengfr/romhack
0207F4 move.b ($1,A0), ($41,A6) [base+77C]
0207FA move.l ($2,A0), ($42,A6) [base+77D]
021506 move.b ($41,A6), D2
02150A mulu.w D2, D3 [base+77D]
022414 move.b ($1,A0), ($41,A6) [base+77C]
02241A move.l ($2,A0), ($42,A6) [base+77D]
copyright zengfr sit... |
; uint zx_aaddr2cy_fastcall(void *attraddr)
SECTION code_arch
PUBLIC _zx_aaddr2cy_fastcall
_zx_aaddr2cy_fastcall:
INCLUDE "arch/zx/display/z80/asm_zx_aaddr2cy.asm"
|
SECTION rodata_clib
PUBLIC keys_cursor
PUBLIC keys_qaop
PUBLIC keys_vi
PUBLIC keys_8246
keys_cursor:
defw $1000, $0800, $2000, $4001, $0401, $0000
keys_qaop:
defw $8004, $4004, $0201, $8001, $8007, $0407, $0000
keys_vi:
defw $4007, $1007, $0807, $2007, $0103, $8006, $0000
keys_8246:
defw $2003, $0803, $40... |
BITS 64
global strlen:function
section .text
strlen:
xor rax, rax
loop:
cmp [rdi], byte 0
jz end
inc rax
inc rdi
jmp loop
end:
ret |
.STRUCT Fvm_Process
prog_id dw
.ENDST
.STRUCT Fvm_Sprite
width db
height db
x db
y db
tile dw
.ENDST
.STRUCT Fvm_Stream
slot db
bank db
addr dw
.ENDST
.RAMSECTION "Variables" SLOT 3
process_data INSTANCEOF Fvm_Process ; FVM Process information (single process, for now)
.ENDS
.DEFINE Fvm_Sprite_Count 32
.DE... |
bits 16
org 0x100
_start:
jmp start
%include "src/utils/std.asm"
%include "src/utils/str.asm"
%include "src/keyboard_handler.asm"
%define NEW_LINE 0xa, 0xd
promt: db " This program shows state of keyboard", NEW_LINE
db " buffer. This buffer uses self written 9th", NEW_L... |
SECTION code_l_sccz80
PUBLIC l_i64_asl
PUBLIC l_i64_aslo
EXTERN __i64_acc
EXTERN l_lsl_dehldehl
; Entry: __i64_acc = shift count
; sp + 2 = value to shift
l_i64_asl:
ld a,(__i64_acc+0)
l_i64_aslo:
pop bc
pop hl
pop de
exx
pop hl
pop de
ex... |
RESULTS_START EQU $c000
RESULTS_N_ROWS EQU 18
include "base.inc"
CorrectResults:
db $00, $00, $00, $F0, $F0, $F0, $F0, $F0 ; $09, affected
db $00, $00, $F0, $F0, $F0, $F0, $F0, $F0 ; $18, not affected
db $00, $00, $00, $F0, $F0, $F0, $F0, $F0 ; $0a, affected
db $00, $00, $00, $00, $F0, $F0, $F0, $F0 ; $28, not affec... |
; Internal key codes
; From Advanced User Guide, Appendix C
KEY_SPACE = &62
KEY_COMMA = &66
KEY_HYPHEN = &17
KEY_FULLSTOP = &67
KEY_FWDSLASH = &68
KEY_0 = &27
KEY_1 = &30
KEY_2 = &31
KEY_3 = &11
KEY_4 = &12
KEY_5 = &13
KEY_6 = &34
KEY_7 = &24
KEY_8 = &15
KEY_9 = &26
KEY_COLON = &48
KEY_SEMICOLON = &57
KEY_AT = &47
K... |
; void __CALLEE__ sp1_PrintAtInv_callee(uchar row, uchar col, uchar colour, uint tile)
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair spectrum version
PUBLIC sp1_PrintAtInv_callee
PUBLIC ASMDISP_SP1_PRINTATINV_CALLEE
EXTERN sp1_GetUpdateStruct_callee, sp1_PrintAt_callee
EXTERN ASMDISP_SP1_GETUPDATESTRUCT_CALLEE, ASM... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "PowerManagement.inc"
#include "Smps.inc"
#include "Lcd.inc"
#include "States.inc"
radix decimal
defineUiState UI_STATE_SLEEP
movlw UI_STATE_WAIT_UNTILCANSLEEP
movwf uiState
.setBankFor INTCON
bcf INTCON, RABIF
fcall disableLcd
fcall disab... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: axisGeometry.asm
AUTHOR: John Wedgwood, Oct 18, 1991
ROUTINES:
Name Description
---- -----------
AxisGeometryPart2 Perform "part 2... |
.include "m16def.inc"
.DEF A = r16 ;input A - PORTA LSB(0)
.DEF B = r17 ;input B - PORTA LSB(1)
.DEF C = r18 ;input C - PORTA LSB(2)
.DEF D = r19 ;input D - PORTA LSB(3)
.DEF I = r20 ;register to store input
.DEF E = r21 ;register for temporary calculations
.DEF F = r22 ;register for temporary calculations
;=... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Clock.inc"
#include "TestFixture.inc"
#include "../PollAfterClockMock.inc"
radix decimal
udata
global initialClockYearBcd
global initialClockMonthBcd
global initialClockDayBcd
global initialClockHourBcd
global initialClockMinuteBc... |
; Assemble: nasm -f elf64 -l main_asm.lst main_asm.asm
; Link: gcc -m64 -o main_asm main_asm.o
; Run: ./main_asm
; Реализовать целочисленные вычисления, сделанные в лабораторной работе №2,
; полностью используя язык Ассемблера для организации корректного ввода-вывода информации:
; Я взял 2 лабу для основы
ext... |
#ruledef test
{
ld {x} => 0x55 @ x[7:0]
}
ld x ; error: failed / error: unknown |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
;
; $Id: w_plotpixel.asm $
;
;
; fake w_plotpixel calling a function written in C
;
SECTION code_graphics
PUBLIC w_plotpixel
EXTERN plot
.w_plotpixel
IF !__CPU_INTEL__
push ix
exx
push bc
push ... |
;#######################################################
;
; Generated by SPReD-NES Copyright 2017-2019 0x8BitDev
;
;#######################################################
SPR_MODE_8X16 = 1
;chr0: .incbin "dog_gfx_chr0.bin" ; 512 of 1024 bytes
dog_gfx_palette:
.byte $21, $38, $16, $0D, $21, $14, $24, $34,... |
; PROLOGUE(mpn_sumdiff_n)
; Version 1.0.4
;
; Copyright 2008 Jason Moxham
;
; Windows Conversion Copyright 2008 Brian Gladman
;
; This file is part of the MPIR Library.
;
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as pu... |
;*****************************************************************************
;* checkasm-a.asm
;*****************************************************************************
;* Copyright (C) 2008 Loren Merritt <lorenm@u.washington.edu>
;*
;* This program is free software; you can redistribute it and/or modify
;* it u... |
MtMoonB1F_h:
db CAVERN ; tileset
db MT_MOON_B1F_HEIGHT, MT_MOON_B1F_WIDTH ; dimensions (y, x)
dw MtMoonB1F_Blocks ; blocks
dw MtMoonB1F_TextPointers ; texts
dw MtMoonB1F_Script ; scripts
db 0 ; connections
dw MtMoonB1F_Object ; objects
|
;
; syscallManager.asm: Manejo de syscalls de Userland a Kernerl.
; Si bien se debe reducir el código en assembler por no ser portable,
; es indispensable para la conexión por la interrupción int80h (igual que Linux).
GLOBAL _getTime
GLOBAL _sGetChar
GLOBAL _swrite
GLOBAL _setCursor
GLOBAL _drawFigure
GLOBAL _clearScre... |
header_VmXor
vm_xor PROC
push ebp
mov ebp, esp
; read the first operand
push [ebp+arg0]
call_vm_stack_pop_enc
push eax
; read the second operand
push [ebp+arg0]
call_vm_stack_pop_enc
mov ebx, eax
; do operation
pop eax
xor eax, ebx
; push result
push eax
push [ebp+arg0]
call_vm_stack_push_enc
m... |
;******************************************************************************
;* x86-SIMD-optimized IDCT for prores
;* this is identical to "simple" IDCT written by Michael Niedermayer
;* except for the clip range
;*
;* Copyright (c) 2011 Ronald S. Bultje <rsbultje@gmail.com>
;* Copyright (c) 2015 Christophe Gisquet
... |
.686
option casemap:none
include bnlib.inc
include bignum.inc
.code
bnDivpow2 proc bnX:DWORD,bitsY:DWORD,bnQuo:DWORD
invoke bnMov,bnQuo,bnX
invoke bnShr,bnQuo,bitsY
ret
bnDivpow2 endp
bnModpow2 proc uses esi edi ebx bnX:DWORD,bitsY:DWORD,bnRem:DWORD
mov eax,bnX
mov edi,bnRem
invoke bnMov,edi,eax
mov ebx,bits... |
; int bv_stack_top(bv_stack_t *s)
SECTION code_adt_bv_stack
PUBLIC bv_stack_top
defc bv_stack_top = asm_bv_stack_top
INCLUDE "adt/bv_stack/z80/asm_bv_stack_top.asm"
|
;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 3.3.0 #8604 (Dec 30 2013) (Linux)
; This file was generated Wed Dec 13 19:28:30 2017
;--------------------------------------------------------
.module test
.optsdcc -mmcs51 --model-small
;--... |
; At some point, the name of the local label was passed *unexpanded* to the
; function doing the removal. Ensure that this is fixed.
SECTION "Test", ROM0[0]
Glob:
.loc
PURGE .loc
PRINTT "{.loc}\n" ; This should fail because the label doesn't exist anymore
|
BITS 32
CPU 386
global catchy32
pref66h equ 1
pref67h equ 2
catchy32: pushad
mov esi, [esp + 36] ; pointer to opcode
sub esp, 256 ; allocate space for the table in stack
mov ebp, esp ; ebp <- opcode table
mov edi, esp
push esi
;; (1) unpack table
mov edx, esp ; save stack pointer
push 115
... |
; 8086 assembly file
; by:czfshine
; date: 2018/04/12 10:07:36
;编写一个程序,从键盘输入一个0~65535之间的10进制无符号数,
;然后以16进制和四进制数形式显示出所输入的数。
; The Main Data segment
include scan.inc
DATA SEGMENT
DATA ENDS
;entry code segment
CODE SEGMENT
ASSUME CS:CODE ,DS:DATA
START: ;entry point
MOV AX,DATA
MOV DS,AX
... |
;
; main64.asm
; APos
;
; Created by Ashwin Paudel on 2021-03-03
;
global long_mode_start
extern kernel_main
section .text
bits 64 ; Tell that were in 64 bit mode
long_mode_start:
; load null into all data segment registers
mov ax, 0
mov ss, ax
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
... |
; void *p_forward_list_alt_pop_front_fastcall(p_forward_list_alt_t *list)
SECTION code_clib
SECTION code_adt_p_forward_list_alt
PUBLIC _p_forward_list_alt_pop_front_fastcall
EXTERN asm_p_forward_list_alt_pop_front
defc _p_forward_list_alt_pop_front_fastcall = asm_p_forward_list_alt_pop_front
|
; *******************************************************************************************
; *******************************************************************************************
;
; Name : intfromstr.asm
; Purpose : Convert String to integer
; Date : 14th August 2019
; Author : Paul Robson (paul@robso... |
addi, R5, R1, 10
add, R6, R2, R3
sub, R7, R4, R3
sub, R8, R3, R4
|
BITS 64
GLOBAL strchr:function
strchr:
push RBP
mov RBP, RSP
XOR RAX, RAX
XOR RCX, RCX
CMP RDI, 0
JZ error
XOR R9, R9
MOV R9, RSI
loop:
CMP BYTE[RDI + RCX], R9B
JZ end
CMP BYTE[RDI + RCX], 0
JZ error
INC RCX
JMP loop
error:
XOR RAX, RAX
XOR RCX, RCX
LEAVE
ret
end:
MOV RAX, RDI
A... |
clearTable:
dw $007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F,$007F
WriteText:
{
PHP
; $7EC025 = Timer
; $7EC026 = When we find an empty item get set on 1
; $7EC027 = character da... |
%define BE(a) ( ((((a)>>24)&0xFF) << 0) + ((((a)>>16)&0xFF) << 8) + ((((a)>>8)&0xFF) << 16) + ((((a)>>0)&0xFF) << 24))
ftyp_start:
dd BE(ftyp_end - ftyp_start)
dd "ftyp"
db 0x61, 0x76, 0x69, 0x66 ; brand(32) ('avif')
db 0x00, 0x00, 0x00, 0x00 ; version(32)
db 0x61, 0x76, 0x69, 0x66 ; compatible_... |
_WardenGibberishText1::
text "WARDEN: Hif fuff"
line "hefifoo!"
para "Ha lof ha feef ee"
line "hafahi ho. Heff"
cont "hee fwee!"
done
_WardenGibberishText2::
text "Ah howhee ho hoo!"
line "Eef ee hafahi ho!"
done
_WardenGibberishText3::
text "Ha? He ohay heh"
line "ha hoo ee haheh!"
done
_WardenTeethTex... |
;
; z88dk RS232 Function
;
; OSCA version
;
; unsigned char rs232_init()
;
; $Id: rs232_init.asm,v 1.3 2016-06-23 20:15:37 dom Exp $
SECTION code_clib
PUBLIC rs232_init
PUBLIC _rs232_init
INCLUDE "osca.def"
rs232_init:
_rs232_init:
xor a
out (sys_timer),a ; t... |
macro hR0 m0,m1,m2,m3,m4,m5,m6,m7,lim,src
{
vpaddq xmm0,xmm0,xmm4
vpaddq xmm1,xmm1,xmm5
vpaddq xmm2,xmm2,xmm6
vpaddq xmm3,xmm3,xmm7
if m0<lim
vpaddq xmm0,xmm0, xword [src+m0*16]
end if
if m1<lim
vpaddq xmm1,xmm1, xword [src+m1*16]
end if
if m2<lim
vpaddq xmm2,xmm2, xword [src+m2*16]
end if
if m3<lim
vpa... |
;*********************************************************************
;* Title: W5100SEQU.asm
;*********************************************************************
;* Author: R. Allen Murphey
;*
;* License: Contributed 2021 by R. Allen Murphey to CoCoIO Development
;*
;* Description: WIZnet W5100S driver equates
;*
;... |
Name: scene1.asm
Type: file
Size: 2725
Last-Modified: '1992-09-24T02:25:46Z'
SHA-1: 111B6919D7E18DD97ADD4796F6A12E964F614FC8
Description: null
|
; unit MISC: DetectMem
; by Tebe
.proc @xmsWriteBuf (.word ptr1, ptr2) .var
ptr1 = dx ; buffer (2)
ptr2 = cx ; count (2)
pos = cx+2 ; position (2) pointer
ptr3 = eax ; position (4)
txa:pha
ldy #0 ; przepisz POSITION spod wskaznika
lda (pos),y
sta ptr3
iny
lda (pos),y
sta ptr3+1
in... |
Music_WildBattle_Ch1::
tempo 104
volume 7, 7
duty_cycle 3
vibrato 6, 3, 4
toggle_perfect_pitch
note_type 12, 11, 3
octave 4
note C_, 1
octave 3
note B_, 1
note A#, 1
note A_, 1
note A#, 1
note A_, 1
note G#, 1
note G_, 1
note G#, 1
note G_, 1
note F#, 1
note F_, 1
note F#, 1
note F_, 1
note E_, 1... |
%ifndef SSV_COMMON_FUNCS
%define SSV_COMMON_FUNCS
ssvcf_impl_saveRegisters:
push eax
push ebx
push ecx
push edx
ret
ssvcf_impl_restoreRegisters:
pop edx
pop ecx
pop ebx
pop eax
ret
ssvcf_linuxPrintTerm:
push ebx
push eax
push ecx
push edx
mov ebx, 1
mov eax, 4
mov ecx, [esp + 8 + 16]
... |
cpu 8086
segment code
org 0
db 3 dup "abc"
dw 1
dw 3 dup (1)
dw "abc"
dw 1 dup ("abc")
dw 2 dup ("abc")
dw 3 dup ("abc")
dd 1
dd 1.0
dd 3 dup (1)
dd "abc"
dd 1 dup ("abc")
dd 2 dup ("abc")
dd 3 dup ("abc")
dq 1
dq 1.0
dq 3 dup (1)
dq "abc"
dq 1 dup ("abc")
dq 2 dup ("abc")
dq 3 dup ("abc")
d... |
;
; CP/M 1.4 BIOS for Python emulator
;
vers equ 14 ;version 1.4
;
msize equ 64 ;cp/m version memory size in kilobytes
;
; "bias" is address offset from 3400H for memory systems
; than 16K (referred to as "b" throughout the text).
;
bias equ (msize-16)*1024
ccp equ bias+2900h ;base of ccp
bdos equ bias+3106h ;base of b... |
.text
bucle:
j bucle
.ktext
lui $3,0x0001
addi $1,$0,1
nop
nop
nop
sb $1,0($3)
|
JMP START
OVERFLOW TRP 0
UNDERFLOW TRP 0
START MOV R0 FP
MOV R1 SP
MOV R2 SB
MOV R3 SL
TRP 0
|
label:
push r0
call test
rjmp label
test:
ldi r16, 99
mov r0, r16
inc r16
ret |
; IO Calls D1 V2.01 1990 Tony Tebby QJUMP
;
; 2016-04-16 2.01 Added ALPHA_BLEND (MK)
;
; CLS #channel, area
; PAN #channel, number, area
; SCROLL #channel, number, area
; OVER #channel, key
; UNDER #channel, key
; FLASH #channel, key
; FILL #channel, key
; ALPHA_BLEND #channel, weight
;
section exten
x... |
segment .text
struc scaleinfo
.dst resd 1
.src resd 1
.xaccum resd 1
.xfracinc resd 1
.xintinc resd 1
.count resd 1
endstruc
global _vdasm_resize_point32
_vdasm_resize_point32:
push ebp
push edi
push esi
push ebx
mov eax, [esp+4+16]
mov ebx, [eax+scaleinfo.xaccum]
mov ecx, [eax+scaleinf... |
cpu 1802
r0 = 0
r1 = 1
r2 = 2
r3 = 3
r4 = 4
r5 = 5
r6 = 6
rc = 12
re = 14
rf = 15
screen = 0800h
ldi 41
ghi r0
phi r3
ldi start & 255
plo r3
sep r3
start:
ldi 9 ; set stack to 9FFh
phi r2
ldi 0FFh
plo r2
ldi screen/256 ; R0 points to screen
phi r0
ldi 0
p... |
Name: BGcheck.asm
Type: file
Size: 8243
Last-Modified: '1992-02-13T07:47:41Z'
SHA-1: 8B609EA1FBD4B10486C2710872C6FED4912269D4
Description: null
|
// attrack mode steps
.const STEP_TITLE = 0
.const STEP_CREDITS = 1
.const STEP_CONTROLS = 2
.const ATTRACT_DELAY = 50 * 5
attractStep:
.byte 0
attractDelay:
.byte 0
// -----------------------------------------
StartAttractMode:
lda #ATTRACT_DELAY
sta attractDelay
lda #STEP_TITLE
sta attractSte... |
defyx_isn_0:
; ISMULH_R r0, r3
mov rax, r8
imul r11
mov r8, rdx
defyx_isn_1:
; IROR_R r0, r6
mov ecx, r14d
ror r8, cl
defyx_isn_2:
; FADD_R f1, a2
addpd xmm1, xmm10
defyx_isn_3:
; IXOR_M r1, L1[r5+1954652011]
lea eax, [r13d+1954652011]
and eax, 16376
xor r9, qword ptr [rsi+rax]
defyx_isn_4:
; FMUL_R e2, a... |
;
; OZ-7xx DK emulation layer for Z88DK
; by Stefano Bodrato - Oct. 2003
;
; void ozhline(byte x,byte y,byte len,byte color)
;
; ------
; $Id: ozhline.asm,v 1.2 2003/10/29 11:37:11 stefano Exp $
;
XLIB ozhline
LIB swapgfxbk
LIB swapgfxbk1
LIB line
LIB ozplotpixel
... |
# Add to a number using SUB
PUSH 10
SYS 3
CALL FuncCr
PUSH 10
PUSH -1
SUB
SYS 3
CALL FuncCr
HLT
FuncCr:
PUSH 10
SYS 4
POP
RET |
; $Id: bit_open.asm $
;
; NEC PC-8801 - 1 bit sound functions
;
; void bit_open();
;
; Stefano Bodrato - 2018
;
SECTION code_clib
PUBLIC bit_open
PUBLIC _bit_open
EXTERN __snd_tick
.bit_open
._bit_open
ld a,($E6C1)
ld (__snd_tick),a
ret
|
.data
gplabel:
.space 40960
slabelb:
.asciiz ""
slabeln:
.asciiz "\n"
str24:
.asciiz "************************************************"
str23:
.asciiz "Start testing parameter:"
str22:
.asciiz "************************************************"
str21:
.asciiz "Start testing switch:"
str20:
.asciiz "********************... |
; (K)opyleft - by Jose M. Rodriguez de la Rosa (a.k.a. Boriel)
; 2009 - This is Free OpenSource BSD code
; vim: et:ts=4:sw=4
; Copies a vector of strings from one place to another
; reallocating strings of the destiny vector to hold source strings.
; This is used in the following code:
; DIM a$(20) : DIM b$(20): a$ = ... |
CinnabarGym_Script:
call CinnabarGymSetMapAndTiles
call EnableAutoTextBoxDrawing
ld hl, CinnabarGym_ScriptPointers
ld a, [wCinnabarGymCurScript]
jp CallFunctionInTable
CinnabarGymSetMapAndTiles:
ld hl, wCurrentMapScriptFlags
bit 6, [hl]
res 6, [hl]
push hl
call nz, .LoadNames
pop hl
bit 5, [hl]
res 5, [hl... |
@256
D=A
@SP
M=D//Call(name=Sys.init, args=0)
@RETURN0
D=A
@SP
M=M+1
A=M-1
M=D
@LCL
D=M
@SP
M=M+1
A=M-1
M=D
@ARG
D=M
@SP
M=M+1
A=M-1
M=D
@THIS
D=M
@SP
M=M+1
A=M-1
M=D
@THAT
D=M
@SP
M=M+1
A=M-1
M=D
@5
D=A
@SP
D=M-D
@ARG
M=D
@SP
D=M
@LCL
M=D
@Sys.init
0;JMP
(RETURN0)
//Function(name=Main.fibonacci, locals=0)
(Main.fibona... |
Route2Gate_Script:
jp EnableAutoTextBoxDrawing
Route2Gate_TextPointers:
dw Route2GateText1
dw Route2GateText2
Route2GateText1:
text_asm
CheckEvent EVENT_GOT_HM05
jr nz, .got_item
ld a, 10
ldh [hOaksAideRequirement], a
ld a, HM_FLASH
ldh [hOaksAideRewardItem], a
ld [wd11e], a
call GetItemName
ld hl, wcd6d... |
; initialize gameplay screen
.proc gameplay_init
jsr set_sprite0
rts
.endproc
; input buttons used by the gameplay screen
.proc gameplay_input
jsr gameplay_press_left
jsr gameplay_press_right
jsr gameplay_press_up
; jsr gameplay_press_down
jsr gameplay_press_a
jsr gameplay... |
; ------------------------------------------------------------------
; MichalOS VESA mode checker
; ------------------------------------------------------------------
BITS 16
%INCLUDE "michalos.inc"
ORG 100h
start:
mov di, 800h ; 2kB after the program loads
call os_vesa_scan
mov bx, 4000h
mov ax, [di + 2]... |
; CON driver vectored routines table V1.04 2003 Marcel Kilgus
;
; 2003-05-13 1.01 added pt_size (wl)
; 2004-04-01 1.02 added pt_cursp (wl)
; 2006-01-04 1.03 added pt_bgctl (MK)
; 2013-04-28 1.04 added pt_cmmblk (wl)
section driver
xdef pv_table
xref pt_fspr
xref pt_sspr
xref.l pt.vers
xref pt_m... |
;
; System Call for REX6000
;
;
; extern LONG SYSCALLEXL( int, ... );
;
; $Id: syscallexl.asm,v 1.6 2015-01-19 01:33:06 pauloscustodio Exp $
PUBLIC syscallexl
; we supply a pointer to a pointer to the args push'd
;
; We need to repush our arguments in the correct order (well, correct for
; the SDK)
;
.syscallexl... |
/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Contributed by Jes Sorensen, <Jes.Sorensen@cern.ch>
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version ... |
; Yeu cau: Nhaop vao 2 so a, b. Tinh tong, hieu, tich, thuong a, b
%include "io.inc"
extern _printf
extern _scanf
extern _getch
section .data
tb1 db "Nhap a: ", 0
tb2 db "Nhap b: ", 0
tb3 db 10,"%d %c %d = %d", 0;
tb4 db " du la: %d", 0
fmt db "%d", 0
section .bss
a resd 1
b resd 1
c res... |
Music_KassTheme:
musicheader 4, 1, $d290 + (Music_KassTheme_Ch2 - Music_KassTheme)
musicheader 1, 2, $d290 + (Music_KassTheme_Empty - Music_KassTheme)
musicheader 1, 3, $d290 + (Music_KassTheme_Ch3 - Music_KassTheme)
musicheader 1, 4, $d290 + (Music_KassTheme_Empty - Music_KassTheme)
Music_KassTheme_Em... |
.data
msg1: asciiz"\n Please input a number N:"
msg2: asciiz"\n The fact of N is"
.gobl main
.text
main:
li $v0,4
la $a0, msg1
syscall
$v0,5
syscall
move $a0,$v0
jal fact
move $v1, $v0
li $v0,4
la $ao, msg2
move $a0 $v1
li $v0,1
syscall
li $v0,10
syscall |
; Copyright 2015 Adam <https://github.com/n00btube>
; MIT license.
; Makes save points refill Samus' energy and supplies, like the ship.
;
; Hijacks the save station PLM and uses some free space in that bank ($84), as
; well as any other bank of your choosing. This *is* the cross-bank version.
lorom
; hijack point:... |
; Original address was $B64D
; 5-1's bonus area
.word W501L ; Alternate level layout
.word W501O ; Alternate object layout
.byte LEVEL1_SIZE_07 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG
.byte LEVEL3_TILESET_01 | LEVEL3_VSCROLL_FREE | LEVEL3_PIPENOTEXIT
.by... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Boot
FILE: bootBoot.asm
ROUTINES:
Name Description
---- -----------
BootGeos Called by MS-DOS when PC GEOS is started.
EndGeos Exit GEOS
... |
Name: ed_dos1.asm
Type: file
Size: 3396
Last-Modified: '1992-02-13T07:47:50Z'
SHA-1: A2FB300A52130FF56EBFF000144F3570FD3F5B21
Description: null
|
; VBXE.INC
.proc @vbxe_detect
ldy #.sizeof(detect)-1
mva:rpl copy,y detect,y-
jmp detect
copy
.local detect,@buf
;
; 2009 by KMK/DLT
;
lda #0
sta fxptr
lda #$d6
sta fxptr+1
ldy #FX_MEMB
jsr ?clr
jsr ?try
bcc ok
inc fxptr+1
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: cgroupGrObj.asm
AUTHOR: Chris Boyke
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
----- ---- -----... |
BITS 16
section .text
foo:
lds edi, [esi]
les di, [esi]
lea edi, [esi]
lfs di, [esi]
lgs edi, [esi]
lss di, [esi]
|
mov ax, 0xb800 ; load into ax to be able to load into ds
mov ds, ax ; set ds (destination address segment) as the begining of video memory
xor di, di ; zero destination index
mov si, MESSAGE ; set source index to MESSAGE address
move: ... |
add $t5, $s5, $s3
sub $t5, $s5, $s3
slt $t0,$s1,$s7
addi $fp, $t8, 2106
lw $t2, 1024($v0)
sw $t9, 8192($a0)
jr $t1, $t2, $t3
sll $t5, $t4, 2
j 70000
jal 90000
|
global _start
section .text
_start:
xor rax, rax
add rax, 1
mov rdi, rax
push 0x0a646c72
mov rbx, 0x6f57206f6c6c6548
push rbx
mov rsi, rsp
xor rdx, rdx
add rdx, 12
syscall
xor rax, rax
add rax, 60
xor rdi, rdi
syscall
|
#d8 0
#d8 1
#d8 2
#d8 3
#addr 0x2 ; error: behind |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: uiLocksControl.asm
AUTHOR: Jon Witort
METHODS:
Name Description
---- -----------
FUNCTIONS:
Scope Name Description
----- ---- ---... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.