content stringlengths 23 1.05M |
|---|
;Daniel Noyes
;optional lab 8
;Enhanced capture Timer Module ECT
;Engine Controller
;***************************************************************************
; export symbols
XDEF Entry, _Startup ; export 'Entry' symbol
ABSENTRY Entry ; for absolute assembly: mark this as entry point
;********************... |
;++
;
; Module name
;
; exp.asm
;
; Author
;
; Thomas Parslow (tomp) Feb-26-91
;
; Description
;
; Entry points exported to OS loader by SU module. Exported
; routines provide basic machine dependent i/o funtions needed
; by the OS loader. Providing these routines decouples... |
.include "../../src/libs/cesplib_rars.asm"
utest_draw_o:
li a1, 41
li a2, 41
jal draw_o
li a7, 10
ecall
.include "../../src/draw/draw_O.asm"
.include "../../src/draw/draw_pixel.asm"
|
./Release/tst02.elf: file format elf32-avr
Disassembly of section .text:
00000000 <__vectors>:
0: 09 c0 rjmp .+18 ; 0x14 <__ctors_end>
2: 16 c0 rjmp .+44 ; 0x30 <__bad_interrupt>
4: 15 c0 rjmp .+42 ; 0x30 <__bad_interrupt>
6: 14 c0 rjmp .+40 ; 0x30 <__... |
frame 0, 12
frame 3, 24
setrepeat 2
frame 0, 08
frame 1, 08
dorepeat 3
endanim
|
;
; Spectrum C Library
;
; ANSI Video handling for ZX Spectrum
;
; Handles colors referring to current PAPER/INK/etc. settings
;
; Scrollup
;
;
; $Id: f_ansi_scrollup.asm,v 1.6 2016/04/04 18:31:23 dom Exp $
;
SECTION code_clib
PUBLIC ansi_SCROLLUP
EXTERN call_rom3
.ansi_SCROLLUP
;ld a,(23693)
;l... |
andi $4,$4,63073
lh $5,0($0)
sra $5,$5,4
lhu $1,14($0)
sra $3,$4,29
ori $4,$4,21203
slti $5,$1,-23357
srav $4,$4,$3
xor $5,$4,$3
sllv $1,$1,$3
or $3,$6,$3
subu $3,$3,$3
xori $5,$3,52787
sh $0,8($0)
sw $1,0($0)
sh $4,10($0)
subu $3,$5,$3
srav $1,$3,$3
srl $4,$1,13
sll $1,$3,0
subu $3,$4,$3
or $5,$5,$3
srl $3,$5,17
xor $... |
BITS 32
org 0x7c00
push 131 ; 0x7BFC: 0x83: 1000 0011 (CF: 0)
mov eax, esp
rol byte [eax], 0x2 ; C0 /0 rotate rm8 left imm8 times ; 0000 1110 (0x0E)
pushfd ; 0x7BF8: 0x0
push 131 ; 0x7BF4: 1000 0011 (CF: 0)
mov eax, esp
rol byte [eax], 0xA ; C0 /0 rotate rm8 left imm8 times ; 0000 1110 ... |
IFDEF x86
.586
OPTION CASEMAP :NONE
.MODEL flat, stdcall
ENDIF
_TEXT SEGMENT
PUBLIC fPrivilegedInstruction
IFDEF x86
fPrivilegedInstruction PROC
; Create stack frame (because there are no arguments)
PUSH EBP
MOV EBP, ESP
ELSE
; Create stack frame
fPrivilegedInstruc... |
page ,132
;*****************************************************************************;
; ;
; FILE NAME: swapb.asm ;
; ;
; DESCRIPTION: Swap the two bytes of a word ;
; ;
; NOTES: ;
; ;
; HISTORY: ;
;... |
#include "../../flame32.asm"
; Tests MDS
lod -9
ldl B, 8
mds A, B
|
mac1 MACRO
.mac1_start:
ld b,b
ld b,c
.mac1_end:
ENDM
mac2 MACRO
.mac2_start:
ld c,b
.mac1_emit:
mac1
ld c,c
.mac2_end:
ENDM
mac3 MACRO
.mac3_start:
ld d,b
.mac2_emit:
mac2
... |
; Entry: secondary=acc
; onstack (under two return addresses) = primary
;
;
; Exit: z=number is zero
; (nz)=number is non-zero
; c=number is negative
; nc=number is positive
SECTION code_l_sccz80
PUBLIC l_i6... |
;
;
; ZX Maths Routines
;
; 10/12/02 - Stefano Bodrato
;
; $Id: log10.asm,v 1.2 2009/06/22 21:44:17 dom Exp $
;
;double log10(double) -- 1/ln(10)
;Number in FA..
IF FORzx
INCLUDE "zxfp.def"
ELSE
INCLUDE "81fp.def"
ENDIF
XLIB log10
LIB fsetup1
... |
; MODIFYLE DEMO 1/2012
; Andreas G. Szabo
; info@torakosmos.de
; Search in aminet for "modifyle" if you are
; missing something. Assembles with phxass.
include exec/types.i
include exec/funcdef.i
include exec/exec_lib.i
include easy.i
include utility/tagitem.i
include modifyle.i
include li... |
Name: kart-drive-back.asm
Type: file
Size: 25645
Last-Modified: '1992-02-13T07:48:11Z'
SHA-1: 130240038E4A02FFB31D33921FD99212C174781F
Description: null
|
SETUP:
bits 16
; BIOS jumps to 0x7C00 if the 511th/512th bytes contain the boot signature
; So we offset everything with 0x7C00:
org 0x7c00
;;;;;;;;;;;;;;;
;; Macros :) ;;
;;;;;;;;;;;;;;;
%macro call_draw_pixel 3 ; 3 parameters
; save registers modified by draw_pixel
push ax
push cx
pus... |
SECTION code_driver
PUBLIC __bdos
; The Bondwell2 uses ix during bdos calls.
;
; This will have the unfortunate effect of
; breaking SDCC based compilations since ix is used
; as the framepointer
;
; So redefine the internal __bdos symbol to save
; and restore ix - this needs to be generic across
; all z80 CP/M pl... |
.byte $01 ; Unknown purpose
.byte OBJ_BIGQBLOCK_3UP, $37, $10
.byte OBJ_BIGQBLOCK_TANOOKI, $77, $14
.byte $FF ; Terminator
|
;; $Header: /cvsroot/uuu/uuu/src/cells/lib/maths/rng/parkmiller/parkmiller.asm,v 1.6 2001/12/09 23:54:35 instinc Exp $
;;
;; The generator is the "minimal standard" multiplicative linear congruential
;; generator of Park, S.K. and Miller, K.W., "Random Number Generators: Good
;; Ones are Hard to Find," * CACM 31:10, Oc... |
dnl AMD64 mpn_addmul_1/mpn_submul_1 optimised for Intel Atom.
dnl Copyright 2003-2005, 2007, 2008, 2011-2013 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 ... |
; void *wv_stack_pop_fastcall(wv_stack_t *s)
SECTION code_clib
SECTION code_adt_wv_stack
PUBLIC _wv_stack_pop_fastcall
EXTERN asm_wv_stack_pop
defc _wv_stack_pop_fastcall = asm_wv_stack_pop
|
; Text for printer aborted
section language
xdef met_ptab
met_ptab dc.b 0,23,'******* ABORTED *******'
end
|
; Copyright (c) 2011, Google Inc.
; 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 above copyright
; notice, this list of conditions and... |
;-----------------------------------------------------------------------------;
; Author: Joshua Pitts @midnite_runr
; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4
; Version: 1.0 (28 July 2009)
; Size: 283 bytes
; Build: >build.py loadliba_single_shell_reverse_tcp
; Does not include code from BDF pytho... |
;-----------------------------------------------------------------------------;
; Author: agix (florian.gaultier[at]gmail[dot]com)
; Compatible: Windows 7, 2008, Vista, 2003, XP, 2000, NT4
; Size: 448 bytes
;-----------------------------------------------------------------------------;
[BITS 32]
; Input: EBP mu... |
TITLE SPAWN - procedures to spawn another program before exiting
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1993
; * All Rights Reserved.
; */
page ,132
.xlist
include chkseg.inc
include chkmacro.inc
INCLUDE SYSCALL.INC
INCLUDE PATHMAC.INC
... |
Name: TITLE.asm
Type: file
Size: 32709
Last-Modified: '1992-01-13T06:23:06Z'
SHA-1: 68BFCDB168D81EC20809148E9AF9007D11D2F6A2
Description: null
|
module DialogBox
inputBox:
xor a : ld (inputBuffer), a
.noclear
call drawBox
.loop
ld de, #0B05 : call TextMode.gotoXY
ld hl, inputBuffer : call TextMode.printZ
ld a, MIME_INPUT : call TextMode.putC : ld a, ' ' : call TextMode.putC
.checkkey
call Console.getC
cp BACKSPACE : jr z, .remov... |
mov ax, 1000
mov ss, ax
mov sp, 0010
mov ax, 001A
mov bx, 001B
push ax
push bx
pop ax
pop bx |
;
; ZX Spectrum specific routines
;
; int zx_betadisk();
;
; The result is:
; - 0 (false) if the Beta 128 Disk Interface is missing
; - 1 (true) if the Beta 128 Disk Interface is connected
;
; It has the side effect of enabling the TRDOS System variables
;
;
; $Id: zx_betadisk.asm,v 1.1 2008/02/01 10:36:40 ... |
; DV3 QPC Start / Stop Drive V3.00 1998 Tony Tebby
section dv3
xdef hd_ststp ; start / stop drive
include 'dev8_keys_err'
include 'dev8_dv3_keys'
include 'dev8_dv3_hd_keys'
include 'dev8_dv3_hd_ide_keys'
;+++
; This routine starts or stops a drive
;
; d0 cr start (-1), stop ($ffff) rundown (0+ minutes... |
SECTION rodata_font_fzx
PUBLIC _ff_utz_ShadowFlower
_ff_utz_ShadowFlower:
BINARY "font/fzx/fonts/utz/ShadowFlower/sflower.fzx"
|
;++
;
; Copyright (c) Alex Ionescu. All rights reserved.
;
; Module:
;
; shvx64.asm
;
; Abstract:
;
; This module implements the AMD64-specific SimpleVisor VMENTRY routine.
;
; Author:
;
; Alex Ionescu (@aionescu) 16-Mar-2016 - Initial version
;
; Environment:
;
; Kernel mode only.
;
;--
.code
ex... |
; char __CALLEE__ *fgets(char *s, int n, FILE *stream)
; 06.2008 aralbrec
PUBLIC fgets_callee
PUBLIC ASMDISP_FGETS_CALLEE
EXTERN fgetc, l_jpix
EXTERN stdio_error_einval_zc, stdio_error_zc
EXTERN ASMDISP_FGETC
INCLUDE "../stdio.def"
.fgets_callee
pop hl
pop ix
pop bc
ex (sp),hl
.asmentry
; enter : ... |
format ELF64
public length_string
public string_to_number
public number_to_string
section '.str_length_string' executable
; | input
; rax = string
; | output
; rax = length
length_string:
push rbx
xor rbx, rbx
.next_iter:
cmp [rax+rbx], byte 0
je .close
inc rbx
jmp .next_it... |
<% import pwnlib.shellcraft as S %>
<%docstring>
Crashes the process.
Example:
>>> run_assembly(shellcraft.crash()).poll(True)
-11
</%docstring>
${S.mov('x30', 0)}
ret
|
; Hello World using system calls
; for x86_64 Linux only
section .data ; constants
text db "Hello, World",10 ; const char* Hello World
section .text ; function declaring
global main ; used for gcc
main: ; start
mov rax, 1 ; sys_write
mov rdi, 1 ; write to STDOUT
mov rsi, text ; poi... |
ProgramStruct :
dd .helloWorld
RELOCADDR :
dd null
.helloWorld
pusha
push dword .strdata
call Console.Echo
popa
ret
.strdata :
db "Hello from a program external to the kernel!", 0
Console.Echo :
mov [.stor], eax
mov eax, 0x
add eax, [RELOCADDR]
int 0x30
mov eax, [.stor]
ret
.stor :
dd 0x0
... |
db NIDORINA ; pokedex id
db 70 ; base hp
db 62 ; base attack
db 67 ; base defense
db 56 ; base speed
db 55 ; base special
db POISON ; species type 1
db POISON ; species type 2
db 120 ; catch rate
db 117 ; base exp yield
INCBIN "pic/gsmon/nidorina.pic",0,1 ; 66, sprite dimensions
dw NidorinaPicFront
dw NidorinaPicBack
;... |
84_Header:
sHeaderInit ; Z80 offset is $CDC5
sHeaderPatch 84_Patches
sHeaderTick $01
sHeaderCh $01
sHeaderSFX $80, $05, 84_FM5, $02, $07
84_FM5:
sPatFM $00
dc.b nF0, $04, $03, $03, nC0, $1B
sLoop $00, $04, 84_FM5
sStop
84_Patches:
; Patch $00
; $10
; $06, $03, $03, $06, $14, $16, $14, $18
; $15, ... |
Name: Over-j.asm
Type: file
Size: 14243
Last-Modified: '1992-07-14T15:00:00Z'
SHA-1: 2C88B24CE8BDE03CDB1E5CDD9DB363D964FBA185
Description: null
|
SilphCo11F_Script:
call SilphCo11Script_62110
call EnableAutoTextBoxDrawing
ld hl, SilphCo11TrainerHeaders
ld de, SilphCo11F_ScriptPointers
ld a, [wSilphCo11FCurScript]
call ExecuteCurMapScriptInTable
ld [wSilphCo11FCurScript], a
ret
SilphCo11Script_62110:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [h... |
; -*- fundamental -*- (asm-mode sucks)
; $Id: pxelinux.asm,v 1.146 2004/05/29 22:11:23 hpa Exp $
; ****************************************************************************
;
; pxelinux.asm
;
; A program to boot Linux kernels off a TFTP server using the Intel PXE
; network booting API. It is based on the SYSLINU... |
global idt.init, idt.setGate
extern gdt.table, gdt.table.code
%include "core.mac"
Gate:
.TASK: equ 0000_0101b
.INTERRUPT: equ 0000_0110b
.TRAP: equ 0000_0111b
Flags:
.D: equ 0000_1000b
.DPL0: equ 0000_0000b
.DPL1: equ 0010_0000b
.DPL2: equ 0100_0000b
.DPL3: equ 0110_0000b
.P: equ 1000_0000b
struc G... |
Name: zel_enmy4.asm
Type: file
Size: 272850
Last-Modified: '2016-05-13T04:22:15Z'
SHA-1: 9E214FC82F011D9AB3862B1F57218B6E3179F5D4
Description: null
|
; a bit "like real" example with actual ZX Next binary to verify some debugger the SLD parsing
; to launch the final NEX file in CSpect with map file:
; CSpect.exe [your other preferred options] -map=sld_example.sym sld_example.nex
DEVICE ZXSPECTRUMNEXT
SLDOPT COMMENT WPMEM
WAIT_DELAY EQU 21
CSPECT_EASY EQU $... |
.model small
CR equ 0dh
LF equ 0ah
.stack
.data
FileNameEntrada db 256 dup (?) ; Nome do arquivo a ser lido
FileBuffer db ;; 10 dup (?) ; Buffer de leitura do arquivo
FileHandleEntrada dw 0 ; Handler do arquivo
FileHandleSaida dw 0 ; Handler do arquivo
FileNameBuffer db 150 dup (?)
FileNameEntrada... |
data segment
port dw 290h
mes0 db 'Start.',0dh,0ah,'$'
mes db 'Exit!$'
;正弦波数据表
sin db 80h,96h,0aeh,0c5h,0d8h,0e9h,0f5h,0fdh
db 0ffh,0fdh,0f5h,0e9h,0d8h,0c5h,0aeh,96h
db 80h,66h,4eh,38h,25h,15h,09h,04h
db 00h,04h,09h,15h,25h,38h,4eh,66h
data end... |
; stdio_findfilestruct
; 07.2009 aralbrec
PUBLIC stdio_findfilestruct
EXTERN stdio_findfdstruct
EXTERN _stdio_filetbl, LIBDISP_STDIO_FINDFDSTRUCT
; return address of table entry holding file struct address
;
; enter : ix = FILE *
; exit : hl = & stdio_filetbl[FILEentry] + 1, carry reset
; carry set if FILE*... |
* Decimal conversions V1.0 1984/1985 Tony Tebby QJUMP
*
* FDEC$ (value,field,ndp) fixed point decimal conversion
* IDEC$ (value,field,ndp) scaled integer decimal conversion
* CDEC$ (value,field,ndp) ditto, with commas
*
* FEXP$ (value,field,ndp) exponent conversion
*
section exten
*
xdef fdec$
xdef cdec$... |
title "Jump Unwind"
;++
;
; Copyright (c) 2000 Microsoft Corporation
;
; Module Name:
;
; jmpunwind.asm
;
; Abstract:
;
; This module implements the AMD64 specific routine to perform jump unwind.
;
; Author:
;
; David N. Cutler (davec) 22-Dec-2000
;
; Environment:
;
; Any mode.
;... |
INCLUDE "hardware.inc"
SECTION "Header", rom0[$100]
EntryPoint:
di
jp Start
REPT $150 - $104
db 0
ENDR
SECTION "Game Code", rom0
Start:
.waitVBlank
ld a, [rLY]
cp a, 144
jr c, .waitVBlank
xor a; ld a, 0
ld [rLCDC], a
ld hl, $9000; copy font inside VRAM (starts at $8000, appar... |
ori $1, $0, 6
ori $2, $0, 9
ori $3, $0, 1
ori $4, $0, 3
sw $4, 0($0)
sw $4, 4($0)
sw $2, 8($0)
sw $4, 12($0)
sw $2, 16($0)
sw $3, 20($0)
sw $4, 24($0)
sw $3, 28($0)
sw $2, 32($0)
sw $2, 36($0)
sw $3, 40($0)
sw $1, 44($0)
sw $1, 48($0)
sw $4, 52($0)
sw $1, 56($0)
sw $3, 60($0)
sw $2, 64($0)
sw $2, 68($0)
sw $3, 72($0)
s... |
mac: MACRO
if (\1) < 10
println "small \1"
elif (\1) > 100
println "large \1"
elif (\1) / 0 == 42 ; only evaluated if the "large" condition was taken
println "division by zero!?"
elif syntax! error?
println "X_X"
else
println "unreachable"
endc
ENDM
mac 2 + 2
mac STRLEN("abcdef")
mac 101
|
;/*!
; @file
;
; @ingroup fapi
;
; @brief BksCharIn DOS wrapper
;
; (c) osFree Project 2018, <http://www.osFree.org>
; for licence see licence.txt in root directory, or project website
;
; This is Family API implementation for DOS, used with BIND tools
; to link required API
;
; @author Yuri Prokushev (... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_dkud1_Beerland2
_ff_dkud1_Beerland2:
BINARY "font/fzx/fonts/dkud1/Beerland2/beerland2.fzx"
|
; MIDI CPU
; copyright John Staskevich, 2017
; john@codeandcopper.com
;
; This work is licensed under a Creative Commons Attribution 4.0 International License.
; http://creativecommons.org/licenses/by/4.0/
;
; sysexbuffer.asm
;
; Default contents of sysex uffer used for generating outbound SysEx.
;
list p... |
SFX_Battle_27_Ch1:
duty 2
unknownsfx0x20 15, 63, 192, 7
SFX_Battle_27_branch_2062a:
unknownsfx0x20 15, 223, 192, 7
loopchannel 4, SFX_Battle_27_branch_2062a
unknownsfx0x20 15, 209, 192, 7
endchannel
SFX_Battle_27_Ch2:
dutycycle 179
unknownsfx0x20 15, 47, 200, 7
SFX_Battle_27_branch_2063d:
unknownsfx0x20 15... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: GeoDex
MODULE: Misc
FILE: miscMiddleColorBitmap.asm
AUTHOR: Ted H. Kim, 2/6/90
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 2/6/90 ... |
SFX_Cry1C_1_Ch4:
dutycycle 245
unknownsfx0x20 7, 214, 225, 7
unknownsfx0x20 6, 198, 226, 7
unknownsfx0x20 9, 214, 225, 7
unknownsfx0x20 7, 198, 224, 7
unknownsfx0x20 5, 182, 226, 7
unknownsfx0x20 7, 198, 225, 7
unknownsfx0x20 6, 182, 224, 7
unknownsfx0x20 8, 161, 223, 7
endchannel
SFX_Cry1C_1_Ch5:
dutycycl... |
PUBLIC padoutparallel
; fast call
.padoutparallel
ld a, l
call 0xb860
jr nc, nochar
ld h, 0
ld l, a
ret
nochar: ld hl, 0xffff
ret
|
tilecoll WALL, WALL, WALL, WALL ; 00
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 01
tilecoll WATER, WATER, WATER, WATER ; 02
tilecoll WATER, WATER, WATER, WATER ; 03
tilecoll FLOOR, FLOOR, FLOOR, FLOOR ; 04
tilecoll WALL, WALL, WALL, WALL ; 05
tilecoll FLOOR, WARP_CARPET_RIGHT, FLOOR, WARP_CARPET_RIGHT ; 06
tilecoll ... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: dos5InitExit.asm
AUTHOR: Adam de Boor, May 30, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name Date ... |
global write_esb, write_esw, write_esd, copy_esw
global in_port, out_port, _cli, _sti
BITS 16
write_esb:
push ebp
mov ebp, esp
push edi
mov di, word [ebp+0x8]
mov eax, dword [ebp+0xc]
mov byte [es:di], al
pop edi
o32 leave
o32 ret
write_esw:
push ebp
mov ebp, esp
push edi
mov di, word [ebp+0x8]
mov eax,... |
; HOTKEY configuration 1988 T.Tebby QJUMP
section language
xdef hkc_english
xref hk_english
xref.l hk_vers
xref hk_stufc
xref hk_stufp
xref hk_stufl
include 'dev8_mac_config'
include 'dev8_mac_text'
hkc_english
... |
;%define UNDEFINED
%macro macro 0
%ifndef UNDEFINED
%rep 1
%fatal This should display "fatal: (m:3)"
%endrep
%endif
%fatal This should display "fatal: (m:6)" if 'UNDEFINED' defined
%endmacro
macro
|
;
; Far Call for REX6000
;
; FarCall function to call code in other mem pages
; Daniel
;
; $Id: farcalld.asm,v 1.3 2015/01/19 01:33:06 pauloscustodio Exp $
;
PUBLIC farcalld
EXTERN farcall
.farcalld
jp farcall
|
Map_SB_ColoredWall_: dc.w byte_4B8F8-Map_SB_ColoredWall_
dc.w byte_4B8FE-Map_SB_ColoredWall_
dc.w byte_4B904-Map_SB_ColoredWall_
dc.w byte_4B90A-Map_SB_ColoredWall_
dc.w byte_4B910-Map_SB_ColoredWall_
dc.w byte_4B916-Map_SB_ColoredWall_
dc.w byte_4B91C-Map_SB_ColoredWall_
dc.w byte_4B922-Map_SB_ColoredWal... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/Gen
FILE: genItemGroup.asm
ROUTINES:
Name Description
---- -----------
GLB GenItemGroupClass Item group object
REVISION H... |
.const
; We can't use "align 32" because MASM does not support it.
; "dup" create N copies of the value in the parantheses.
; AbsMask = array with 4 items with value of 7fffffffffffffffh.
AbsMask qword 4 dup(7fffffffffffffffh)
.code
; void AVX_Packed_Y_Abs_Double_(const YmmVal & input, YmmVal results[])
AVX_Packe... |
[org 0x7c00]
; standard FAT16
JMP entry ; go to entry
DB 0x90
DB "SLEF-IPL" ;
DW 512 ;
DB 1 ;
DW 1 ;
DB 2 ;
DW 224 ;
DW 2880 ;
DB 0xf0 ;
DW 9 ;
DW 18 ;
DW 2 ;
DD 0 ;
DD 2880 ;
DB 0,0,0x29 ;
DD 0xffffffff ;
DB "Slef-OS ... |
; $Id: AssRoutines.asm 10.6 1996/01/30 12:56:07 Michiel Exp Michiel $
; $Log: AssRoutines.asm $
;; Revision 10.6 1996/01/30 12:56:07 Michiel
;; intlcdcmp added
;; --- working tree overlap ---
;;
;; Revision 10.5 1996/01/03 09:54:34 Michiel
;; using SysBase
;;
;; Revision 10.4 1995/07/27 12:26:52 Michiel
;; New... |
.INCLUDE "./inc/m2560def.inc"
; This is a comment
.cseg
ldi r16, 0xFF ; This is an inline comment
sts DDRL, r16
out DDRB, r16 ;This is comment with no space
#DEFINE test 0
; This is a shitty comment
ldi r16, 0b10000000
sts PORTL, r16
ldi r16, 0b00000010
out PORTB, r16
done:
jmp done
|
;
; jquanti.asm - sample data conversion and quantization (64-bit AVX2)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
; Copyright (C) 2009, 2016, 2018, D. R. Commander.
; Copyright (C) 2016, Matthieu Darbois.
;
; Based on the x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAK... |
section .text
[bits 32]
[extern main]
call main
jmp $ |
.nds
.relativeinclude on
.erroronwarning on
; This is for the enemy sprite randomizer.
; It adds a new function that works the same as LoadSpriteMultiGfx, but only takes 4 arguments like LoadSpriteSingleGfx.
; That allows us to swap calls to LoadSpriteSingleGfx out for this custom function instead.
@Overlay86Start eq... |
; unsigned char esx_f_open(unsigned char *filename,unsigned char mode)
SECTION code_esxdos
PUBLIC esx_f_open_callee
EXTERN asm_esx_f_open
esx_f_open_callee:
pop hl
pop de
ex (sp),hl
ld a,e
jp asm_esx_f_open
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _esx_f_open_callee
defc _esx_f_open_callee... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988-1994. All rights reserved.
GEOWORKS CONFIDENTIAL
PROJECT: GEOS
MODULE: CommonUI/CWin (common code for several specific UIs)
FILE: cwinGeometry.asm
ROUTINES:
Name Description
---- --------... |
; Untitled, AKG format, v1.0.
; Generated by Arkos Tracker 2.
castle_Start
castle_StartDisarkGenerateExternalLabel
castle_DisarkByteRegionStart0
db "AT20"
castle_DisarkPointerRegionStart1
dw castle_ArpeggioTable ; The address of the Arpeggio table.
dw castle_PitchTable ; The address of the Pitch table.
dw castle... |
extern scanf
extern printf
section .data
napis1 db "Podaj pierwsza liczbe: ",0
napis2 db "Podaj druga liczbe: ",0
napis3 db "Podaj znak operacji (+ - * /): ",0
napis4 db 10,"Podano zły znak dzialania.",10,0
format db "%d",0
format2 db "%c",0
format3 db 10,"Suma wynosi: %d",10,0
format4 db 10,"Różnica wynos... |
; ФАЙЛ lr05-2-2.asm
SD1 SEGMENT PARA COMMON 'DATA'
C1 LABEL BYTE
ORG 1h
C2 LABEL BYTE
SD1 ENDS
CSEG SEGMENT PARA PUBLIC 'CODE'
ASSUME CS: CSEG, DS: SD1
MAIN:
MOV AX,SD1
MOV DS,AX
MOV AH,2
MOV DL,C1
INT 21h
MOV DL,C2
INT 21h
EXIT:
M... |
; Gold Card SER receive V2.03 1994 Tony Tebby
section ser
xdef ser_rx
xref iob_room
xref iob_eof
xref iob_pbyt
xref ql_hcmdn
xref ql_hcmdr
include 'dev8_keys_par'
include 'dev8_keys_k'
include 'dev8_mac_assert'
include 'dev8_smsq_smsq_base_keys'
;+++
; SER receive
;
; d0 c s 0 = port 1, 1 = por... |
CeladonCity_Object:
db $f ; border block
def_warps
warp 8, 13, 0, CELADON_MART_1F
warp 10, 13, 2, CELADON_MART_1F
warp 24, 9, 0, CELADON_MANSION_1F
warp 24, 3, 2, CELADON_MANSION_1F
warp 25, 3, 2, CELADON_MANSION_1F
warp 41, 9, 0, CELADON_POKECENTER
warp 12, 27, 0, CELADON_GYM
warp 28, 19, 0, GAME_CORNE... |
; ===============================================================
; Jan 2014
; ===============================================================
;
; int fgetpos_unlocked(FILE *stream, fpos_t *pos)
;
; Write current file position to pos.
;
; This implementation does not support multibyte character sets
; so the value wr... |
lda {m1}
clc
adc #{c1}
sta {m1}
bcc !+
inc {m1}+1
bne !+
inc {m1}+2
bne !+
inc {m1}+3
!: |
HomeTextMenu:
;HL -> Menu Structure
;Displays menu and waits for option to be chosen
;Jumps to appropriate address
push hl
B_CALL ClrLCDFull
B_CALL HomeUp
pop hl
ld b,(hl)
inc ... |
; !to "picload.prg", cbm
!ifdef TARGET_MEGA65 {
TARGET_ASSIGNED = 1
* = $801
}
!ifdef TARGET_PLUS4 {
TARGET_PLUS4_OR_C128 = 1
TARGET_ASSIGNED = 1
* = $1001
bitmap_source = loader_pic_start + $800
bitmap_target = $c000
bitmap_end_highbyte = $e0
screen_source = loader_pic_start
screen_target = $0800
colour_so... |
db "BALL WHALE@" ; species name
db "It bounces"
next "playfully like a"
next "ball. The more"
page "seawater it"
next "swallows, the"
next "higher it bounces.@"
|
segment .data
equals db "Equals!",10
eqLn equ $-equals
neuqals dd "Not Equals",10
neuqln equ $-neuqals
segment .text
global _start
_exit:
mov rax,60
mov rdi,0 ; exit code
syscall
ret
_printEquals:
mov rax,1
mov rdi,1
mov rsi,equals
mov rdx,eqLn
syscall
jmp _exit
ret
_printNotEquals:
mov rax,1... |
* = $8000
CLOCK_MHZ = 1 ; // clock frequency in MHz
RAM_END = $3fff
; 65C51 ACIA
ACIA_BASE = $7f20
ACIA_DATA = ACIA_BASE + 0
ACIA_STATUS = ACIA_BASE + 1
ACIA_CMD = ACIA_BASE + 2
ACIA_CTL = ACIA_BASE + 3
PROMPT = '>'
CR = $0d
LF = $0a
BS = $08
... |
%include "macros.inc"
global _lcmArray
segment .text align=16
_lcmArray:
multipush edi, esi, ebx
mov eax, [esp + 16]
mov edx, [esp + 20]
mov ecx, [eax]
cmp edx, 1
jle .returnEcx
lea ebx, [eax + 4]
lea edi, [eax + edx * 4]
.loop:
mov eax, [ebx]
mov esi, eax
imul esi, ecx
test ecx, ecx
jne .no... |
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Get filename associated to current directory entry
;
; $Id: dir_get_entry_name.asm,v 1.3 2016-06-22 22:13:09 dom Exp $
;
INCLUDE "target/osca/def/flos.def"
SECTION code_clib
PUBLIC dir_get_entry_name
PUBLIC _dir_get_en... |
# This game includes the information about the play area
# Display stuff
.eqv DISPLAY_W 64
.eqv DISPLAY_H 64
.eqv DISPLAY_W_SHIFT 6
# LED Colors
.eqv COLOR_BLACK 0
.eqv COLOR_RED 1
.eqv COLOR_ORANGE 2
.eqv COLOR_YELLOW 3
.eqv COLOR_GREEN 4
.eqv COLOR_BLUE 5
.eqv COLOR_MAGENTA 6
.eqv COLOR_WHI... |
.code
SomeFunction proc
mov rax, 123 ; If there's a value in the register rax, C++ will take it as return value
ret
SomeFunction endp
end |
include w2.inc
include noxport.inc
include consts.inc
include windows.inc
errNull equ 0
errDiv0 equ (errNull+7)
errVal equ (errDiv0+8)
errRef equ (errVal+8)
errName equ (errRef+6)
errNum equ (errName+7)
errNa equ (errNum+6)
errMax equ (errNa+5)
errNil equ errMax
createSeg tra... |
Name: Meter-d.asm
Type: file
Size: 31219
Last-Modified: '1992-07-29T15:00:00Z'
SHA-1: 996A5FBFECAAF6085994D3F24FDE60C3A8DF11AD
Description: null
|
; size_t w_array_size_fastcall(w_array_t *a)
PUBLIC _w_array_size
defc _w_array_size_fastcall = asm_w_array_size
INCLUDE "adt/w_array/z80/asm_w_array_size.asm"
|
TITLE THIRD: CASE CONVERSION PROGRAM
.MODEL SMALL
.STACK 100H
.DATA
CR EQU 0DH
LF EQU 0AH
;include
;ORG 100h
LEA SI, msg1 ; ask for the number
CALL print_string
CALL scan_num ; get number in CX.
MOV AX, CX ; copy the number to AX.
; print the following string:
CALL pthis
DB 13, 10, 'You have entered: ',... |
; void bit_beep_di_callee(uint16_t duration_ms, uint16_t frequency_hz)
SECTION code_sound_bit
PUBLIC bit_beep_di_callee
EXTERN asm_bit_beep_di
bit_beep_di_callee:
pop af
pop hl
pop de
push af
jp asm_bit_beep_di
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.