content stringlengths 23 1.05M |
|---|
# Dan Ellard - 11/10/96
# Echos input until EOI is reached.
# Register usage:
# r2 - holds each character read in.
# r3 - address of $print.
lc r3, $print
loop:
in r2, ASCII # r2 = getchar ();
beq r3, r1, r0 # if not at EOF, go to $print.
jmp $exit ... |
;------------------------------------------------------
GameCoord TYPEDEF BYTE
;
; References a Tile on the gameboard by its Row and Column
; (coordinate system inspired by the games like BattleShip and Chess)
;
; Tile Formula: (Col#) + (16*Row#), where
; Row# is an integer in the range 1-6, and
; ... |
; Generated by MoonRock 0.50 from sourcecode file SLI.SRC
; Compile time was 22:35:50 on 25-Jul-2006
; * Conditional directives: __EXE __8086
; * Compiled for maximum speed.
; * Lowest target processor: 8086
_text segment para public 'code'
assume cs:_text
_text ends
_strconst segment para public 'data'
assume cs:_str... |
%define org_start 7c00h
boot:
org 0x7C00
mov ax, cs
mov ds, ax
mov es, ax
;mov ax, 07E0h ; 07E0h = (07C00h+200h)/10h, beginning of stack segment.
mov ax, 0800h ; 0800h = (07E00h+200h)/10h, beginning of stack segment.
mov ss, ax
mov sp, 2000h ; 8k of stack space.
call screenClean
push 0000h
call curso... |
global _start
section .data
; db: Create data bytes
message: db 'hello, world', 10
section .text
_start
; System call number must be stored in rax
mov rax, 1
; Arg #1 rdi: where to write
mov rdi, 1
; Arg #2 rsi: where the string starts
mov rsi, message
; Arg #3 rdx: number of bytes that must be wr... |
;/****************************************************************************
; *
; * XVID MPEG-4 VIDEO CODEC
; * - SSE2 inverse discrete cosine transform -
; *
; * Copyright(C) 2002 Dmitry Rozhdestvensky
; *
; * This program is free software; you can redistribute it and/or modify it
; * under the terms of the GN... |
bipush 10
istore j
bipush 10
istore k
iload j
iload k
iadd
istore i
iload i
bipush 25
if_icmpeq l1
iload j
bipush 1
isub
istore j
goto l2
l1 bipush 13
istore k
l2 bipush 25
|
org 100h
MOV AX, 4 ;First int
MOV BX, 6 ;Second int
MOV CX, 8 ;Third int
ADD BX, AX ;ADD and store in BX register
ADD CX, BX ;ADD and store in CX register
ret |
;
; TI calc Routines
;
; getk_decode() Translates key code
;
; Stefano Bodrato - Dec 2000
;
;
; $Id: getk_decode.asm,v 1.5 2002/04/17 21:30:26 dom Exp $
;
XLIB getk_decode
INCLUDE "stdio/ansi/ticalc/ticalc.inc"
.getk_decode
IF FORti82
; **** If we have a TI82 and we use CRASH, ****
; **** letters and numbers ar... |
SECTION .text
global main
main:
push message
call printf
call exit
SECTION .data
extern exit, printf
message dd 'Hello World!', 0
|
db "VIRTUAL@" ; species name
db "Its programming"
next "was modified to"
next "enable work in"
page "alien dimensions."
next "However, it didn't"
next "work as planned.@"
|
; ===============================================================
; Jan 2014
; ===============================================================
;
; void *p_forward_list_back(p_forward_list_t *list)
;
; Return item at back of list without removing it from the list.
; O(n)
;
; ===========================================... |
include "src/constants.asm"
include "src/macro.asm"
include "src/registers.asm"
SECTION "Main", ROM0
include "src/protocol.asm"
; Locks the CPU
; Params:
; None
; Return:
; None
; Registers:
; N/A
lockup::
reset interruptEnable
halt
; Tests if the current hardware is SGB
; Params:
; None
; Return:
; ... |
; This corresponds to Cry_Unused_Ch5, Cry_Unused_Ch6, and Cry_Unused_Ch8 in pokegold and pokecrystal.
SFX_UnusedCry_1_Ch5: ; unreferenced
duty_cycle_pattern 3, 3, 0, 0
square_note 15, 14, 0, 1920
square_note 15, 15, 0, 1924
square_note 15, 12, 3, 1504
square_note 15, 12, 4, 1536
square_note 10, 6, -4, 1920
squar... |
kernel: file format elf32-i386
Disassembly of section .text:
80100000 <multiboot_header>:
80100000: 02 b0 ad 1b 00 00 add 0x1bad(%eax),%dh
80100006: 00 00 add %al,(%eax)
80100008: fe 4f 52 decb 0x52(%edi)
8010000b: e4 .byte 0xe4
8010000c <entry>:
# E... |
; Converted using ConvPNG
_icon: ; 198 bytes
.db 14,14
.db 094h,094h,094h,094h,094h,094h,094h,094h,094h,094h,094h,094h,04Ah,04Ah
.db 094h,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,0FFh,094h,04Ah,04Ah
.db 094h,0FFh,0D6h,0DEh,0DEh,0DEh,0DEh,0DEh,0DEh,0DEh,0FFh,0C1h,0C0h,0E0h
.db 094h,0FFh,0D6h,0DEh,0DEh,0DEh,... |
;
; Z88 Graphics Functions - Small C+ stubs
; ----- void xordrawr(int x2, int y2)
IF !__CPU_INTEL__ & !__CPU_GBZ80__
SECTION code_graphics
PUBLIC xordrawr
PUBLIC _xordrawr
EXTERN asm_xordrawr
.xordrawr
._xordrawr
pop af ; ret addr
pop de ; y
pop hl ;... |
/*++
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License.
Module Name:
SymQgemmS8KernelNeon.asm
Abstract:
This module implements the kernels for the quantized integer matrix/matrix
multiply operation (QGEMM), where the right hand side is symmetrically quantized,
... |
;-------------------------------------------------------------------------
; INTEL Corporation Proprietary Information
;
; This listing is supplied under the terms of a license
; agreement with INTEL Corporation and may not be copied
; nor disclosed except in accordance with the terms of
; that agr... |
Map_SStageTailstails_:dc.w word_91124-Map_SStageTailstails_
dc.w word_91126-Map_SStageTailstails_
dc.w word_9112E-Map_SStageTailstails_
dc.w word_91136-Map_SStageTailstails_
dc.w word_9113E-Map_SStageTailstails_
dc.w word_91146-Map_SStageTailstails_
dc.w word_9114E-Map_SStageTailstails_
dc.w word_91156-Ma... |
db "WISH@" ; species name
db "Generations have"
next "believed that any"
next "wish written on a"
page "note on its head"
next "will come true"
next "when it awakens.@"
|
<% from pwnlib.shellcraft import mips %>
<%docstring>Execute /bin/sh</%docstring>
${mips.pushstr('//bin/sh')}
${mips.syscall('SYS_execve', '$sp', 0, 0)}
|
proc imp.msvcrt.dll!_cexit Label_004028E4
attrs [[jumponly]]
# call_from : 004014C0
Label_004028E4:
004028E4: FF 25 C4 61 40 00 : jmp dword [0x4061c4]
end proc
|
.text
addi $sp, $zero, 2000
#############################################################
#走马灯测?,测试addi,andi,sll,srl,sra,or,ori,nor,syscall LED按走马灯方式来回显示数据
#############################################################
.text
START:
addi $s0,$zero,1
sll $s3, $s0, 31 # $s3=0x80000000
sra $s3, $s3, 31 # $s... |
; void __FASTCALL__ *adt_QueueCreateS(struct adt_Queue *q)
; 11.2006 aralbrec
SECTION code_clib
PUBLIC adt_QueueCreateS
PUBLIC _adt_QueueCreateS
EXTERN l_setmem
; initialize an adt_Queue
;
; hl = struct adt_Queue*
.adt_QueueCreateS
._adt_QueueCreateS
xor a
jp l_setmem-11
|
comment *
Algo : GOST
Block : 8 bytes
Key : 32 bytes (256 b)
push offset key ;password ptr, exactly 32 bytes readed as key !!!
push offset plain ;data to encrypt ptr
push offset encrypted_buf ;destination ptr
call Gost_Crypt
push offset key ;password ptr, exactly 32 bytes readed as key !!!
push offset encr... |
; Programm will find min symbol in array
; Output it and it's index
SSEG SEGMENT PARA STACK 'STACK'
DB 64 DUP(0)
SSEG ENDS
DSEG SEGMENT PARA 'DATA'
A DB "3423531945"
DSEG ENDS
CSEG SEGMENT PARA 'CODE'
ASSUME CS:CSEG, DS:DSEG, SS:SSEG
START PROC FAR
MOV AX, DSEG
MOV DS, AX
MOV SI, 1 ; current index
MOV DI, 0... |
;
; Copyright (c) 2010 The WebM project authors. All Rights Reserved.
;
; Use of this source code is governed by a BSD-style license
; that can be found in the LICENSE file in the root of the source
; tree. An additional intellectual property rights grant can be found
; in the file PATENTS. All contributing proje... |
org 0x7C00
bits 16
jmp start
nop
OEM_ID db "MSDOS5.0"
BytesPerSector dw 0x0200
SectorsPerCluster db 0x08
ReservedSectors dw 0x0020
TotalFATs db 0x02
MaxRootEntries dw 0x0000
NumberOfSectors dw 0x0000
MediaDescriptor db 0xF8
SectorsPerFAT ... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section .text code align=64
global rsaz_avx2_eligible
rsaz_avx2_eligible:
xor eax,eax
DB 0F3h,0C3h ;repret
global rsaz_1024_sqr_avx2
global rsaz_1024_mul_avx2
global rsaz_1024_norm2red_avx2
global rsaz_1024_red2norm_avx2
global rsaz_1024_scatter5_avx2
... |
ASSUME CS:CODE,DS:DATA
DATA SEGMENT
X DB 01H,02H,03H,04H,05H ;
DATA ENDS
CODE SEGMENT
START:MOV AX,DATA
MOV DS,AX
MOV CX,05H
LEA SI,X+04
LEA DI,X+04+05
UP: MOV BL,[SI]
MOV [DI],BL
DEC SI
DEC DI
DEC CX
JNZ UP
MOV AH,4CH
INT 21H
CODE ENDS
END START
|
Name: ys_w12.asm
Type: file
Size: 14461
Last-Modified: '2016-05-13T04:51:43Z'
SHA-1: 993C63AE999C843BC55651BBCE2C96A454860496
Description: null
|
; 1 2 3 4 5 6 7
;234567890123456789012345678901234567890123456789012345678901234567890
;=====================================================================
;
; FUNCTION NAME: vec_normalize_0_1
; FUNCTION DOCUMENTATION: <See doc/description file>
;
; ... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_utz_TinyTexanS
_ff_utz_TinyTexanS:
BINARY "font/fzx/fonts/utz/TinyTexan/tinytexanS.fzx"
|
global _start
section .text
_start:
call func
mov rax, 1
int 0x80
func:
mov rbx, 42
pop rax
jmp rax
|
object_const_def ; object_event constants
const POKESEERSHOUSE_GRANNY
PokeSeersHouse_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
SeerScript:
faceplayer
opentext
special PokeSeer
waitbutton
closetext
end
PokeSeersHouse_MapEvents:
db 0, 0 ; filler
db 2 ; warp events
warp_event 2, 7, CIANWOOD_CIT... |
; CRT0 for the Rabbit Control Module
;
; If an error occurs (eg. out if screen) we just drop back to BASIC
;
; - - - - - - -
;
; $Id: rcmx000_crt0.asm,v 1.13 2016-06-21 20:49:06 dom Exp $
;
; - - - - - - -
; TODO_KANIN Fix this!!!
MODULE rcmx000_crt0
;-------
; Include zcc_opt.def to find out in... |
;this file generated with SNES GSS tool
.define SFX_OUCH 0
.define MUS_UNTITLED 0
.section ".roDataSoundCode1" superfree
spc700_code_1: .incbin "spc700.bin" skip 0 read 18816
spc700_code_2:
.ends
.section ".roDataMusic1" superfree
music_1_data: .incbin "music_1.bin"
.ends
|
; Prototpe PIPE driver V2.01 Tony Tebby
section pipe
xdef pipe_io
xref pipe_name
include 'dev8_keys_qu'
include 'dev8_keys_qdos_io'
include 'dev8_keys_err'
include 'dev8_keys_k'
include 'dev8_iod_pipe_data'
include 'dev8_mac_assert'
;+++
; PIPE IO routine
;
; NOTE that this routine uses IO BUFFER defin... |
; Bootloader --- An SDHC/SDXC SD card program loader
jmp program
include "libraries/Serial.asm"
include "libraries/SD.asm"
program:
;jsr setup_serial ; Uncomment for debugging
jsr setup_sd_card
; Start communication with card
ldr $0,A
out {sd_cs},A
; Copy program into RAM
lda $8000... |
; COPYRIGHT (c) 1995,99,2002 XDS. All Rights Reserved.
; Implementation for tan & tanl functions
cpu 386
bits 32
%ifdef OS2
group DGROUP _DATA
section _DATA use32 align=4 FLAT public 'DATA'
%else
group DGROUP _DATA
section _DATA use32 align=4 public '... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
include bambi.inc
zseg segment public 'CODE'
assume cs:zseg
assume ds:nothing
public detect_processor
.386
;*******************************... |
section .data
newl : db 10
msg1: db 'enter array elements',10
siz1 : equ $-msg1
msgn : db 'enter array size',10
sizn : equ $-msgn
msg2 : db 'max:',10
siz2 : equ $-msg2
msg3 : db 'min:',10
siz3 : equ $-msg3
section .bss
num : resw 1
temp : resw 1
count : resw 1
array : resw 100
n : resw 1
i : resw ... |
SECTION code_stdio
PUBLIC __stdio_scanf_ln
__stdio_scanf_ln:
; %ln converter called from vfscanf()
;
; enter : hl = long *p
;
; exit : carry reset
;
; uses : all except ix
ld a,h
or l
ret z ; if assignment suppressed
exx
push de
exx
pop de ... |
title 'Z80 instruction set exerciser'
; zexlax.z80 - Z80 instruction set exerciser
; Copyright (C) 1994 Frank D. Cringle
;
; This program 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 Foundation; either versio... |
; Ellipse Workstation 1100 (fictitious computer)
; ROM code (top-level)
;
; Copyright (c) 2020 Sampo Hippeläinen (hisahi)
;
; 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 re... |
BITS 16
org 0x7c00
load_gdt:
lgdt [GDT_DESC] ; 0F 01 15 (14 7C 00 00): 15=21: 000 10(op) 101(r/m)
; xgetbv ; 0F 01 D0: D0(so): 110 10(op) 000(r/m)
; xsetbv ; 0F 01 D1: D1(so): 110 10(op) 001(r/m)
; monitor ; 0F 01 C8: C8(so): 110 01(op) 000(r/m)
; mwait ; 0F 01 C9: C9=201: 110 01(op) 001(r/m)
... |
;
; Copyright (C) 2014-2014 Intel Corporation.
; SPDX-License-Identifier: MIT
;
include asm_macros.inc
PROLOGUE
PUBLIC main
.code
main PROC
lea RETURN_REG,next_line
push RETURN_REG
mov RETURN_REG,0fedh
; This is a jmp with bad address, but it will be translated to "jmp *(rsp)"
jmp ADDRINT_PTR [RET... |
; sp1_DrawUpdateStructIfNotRem(struct sp1_update *u)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_DrawUpdateStructIfNotRem_fastcall
EXTERN asm_sp1_DrawUpdateStructIfNotRem
defc _sp1_DrawUpdateStructIfNotRem_fastcall = asm_sp1_DrawUpdateStructIfNotRem
|
; Player table for multiworld
; 16-bytes per player (supports up to 256 players as is)
; (12-byte name, 4 bytes of data if needed)
rando_player_table:
db " Player 1 " : dw $0000, $0000
db " Player 2 " : dw $0000, $0000
db " Player 3 " : dw $0000, $0000
db " Player 4 " : dw $0000, $0000
db "... |
# 本文档存储器以字节编址
# 本文档存储器以字节编址
# 本文档存储器以字节编址
# 初始PC = 0x00000000
.data
.word 0,6,0,16,0x80000000,0x80000100,0x100,5,0 #编译成机器码时,编译器会在前面多加个0,所以后面lw指令地址会多加4
_start:
addi $t0,$0,3 #t0=3 0 20080003
addi $t1,$t0,2 #t1=5 4 21090002
addi $t2,$0,1 #t2=1 8 200a0001
addi $t3,$0,0 #t3=0... |
SECTION code_clib
PUBLIC bit_open_di
PUBLIC _bit_open_di
EXTERN bit_open
EXTERN __snd_tick
EXTERN __bit_irqstatus
INCLUDE "games/games.inc"
.bit_open_di
._bit_open_di
ld a,($403B)
ld (__bit_irqstatus),a
and @01111111 ;Disable NMI (i.e. how interrupt... |
MVI A,FF
STA 204D
LXI H,204F
MOV B,M
LXI H,2050
LDA 204E
LOOP: CMP M
JNZ SKIP
MOV A,C
STA 204D
HLT
SKIP: INX H
INR C
DCR B
JNZ LOOP
HLT
|
; test fatal error upon "too short" due to wrong length
INCBIN "incbin_tooshort2.asm", 1, 4000
|
; size_t ba_priority_queue_capacity(ba_priority_queue_t *q)
SECTION code_clib
SECTION code_adt_ba_priority_queue
PUBLIC ba_priority_queue_capacity
EXTERN asm_ba_priority_queue_capacity
defc ba_priority_queue_capacity = asm_ba_priority_queue_capacity
|
//P2 = 0;
//S = 0xFF + (x>>8);
//S = 0xFF + ((x*S)>>8);
//S= 0x7F + ((x*S)>>8);
//P2 = 0x1F;
//P3 = S;
CSEG AT 0
START:
mov r0, #0 // r0 = x;
LOOP:
mov P2, #0
mov a, #0xFF //S = 0xFF + (x>>8);
mov b, r0
mul ab
mov a, b
add a, #0xFF //S = 0xFF + ((x*S)>>8);
mov b, r0
mul ab
mov a, b //((x*S)>>8);
mov b, #... |
; Basic block with two non-branching instructions terminated by a
; branching instruction with the successors block_1 and block_2.
block_0:
mov eax, 0
cmp ecx, 42
je block_2
; Basic block with one non-branching instruction terminated by a
; fallthrough into block_2, as branches may only target the firs... |
global long_mode_start
section .text
bits 64
long_mode_start:
extern rust_main
call rust_main
mov rax, 0x2f592f412f4b2f4f
mov qword [0xb8000], rax
hlt
|
; test case for call/return behavior.
ldi r17, 0b0001
call test
ldi r17, 0b0100
call test2
break
test:
ldi r17, 0b010
ret
test2:
ldi r18, 0b100
ldi r19, 0b1000
call test
ret
|
SECTION "This is invalid", ROM0
ds 10, 42
PUSHS
; We should be outside of section scope now
db 69
|
%ifdef CONFIG
{
"RegData": {
"RAX": "0x4142",
"RBX": "0x4143",
"RCX": "0x4144"
}
}
%endif
; This relies on some behaviour that isn't guaranteed in 64bit mode
; Technically this can result in an invalid selector which can cause faults
; We currently don't do any selector validation to enforce this
mov r... |
; uchar tshc_aaddr2py(void *aaddr)
SECTION code_clib
SECTION code_arch
PUBLIC tshc_aaddr2py
EXTERN zx_saddr2py
defc tshc_aaddr2py = zx_saddr2py
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _tshc_aaddr2py
defc _tshc_aaddr2py = tshc_aaddr2py
ENDIF
|
; size_t b_array_erase_range(b_array_t *a, size_t idx_first, size_t idx_last)
SECTION code_clib
SECTION code_adt_b_array
PUBLIC b_array_erase_range_callee
EXTERN asm_b_array_erase_range
b_array_erase_range_callee:
pop af
pop hl
pop bc
pop de
push af
jp asm_b_array_erase_range
; SDCC bridge ... |
DATA SEGMENT
CHA1 DB 'A'
CHA2 DB 'B'
STR1 DB 'YES','$'
STR2 DB 'NO','$'
DATA ENDS
STACK SEGMENT STACK
DW 100 DUP (?)
STACK ENDS
CODE SEGMENT
ASSUME CS:CODE,SS:STACK,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV AL,CHA1
MOV BL,CHA2
CMP AL,B... |
frame 0, 04
frame 1, 20
frame 2, 08
frame 0, 08
frame 2, 06
frame 0, 06
frame 2, 04
endanim
|
copyright zengfr site:http://github.com/zengfr/romhack
009C8A move.w A0, ($4c,A6) [1p+4A]
00A2C6 dbra D0, $a2c0
00A31C clr.b ($4a,A4)
00A320 clr.b ($4c,A4)
00A6B6 clr.b ($96,A6)
00A888 clr.b ($4a,A6) [weapon+3E]
00A88C clr.b ($96,A6)
00B944 clr.b ($4a,A6) [1p+2B]
00B948 clr.w ($4c,A6)
... |
section .multiboot_header ; declaring the section name
header_start: ; header_start / _end are labels that mark memory location used to calculate the header length easier
dd 0xe85250d6 ; magic number (multiboot 2)
dd 0 ; architecture 0 (protected mode i386)
dd header_end - header_start ; header le... |
#d8 "a" ; = 0x61
#d16 "b" ; = 0x0062 |
@Assembly code to print numbers from 2 to 20
.main:
addi x1, x0, 1
addi x2, x0, 1
addi x4, x0, 20
loop:
add x3, x1, x2
.print x3
addi x2, x2, 1
bne x2, x4, loop
end |
; ===============================================================
; Jan 2014
; ===============================================================
;
; size_t fread_unlocked(void *ptr, size_t size, size_t nmemb, FILE *stream)
;
; Read nmemb records of size bytes into address ptr. Read
; one record at a time and return th... |
;
; Microsoft Confidential
; Copyright (C) Microsoft Corporation 1991
; All Rights Reserved.
;
;
;OVERVIEW
;
; This module contains the first bytes of the .exe file. The
;first bytes indicate that the .exe is a DEVICE DRIVER. Thus, this is
;a device driver header. See devini.asm for how device driver calls
;are ha... |
ORIGIN = $A000
LEN = $1000
WRCVEC = &0208
RDCVEC = &020A
WRCH = &FE52
LCD_CTRL = &B404
LCD_DATA = &B405
VSYNC = &FE66
TMP = &9E
org ORIGIN - 22
EQUS "ATOMLCD"
EQUB 0,0,0,0,0,0,0,0,0
EQUW ORIGIN
EQUW ORIGIN
EQUW LEN
... |
;=================================================
; Name: Sungho Ahn
; Email: sahn025@ucr.edu
; GitHub username: ptr2578
;
; Lab: lab 9
; Lab section: B21
; TA: Jason Goulding
;=================================================
.ORIG x3000
LD R4, BASE
LD R5, TOS
LD R6, MAX
LD R1, PTR_STACK_PUSH
LD R0, TEST_VAL
JSRR R... |
; ===============
; Project defines
; ===============
if !def(definesIncluded)
definesIncluded set 1
; Hardware defines
include "hardware.inc"
; ================
; Global constants
; ================
sys_DMG equ 0
sys_GBP equ 1
sys_SGB equ 2
sys_SGB2 equ 3
sys_GBC equ 4
sys_GBA equ 5
btnA equ 0
btnB ... |
; line: 'Lots of books about the dark arts.'
; size in bytes: 35
line_0:
db #22,#42,#84,#8e,#8c,#00,#84,#73,#00,#6b,#84,#84,#7c,#8c,#00,#69
db #6b,#84,#90,#8e,#00,#8e,#77,#71,#00,#6f,#69,#8a,#7c,#00,#69,#8a
db #8e,#8c,#14
end_line_0:
; line: 'the dark arts!'
; size in bytes: 15
line_1:
db #0e,#8e,#77,#7... |
!INFINITE_BOMBS = "$7F50C9"
IsItemAvailable:
LDA !INFINITE_BOMBS : BEQ .finite
.infinite
CPX.b #$04 : BNE .finite
LDA.b #$01 : RTL
.finite
LDA $7EF33F, X
RTL
LoadBombCount:
LDA !INFINITE_BOMBS : BNE .infinite
.finite
LDA $7EF343
.infinite
RTL
LoadBombCount16:
LDA !INFINITE_BOMBS : AND.w #$00FF : BNE .inf... |
.macro SaveZeroPage() {
ldx #0
loop:
lda $00,x
sta zp_backup,x
inx
bne loop
}
.macro RestoreZeroPage() {
ldx #0
loop:
lda zp_backup,x
sta $00,x
inx
bne loop
}
/**
* Set the interrupt vector to 'addr' and store the original value to 'orig_isr'
* Affected: AC,ZERO
*/
.ma... |
; Z88 Small C+ Run time Library
; Moved functions over to proper libdefs
; To make startup code smaller and neater!
;
; 23/1/2001 djm
SECTION code_crt0_sccz80
PUBLIC l_pint_pop
EXTERN l_pint
; store int from HL into (DE)
.l_pint_pop
pop bc ;return ad... |
;----------------------------------------------------------------------------
; LMAC.ASM
;
; Main file for SMC 9432 LMAC.
;
;$History: LMAC.ASM $
;
; ***************** Version 1 *****************
; User: Paul Cowan Date: 26/08/98 Time: 9:40a
; Created in $/Client Boot/NICS/SMC/9432/UNDI
;
;-----------... |
SECTION "Map_4530", ROM0[$B800]
Map_4530_Header:
hdr_tileset 0
hdr_dimensions 9, 9
hdr_pointers_a Map_4530_Blocks, Map_4530_TextPointers
hdr_pointers_b Map_4530_Script, Map_4530_Objects
hdr_pointers_c Map_4530_InitScript, Map_4530_RAMScript
hdr_palette $06
... |
main.exe: 文件格式 elf64-x86-64
Disassembly of section .init:
00000000004003e0 <_init>:
4003e0: 48 83 ec 08 sub $0x8,%rsp
4003e4: 48 8b 05 0d 0c 20 00 mov 0x200c0d(%rip),%rax # 600ff8 <_DYNAMIC+0x1d0>
4003eb: 48 85 c0 test %rax,%rax
4003ee: 74 05 je ... |
# dm-exec files begin with declarations of devices, and tables
device bar = {name = "bar", uuid = "LKJDSFLS"}
device foo = {name = "foo"}
table t1 = [
error 1024 "",
error 4096 ""
]
# Then the special label .start annouces the begining of the
# instructions
.start
remove-all
begin-object "bar"
create bar
jmp-... |
include kernel.inc
include protect.inc
.list
.386p
DataBegin
externB WinFlags
externW hGlobalHeap
externW pGlobalHeap
externW ArenaSel
externD hBmDPMI
externD FreeArenaList
externD FreeArenaCount
externD SelTableStart
externW SelTableLen
externW InitialPages
DataEnd
sBegin INITCODE
assume... |
; x87 FPU math.h functions
extern puts
global initFPU ; void initFPU
global sin
global sinf
global sinl
global cos
global cosf
global cosl
global tan
global tanf
global tanl
global sqrt
global sqrtf
global sqrtl
global atan
global atanf
global atanl
global atan2
global atan2f
global atan2l
global exp
global expf
glo... |
include ff.equ
SAMPLESTART:
;монтируем SD карту
ld l,1 ;сразу проверить том на валидность
push hl
ld bc,drpath_zsd
ld de,ffs
call FF_MOUNT
pop hl
or a
ret nz ;возврат, если ошибка
;зайдем в директорию zx_images
ld de,dirname
call FF_CHDIR
cp 5
call z,create_cat ;не найден каталог
or a
ret nz ;в... |
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 141
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %44 %51
OpExecutionMode %4 Ori... |
;
; File: exceptions.asm
;
; Copyright (c) 2017-2018 Sydney Erickson, John Davis
;
; 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 righ... |
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1988 - 1991
; * All Rights Reserved.
; */
; Check for existence of a VDisk header. Check the beginning of the segment
; addressed by the INT 19 vector, and, if XMS is available to... |
; A261667: Dimension of a certain space of duality relations arising in study of q-analogs of multiple zeta values.
; Submitted by Jon Maiga
; 0,0,0,0,1,2,6,12,25,48,90
sub $0,2
mov $2,1
mov $3,$0
mul $3,4
lpb $3
add $0,1
add $1,$2
add $5,$2
add $1,$5
add $2,$1
mul $1,2
sub $3,1
cmp $5,2
lpe
mul $2,$1
... |
;; (c) Copyright Kevin Thacker 2015-2016
;; This code is part of the Arnold emulator distribution.
;; This code is free to distribute without modification
;; this copyright header must be retained.
include "../lib/testdef.asm"
;; cpc tester
org &8000
start:
;;raster int test needed
ld a,2
call &bc0e
ld ix,tests
c... |
; Command line parsing
; Push pointers to argv[n] onto the stack now
; We must start from the end
; Entry: hl = end of arguments
; c = length of arguments
; b = 0
; Exit: bc = argc
; hl = argv
ld de,0 ;NULL pointer at end, just in case
push de
; Try to find the end of the arguments
argv_loop_1:
l... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Esp Test Suite
FILE: expr.asm
AUTHOR: Adam de Boor, Oct 7, 1989
REVISION HISTORY:
Name Date Description
---- ---- -----------
Ad... |
; signed long __fs2ulong_callee(float f)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdccixp_ds2ulong_callee
EXTERN cm48_sdccixp_dcallee1, am48_dfix32u
cm48_sdccixp_ds2ulong_callee:
; double to unsigned long
;
; enter : stack = sdcc_float x, ret
;
; exit : dehl = (unsigned long)(x)
;
... |
.MODEL SMALL
.STACK 100H
.DATA
;variables
s db "Please enter a number: $"
a db 0ah,0dh,'Yes$'
b db 0ah,0dh,'No$'
f db 5
e db 11
.CODE
MAIN PROC
;initialize DS
MOV AX,@DATA
MOV DS,AX
; enter your code here
;prompts for char input
lea dx,s
mov ah,9
int 21h
;takes input
mov ah,1
int 21h
mov bl,al
;c... |
SFX_Cry21_1_Ch1:
dutycycle 27
unknownsfx0x20 3, 243, 100, 5
unknownsfx0x20 2, 226, 68, 5
unknownsfx0x20 5, 209, 34, 5
unknownsfx0x20 2, 178, 132, 4
unknownsfx0x20 8, 209, 162, 4
unknownsfx0x20 3, 243, 36, 5
unknownsfx0x20 4, 228, 228, 4
unknownsfx0x20 8, 209, 2, 5
endchannel
SFX_Cry21_1_Ch2:
dutycycle 204
... |
TITLE ArraySum Optimization (ArrySum.asm)
INCLUDE Irvine32.inc
Optimized = 1
.data
Array DWORD 50 DUP(5)
.code
main PROC
push LENGTHOF Array
push OFFSET Array
call ArraySum
add sp,8
call WriteDec ; display the sum
call Crlf
exit
main ENDP
Comment !
IMPLEMEN... |
; Highspeed80
; by CKtwo, https://www.forum64.de/index.php?thread/42485
;
; From: https://github.com/mist64/80columns
SECTION rodata_font
SECTION rodata_font_4x8
PUBLIC _zx7_font_4x8_highspeed80
PUBLIC _zx7_font_4x8_highspeed80_end
_zx7_font_4x8_highspeed80:
BINARY "font_4x8_highspeed80.bin.zx7"
_zx7_font_4x8... |
%include "../defaults_bin.asm"
; ITERS EQU 2448
; DIVISOR EQU 204
ITERS EQU 480
DIVISOR EQU 120
mov al,TIMER0 | BOTH | MODE2 | BINARY
out 0x43,al
xor al,al
out 0x40,al
out 0x40,al
cli
mov ax,0
mov ds,ax
mov ax,cs
mov word[0x20],interrupt8
mov [0x22],ax
mov ds,ax
mov es,ax
mov ss,ax
... |
.text
.file "example0-8787f43e282added376259c1adb08b80.rs"
.section ".text._ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..convert..Into$LT$alloc..string..String$GT$$GT$4into17h38301ffbb2e8fb47E","ax",@progbits
.globl _ZN95_$LT$example..Bla$LT$$u27$a$GT$$u20$as$u20$core..... |
; stdio_atou
; 05.2008 aralbrec
PUBLIC stdio_atou
; ascii buffer to unsigned integer conversion
; whitespace is not skipped
; enter : de = char * buffer
; exit : de = & next char to interpret in buffer
; hl = unsigned int result
; uses : af, bc, de, hl
.stdio_atou
ld hl,0
dec de
.loop
inc d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.