content stringlengths 23 1.05M |
|---|
;
; Display has 2 screens - VRAM planes 0,1,2 and 3,4,5
;
; Screen 0 takes palette 0-7, screen 1 palette 8-15
;
; If both screens are not set, then background colour palette[16] is taken
;
; We'll use through z88dk. screen 0 for ink, screen 1 for paper
;
;
SECTION code_clib
PUBLIC generic_console_cls
PU... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1988 - 1991
; * All Rights Reserved.
; */
PAGE ,132 ;AN000;
TITLE DOS - GRAPHICS Command - Common modules ;AN000;
.xlist ;AN000;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;... |
;
;
;
InterfaceAddress: MACRO ?address
IF ?address < 400H
ERROR "Address must be >= 400H."
ENDIF
dw ?address
ENDM
InterfaceOffset: MACRO ?offset
IF ?offset >= 400H
ERROR "Offset must be < 400H."
ENDIF
dw ?offset
ENDM
; de = offset base
; hl = interface address or offset
; hl <- address
; Modifies: af
Inte... |
; intmax_t imaxabs(intmax_t j)
SECTION code_inttypes
PUBLIC asm_imaxabs
EXTERN asm_labs
defc asm_imaxabs = asm_labs
|
; NET V2.00 1990 Tony Tebby QJUMP
;
; NET nr
;
section exten
xdef net
xref ut_gxin1 ; get one integer
include 'dev8_keys_qdos_sms'
include 'dev8_keys_sys'
net
jsr ut_gxin1 ; get node
bne.s net_... |
SafariZoneWestRestHouse_Object:
db $a ; border block
def_warps
warp 2, 7, 7, SAFARI_ZONE_WEST
warp 3, 7, 7, SAFARI_ZONE_WEST
def_signs
def_objects
object SPRITE_SCIENTIST, 4, 4, WALK, ANY_DIR, 1 ; person
object SPRITE_COOLTRAINER_M, 0, 2, STAY, RIGHT, 2 ; person
object SPRITE_ERIKA, 6, 2, STAY, DOWN, 3 ... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;===========================================================================
;
; FILE: GLBLINIT.ASM
;
;===============================================... |
ASSUME CS: code, DS:data
; Check if a number is prime
data SEGMENT
; variables for is_prime procedure
is_prime_n DW 0
prime_start DW 2
prime_end DW ?
msg_number DB "Check a number:", "$"
number_max DB 5 ; max length of number
number_length DB ?
number DB 5 DUP(?)
t... |
DATA SEGMENT
BUFF DB 80, ?, 80 DUP (?)
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE, DS:DATA
START:
MOV AX, DATA
MOV DS, AX
LEA DX, BUFF
MOV BX, DX ; 将输入字符的起始地址转存到 BX
MOV AH, 10
INT 21H ; 从键盘读入一个字节字符串(没有加容错,必须是小写字母),DS:DX=存放输入字符的起始地址
MOV BX, 2
FOR:
MOV AL, [BX] ; 取一个字节字符
CMP AL, 13 ; 判断是否是回... |
/* Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
Contributed by James E. Wilson <wilson@cygnus.com>.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundat... |
; This test program performs a few
; additions and subtractions in various
; conditions to test the math instructions.
;
; This includes binary-mode and decimal-mode.
;
; The results of which are noted on the comment
; at the respective points.
*=$0200
START:
CLD
CLC
LDA #$32
SBC #$11 ; C=0 A=20
CLD
CLC
LDA #0... |
; contributed by drain
; the counter quickly overflows
; writing a version using 32 bit arithmetic is left as an exercise to the reader
fibonacci:
; set up stack
mov 0xffff, re
mov 1, r0
mov 1, r1
loop:
add r0, r1, r2
call printnumber ; print r0
mov r1, r0
mov r2, r1
out 0xA
mo... |
;
; Z88dk Generic Floating Point Math Library
;
; TOS >= FA
;
; $Id: dleq.asm,v 1.2 2015/01/19 01:32:56 pauloscustodio Exp $:
PUBLIC dleq
EXTERN dcompar
EXTERN f_yes
EXTERN f_no
.dleq call dcompar
jp z,f_yes
jp p,f_yes
jp f_no
|
; void *tshr_py2saddr(uchar y)
SECTION code_clib
SECTION code_arch
PUBLIC _tshr_py2saddr_fastcall
EXTERN _zx_py2saddr_fastcall
defc _tshr_py2saddr_fastcall = _zx_py2saddr_fastcall
|
;/****************************************************************************
;** MODULE: avidm1.asm
;** AUTHOR: Sami Tammilehto / Fennosoftec OY
;** DOCUMENT: ?
;** VERSION: 1.0
;** REFERENCE: -
;** REVISED BY: -
;*****************************************************************************
;**
;** Video dri... |
; A167275: Row sums of triangle A167274 (a variant of Gould's sequence A001316).
; 1,4,4,8,4,8,8,16,4,8,8,16,8,16,16,32,4,8,8,16,8,16,16,32
mov $16,$0
mov $18,2
lpb $18
clr $0,16
mov $0,$16
sub $18,1
add $0,$18
sub $0,1
mov $13,$0
mov $15,$0
add $15,1
lpb $15
mov $0,$13
sub $15,1
sub $0,$... |
section .data
text db "hello, world", 10
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, text
mov rdx, 13
syscall
mov rax, 60
mov rdi, 0
syscall
|
CeruleanGym_h:
db GYM ; tileset
db CERULEAN_GYM_HEIGHT, CERULEAN_GYM_WIDTH ; dimensions (y, x)
dw CeruleanGym_Blocks ; blocks
dw CeruleanGym_TextPointers ; texts
dw CeruleanGym_Script ; scripts
db 0 ; connections
dw CeruleanGym_Object ; objects
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Kernel VM Manager -- High-level interface routines
FILE: vmemHigh.asm
AUTHOR: Cheng, 1989
ROUTINES:
Name Description
---- -----------
G... |
//mainint: funcdecl 1, ,
mainint:// Words: 0
addi $sp, 4
// Words: 1
move $gp, $rr
// Words: 2
move $sp, $rr
//: loadi *tmp, , -6
global:// Words: 3
// Words: 4
ldi $k0, -6
//: store currx, 0, *tmp
// Words: 5
addi $gp, -2
// Words: 6
sdw $k0, $0, $rr
//: loadi *tmp, , 0
// Words: 7
// Words: 8
ldi ... |
AREA RESET,DATA,Readonly
EXPORT __Vectors
__Vectors
DCD 0x40000000
DCD Reset_Handler
ALIGN
AREA mycode,Code,Readonly
ENTRY
EXPORT Reset_Handler
Reset_Handler
LDR R0,=NUM1
LDR R5,RESULT
MOV R4,#8
UP
LDRB R1,[R0],#4
AND R1,#0X0F
ADD R1,#0X30
SUB R4,#1
BNE UP
STOP B STOP
NUM1 DCD... |
;*********************************************************************************************************************
;* @file startup_XMC1100.s
;* @brief CMSIS Core Device Startup File for Infineon XMC1100 Device Series
;* @version V1.0
;* @date 09 Nov 2018
;*
;* @cond
;***********************************... |
;
;
;
jmp $ ; Jump forever
the_secret:
db "X"
times 510-($-$$) db 0 ; Padding and magic BIOS number.
dw 0xaa55 |
TITLE Program Template (RevStr.asm)
; This program reverses a string.
; Last update: 1/28/02
INCLUDE Irvine32.inc
.data
aName BYTE "Abraham Lincoln",0
nameSize = ($ - aName) - 1
.code
main PROC
; Push the name on the stack.
mov ecx,nameSize
mov esi,0
L1: movzx eax,aName[esi] ; get cha... |
; Sprite moving code V1.00 1985 Tony Tebby
; 1.01 FD REMOVED REFERENCES TO MOVEP for Q60/Q40
; 2005-02-13 1.02 changed header comment for sprite clipping (wl)
;
; d0 c s column offset / green composite
; d1 c s row offset / red composite
; d2 s green sprite
; d3 s red sprite
; d4 s sprite mask
; d5 c s spr... |
section sprite
xdef mes_gotolab
xref mes_zero
mes_gotolab
dc.w $0100,$0000
dc.w 20,16,0,0
dc.l mcs_gotolab-*
dc.l mes_zero-*
dc.l sp_gotolab-*
mcs_gotolab
dc.w $5900,$8808
dc.w $8080,$0000
dc.w $9200,$0D0D
dc.w $8080,$0000
dc.w $9B00,$0F0F
dc.w $8080,$0000
dc.w $9200,$8F0F
dc.w $8080,$0000
dc.w $5100,$... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: OpenLook/Win
FILE: winFieldData.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 3/89 Initial version
DESCRIPTION:
... |
; A OpenGL wallhack that works via hooking CoD's internal call to glDrawElements while displaying players
; and modifies the call to disable depth testing.
;
; Originally written 2008/09/24 by attilathedud.
; System descriptors.
.386
.model flat,stdcall
option casemap:none
VirtualAlloc proto stdcall :DWORD,... |
Route16GateObject:
db $a ; border block
db $9 ; warps
db $8, $0, $0, $ff
db $9, $0, $1, $ff
db $8, $7, $2, $ff
db $9, $7, $2, $ff
db $2, $0, $4, $ff
db $3, $0, $5, $ff
db $2, $7, $6, $ff
db $3, $7, $7, $ff
db $c, $6, $0, ROUTE_16_GATE_2F
db $0 ; signs
db $2 ; objects
object SPRITE_GUARD, $4, $5, STAY, ... |
LDA 204FH ; store value of N in accumulator
MOV C,A ; copy N in register C to use as counter
LXI H,2050H ; set up HL to point to address of first byte
LXI D,2100H ; set up DL to point to address 2100H to store the even numbers
MVI B,00H ; clear register B to count no of eve... |
* Spreadsheet 28/12-91
* - formular action routine
section prog
include win1_keys_wman
include win1_keys_wstatus
include win1_keys_wwork
include win1_keys_qdos_pt
include win1_keys_err
include win1_keys_k
include win1_keys_qdos_io
include win1_mac_oli
include win1_spread_keys
... |
; ---------------------------------------------------------------------------
; Object 77 - Eggman (LZ)
; ---------------------------------------------------------------------------
BossLabyrinth:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Obj77_Index(pc,d0.w),d1
jmp Obj77_Index(pc,d1.w)
; ====================... |
; sp1_InvUpdateStruct
; 03.2006 aralbrec, Sprite Pack v3.0
; sinclair zx version
SECTION code_temp_sp1
PUBLIC sp1_InvUpdateStruct
sp1_InvUpdateStruct:
INCLUDE "temp/sp1/zx/updater/asm_sp1_InvUpdateStruct.asm"
|
section .boot
bits 16
global boot
boot:
mov ax, 0x3
int 0x10
mov [disk],dl
mov ah, 0x2
mov cl, 2
mov bx, main
int 0x13
lgdt [gdt_pointer]
mov cr0, eax
mov ax, gdt_pointer - gdt_start
jmp gdt_code - gdt_start: main
gdt_start dq 0x0
gdt_code:
dw 0xFFFF
dw 0x0
db 0x0
db 10011010b
db 11... |
; {0}
func_{1} proc
jmp functions[8 * {2}]
func_{1} endp
|
bits 16
org 0x100
SECTION .text
_main:
push bp ; 16-bit version of prolog
mov bp, sp
mov ah, 0x0
mov al, 0x13
int 0x10 ; set video to vga mode
sub sp, 6 ; three local stack variables, bp - 2 = row iter, bp -... |
; virtual disk option rom
bits 16
org 0x0000
section .text
; header
db 0x55
db 0xaa
db 16
jmp rom_init
%include "stringformat.asm"
rom_init:
; backup registers we clobber
push ax
push bx
push cx
push dx
push si
push bp
push ds
push es
; set DS ... |
\ ******************************************************************
\ * BANK 0:
\ ******************************************************************
CLEAR &8000, &C000
ORG &8000
GUARD &C000
.bank0_start
.exo_asset_doom_mode2
INCBIN "build/doom-screen.exo"
.exo_asset_scr_mode2
INCBIN "build/scr-screen.exo"
.bank0_e... |
SECTION code_fp_math16
PUBLIC l_f16_ulong2f
PUBLIC l_f16_slong2f
PUBLIC l_f16_f2slong
PUBLIC l_f16_f2ulong
PUBLIC i32_f16
PUBLIC u32_f16
PUBLIC f16_i32
PUBLIC f16_u32
EXTERN asm_f16_f24
EXTERN asm_f24_f16
EXTERN asm_f24_u32
EXTERN asm_f24_i32
EXTERN asm_i32_f2... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: standaloneUser.asm
AUTHOR: Chris Boyke
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Description
---- ----... |
// Original test: ./nfischer/hw4/problem6/ld_3.asm
// Author: nfischer
// Test source code follows
//test multiple loads
lbi r1, 50 //base address
lbi r2, 2 //values to ld/st
lbi r3, 4
lbi r4, 6
st r2, r1, 0 //store values
st r3, r1, 10
st r4, r1, 20
ld r2, r1, 10 //load values
ld r3, r1, 20
l... |
asl {m1}
rol {m1}+1
asl {m1}
rol {m1}+1
asl {m1}
rol {m1}+1
asl {m1}
rol {m1}+1
|
BITS 32
; The address operands can be encoded in various ways. Unfortunately, NASM does
; not always use the one we want (an alphanumeric variant). Which is why we have
; to use these:
%define xor_esp_esi db 0x31, 0x34, 0x64 ; XOR [ESP], ESI
%define xor_esi_esp db 0x33, 0x34, 0x64 ; XOR ESI, ... |
CPU 8086
%define MEMCGAEVEN 0xB800
%define MEMCGAODD 0xBA00
%define KB_ESC 01
%define KB_UP 48h
%define KB_DOWN 50h
%define KB_LEFT 4Bh
%define KB_RIGHT 4Dh
%define BYTESPERROW 160d
%define JOYSTICKPORT 201h
%define JS2B 10000000b
%define JS2A 01000000b
%define JS1B 00100000b
%define JS... |
;* ============================================================================
;* Copyright (c) 2008-2012 Texas Instruments Incorporated.
;*
;* Redistribution and use in source and binary forms, with or without
;* modification, are permitted provided that the following conditions
;* are met:
;*
;* Redi... |
;KEY input handring
.include "registers.inc"
.equ KEYIN=0x03 ;Key input sampling
.equ KEYIN_HOLD=0x40
;.equ KEYINWAIT_H=0xC0 ;Key input sampling
;.equ KEYINWAIT_L=0xFF
.equ KEYMASK=0b01001100
KEYINPUT:
;Read KEY
IN GX,PIND
;IF keys is not pushed then exit.
ANDI GX,KEYMASK
CPI GX,KEYMASK
BREQ KEYINPUT_RE... |
;
; Grundy Newbrain Specific libraries
;
; Stefano Bodrato - 30/03/2007
;
;
; Check if user pressed BREAK
; 1 if BREAK, otherwise 0
;
;
;
; $Id: break_status.asm,v 1.3 2015/01/19 01:33:00 pauloscustodio Exp $
;
PUBLIC break_status
.break_status
rst 20h
defb 36h
ld hl,1
ret c
dec hl
ret
|
<% from pwnlib.shellcraft import arm, common %>
<%docstring>Execute /bin/sh</%docstring>
<%
bin_sh = common.label("bin_sh")
%>
adr r0, ${bin_sh}
mov r2, #0
push {r0, r2}
mov r1, sp
svc SYS_execve
${bin_sh}:
.asciz "/bin/sh"
|
; S2E Selective Symbolic Execution Platform
;
; Copyright (c) 2013 Dependable Systems Laboratory, EPFL
;
; 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... |
;
; LZ48 decrunch
;
; In ; HL=compressed data address
; ; DE=output data address
; Out ; HL last address of compressed data read (you must inc once for LZ48 stream)
; ; DE last address of decrunched data write +1
; ; BC always 1
; ; A always zero
; ; flags (Z,NC,P,PE)
; ; HL' address of lzun... |
SECTION "Egg Moves 4", ROMX
EggMovePointers4::
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
dw NoEggMoves4
... |
copyright zengfr site:http://github.com/zengfr/romhack
001E12 addq.w #4, D0 [base+18E]
001E20 move.l ($e,PC,D0.w), D0 [base+18E]
01A610 dbra D1, $1a60e
copyright zengfr site:http://github.com/zengfr/romhack
|
sta {m1}
lda #0
sta {m1}+1
cpx #0
beq !e+
!:
asl {m1}
rol {m1}+1
dex
bne !-
!e: |
.equ UART0, 0x44E09000 /* UART0 register */
.equ UART_LSR_UART, 0x14
.equ UART_THR, 0x0
.section ".text.boot"
.global _start
_start:
mov r0,#'E'
and r0, r0, #0xFF
ldr r1, =UART0
1:
ldrh r2, [r1, #UART_LSR_UART]
and r2, r2, #0x20
cmp r2, #0
... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994. All rights reserved.
GEOWORKS CONFIDENTIAL
PROJECT: Pasta
MODULE: Fax
FILE: group3DialAssist.asm
AUTHOR: Andy Chiu, Nov 15, 1993
Name Description
---- -----------
METHODS:
DialAss... |
; Game main loop
;
L9DDD:
LD A,(LDB7A) ; Get Health
OR A
JP Z,LB9A2 ; zero => Player is dead
;
xor a ; black
out ($FE),a ; set border color
;
CALL LADE5 ; Decode current room to LDBF5; HL = LDBF5
CALL LA88F ; Display 96 tiles... |
;size_t read(int fd, void *ptr, size_t len)
;returns number of written bytes
;
; $Id: read.asm,v 1.2 2015/01/19 01:32:44 pauloscustodio Exp $
;
PUBLIC read
.read
LD IX,2
ADD IX,SP
LD C,(IX+0) ;len
LD B,(IX+1)
LD L,(IX+2) ;ptr
LD H,(IX+3)
LD D,(IX+5) ;fd
RST 8
DEFB $D4 ;exits with BC=bytes read
LD L,C
LD ... |
SECTION code_fp_am9511
PUBLIC ___schar2fs
EXTERN cam32_sdcc___schar2fs
defc ___schar2fs = cam32_sdcc___schar2fs
|
put: MACRO
ld a, \2
ld \1, a
ENDM
ldx: MACRO
REPT _NARG
ld \1, a
SHIFT
ENDR
ENDM
farcall: MACRO
rst FarCall
db bank(\1)
dw \1
ENDM
callback: MACRO
ld a, bank(\1)
ld hl, \1
call Callback
ENDM
task: MACRO
ld a, bank(\1)
ld de, \1
call CreateTask
ENDM
fill: MACRO
ld hl, \1
ld bc, \2
.loop\@
ld [hl... |
PokedexTypeSearchConversionTable:
; entries correspond with PokedexTypeSearchStrings (see data/types/search_strings.asm)
db NORMAL
db FIRE
db WATER
db GRASS
db ELECTRIC
db ICE
db FIGHTING
db POISON
db GROUND
db FLYING
db PSYCHIC
db BUG
db ROCK
db GHOST
db DRAGON
db DARK
db STEEL
db FAIRY
|
; Program 9.3
; Addition Macro - MASM (32-bit)
; Copyright (c) 2017 Hall & Slonka
.386
.MODEL FLAT, stdcall
.STACK 4096
ExitProcess PROTO, dwExitCode:DWORD
intAdd MACRO dest, source1, source2
mov eax, source1
add eax, source2
mov dest, eax
ENDM
.DATA
intA DWORD 2
intB DWORD 4
intC DWORD 3
intD DW... |
[bits 32]
[extern _start] ; External C function from kernel.c
; It may be not the first function in kernel, so we ensure to launch the right one.
call _start ; Calling function.
jmp $ ; Hanging CPU up. TODO replace with hlt.
|
default_config:
.(
lda #MAX_STOCKS
sta config_initial_stocks
lda #$01
sta config_ai_level
sta config_player_b_character
sta config_requested_player_b_character
lda #$00
sta config_selected_stage
sta config_requested_stage
sta config_player_a_character_palette
sta config_player_a_weapon_palette
sta config... |
// Original test: ./lavallee/hw4/problem6/bnez_1.asm
// Author: lavallee
// Test source code follows
// This program tests the upper limit of the branch
lbi r2, 8 // sets r2 to non zero value
bnez r2, 127 // branches to largest positive twos comp number
halt
|
landmark: MACRO
; x, y, name
db \1 + 8, \2 + 16
dw \3
ENDM
Landmarks:
; Also used for the map name overlay
; entries correspond to constants/landmark_constants.asm
dbbw 0, 0, SpecialMapName
landmark 140, 100, NewBarkTownName
landmark 128, 100, Route29Name
landmark 100, 100, CherrygroveCityName
landmark... |
; sprite cursor per job control (c) W. Lenerz 2004
; 2004-03-29 1.00 first version, set sprite on per job basis
; 2004-04-02 1.01 CURSPRLOAD introduced
; 2004-04-07 1.02 SYSSPRLOAD introduced
*****************************************
*
* CURSPRON name or job,tag
* CURSPROFF name or job,tag
*
* set sprite cursor on/off... |
#include "Platform.inc"
#include "FarCalls.inc"
#include "Timer0.inc"
#include "Lcd.inc"
#include "States.inc"
#include "Flash.inc"
#include "TestFixture.inc"
radix decimal
PutScreenWhenStateIsIdleTest code
global testArrange
testArrange:
fcall initialiseTimer0
fcall initialiseLcd
fcall enableLcd
waitUn... |
;-------------------------------------------------------------------------------
; sys_intvecs.asm
;
; (c) Texas Instruments 2009-2010, All rights reserved.
;
.sect ".intvecs"
;-------------------------------------------------------------------------------
; import reference for interrupt routines
... |
// Tests a cast that is not needed
// Commodore 64 PRG executable file
.file [name="cast-not-needed.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basic
:BasicUpstart(m... |
; Write register D to the Output Port
MOV D, 11110000b
MOV E, 00001111b
NOT D
NOT D
SHR D
NOT E
NOT E
SHL E
NOT D
NOT D
SHR D
NOT E
NOT E
SHL E
NOT D
NOT D
SHR D
NOT E
NOT E
SHL E
NOT D
NOT D
SHR D
NOT E
NOT E
SHL E |
; IconPointers indexes (see data/icon_pointers.asm)
const_def
const ICON_NULL
const ICON_POLIWAG
const ICON_JIGGLYPUFF
const ICON_DIGLETT
const ICON_PIKACHU
const ICON_STARYU
const ICON_FISH
const ICON_BIRD
const ICON_MONSTER
const ICON_CLEFAIRY
const ICON_ODDISH
const ICON_BUG
const ICON_GHOST
const ICO... |
SECTION .text
GLOBAL mul_p224
mul_p224:
sub rsp, 0xf0 ; last 0x30 (6) for Caller - save regs
mov [ rsp + 0xc0 ], rbx; saving to stack
mov [ rsp + 0xc8 ], rbp; saving to stack
mov [ rsp + 0xd0 ], r12; saving to stack
mov [ rsp + 0xd8 ], r13; saving to stack
mov [ rsp + 0xe0 ], r14; saving to stack
mov [ rsp + 0xe8 ], ... |
;*!
;* \copy
;* Copyright (c) 2009-2013, Cisco Systems
;* All rights reserved.
;*
;* 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 abo... |
db "COCOON@" ; species name
dw 200, 220 ; height, weight
db "Nearly incapable"
next "of movement, it"
next "leans against"
page "stout trees while"
next "waiting for its"
next "evolution.@"
|
dnl SPARC v9 mpn_addmul_1 for T1/T2.
dnl Copyright 2010 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of either:
dnl
dnl * the GNU Lesser General Public License as published ... |
* Spreadsheet 17/03-92
* - macro operation
section prog
include win1_keys_wman
include win1_keys_wwork
include win1_keys_wstatus
include win1_keys_qdos_pt
include win1_keys_sys
include win1_keys_qdos_sms
include win1_spread_keys
include win1_mac_oli
xdef mcr_user
xdef mc... |
[BotW_MenuCursorSpeed_V208]
moduleMatches = 0x6267BFD0
0x10327D60 = .uint 0x1337 ; sets the value for when it's enabled
0x10327D64 = .float $cursorSpeed ; sets cursor speed in a static memory address that's also used by the GameSpeed patch to read the cursor speed |
SECTION code_fp_math16
PUBLIC ___hgt_callee
PUBLIC _f16_isgreater_callee
EXTERN cm16_sdcc___gt_callee
defc ___hgt_callee = cm16_sdcc___gt_callee
defc _f16_isgreater_callee = cm16_sdcc___gt_callee
|
; Substitute for the z80 lddr instruction
; Doesn't emulate the flags correctly
SECTION code_crt0_sccz80
PUBLIC __z80asm__lddr
__z80asm__lddr:
push af
loop:
IF __CPU_GBZ80__
ld a, (hl-)
ELSE
ld a, (hl)
dec hl
ENDIF
ld (de), a
dec... |
\ ******************************************************************************
\
\ ELITE-A ENCYCLOPEDIA SOURCE
\
\ Elite-A is an extended version of BBC Micro Elite by Angus Duggan
\
\ The original Elite was written by Ian Bell and David Braben and is copyright
\ Acornsoft 1984, and the extra code in Elite-A is copyr... |
.db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $00,$00,$00,$00,$00,$00,$30,$01,$38,$02,$38,$00,$90,$02,$3e,$03
.db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00
.db $00,$00,$00,$00,$00,$00,$d0,$00,$c8,$01,$48,$03,$b0,$01,$e2,$02
.db $00,$00,$00,$00,$00,$00... |
;--- crt0.asm for MSX-DOS 2 - by Konamiman, 1/2020
;
; Advanced version with fork:
;
; - Defines main as "int main(char** argv, int argc)",
; the returned value will be passed to _TERM.
;
; - Allows executing a separate program as a subprocess,
; when the suprocess ... |
; uint in_Pause(uint ticks)
; 09.2005 aralbrec
PUBLIC in_Pause
EXTERN in_WaitForNoKey, in_WaitForKey, t_delay
; Waits a period of time measured in milliseconds and exits
; early if a key is pressed
;
; enter: HL = time to wait in ms, if 0 waits forever until key pressed
; exit : carry = exit early because of keypress... |
.org 0x3800
.db 0x0, 0x0, 0x1, 0x80, 0x0, 0x0, 0x0, 0x1f, 0xf8, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0xc0, 0x80, 0x0, 0x0, 0xff, 0xff
.db 0x0, 0x0, 0x3c, 0x0, 0xff, 0x0, 0x18, 0x0, 0xfe, 0x3
.db 0xff, 0x1, 0x81, 0x0, 0x66, 0x0, 0x18, 0x0, 0x0, 0xc
.db 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0
.db 0x0, 0x0, 0x0, 0x0, 0x0... |
;
;==================================================================================================
; ROMWBW 2.X CONFIGURATION DEFAULTS FOR RC2014
;==================================================================================================
;
; BUILD CONFIGURATION OPTIONS
;
CPUOSC .EQU 7372800 ; CPU ... |
netio:
.name db "netio",0
times 32 - ($-.name) db 0
.lba dd 1301
.size_sects dd 1
.size_bytes dd 2
.time db 10+12
db 48
.date db 2, 2
.year dw 2017
.flags db 0x03 ; file present
.reserved: times 13 db 0
|
exhirom
; change the icons for the missiles, super missiles, and power bombs so we can display maximum amounts
; org $9AB540 ; location in vanilla SM
org $DAB540 ; location in crossover
base $9AB540
DB $FF,$80,$9F,$7F,$B2,$7F,$AE,$73,$AE,$73,$B2,$7F,$9F,$7F,$FF,$80 ; left half of super missile tile
DB $FF,$01,$F1,... |
;
; MACROs for common tasks and repeating parts of code
;
;
;
;
; -----------------------------------------------------------------------------
; MACRO for writing a line. Use with ".invoke wrtline <address>" where
; <address> is the first byte of the string in 16 bit. As a "write"
; command, the string has to be te... |
# Program to add two plus three
.text
.globl main
main:
ori $8,$0,0x2 # put two's comp. two into register 8
ori $9,$0,0x3 # put two's comp. three into register 9
addu $10,$8,$9 # add register 8 and 9, put result in 10
mul $11,$8,$9 ... |
;
; SPDX-License-Identifier: BSD-2-Clause
;
; Copyright 2007-2012 Novell, Inc.
; Copyright 2012-2020 SUSE LLC
;
; 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 c... |
tvnoise
; set page 7 screen to white
ld bc,0x7ffd
ld a,0x07
out (c),a
ld hl,0xd800
ld de,0xd801
ld bc,0x02ff
ld (hl),0x3f
ldir
; set page 5 screen to black (with white ink)
ld hl,0x4000
ld de,0x4001
ld bc,0x1800
ld (hl),l
ldir
ld bc,0x02ff
ld (hl),0x07
ldir
ld b,120 ; was 50
noisewaitlp
halt
push ... |
#include <macros.h>
.globl __boot_magic
.data
.align 8
__boot_magic:
.dword 0
//exception.asm
.extern exception_vector
.text
.align 8
.globl _start
_start:
b reset
.globl reset
reset:
//why ?
mrs x2, S3_1_C15_C3_0 // Read CBAR_EL1 into X2
// in case someone one day provides us with a cookie
ldr x8 , __... |
; equivalent C code
; void start() {
; put(letter(26));
; }
;
; int letter(int n) {
; return n + 64;
; }
start:
PUSH A0
PUSH A1
PUSH #26
CALL letter
FRV A0
OUT A0
HLT
letter:
CAG A0, $FF
LOAD A0, #64
CAG A1, [sp+2]
ADD A0, A1
RET A0, #1 |
; Copyright © 2021, VideoLAN and dav1d authors
; Copyright © 2021, 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... |
; data segment
data SEGMENT
msg0 dw 13,10,"Enter no of elements ( less than 10 ): $"
msg1 dw 13,10,"Enter the elements in sorted order : $"
msg2 dw 13,10,"Enter the element you want to find : $"
msg3 dw 13,10,"Element is Found at Location : $"
msg4 dw 13,10,"Element Not Found... $"
array db 15... |
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
; SCCSID = @(#)mshead.asm 1.1 85/04/10
; TITLE MSHEAD.ASM -- MS-DOS DEFINITIONS
PAGE
; MS-DOS High-performance operating system for the 8086 version 1.28
; by Microsoft MSDOS development group:
; Tim Paterson (Ret.)
... |
BattleCommand_thunderaccuracy:
; thunderaccuracy
ld a, BATTLE_VARS_MOVE_TYPE
call GetBattleVarAddr
and TYPE_MASK
inc hl
ld a, [wBattleWeather]
cp WEATHER_RAIN
jr z, .rain
cp WEATHER_SUN
ret nz
ld [hl], 50 percent + 1
ret
.rain
; Redundant with CheckHit guranteeing hit
ld [hl], 100 percent
ret
|
;;; print_hex.asm
;;;
;;; 1.以16进制显式数字
;;; 2.包含正向、逆向顺序显式
;;; 3.只能是两个字节以内的数值
;;;
;;; [REMARKS]
;;; 1.没有使用stack,所以使用了变量tmp来保存中间结果
;;; 从代码规范上讲,这样编写是不对的,阅读者注意
;;; 2.16位除法时,会引发#DE,比如3335/10,如果以byte mode除
;;; 会导致al部分更本容纳不下商,cpu不会作任何用户可见操作
;;; 除法操作会一直循环执行下去
;;; 3.针对2中的问题,将16位除法转换为32位除法操作,「也许」前人
;;; 曾经... |
;LightsOut
[ORG 0x7c00]
LEFT EQU 75
RIGHT EQU 77
UP EQU 72
DOWN EQU 80
SPACE EQU 0x39
; Init the environment
xor ax, ax ; make it zero
mov ds, ax ; DS=0
mov ss, ax ; stack starts at 0
mov sp, 0x9c00 ; 200h past code start
mov ah, 0xb8 ; text video m... |
SECTION code_fp_am9511
PUBLIC cam32_sccz80_fmod_callee
EXTERN _am9511_fmod, asm_switch_arg
.cam32_sccz80_fmod_callee
; Entry:
; Stack: float left, float right, ret
; Reverse the stack
call asm_switch_arg
call _am9511_fmod
pop af
pop af
pop af
pop af
ret
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.