content stringlengths 23 1.05M |
|---|
lda {c1},x
asl
sta {m1}
lda {c1}+1,x
rol
sta {m1}+1
|
; asmfunc.asm
;
; System V AMD64 Calling Convention
; Registers: RDI, RSI, RDX, RCX, R8, R9
bits 64
section .text
global IoOut32 ; void IoOut32(uint16_t addr, uint32_t data);
IoOut32:
mov dx, di ; dx = addr
mov eax, esi ; eax = data
out dx, eax
ret
global IoIn32 ; uint32_t IoIn32(uint16_t addr)... |
// This is a comment.
@FOO
@BARBAZ
// This is a comment too.
@KBD
@BAZOO
@LCL @LCLCL
@SCREEN @SP @SPP
@ARG @ARG0
@THIS @THAT @THOSE
@R0 @R1 @R11 @R1_hello @R11_hello
|
;// DEMO14.ASM
;//
;// Written by Rob Neff
;// Copyright (C)2005-2011 The NASMX Project
;//
%include '..\..\windemos.inc'
entry demo14
[section .code]
; The following simple procedure calculates the area of a circle
; given it's radius. It makes use of the FPU and leaves the result
; on the FPU stac... |
BattleCommand_triplekick:
; triplekick
ld a, [wKickCounter]
ld b, a
inc b
ld hl, wCurDamage + 1
ld a, [hld]
ld e, a
ld a, [hli]
ld d, a
.next_kick
dec b
ret z
ld a, [hl]
add e
ld [hld], a
ld a, [hl]
adc d
ld [hli], a
; No overflow.
jr nc, .next_kick
ld a, $ff
ld [hld], a
ld [hl], a
ret
BattleCom... |
.586
.model flat
.code
_spazi proc
push ebp
mov ebp,esp
push esi
push edi
push ebx
mov ebx, dword ptr[ebp+8] ; arr
mov edi, 0
mov esi, 0
ciclo:
mov al, byte ptr [ebx+esi]
cmp al, 0
je fine
cmp al, 32
je found
inc esi
jmp ciclo
; bh 4 bit mov bh, 1
; bl 8 bit mov bl, 44
; bx 16 bit
; ebx 32 bit cambiato
foun... |
#if 0
Copyright (c) 2014, 2016 Jorge Giner Cordero
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... |
; int wa_priority_queue_empty(wa_priority_queue_t *q)
SECTION code_adt_wa_priority_queue
PUBLIC _wa_priority_queue_empty
EXTERN _ba_priority_queue_empty
defc _wa_priority_queue_empty = _ba_priority_queue_empty
|
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Buffer Definitions:
//
// cbuffer cbPerObject
// {
//
// row_major float4x4 g_mWorldViewProjection;// Offset: 0 Size: 64
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim Slo... |
___conversion_table_homecall: MACRO
; macro arguments: homecall type, function label
; all functions clobber af and hl (except for outputs) and preserve bc and de
; homecall types:
; - read: index to ID conversion (in: a = 8-bit ID; out: hl = 16-bit index)
; - write: ID to index conversion (in: hl = 16-bit index; ... |
; char *strnchr(const char *s, size_t n, int c)
SECTION code_string
PUBLIC strnchr
EXTERN asm_strnchr
strnchr:
pop af
pop de
pop bc
pop hl
push hl
push bc
push de
push af
jp asm_strnchr
|
.file "x86_64.asm"
.text
.globl speed_cyclecounter
.def speed_cyclecounter; .scl 2; .type 32; .endef
.align 16
speed_cyclecounter:
movq %rbx, %r10
xorl %eax, %eax
cpuid
rdtsc
movl %eax, (%rdi)
movl %edx, 4(%rdi)
movq %r10, %rbx
ret
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Berkeley Softworks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: PostScript bitmap driver
FILE: psbInfo.asm
AUTHOR: Jim DeFrisco
REVISION HISTORY:
Name Date Description
---- ---- -----------
J... |
global load_page_dir
global enable_paging
# Loads the page directory
# Parameter: address of the page directory (in the stack?)
load_page_dir:
push ebp
mov ebp, esp
mov eax, [esp + 8]
mov cr3, eax
mov esp, ebp
pop ebp
ret
# Enables paging in register cr0 by setting its 32th bit
enable_paging:
push ebp... |
extern printf
extern scanf
extern getchar
global _start
section .data
display_ent db "%d", 10, 0
display_long db "%ld", 10, 0
format_integer db "%d", 0
section .text
_start:
call main
jmp end
_print_car:
mov rax, 0
call printf WRT ..plt
ret
_print_ent:
mov rdi, display_ent
... |
;##############################
; Memory Definition
;##############################
; Stack - Address Range (1FFFCh~10000h = 64 KB - 8B)
; Kernel in Memory - Address Range (50000h~5FFFFh = 64 KB)
%include "pm.inc"
%include "proc.inc"
[section .text]
; External functions
extern kernel_init
extern kernel_main
... |
missleAbort:
abort: ;.ABORT \ -> &3805 \ draw Missile block, Unarm missile
ld a,$FF
ld (regX),a
missleAbort2:
abort2: ; Xreg stored as Missile target
ld a,(regX)
ld (MSTG),a
ld a, (NOMSL) ; NOMSL \ number of missiles
ld (regX),a
call MsBar ; MSBAR \ draw missil... |
ORG $6000
dc.b $00,$00,$00,$20,$32,$34,$23,$00,$30,$13,$65,$35,$00,$00,$00,$23
dc.b $20,$34,$23,$33,$03,$30,$43,$43,$03,$64,$45,$53,$31,$00,$67,$00
dc.b $00,$00,$00,$50,$00,$00,$53,$00,$00,$00,$00,$00,$76,$76,$23,$00
dc.b $10,$00,$10,$32,$02,$00,$50,$53,$15,$41,$43,$03,$23,$03,$65,$35
dc.b $63,$76,$25,$02,$14,$10... |
; A323642: Row n of triangle A323641 when n -> infinity.
; 1,2,3,6,3,6,9,18,3,6,9,18,9,18,27,54,3,6,9,18,9,18,27,54,9,18,27,54,27,54,81,162
mov $2,2
gcd $2,$0
cal $0,161411 ; First differences of A160410.
mul $2,$0
add $0,$2
mul $0,3
mov $1,$0
sub $1,21
div $1,36
add $1,1
|
SECTION code_clib
SECTION code_fp_math48
PUBLIC am48_nan_b
EXTERN am48_derror_einval_zc
am48_nan_b:
; strtod() helper function
; return nan(...) given pointer to buffer at '('
;
; enter : hl = char *buff
;
; exit : hl = char *buff (moved past nan argument)
; AC'= nan(...)
;
; no... |
; double __CALLEE__ atan2(double y, double x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_atan2_callee
EXTERN am48_atan2, cm48_sccz80p_dcallee2
cm48_sccz80_atan2_callee:
call cm48_sccz80p_dcallee2
; AC'= x
; AC = y
jp am48_atan2
|
PAGE ,132
TITLE CONDEV FANCY CONSOLE DRIVER
;******************************************************************************
; Change Log:
; Date Who # Description
; -------- --- --- ------------------------------------------------------
; 06/01/90 MKS C02 Bug#173. ANSI w... |
// Original test: ./tschaefe/hw4/problem6/j_2.asm
// Author: tschaefe
// Test source code follows
// j test 2
// Jump instruction should cause looping to earlier portion of program
lbi r1, 0xfd
addi r1, r1, 0x01
bgez r1, .done //after 3 total executions of add, go to halt
j 0x7fa
.done:
halt
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Ruler Library
FILE: rulerGuide.asm
AUTHOR: Jon Witort, 22 October 1991
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
... |
;
; The MIT License (MIT)
;
; Copyright © 2016 Franklin "Snaipe" Mathieu <http://snai.pe/>
;
; 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 ... |
map_header Route4, ROUTE_4, OVERWORLD, SOUTH | EAST
connection south, Route3, ROUTE_3, -25
connection east, CeruleanCity, CERULEAN_CITY, -4
end_map_header
|
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.21005.1
TITLE C:\Users\sickness\Documents\Visual Studio 2013\Projects\download_sc\download_sc\download_sc.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
PUBLIC _ExecPayload
PUBLIC _GetProcAddressByHash
; Functi... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: common print routines
FILE: red64Buffer.asm
AUTHOR: Dave Durran
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name... |
db DEX_LINOONE ; pokedex id
db 78 ; base hp
db 70 ; base attack
db 61 ; base defense
db 100 ; base speed
db 55 ; base special
db DARK ; species type 1 galarian?
db NORMAL ; species type 2
db 90 ; catch rate
db 128 ; base exp yield
INCBIN "pic/ymon/linoone.pic",0,1 ; 55, sprite dimensions
dw LinoonePicFront... |
global _start
section .data
align 16
myquad:
dq 0x1234567890abcdef
mydword:
dd 0xcafebabe
myaddress:
dd 0xdeadbeef
%include "header.inc"
movd mm0, [mydword]
movd [myaddress], mm0
movd mm1, [myaddress]
movd eax, mm0
movd mm4, eax
mov eax, 0x42
movd mm6, eax
%include "footer.inc"
|
; **********************************************************************
; Character set for ascii codes 32-127
;
; This is formed of 8 bytes per character.
;
; Note these are correct for values &20-&7F.
;
; When bit 8 is set then currently we handle them the same but in Mode 7
; the following changes appear when in te... |
; flat assembler interface for xOS
use32
org 0x8000000
application_header:
.id db "XOS1" ; tell the kernel we are a valid application
.type dd 0 ; 32-bit application
.entry dd main ; entry point
.reserved0 dq 0
.reserved1 dq 0
include "libxwidget/src/libxwidget.asm" ; widget library ;)
include ... |
; Original address was $AA41
; 1-5
.word W105_CoinHeavL ; Alternate level layout
.word W105_CoinHeavO ; Alternate object layout
.byte LEVEL1_SIZE_09 | LEVEL1_YSTART_040
.byte LEVEL2_BGPAL_04 | LEVEL2_OBJPAL_09 | LEVEL2_XSTART_18
.byte LEVEL3_TILESET_13 | LEVEL3_VSCROLL_FREE | LEVEL3_PIPENOTEXIT
.byte LEVEL4_BGBAN... |
; rand - K&Rからほぼ抜粋したものを単にASM化した
[BITS 32]
GLOBAL _rand_seed
GLOBAL _rand
[SECTION .data]
ALIGNB 4
_rand_seed dd 1
[SECTION .text]
; int rand(void)
_rand:
push edx
mov eax,dword [ds:_rand_seed]
mov edx,1103515245
mul edx
add eax,12345
mov dword [ds:_rand_seed],eax
shr eax,16
pop edx
and eax,07fffh
r... |
; Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
;
; This 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 2 of the License, or (at your option) any later ... |
.Model Small
.Stack 100h
.Data
MSG DB "THIS IS AN EXAMPLE ", '$'
length equ $-MSG-1
.Code
MOV AX, @DATA
MOV DS, AX
MOV SI, offset MSG
MOV CX, length
L1:
MOV BX, [SI]
PUSH BX
INC SI
loop L1
MOV CX, length
L2:
POP DX
MOV AH, 2 ;to print single characters
in... |
; fun2.asm - same as fun.asm but only BIOS.
; by 5n4k3
[bits 16]
[org 100h]
[section .text]
global _start
jmp short _start
; =================== Data again ============================
hello_msg db "Hello user, press any key to continue . . .",0dh,0ah,24h
; =================== End again =============================
... |
copyright zengfr site:http://github.com/zengfr/romhack
01BAB8 bset D2, ($1ff,A5) [123p+ 22]
01BABC move.b ($29,A0), D0 [base+1FF]
copyright zengfr site:http://github.com/zengfr/romhack
|
; cheezy & dog-slow rotozoom effect
; Uses character graphics
.fx_rotozoom2
{
IF PIXEL_THIRD
lda #9:sta &fe00
lda #9:sta &fe01 ; normally 18
ENDIF
lda #144+7
ldx #0
; jsr mode7_set_column_shadow_fast
jsr mode7_set_column
ldx delta_time
.uloop
; inc zrot
inc zrot
dex
; bne ... |
;====================================== MY MACROS =================================
%macro print 1 ;this macro will print to screen
push ax
push dx
mov dx, %1 ;refers to the first parameter to the macro call
mov ah, 09h ;09h function write string
int 21h ;call the interruption
pop dx
pop ax... |
.MODEL SMALL
.STACK 100H
.DATA
.CODE
MAIN PROC
MOV AH,2
MOV DL,'?'
INT 21H
MOV AH,1
INT 21H
MOV BL,AL
MOV AH,2
MOV DL,0DH
INT 21H
MOV DL,0AH
INT 21H
MOV DL,BL
INT 21H
MOV AH,4CH ; course code 00984
INT 21H
MAIN EN... |
Name: sfxdos.asm
Type: file
Size: 12441
Last-Modified: '2016-05-13T04:52:55Z'
SHA-1: 74E2EA47EAF9BB60CB109404EA67F787B18522D3
Description: null
|
ORG 2000H
LXI SP, 3FFFH
L1: LXI H, 2500H
MOV A, M
OUT 80H
INX H
MOV A, M
OUT 81H
INX H
MOV A, M
OUT 82H
CALL 2600H
MVI A, 00H
OUT 80H
OUT 81H
OUT 82H
CALL 2600H
JMP L1
ORG 2600H
MVI C, 20H
L2: DCR C
JNZ L2
RET
ORG 2500H
DB 39H, 6DH, 79H
END |
; Autor: Ramírez Hernández Abraham
; Fecha de termino: 01/02/21
; Descripción: Este programa realiza operaciones aritmeéticas básicas tales como
; La suma, resta, división y multiplicación de números enteros.
; Es programa recibe los valores a operar por el teclado y se muestran los resultados... |
;*!
;* \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... |
/* io/tab.asm
* Print a tab character to stdout
*
* Programmer: Mayer Goldberg, 2010
*/
TAB:
PUSH(IMM('\t'));
CALL(PUTCHAR);
POP(R0);
RETURN;
|
format binary as 'bin'
include 'proc32.inc'
use32
db 'MENUET01'
dd 1
dd start
dd 0 ; size of executable, configure in compiler
dd 0 ; memory need, configure in compiler
dd 0 ; esp, configure in compiler
dd 0 ; arguments, not us... |
SECTION code_clib
SECTION code_sound_bit
PUBLIC _bitfx_6
INCLUDE "config_private.inc"
_bitfx_6:
; beep thing
zap3_1:
push bc
xor __SOUND_BIT_TOGGLE
INCLUDE "sound/bit/z80/output_bit_device_2.inc"
push af
xor a
sub b
ld b,a
pop af
zap3_2:
nop
djnz zap3_2
xor ... |
Phone_GenericCall_Male:
special RandomPhoneMon
farscall PhoneScript_Random2
ifequal 0, .Bragging
farscall PhoneScript_Generic_Male
farsjump Phone_FoundAMon_Male
.Bragging:
farsjump Phone_BraggingCall_Male
Phone_GenericCall_Female:
special RandomPhoneMon
farscall PhoneScript_Random2
ifequal 0, .Bragging
fars... |
;
; ANSI Video handling for the TI calculators
; By Stefano Bodrato - Dec. 2000
;
; Handles Attributes INVERSE + UNDERLINED
;
; ** alternate (smaller) 4bit font capability:
; ** use the -DPACKEDFONT flag
;
; set it up with:
; .text_cols = max columns
; .text_rows = max rows
; .DOTS+1 = char size
; .font = font fil... |
;
; $Id: 0x1b.asm,v 1.1.1.1 2016/03/27 08:40:12 raptor Exp $
;
; 0x1b explanation - from xchg rax,rax by xorpd@xorpd.net
; Copyright (c) 2016 Marco Ivaldi <raptor@0xdeadbeef.info>
;
; This is yet another variation on the theme of the x86_64
; call stack. This snippet puts the address in rax on top
; of the stack (via... |
proc DoDivide uses r14
; RAX / R14 --> Stack[N-1]/Stack[N]
fastcall ArrayListPop, [_lg_stack]
mov r14, rax
fastcall ArrayListPop, [_lg_stack]
cqo
idiv r14
fastcall ArrayListPush, [_lg_stack], rax
ret
endp |
print:
pusha
; while (string[i] != 0) { print string[i], ++i }
; comp for string end (null byte)
start:
mov al, [bx] ; bx = base address for string
cmp al, 0
je done
; print
mov ah, 0x0e
int 0x10 ; 'al' has the char
; increment pointer and do next loop
add bx, 1
jmp start
... |
BITS 32
;TEST_FILE_META_BEGIN
;TEST_TYPE=TEST_F
;TEST_IGNOREFLAGS=FLAG_SF|FLAG_OF|FLAG_PF
;TEST_FILE_META_END
; allocate 16 byte aligned stack space for the packed values
;TEST_BEGIN_RECORDING
lea ecx, [esp-0x20]
and ecx, 0xfffffff0
; load a 128 bit value into xmm0
mov DWORD [ecx], 0x55555555
mov DWORD [ecx+4], 0x145... |
assume cs:code
code segment
start:
mov bx,0
mov ax,1
mov cx,10
s:
add bx,ax
loop s
mov ax,1
shl ax,1
mov dx,0
mov cx,5
s1:
add dx,ax
loop s1
mov ax,4c00h
int 21h
code ends
end start |
SECTION "VRAM", VRAM
UNION
; generic
vChars0:: ds $80 tiles
vChars1:: ds $80 tiles
vChars2:: ds $80 tiles
vBGMap0:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
vBGMap1:: ds BG_MAP_WIDTH * BG_MAP_HEIGHT
ENDU
|
; File: src\template_win.asm
; First of all, we tell the compiler which type of executable
; we want it to be. In our case it is a 32-bit PE executable.
format PE GUI
; Tell the compiler where we want our program to start - define
; the entry point. We want it to be at the place labeled with '_start'.
entry _... |
; #########################################################################
.486 ; create 32 bit code
.model flat, stdcall ; 32 bit memory model
option casemap :none ; case sensitive
include \masm32\include\windows.inc
include \masm32\include\gdi32.inc
.code
; ... |
;
; VGM YM2413 chip
;
YM2413: MACRO
super: Chip YM2413_name, Header.ym2413Clock, YM2413_Connect
; hl' = time remaining
; ix = player
; iy = reader
ProcessCommand: PROC
call Reader_ReadWord_IY
jp System_Return
writeRegister: equ $ - 2
ENDP
ENDM
; ix = this
; iy = header
YM2413_Construct: equ Chip_Construc... |
OPTION DOTNAME
EXTERN OPENSSL_cpuid_setup:NEAR
.CRT$XCU SEGMENT READONLY ALIGN(8)
DQ OPENSSL_cpuid_setup
.CRT$XCU ENDS
_DATA SEGMENT
COMM OPENSSL_ia32cap_P:DWORD:4
_DATA ENDS
.text$ SEGMENT ALIGN(256) 'CODE'
PUBLIC OPENSSL_atomic_add
ALIGN 16
OPENSSL_atomic_add PROC PUBLIC
mov eax,DWORD PTR[rcx]
$L$spin:: lea... |
;******************************************************************************
;* SIMD optimized non-power-of-two MDCT functions
;*
;* Copyright (C) 2017 Rostislav Pehlivanov <atomnuker@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it under the te... |
MODULE __printf_handle_d
SECTION code_clib
PUBLIC __printf_handle_d
EXTERN __printf_number
__printf_handle_d:
ld c,1 ;signed
jp __printf_number
|
; int fzx_puts(struct fzx_state *fs, char *s)
INCLUDE "clib_cfg.asm"
SECTION code_font_fzx
PUBLIC asm_fzx_puts
EXTERN asm_fzx_putc, __fzx_puts_newline
asm_fzx_puts:
; write zero terminated string to window
; interpret \n as newline
;
; enter : ix = struct fzx_state *
; de = char *s
;
... |
\\ 8-bit Fast Bresenham Line plot routine
\\ Inspired by http://codebase64.org/doku.php?id=base:bresenham_s_line_algorithm_2
\\ Uses self modifying code for speed
\\ gradient setup (once per line draw call) 104 cycles
\\ 21-5 cycles per iteration
\\ +cost of plot pixel routine
_USE_RTW=TRUE
IF _USE_RTW
.rtw_startx ... |
CheckPartyFullAfterContest:
ld a, [wContestMon]
and a
jp z, .DidntCatchAnything
ld [wCurPartySpecies], a
ld [wCurSpecies], a
call GetBaseData
ld hl, wPartyCount
ld a, [hl]
cp PARTY_LENGTH
jp nc, .TryAddToBox
inc a
ld [hl], a
ld c, a
ld b, 0
add hl, bc
ld a, [wContestMon]
ld [hli], a
ld [wCurSpecies], ... |
; Additional opcodes on the RCM4000
defc value32 = 23560 * 60000
defc value16 = 23560
defc value8 = 29
defc offs = 30
defc addr16 = 49150
defc addr24 = 80000
; Flow control
call (hl) ; ea
call (ix) ; dd ea
call (iy) ; fd ea
l_dwjnz:
dwjnz l_dwjnz ; ed 10 ..
altd dwjnz l_dwjnz ; 76 ed 10 ..
cbm valu... |
.include "vc4.qinc"
#.set vpm_setup(num, stride, dma) (num & 0xf) << 20 | (stride & 0x3f) << 12 | (dma & 0xfff)
#.set v32(y, x) 0x200 | (y & 0x30) | (x & 0xf)
mov r1, unif
mov r3, unif
# Read element i from VPM
#ldi vr_setup, vpm_setup(16, 0, h32(0, 0))
#vdr_setup_0(0, 0, 1, dma_h32(0, 0))
# 1 000 0000 0001 0000 0... |
#
# assmbler test.
# all instructions
#
start:
add r0, r1
add r7, r6
addi r0, 1
addi r1, 42
addi r2, 0xff
label1:
and r1, r2
and r6, r5
andi r3, 2
andi r3, 253
andn r3, r4
andn r5, r4
andni r4, 3
andni r5, 99
asr1 r5
asr1 r0
bclri r6, 4
bclri r7, 31
bdf label1
bdf label2
bf label1
bf la... |
; DV3 Allocate / Locate New Buffer V3.00 1992 Tony Tebby
section dv3
xdef dv3_albf
xdef dv3_lcbf
xref dv3_sbloc
xref dv3_sbnew
include 'dev8_dv3_keys'
include 'dev8_keys_err'
include 'dev8_mac_assert'
;+++
; DV3 allocate or locate a slave block for write operations.
; If necessary, it reads the app... |
; int bv_priority_queue_resize_callee(bv_priority_queue_t *q, size_t n)
SECTION code_adt_bv_priority_queue
PUBLIC _bv_priority_queue_resize_callee
EXTERN _ba_priority_queue_resize_callee
defc _bv_priority_queue_resize_callee = _ba_priority_queue_resize_callee
INCLUDE "adt/bv_priority_queue/z80/asm_bv_priority_que... |
fate segment
buff db (?)
fate ends
servents segment
archer:
assume cs:servents, ds:fate
mov ax, fate
mov ah, 1
mov dx, 0
mov cx, 0
int 21h
mov bh, al
sub bh, 48
int 21h
cmp al, 13
je assassin
mov ch, al
sub ch, 48
int 21h
cmp al, 13
je berserker
... |
;metatile.asm
TILE_BORDER = 31
TILE_EMPTY = 0
TILE_SOLIDIFIER = 1
TILE_TARGET = 2
TILE_RUBBLE = 3
TILE_DAMAGEDBRICK = 4
TILE_BRICK = 5
TILE_GLASSSHARDS = 6
TILE_BROKENGLASSWARE = 7
TILE_GLASSWARE = 8
TILE_BROKENGLASSPANEL = 9
TILE_GLASSPANEL = 10
TILE_METALSHARDS = 11
TILE_DAMAGEDMETALBRICK = 12
TILE_METALBRICK = ... |
;
; 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... |
; ------------------------------------------------------------------
; MichalOS Serial Messenger
; ------------------------------------------------------------------
BITS 16
%INCLUDE "michalos.inc"
ORG 100h
start:
call .draw_background
mov ax, 0 ; Set up the serial port
call os_serial_port_enable... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; LM9432.ASM (C) Copyright 1995 Standard Microsystems Corp.
; All rights reserved.
;
;* Contains confidential information and *
;* trade secrets p... |
.include "myTiny13.h"
; this program counts decimal two 7seg-display from 00 to 99 !!!
; it is near to 1sec on a 16kHz clock and tccr0b = 1/1024 !
;irq Vector
.org 0x0000
rjmp OnReset
.org 0x0003
rjmp TimerOVF
.org 0x0010
TimerOVF:
; Count on every overflow
push B ; 2 clocks
inc A ; 1 clock
ldi B,234 ; 1 ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT:
MODULE:
FILE: gfsUtils.asm
AUTHOR: Adam de Boor, Apr 14, 1993
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date Descriptio... |
;
org 100h
BLOCK1 DW 1h, 2h, 3h, 4h
BLOCK2 DW 4 DUP(?)
cld; clear direction flag (auto-increment)
mov cx, 4
mov bx,0
mov si, offset BLOCK1
mov di, offset BLOCK2
;push to stack
l1: lodsw
push ax
inc bx
loop l1
mov cx, bx
;pop from stack
... |
; ---------------------------------------------------------------------------
; Object 40 - Moto Bug enemy (GHZ)
; ---------------------------------------------------------------------------
MotoBug:
moveq #0,d0
move.b obRoutine(a0),d0
move.w Moto_Index(pc,d0.w),d1
jmp Moto_Index(pc,d1.w)
; ===================... |
global flush_tss
flush_tss:
mov ax, 0x28
ltr ax
ret |
-- HUMAN RESOURCE MACHINE PROGRAM --
-- 14-Maximization-Room - SIZE 12/10 - SPEED 38/34 --
JUMP b
a:
COPYFROM 0
JUMP d
b:
c:
INBOX
COPYTO 0
INBOX
COPYTO 1
SUB 0
JUMPN a
COPYFROM 1
d:
OUTBOX
JUMP c
|
;
; CPC Maths Routines
;
; August 2003 **_|warp6|_** <kbaccam /at/ free.fr>
;
; $Id: pow10.asm,v 1.2 2007/07/21 21:28:22 dom Exp $
;
INCLUDE "#cpcfirm.def"
INCLUDE "#cpcfp.def"
XLIB pow10
XDEF pow10c
LIB float
XREF fa
.pow10 ld hl,1
call float
ld hl,2
add hl,sp
ld a,(hl... |
copyright zengfr site:http://github.com/zengfr/romhack
012A74 clr.b ($200,A5)
012A78 move.b #$2, ($1c8,A5)
012F04 move.b #$63, ($1de,A5)
01A610 dbra D1, $1a60e
01AD3E addi.b #$1e, ($1de,A5)
copyright zengfr site:http://github.com/zengfr/romhack
|
TITLE 'ieee-loadr.asm: Test IEEE Load Rounded'
***********************************************************************
*
*Testcase IEEE LOAD ROUNDED
* Test case capability includes IEEE exceptions, trappable and
* otherwise. Test result, FPCR flags, and DXC saved for all tests.
* Load Rounded does not set the ... |
; A036604: Sorting numbers: minimal number of comparisons needed to sort n elements.
; 0,1,3,5,7,10,13,16,19,22,26,30,34,38,42
mov $1,$0
lpb $1
sub $1,$2
sub $1,1
add $0,$1
add $2,2
lpe
|
SECTION code_fp_math48
PUBLIC _ftoe
EXTERN __convert_sdccf2reg
EXTERN l_glong
EXTERN _ftoe_impl
; sdcc implementation (l->r calling convention)
; (double x,int f,char *str);
._ftoe
ld hl,6 ; &x
add hl,sp
call l_glong
ex de,hl
call __convert... |
ori $1, $0, 7
ori $2, $0, 0
ori $3, $0, 12
ori $4, $0, 9
sw $2, 0($0)
sw $1, 4($0)
sw $2, 8($0)
sw $1, 12($0)
sw $3, 16($0)
sw $3, 20($0)
sw $3, 24($0)
sw $3, 28($0)
sw $2, 32($0)
sw $4, 36($0)
sw $1, 40($0)
sw $4, 44($0)
sw $4, 48($0)
sw $4, 52($0)
sw $2, 56($0)
sw $3, 60($0)
sw $3, 64($0)
sw $1, ... |
Name: ys_enmy7_old.asm
Type: file
Size: 353122
Last-Modified: '2016-05-13T04:50:37Z'
SHA-1: 2CAD5921D12D6939101EECF8BE682AEDC07E72B5
Description: null
|
[BITS 64]
vmovntdqa ymm1, yword [rsi] ; fails: "error: invalid combination of opcode and operands"
vmovntdqa ymm1, [rsi] ; works
vmovntdqa xmm1, oword [rsi] ; works
movntdqa xmm1, oword [rsi] ; fails, see bug 978756: "error: mismatch in operand sizes"
movntdqa xmm1, [rsi] ; works
|
include isvbop.inc
.286
.model medium,pascal
_DATA segment word public 'DATA'
Old2fHandler dd ?
Old73Handler dd ?
VddHandle dw -1
DllName db "VWIPXSPX.DLL",0
InitFunc db "VwInitialize",0
DispFunc db "VwDispatcher",0
_DATA ends
INIT_T... |
; General IO utility: newline V2.00 1988 Tony Tebby
section gen_util
xdef gu_nl
xref gu_iow
include 'dev8_keys_qdos_io'
include 'dev8_keys_k'
;+++
; This routine sends a newline
;
; a0 c p channel ID
; error returns standard
;---
gu_nl
mov... |
.global isr_reset
.global isr_swi
.global isr_irq
.global isr_fiq
.global isr_pabt
.global isr_dabt
.global isr_undef
.sect ".intvecs"
B isr_reset ; reset interrupt
B isr_undef ; undefined instruction interrupt
B isr_swi ; software interrupt
B isr_pabt ; abort (prefetch) int... |
align 4
global gdt_flush
global load_idt
global tss_flush
gdt_flush:
mov eax, [esp+4]
lgdt [eax]
mov ax, 0x10
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
jmp 0x08:.flush
.flush:
ret
load_idt:
mov edx, [esp + 4]
lidt [edx]
sti
ret
tss_flush:
mov ax, 0x2B
ltr ax
ret
|
RockTunnelB1F_h:
db CAVERN ; tileset
db ROCK_TUNNEL_B1F_HEIGHT, ROCK_TUNNEL_B1F_WIDTH ; dimensions (y, x)
dw RockTunnelB1F_Blocks ; blocks
dw RockTunnelB1F_TextPointers ; texts
dw RockTunnelB1F_Script ; scripts
db 0 ; connections
dw RockTunnelB1F_Object ; objects
|
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20714
//
//
///
// Buffer Definitions:
//
// cbuffer cbSimulationConstants
// {
//
// uint g_iNumParticles; // Offset: 0 Size: 4
// float g_fTimeStep; // Offset: 4 Size: 4 [unused]
// float g_fSmoothlen; ... |
MOV AL,06
SHL AL,1
MOV BL,AL
MOV CL,2
SHL AL,CL
ADD AL,BL
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994. All rights reserved.
GEOWORKS CONFIDENTIAL
PROJECT: Pasta
MODULE: Fax
FILE: faxprintPrintSwath.asm
AUTHOR: Jacob Gabrielson, Apr 7, 1993
ROUTINES:
Name Description
---- -----------
... |
;SuperScale by ElSemi
;
; Based on the original idea of 2xScale of AdvanceMAME.
; AdvanceMAME code is GPLed and I didn't get permisson to use it. so this code is
; my own implementation of that effect.
; similar to Kawaks' KScale effect
;
;It expands the central pixel of a 3x3 matrix to 2x2 pixels resulting in a 2x s... |
PUBLIC ReadFlags_asm
.686
.model flat, c
.code
ReadFlags_asm PROC
pushfd
pop eax
ret
ReadFlags_asm ENDP
end |
;------------------------------------------------------------------------------
;
; Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
;
; Module Name:
;
; FspTempRamInit.nasm
;
; Abstract:
;
; This is the code that will call into FSP TempRamInit API
;
;--... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.