content stringlengths 23 1.05M |
|---|
#bits 16
NOP = 0
PLOT = 1
CALL = 2
TYPE = 3
POS = 4
DBA = 6
COLOUR = 7
#ruledef {
nop => 0`13 @ NOP`3
plot {value} => 0`8 @ value`5 @ PLOT`3
call {value} => 0`5 @ value`8 @ CALL`3
ret => 1`5 @ 0`8 @ CALL`3
type {value} => 0`8 @ value`5 @ TYPE`3
pos {x}... |
.syntax unified
.arch armv7-a
.eabi_attribute 27, 3
.fpu vfpv3-d16
.eabi_attribute 20, 1
.eabi_attribute 21, 1
.eabi_attribute 23, 3
.eabi_attribute 24, 1
.eabi_attribute 25, 1
.eabi_attribute 26, 2
.eabi_attribute 30, 2
.eabi_attribute 34, 1
.eabi_attribute 18, 4
.thumb
.file ""
.text
.Ltext0:
.cfi_se... |
org 256
virtual at bp-sinsize
inputPtr dw ?
end virtual
start:
enter sinsize, 0
and sp, -16
xor cx, cx
xor ax, ax
lea bx, [inputPtr]
mov dx, prompt
call sprint
input:
mov ah, 01h
int 21h
inc cx
mov dh, al
cmp al, 13
j... |
.model small
.data
.code
main proc
MOV AX,3539H ;AX=3539. ASCII for 59
AND AX,0F0FH ;AH=05,AL=09 unpacked BCD data
AAD ;AX=003BH hex equivalent of 59
MOV BH,08H ;divide by 08
DIV BH ;3B/08 gives AL=07,AH=03
OR AX,3030H ;AL=37H (quotient) AH=33H (rem)
endp
end main |
; Ok no lookers now. We need to write a program that can write any string variable
[org 0x7c00]
; Use bx as the parameter we pass
mov bx, HELLO
call print
mov bx, GOODBYE
call print
; Loop infinitely after finishing
jmp $
; Lets write a print library
%include "print.asm"
; Define vars (note how we ... |
CRUNCHY_VARS_SIZE = 14
; X-scroll coordinate for picture (16 bits)
CrunchyVar_scrollX = CRUNCHY_VARS+0
; Y-scroll coordinate for picture (16 bits)
CrunchyVar_scrollY = CRUNCHY_VARS+2
; R2001 bits for picture
CrunchyVar_R2001 = CRUNCH... |
.data
msg: .asciiz "You entered: "
value: .word 0
.text
.globl main
main:
li $v0, 5
syscall
sw $v0, value
li $v0, 4
la $a0, msg
syscall
li $v0, 1
lw $a0, value
syscall
li $v0, 10
syscall
|
; TITLE MSHEAD.ASM -- MS-DOS DEFINITIONS
PAGE
; NTDOS.SYS entry point.
;
; Modification History
;
; sudeepb 06-Mar-1991 Ported for DOSEm.
include origin.inc
Break <SEGMENT DECLARATIONS>
; The following are all of the segments used. They are declared in the order
; that they should be placed in... |
jump main
.nam math
.var #0
.nam main
move r00 #12
addi math r00
halt
|
title asmhelp - assembler helpers
page ,132
;--------------------------------------------------------------------
;
; asmhelp fast assembly language helpers for masm
;
; (C)Copyright 1985 Microsoft Corp.
;
; Revision history
;
; 04/02/85 Greg Whitten
; initial version
; scanatom speedups
;
;----... |
; ******************************************************
;Prob7.2....Write code for accessing EEPROM.for AVR
; ******************************************************
.include "C:\VMLAB\include\m8def.inc"
; Define here Reset and interrupt vectors, if any
reset:
rjmp start
reti ; Addr $0... |
Name: ys_w47.asm
Type: file
Size: 13785
Last-Modified: '2016-05-13T04:51:15Z'
SHA-1: 674D881AA1B73476BAB1DEB2C2ED0313D7E9D2E5
Description: null
|
frame 1, 40
setrepeat 2
frame 1, 05
frame 2, 05
dorepeat 2
frame 1, 25
endanim
|
; Pokémon locked ID table constants
const_def
const LOCKED_MON_ID_MAP_1
const LOCKED_MON_ID_MAP_2
const LOCKED_MON_ID_MAP_3
const LOCKED_MON_ID_MAP_4
const LOCKED_MON_ID_MAP_5
const LOCKED_MON_ID_MAP_6
const LOCKED_MON_ID_MAP_7
const LOCKED_MON_ID_MAP_8
NUM_MAP_LOCKED_MON_IDS EQU const_value + -LOCKED_MON_ID_M... |
ori $ra,$ra,0xf
addiu $0,$0,18459
mtlo $0
sll $4,$3,24
ori $6,$6,23386
mflo $1
addu $5,$4,$4
mflo $6
mthi $3
lui $0,9548
multu $3,$3
lui $6,43178
addiu $4,$1,-11422
ori $5,$0,59504
sll $2,$6,16
addiu $4,$0,-4969
mtlo $5
mtlo $5
div $1,$ra
multu $4,$5
addiu $4,$5,6759
mult $2,$2
mult $1,$2
divu $2,$ra
div $4,$ra
addiu $... |
Name: yst_bgsc0.asm
Type: file
Size: 151748
Last-Modified: '2016-05-13T04:52:56Z'
SHA-1: 9BC4A6A9C72FE96F490FF50F5A06B438D11E9C3E
Description: null
|
.include "myTiny13.h"
; alarm-system:
; - einschalten
; - ein paar sekunden zeit haben um GND mit ALARMPIN zu verbinden
; -> du kommst & unterbrichst: ein paar sekunden, ums system aus zu stellen
; -> einbrecher unterbricht: nach paar sekunden geht sierene los
; -> GND + ALARMPIN nach unterbrechung -> egal, sire... |
;==============================================================================
; Contents of this file are copyright Phillip Stevens
;
; You have permission to use this for NON COMMERCIAL USE ONLY
; If you wish to use it elsewhere, please include an acknowledgement to myself.
;
; https://github.com/feilipu/
;
; https:... |
sta {m1}
lda {m2}
sta {m1}+1
sty {m1}+2
stx {m1}+3
|
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... |
%include "macros/patch.inc"
%include "macros/datatypes.inc"
;0x004EE9A8 - IonBlastClass - Force DetailLevel to 1
@SET 0x004EE7F0, { mov eax, 1 }
|
; zumpus_funcs.asm
\ ------------------------------------------------------------------------------
\ --- get_decimal_input
\ --- Read a decimal number from STDIN_BUF
\ ------------------------------------------------------------------------------
\ ON EXIT : - 16-bit unsigned integer in MATH_TMP16, MATH_TMP16+1
\ ... |
BikeShop_h:
db CLUB ; tileset
db BIKE_SHOP_HEIGHT, BIKE_SHOP_WIDTH ; dimensions (y, x)
dw BikeShopBlocks, BikeShopTextPointers, BikeShopScript ; blocks, texts, scripts
db $00 ; connections
dw BikeShopObject ; objects
|
; void *esx_disk_stream_bytes(void *dst,uint16_t len)
INCLUDE "config_private.inc"
SECTION code_esxdos
PUBLIC asm_esx_disk_stream_bytes
EXTERN _esx_stream_io_port
EXTERN asm_esx_disk_stream_sectors
asm_esx_disk_stream_bytes:
; enter : hl = void *dst
; de = uint16_t len > 0
;
; exit : c = de... |
# basic test program
# runs in a loop forever
lhi 1101
mtr $rrt
sle $rrt
bfs $zero
|
;汇编程序源代码(bootOS.asm)
;%define _BOOT_DEBUG_ ;用于生成.COM文件易于调试
%ifdef _BOOT_DEBUG_
org 100h ; 调试状态,做成 .COM 文件, 可调试
%else
org 7c00h ; BIOS将把引导扇区加载到0:7C00处,并开始执行
%endif
;==============================================================
%ifdef _BOOT_DEBUG_
BaseOfStack equ 100h ; 堆栈基地址(栈底, 从这个位置向低地址生长)
%els... |
* Network server V0.1 1985 Tony Tebby QJUMP
*
* FSERVE sets up file server
*
section nd
*
xdef fserve
*
xref ut_gtnm1 get name
xref ut_gxli1 get buffer size
xref ut_fjob find job (name in a1)
xref ut_fdev find device linkage block
xref ut_crjob create resident job
xref ut_ajob activate job
xref u... |
;++
;
; WOW v1.0
;
; Copyright (c) 1991, Microsoft Corporation
;
; WSPHELP.ASM
; Win16 wsprintf/wvsprintf helper services
;
; History:
;
; Created 28-May-1991 by Jeff Parsons (jeffpar)
; Copied from WIN31 and edited (as little as possible) for WOW16
;--
;
; WSPHELP.ASM
;
; Assembly ... |
;
; OPN YM2203
;
OPN_BASE: equ 12H
OPN_ADDRESS: equ OPN_BASE
OPN_DATA: equ OPN_BASE + 1
OPN_CLOCK: equ 3579545
OPN: MACRO
super: Driver OPN_name, OPN_CLOCK, Driver_PrintInfoImpl
; e = register
; d = value
SafeWriteRegister:
ld a,e
cp 27H
jr z,MaskControl
; a = register
; d = value
WriteRegister: PROC
o... |
app_lba_start equ 100
SECTION mbr align=16 vstart=0x7c00
mov ax, 0
mov ss, ax
mov sp, ax
mov ax, [cs:phy_base]
mov dx, [cs:phy_base+0x02]
mov bx, 16
div bx
mov ds, ax
mov es, ax
phy_base dd 0x10000
times 510-($-$$) db 0
db 0x55, 0xaa
|
CeladonMart4F_Script:
jp EnableAutoTextBoxDrawing
CeladonMart4F_TextPointers:
dw CeladonMart4ClerkText
dw CeladonMart4Text2
dw CeladonMart4Text3
dw CeladonMart4Text4
CeladonMart4Text2:
text_far _CeladonMart4Text2
text_end
CeladonMart4Text3:
text_far _CeladonMart4Text3
text_end
CeladonMart4Text4:
text_far ... |
;
;/*
; * FreeRTOS V202111.00
; * Copyright (C) 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
; *
; * 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, i... |
;
; Z88 Graphics Functions - Small C+ stubs
;
; Written around the Interlogic Standard Library
;
;
; $Id: w_fillb_callee.asm $
;
;Usage: fillb(struct *pixels)
SECTION code_graphics
PUBLIC fillb_callee
PUBLIC _fillb_callee
PUBLIC asm_fillb
EXTERN w_area
EXTERN swapgfxbk
EXTERN __graphics_en... |
%macro ISR_NOERRCODE 1
global isr%1
isr%1:
cli
push byte 0
push %1
jmp isr_common_stub
%endmacro
%macro ISR_ERRCODE 1
global isr%1
isr%1:
cli
push byte %1
jmp isr_common_stub
%endmacro
ISR_NOERRCODE 0
ISR_NOERRCODE 1
ISR_NOERRCODE 2
ISR_NOERRCODE 3
ISR_NOERRCODE 4
ISR_NOERRCODE 5
ISR_NOERRCODE 6
ISR... |
[CPU 486]
[BITS 32]
GLOBAL api_inittimer
api_inittimer: ; void api_inittimer(int timer, int data);
PUSH EBX
MOV EDX, 17
MOV EBX, [ESP + 8] ; timer
MOV EAX, [ESP + 12] ; data
INT 0x40
POP EBX
RET |
# Zeynep Cankara -- 27/02/2019
# Program4.asm -- Implements the arithmetic expression x = (4 * a * b) % ((c - 2) / 3)
#************************
# *
# text segment *
# *
#************************
.globl __start
.text
__start:
# prompt the program task on screen
li $v0, 4
la $a0, task
syscall
## G... |
PUBLIC probed_func_asm
.code
probed_func_asm PROC
xor rax, rax
cmp rcx, 0
jne $lNOT_ZERO
mov rax, 2
$lNOT_ZERO:
mov rax, 1
ret
probed_func_asm ENDP
end |
; Copyright © 2021, VideoLAN and dav1d authors
; Copyright © 2021, Two Orioles, LLC
; Copyright © 2017-2021, The rav1e contributors
; Copyright © 2020, Nathan Egge
; Copyright © 2021, Matthias Dressel
; All rights reserved.
;
; Redistribution and use in source and binary forms, with or without
; modification, are permi... |
db "FLOAT WHALE@" ; species name
db "It is the largest"
next "of all identified"
next "#MON. They jump"
page "as a pack in order"
next "to herd their"
next "prey.@"
|
; ----------------------------------------------------------------------------
; Name: main.asm
; Author: Roger Fernandez Guri
; Version: 0.0
; ----------------------------------------------------------------------------
;*******************************************************************************
;* Required Files... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UI
FILE: uiManager.asm
AUTHOR: Steve Scholl, Jan 30, 1992
REVISION HISTORY:
Name Date Description
---- ---- -----------
Steve 1/3... |
; BeepFX sound effect by shiru
; http://shiru.untergrund.net
SECTION rodata_sound_bit
PUBLIC _bfx_48
_bfx_48:
; Alarm_2
defb 1 ;tone
defw 32,1000,2000,16384,320
defb 0
|
dnl IA-64 mpn_add_n_sub_n -- mpn parallel addition and subtraction.
dnl Contributed to the GNU project by Torbjorn Granlund.
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 u... |
;;
;
; Name: stager_sock_reverse_udp
; Qualities: Can Have Nulls
; Platforms: Linux
; Authors: skape <mmiller [at] hick.org>
; Version: $Revision: 1450 $
; License:
;
; This file is part of the Metasploit Exploit Framework
; and is subject to the same licenses and copyrights as
; ... |
Name: ccp_main.asm
Type: file
Size: 39588
Last-Modified: '2016-05-13T04:52:55Z'
SHA-1: 7B2CD460FF3469B4D0CA0718D15D866DC9713A25
Description: null
|
.686
.xmm
.model flat, C
.data
.code
MyDotProduct_SSE proc dest:DWORD, pB:DWORD, pA:DWORD, bits:DWORD
mov eax, pA ; a
mov ebx, pB ; b
mov edi, dest ; res
mov ecx, bits ; n
xorps xmm2, xmm2
@cycle:
movaps xmm0, [eax+4*ecx]
movaps xmm1, [ebx+4*ecx]
mulps xmm0, xmm1
haddps xmm0, xmm0
haddps xm... |
;
; ZX Spectrum specific routines
; by Stefano Bodrato, Fall 2013
;
; int set_psg(int reg, int val);
;
; Play a sound by PSG
;
;
; $Id: set_psg_callee.asm,v 1.3 2015/01/19 01:33:04 pauloscustodio Exp $
;
PUBLIC set_psg_callee
PUBLIC psg_patch0
PUBLIC psg_patch1
PUBLIC ASMDISP_SET_PSG_CALLEE
set_psg_callee:
... |
; int scanf(const char *fmt, ...)
; 05.2008 aralbrec
PUBLIC scanf
EXTERN vfscanf_callee, stdio_varg
EXTERN ASMDISP_VFSCANF_CALLEE
EXTERN _stdin
.scanf
call stdio_varg ; de = char *fmt
ld c,l
ld b,h ; bc = top of parameter list
ld ix,(_stdin)
jp vfscanf_callee... |
B Main ; Your last "Main" in SYSC3006. There will be cake.
;-----------------------------------------------------------------------;
;------------- INITIALIZATION & CONSTANTS SECTION ----------------------;
;-----------------------------------------------------------------------;
; ISR Vector Table (Lectur... |
IF !__CPU_INTEL__ && !__CPU_GBZ80__
MODULE __printf_handle_ll
SECTION code_clib
PUBLIC __printf_handle_ll
EXTERN __printf_format_table64
EXTERN __printf_format_search_loop
; Entry: hl = fmt
; de = ap
; ix = printf context
__printf_handle_ll:
ld c,(hl) ; next bit of format
... |
[org 0x7c00]
[bits 16]
xor ax, ax
mov ds, ax
mov es, ax
mov bx, 0x8000
cli
mov ss, bx
mov sp, ax
mov bp, sp
sti
cld
mov sp, bp
mov bx, welcome
call print
call newLine
mov cx, 0fh ;time delay
mov dx, 4240h
mov ah, 86h
int 15h
mov bx, li... |
# Reverse Case - Patrick Kubiak - 10/17/2015
# Reverse the case of the input string. Accepts up to 100 characters of input.
.data # items stored in data segment
.align 0 # no automatic alignment
string:
.space 400 # store 100 characters
# keep st... |
; MASM memcpy implementation for x86
;
; Copyright 2022 MobSlicer152
;
; 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 requi... |
; This check is just to verify a modulus implementation
;
;
.init fn_main
.debug 3
.code
; MODULUS
; i0 = i1 % i2
; Saves and restores used registers
fn_modulus:
; Save register states
push_qw i1
push_qw i2
push_qw i3
push_qw i4
; Check for 0 RHS
mov i0 @0
beq i0 i2 l_modulus_complete
; Perform... |
.data
T:
.word 1 # is a pal
.asciiz "eve"
.space 8
.word 0 # is not a pal
.asciiz "abbe"
.space 7
.word 0 # is not a pal
.asciiz ""
.space 11
.word 1 # is a pal
.asciiz "a"
.space 10
.word 1 # is a pal
.asciiz "heyeh"
.space 6
.word 1 #is a pal
.asciiz "awabbawa"
.spa... |
#include "../cpudef.asm"
move r1, 0b011
move r2, 0
move r3, 1
move r4, 2
shl r1, 0
if.ne r1, 0b011
error
shl r1, r2
if.ne r1, 0b011
error
shl r1, 1
if.ne r1, 0b110
error
shl r1, r3
if.ne r1, 0b1100
error
move r1, 0b011
shl r1, 2
if.ne r1, 0b1100
error
move r1, 0b011
shl r1, r4
if.ne r1, 0b1100
... |
;--------------------------------------------------------------------------==|
; VESA (VBE3) Video Driver Copyright (c) 2002 Hubert Eichner ;
; using BIOS Distributed under the BSD License ;
;--------------------------------------------------------------------------==|
; ... |
default rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
EXTERN OPENSSL_cpuid_setup
section .CRT$XCU rdata align=8
DQ OPENSSL_cpuid_setup
common OPENSSL_ia32cap_P 16
section .text code align=64
global OPENSSL_atomic_add
ALIGN 16
OPENSSL_atomic_add:
mov eax,DWORD[rcx]
$L$spin: lea r8,[rax*1+rdx]
DB 0xf0
cm... |
; void spinlock_acquire_fastcall(char *spinlock)
SECTION code_clib
SECTION code_threads_mutex
PUBLIC _spinlock_acquire_fastcall
EXTERN asm_spinlock_acquire
defc _spinlock_acquire_fastcall = asm_spinlock_acquire
|
;
; Copyright (c) 2020 Bitdefender
; SPDX-License-Identifier: Apache-2.0
;
%ifndef _SYSTEM_YASM_
%define _SYSTEM_YASM_
%include "macros.nasm"
%include "if.nasm"
%include "struct.nasm"
%ifdef DOC_FILE
system.nasm - Contains generic definitions of data types, data structures and macros for defining and interacting... |
export PM_SlideMove
code
proc PM_SlideMove 316 28
ADDRLP4 208
CNSTI4 4
ASGNI4
ADDRLP4 212
ADDRGP4 pm
INDIRP4
INDIRP4
CNSTI4 32
ADDP4
INDIRB
ASGNB 12
ADDRFP4 0
INDIRI4
CNSTI4 0
EQI4 $43
ADDRLP4 224
ADDRGP4 pm
INDIRP4
ASGNP4
ADDRLP4 116
ADDRLP4 224
INDIRP4
INDIRP4
CNSTI4 32
ADDP4
INDIRB
ASGNB 12
ADDRLP4 116+8
ADDRLP4 116... |
;
; Copyright (c) 2015 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... |
[bits 32]
;check if cpu support cpuid instruction
check_cpuid:
pushfd
pop eax
and eax, 0x00200000
cmp eax, 0x0
je cpuid_invalid
ret
;check if cpu support long mode
check_long_mode:
mov eax, 0x80000000
cpuid
cmp eax, 0x80000001
jb no_long_mode ... |
; BeepFX sound effect by shiru
; http://shiru.untergrund.net
SECTION rodata_sound_bit
PUBLIC _bfx_16
_bfx_16:
; Hit_2
defb 2 ;noise
defw 2,2000,32776
defb 0
|
; uint16_t in_mouse_kempston_wheel(void)
SECTION code_input
PUBLIC in_mouse_kempston_wheel
EXTERN asm_in_mouse_kempston_wheel
defc in_mouse_kempston_wheel = asm_in_mouse_kempston_wheel
|
copyright zengfr site:http://github.com/zengfr/romhack
00675C move.b D0, ($c3,A6) [123p+ C2]
006760 rts [123p+ C3]
00685C subq.b #1, ($c3,A6)
006860 beq $686e [123p+ C3]
006866 move.b #$5a, ($c3,A6)
00686C rts [123p+ C3]
copyright zengfr site:http://github.com/zengfr/romhack
|
; Various sub-routines that will be useful to the boot loader code
; Output Carriage-Return/Line-Feed (CRLF) sequence to screen using BIOS
Console_Write_ASCII:
mov ah, 0Eh
mov al, byte [si] ; take the byte from the location of the pointer
cmp al, 32 ; compare the ascii value so... |
; NASM code style
section .text ; Code section
global main ; The standard gcc entry point
main: ; The program label for the entry point
mov eax, 1 ; put 1 (1 byte int/char) into accumulator register
add eax, 2 ; add 2 (1 byte int/char), storing result in accumulator
ret ; Return
|
.data
a:.space 1000
b:.space 1000
space: .asciiz " "
enter: .asciiz "\n"
.macro pspace
la $a0, space
li $v0, 4
syscall
.end_macro
.macro penter
la $a0, enter
li $v0, 4
syscall
.end_macro
.macro scanfd(%x)
li $v0, 5
syscall
move %x, $v0
.end_macro
.macro printfd(%x)
move $a0, %x
li $v0, 1
syscall
.end_... |
default rel
extern ex01
section .rdata
r1:
dq 0
section .data
d1:
dq 0
section .text
global f1
f1:
lea rax,[ex01]
mov rax,[d1]
ret
f2:
ret
section .data
d3:
db 0
d2:
dq 0
|
; printing and parsing stuff
; string functions
StringLength:
; in rcx addres of string
; out eax length of string
or eax, -1
@@: inc eax
cmp byte[rcx+rax], 0
jne @b
ret
;;;;;;;;;;;;;;;;;; scores ;;;;;;;;;;;;;;;;;;;
PrintScore_Uci:
mov edx, VALUE_MATE + 1
cmp ecx, VALUE_MATE... |
;
; Game device library for the Laser 500
;
; up = ~(inp(&h2b) & 1)
; down = ~(inp(&h2b) & 2)
; left = ~(inp(&h2b) & 4)
; right = ~(inp(&h2b) & 8)
; fire = ~(inp(&h2b) & 16)
; fire2 = ~(inp(&h27) & 16)
SECTION code_clib
PUBLIC joystick
PUBLIC _joystick
EXTERN get_psg
EXTERN joystick_inkey
... |
; Derived from Tom Pfau's public domain assembly code.
;
; The contents of this file are hereby released to the public domain.
; -- Rahul Dhesi 1988/08/24
title Lempel-Ziv Compressor
UNBUF_IO equ 1 ;use unbuffered I/O
public _lzc
include asmconst.ai
include macros.ai
check_gap equ 4... |
; Return space to transient program area V2.02 1994 Tony Tebby
section mem
xdef mem_rtpa ; return to tpa
xref mem_rusb ; round up in slave block allocation units
xref mem_rehp ; 'return' memory to heap
xref mem_ctpas
include 'dev8_keys_sys'
include 'dev8_keys_chp'
include 'dev8_ke... |
; ****************************************************************************
; Module: asm_macros_x32.asm
; Description: Another way to link with the SecureEngine SDK via an ASM module
;
; Authors: Oreans Technologies
; (c) 2013 Oreans Technologies
; ******************************************************************... |
INCLUDE MESSW.ASM
KANJI EQU FALSE
Rainbow EQU FALSE
INCLUDE DOSSYM.ASM
;
; segment ordering for MSDOS
;
CONSTANTS SEGMENT BYTE PUBLIC 'CONST'
CONSTANTS ENDS
DATA SEGMENT BYTE PUBLIC 'DATA'
DATA ENDS
CODE SEGMENT BYTE PUBLIC 'CODE'... |
Name: Ending2-j.asm
Type: file
Size: 14832
Last-Modified: '1992-07-08T06:45:16Z'
SHA-1: 19C205E6B74E19FF9B7FF504552D2A79BD86A1B7
Description: null
|
main:
; Set register 0 to 5
MOV r0 5
; Set register 1 to 8
MOV r1 8
; Add registers 0 and 1 and store the result in register 2
ADD r2 r0 r1
; Outputting result to screen
INFO r2
|
RESULTS_START EQU $c000
RESULTS_N_ROWS EQU 1
include "base.inc"
; Attempts to change the volume of channel 2 without triggering
; the NRx2 write glitch
CorrectResults:
db $80, $80, $00, $00, $80, $80, $80, $80
SubTest: MACRO
xor a
ldh [rNR52], a
cpl
ldh [rNR52], a
ld hl, rPCM12
ld a, $ff
... |
;===============================================================================
; Copyright 2016-2020 Intel Corporation
;
; 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.apa... |
; put 5 and 6 consecutively in memory
stos r1, 2
stos r1, 3
; load both of these again
lods r1, r2
lods r3, r2
; print 5
add r1, r3
add r1, .0
out r1
; check if scas works
clr r1
scas r1, 2
cout .1
scas r1, 3
cout .1
|
OUTPUT "dir_elseif.bin"
;; no nested blocks, just regular IF/ELSEIF/ELSEIF/ELSE/ENDIF chain
IF 1
ld b,c ; 'A'
ELSEIF 1
false ; false because other block was active (true)
ELSEIF 1
false ; false because other block was active (true)
ELSE
false ; false be... |
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
ALIGN 16
_x86_64_AES_encrypt PROC PRIVATE
xor eax,DWORD PTR[r15]
xor ebx,DWORD PTR[4+r15]
xor ecx,DWORD PTR[8+r15]
xor edx,DWORD PTR[12+r15]
mov r13d,DWORD PTR[240+r15]
sub r13d,1
jmp $L$enc_loop
ALIGN 16
$L$enc_loop::
movzx esi,al
movzx edi,bl
movzx ebp,cl
... |
; Demonstrate local variables (LocalVars.asm)
; This program demonstrates the use of local variables.
INCLUDE Irvine32.inc
.data
.code
main PROC
call MySub
exit
main ENDP
X_local EQU DWORD PTR [ebp-4]
Y_local EQU DWORD PTR [ebp-8]
MySub PROC
push ebp
mov ebp,esp
sub esp,8 ; create variables
mov X_lo... |
.proc load_song
jsr file_open_read
cmp #$FF
bne read_xex_header
lda #$4F ; bright border on error
sta VCOLOR0
halt: jmp halt
read_xex_header:
jsr file_read_byte ; read start address skipping $FFFF values
bne eof
sta xex_start
jsr file_read_byte
bne eof
sta xex_start+1
and ... |
; A152893: Periodic sequence [3, 3, 0, 0, 4] of period 5
; 3,3,0,0,4,3,3,0,0,4,3,3,0,0,4,3,3,0,0,4,3,3,0,0,4,3,3,0,0,4,3,3,0,0,4,3,3,0,0,4,3,3,0,0,4,3,3,0,0,4
lpb $0
mod $0,5
lpe
div $0,2
mov $1,2
pow $1,$0
mul $1,17
sub $1,4
mod $1,10
mov $0,$1
|
item000000 db "Item one",0
item000001 db "Item two",0
item000002 db "Item three",0
item000003 db "Item four",0
item000004 db "Item five",0
item000005 db "Item six",0
item000006 db "Item seven",0
item000007 db "Item eight",0
item000008 db "Item nine",0
item000009 db "Item ten",0
... |
TITLE MACRO - Pathname and macro related internal routines
NAME MACRO
;** MACRO.ASM
;
; $AssignOper
; InitCDS
; $UserOper
; GetVisDrv
; GetThisDrv
; GetCDSFromDrv
;
; Modification History
;
; sudeepb 11-Mar-1991 Ported for NT DOSEm.... |
;============================================================================
;
;PCI BIOS, Memory , Interrupt handle VxD
; for windows 95/98
;
; ver 1.0 kashiwano masahiro
;============================================================================
WIN40COMPAT EQU 1
PAGE 58,132
.386p
.xlist
... |
BITS 64
%define REL_LOC 0x1CB0
%define REL_HUFF 0x18a0
%define REL_NSG 0x14a0
%macro xcall 1
db 0xe8
dd %1 - (REL_LOC + $ - $$ + 4)
%endmacro
unencrypt: ; file
push rbx
push rbp
mov rbp, rsp
sub rsp, 0x1510
mov rbx, rdi
mov rsi, 0
mov eax, 2 ; open
syscall
mov [rbp - 0x1504], eax
mov edi,... |
; INTEGER SQUARE ROOT
;
; file: intsqrt.asm
;
; Author: Matthew Sprigg
;
; Description: Calculates the integer square root
; of a number rounded down. This is useful for
; certain algorithms where an integer does not
; exceed the square root of a certain number
; because it takes far fewer bytes than other
; square ro... |
; BeepFX sound effect by shiru
; http://shiru.untergrund.net
SECTION rodata_clib
SECTION rodata_sound_bit
PUBLIC _bfx_0
_bfx_0:
; Shot_1
defb 1 ;tone
defw 20,50,2000,65486,128
defb 0
|
frame 3, 12
frame 1, 12
frame 2, 12
frame 4, 10
frame 0, 12
frame 4, 10
frame 5, 12
frame 4, 10
endanim
|
;
; Kaypro ('83 versions) pseudo graphics routines
; Version for the standard text symbols
;
; Stefano Bodrato 2018
;
;
; Xor pixel at (x,y) coordinate.
;
;
;
SECTION code_clib
PUBLIC xorpixel
EXTERN plot_end
EXTERN plot_decode
EXTERN GRAPHICS_CHA... |
;;; $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
;;;
;;; ASM Source code for Red GBC, by Evan Bowman, 2021
;;;
;;;
;;; The following licence covers the source code included in this file. The
;;; game's characters and artwork belong to Evan Bowman, and should not be used
;;; without permi... |
section .text
global main
main:
mov edx, len
mov ecx, msg
mov ebx, 1 ; file (stdout)
mov eax, 4 ; sys_write
int 0x80 ; call
mov eax, 1 ; sys_exit
int 0x80 ; call
section .data
msg db 'Hello, world!', 0xa ; string . db?
len equ $ - msg ; length of the string. $?
;;
;; n... |
USE16
org 0x7C00
entry:
jmp short begin
nop
%define bsOemName bp+0x03 ; OEM label (8)
%define bsBytesPerSec bp+0x0B ; bytes/sector (dw)
%define bsSecsPerClust bp+0x0D ; sectors/allocation unit (db)
%define bsResSectors bp+0x0E ; # reserved sectors (dw)
%define bsFATs bp+0x10 ; # of fats (db)
%defi... |
RuinsOfAlphHoOhWordRoom_MapScripts:
db 0 ; scene scripts
db 0 ; callbacks
RuinsOfAlphHoOhWordRoom_MapEvents:
db 0, 0 ; filler
db 3 ; warp events
warp_event 9, 9, RUINS_OF_ALPH_HO_OH_ITEM_ROOM, 3
warp_event 10, 9, RUINS_OF_ALPH_HO_OH_ITEM_ROOM, 4
warp_event 17, 21, RUINS_OF_ALPH_INNER_CHAMBER, 2
db 0 ; co... |
page ,132
; SCCSID = @(#)tpipe.asm 1.1 85/05/14
; SCCSID = @(#)tpipe.asm 1.1 85/05/14
TITLE PART8 COMMAND Transient routines.
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;
; Revision... |
TITLE LIDATA - Copyright (c) 1994 by SLR Systems
INCLUDE MACROS
INCLUDE SEGMENTS
PUBLIC LIDATA_PROC,FORREF_MAJOR_MOVE,FIXDS_MOVER
.DATA
EXTERNDEF FIX2_LD_TYPE:BYTE
EXTERNDEF EXETABLE:DWORD,FIX2_LDATA_EOR:DWORD,SRCADR:DWORD,FIX2_SM_START:DWORD,FIX2_STACK_DELTA:DWORD
EXTERNDEF MAJOR_MOVE_ROUTINE:D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.