content stringlengths 23 1.05M |
|---|
OPTION DOTNAME
.text$ SEGMENT ALIGN(256) 'CODE'
PUBLIC mulx_mont_sparse_256
ALIGN 32
mulx_mont_sparse_256 PROC PUBLIC
DB 243,15,30,250
mov QWORD PTR[8+rsp],rdi ;WIN64 prologue
mov QWORD PTR[16+rsp],rsi
mov r11,rsp
$L$SEH_begin_mulx_mont_sparse_256::
mov rdi,rcx
mov rsi,rdx
mov rdx,r8
mov rcx,r9
mov r8,QWORD... |
;; COPPER LIST
;; Reduced to fit in 1k for testing.
;; Doing the whole screen will involve streaming instructions to the copper.
;; This is an asm file that is passed through m4 before assembling.
;; To see what m4 does to this file, ask zcc to process it
;; zcc +zxn -vn -m4 copper-small.asm.m4
; ... |
reu_status = $DF00
reu_command = $DF01
reu_c64base = $DF02
reu_reubase = $DF04
reu_translen = $DF07
reu_irqmask = $DF09
reu_control = $DF0A
reu_needs_loading !byte 0 ; Should be 0 from the start
!zone reu {
reu_error
lda #0
sta use_reu
lda #>.reu_error_msg
ldx #<.reu_error_msg
jsr printstring_raw
- jsr k... |
Sprite:
; Character 4 plane 0 + 1 (sprite part AA)
.db $00, $00, $00, $7F, $00, $40, $00, $40, $00, $40, $00, $40, $00, $40, $00, $40
; Character 4 plane 2 + 3 (sprite part AA)
.db $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00
; Character 5 plane 0 + 1 (sprite par... |
page ,132
TITLE C library emulation, not relying on MS-DOS.
;*****************************************************************************;
; ;
; FILE NAME: canonic.asm ;
; ;
; DESCRIPTION: Convert a far pointer to its canonical representation ;
; ... |
# ------------------------------------------------------------------------------
# Algoritmo:
#
# Programa princial:
# le n do teclado
# resultado = fatorial(n)
# escreve resultado na tela
#
# Subrotina fatorial(n)
# if (n < 2)
# retorna 1
# else
# aux = fatorial(n - 1)
# retorna n * au... |
#define BASE_ADDR_0 0x00000000 // (core 0)
#define BASE_ADDR_1 0x02000000 // (core 1)
#define BASE_ADDR_2 0x04000000 // (core 2)
#define BASE_ADDR_3 0x06000000 // (core 3)
#int main0() {
# int *arr0 = (int *) BASE_ADDR_0; // data mapped on core 0
# int *arr1 = (int *) BASE_ADDR_1; // data mapped on core 1
#
# *(arr0+... |
MXECOMRC - COMMON RECOVERY ESTAE/ARR/FRR
MXEEOTXR - END OF TASK EXIT ROUTINE
MXEINLPA - LPA FUNCTION PACK
MXEMSGTB - MESSAGE TABLE
MXESRBRQ - SRB REQUEST HANDLER FOR QUERY
MXESRVLD - SERVER SUBTASK FOR LOGDATA QUEUE
MXESRVMN - SERVER MAIN TASK
MXESRVPC - PC-SS ROUTINE
MXESRVRM - SERVER ASID LEVEL RESMGR ROUTINE
MXETMRX... |
; DV3 QPC Floppy Disk Write Sector 1993 Tony Tebby
; 2000 Marcel Kilgus
section dv3
xdef fd_wdirect ; direct write sector
xdef fd_wsint ; internal write sector
xref fd_hold ; reserve the interface
xref fd_release ; release the interface
xref fd_ckrw ; read root sector and check
i... |
EXTERN w_pixeladdress
EXTERN getmaxy
EXTERN getmaxx
EXTERN l_graphics_cmp
EXTERN swapgfxbk
EXTERN swapgfxbk1
EXTERN generic_console_get_mode
EXTERN __MODE2_attr
EXTERN __MODE3_attr
; Generic code to handle the pixel commands
; Define NEEDxxx before including
push ... |
SECTION code_clib
PUBLIC heapaddress
PUBLIC _heapaddress
; fastcall
.heapaddress
._heapaddress
ex de, hl
jp 0xb87e
|
; ############################################################################
; ## WDOSX DOS Extender Copyright (c) 1996, 2002, Michael Tippach ##
; ## ##
; ## Released under the terms of the WDOSX license agreement. ##
; ##... |
%macro print 2
mov rax,01;
mov rdi,01;
mov rsi,%1;
mov rdx,%2;
syscall;
%endmacro
%macro read 2
mov rax,00;
mov rdi,00;
mov rsi,%1;
mov rdx,%2;
syscall;
%endmacro
section .data
option1: db "1. HEX to BCD";
lenOption1: equ $-option1;
option2: db "2. BCD to HEX";
lenOption2: equ $-option2;
option3:... |
; double __FASTCALL__ floor(double x)
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sccz80_floor
EXTERN am48_floor
defc cm48_sccz80_floor = am48_floor
|
;
; Copyright (c) 2006-2008 Advanced Micro Devices,Inc. ("AMD").
;
; This library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as
; published by the Free Software Foundation; either version 2.1 of the
; License, or (at your option) any lat... |
* Network physical layer - QXL (20 MHz) 1984 & 1993 Tony Tebby
*
section nd
*
xdef nd_qxlc network access code
xdef nd_qxle
xdef nd_send send a packet
xdef nd_send0 send a packet (server protocol)
xdef nd_read read a packet
xdef nd_read0 read a packet (server protocol)
xdef nd_bcast read ... |
COMMENT }%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: VGA24 screen driver
FILE: vga24Manager.asm
AUTHOR: Jim DeFrisco
REVISION HISTORY:
Name Date Description
---- ---- ---------... |
_Route2GateText_5d616::
text "The HM FLASH"
line "lights even the"
cont "darkest dungeons."
done
_Route2GateText2::
text "Once a #MON"
line "learns FLASH, you"
cont "can get through"
cont "ROCK TUNNEL."
done
|
;*
;* Gameboy Hardware definitions
;*
;* Based on Jones' hardware.inc
;* And based on Carsten Sorensen's ideas.
;*
;* Rev 1.1 - 15-Jul-97 : Added define check
;* Rev 1.2 - 18-Jul-97 : Added revision check macro
;* Rev 1.3 - 19-Jul-97 : Modified for RGBASM V1.05
;* Rev 1.4 - 27-Jul-97 : Modified for new subrout... |
; Aula 11 - Ponto-Flutuante
; a11e01.asm
; Conversão de Inteiro para FP
; Conversão de FP para Inteiro
; nasm -f elf64 a11e01.asm ; gcc -m64 -no-pie a11e01.o -o a11e01.x
%define _exit 60
extern printf
extern scanf
section .data
pfstr1 : db "Digite um Inteiro: ", 0
pfstr2 : db "Inteiro %d convertido para fl... |
TILESET_STAGE_MINIATURES_BANK_NUMBER = CURRENT_BANK_NUMBER
tileset_stage_miniatures:
; Tileset's size in tiles (zero means 256)
.byt (tileset_stage_miniatures_end-tileset_stage_miniatures_tiles)/16
tileset_stage_miniatures_tiles:
; TILES $61 to $64 - The Pit stage miniature
;
; Full picture layout
; $61 $61 $61 $61... |
.model tiny
.code
.386
org 100h
beg: jmp start
curr_date_msg db "Current time $"
hours_set_msg db "Enter hours: $"
mins_set_msg db "Enter minutes: $"
secs_set_msg db "Enter seconds: $"
nl db 0Ah, 0Dh, '$'
start: lea dx, curr_date_msg
mov ah, 09
int 21h
mov ah, 02h
int 1ah
push dx
... |
;
; jdmrgmmx.asm - merged upsampling/color conversion (MMX)
;
; Copyright 2009 Pierre Ossman <ossman@cendio.se> for Cendio AB
;
; Based on
; x86 SIMD extension for IJG JPEG library
; Copyright (C) 1999-2006, MIYASAKA Masaru.
; For conditions of distribution and use, see copyright notice in jsimdext.inc
;
; Th... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Lib/Spool - PC/GEOS Spool Library
FILE: libPrinter.asm
AUTHOR: Don Reeves, Jan 20, 1992
ROUTINES:
Name Description
---- -----------
GLB ... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.16.27027.1
TITLE C:\Users\DAG\Documents\_Clients\CodeProject Authors Group\Windows on ARM\libxml2\libxml2-2.9.9\valid.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB MSVCRTD
INCLUDELIB OLDNAMES
_DATA SEGMENT
COMM _xmlMalloc:DWORD
COMM ... |
; You may customize this and other start-up templates;
; The location of this template is c:\emu8086\inc\0_com_template.txt
.MODEL SMALL
.STACK 100H
.DATA
PROMPT_1 DB "ENTER INTEGER 1: $"
PROMPT_2 DB 0DH,0AH, "ENTER INTEGER 2: $"
PROMPT_3 DB 0DH,0AH, "DIFF OF THE INTEGERS: $"
.CODE
MAIN PROC
MOV ... |
; ECDSA signature
; In: KECCAKS hash state, PRIVK private key
; Out: ECX r, ECV s, A v
ECDSAS: CALL KECCAK
LD DE,KECCAKS
LD HL,ECDSAZ + 0x20
LD B,0x20
ECDSAL1:LD A,(DE) ; Save Z
INC E
DEC L
LD (HL),A
DJNZ ECDSAL1
LD HL,PRIVK
LD C,0x20
LDIR ; Concatenate Z and Pk
LD L,E
LD H,D
LD (KECCAKP),HL
INC E
LD ... |
# trabalho-1.asm
#
# DESC:
# Escreva em assembly um programa que implementa o algoritmo de ordenacao quicksort.
# O programa deve ler um arquivo texto chamado numeros.csv (nos arquivos do grupo) e ordena-los.
# O programa deve ainda possuir uma funcao que converte uma string de numeros para um inteiro.
#
# Alunos... |
CopycatsHouse1F_h:
db REDS_HOUSE_1 ; tileset
db COPYCATS_HOUSE_1F_HEIGHT, COPYCATS_HOUSE_1F_WIDTH ; dimensions (y, x)
dw CopycatsHouse1FBlocks, CopycatsHouse1FTextPointers, CopycatsHouse1FScript ; blocks, texts, scripts
db $00 ; connections
dw CopycatsHouse1FObject ; objects
|
; void *balloc_firstfit(unsigned int queue, unsigned char num)
SECTION code_clib
SECTION code_alloc_balloc
PUBLIC balloc_firstfit_callee, l0_balloc_firstfit_callee
EXTERN asm_balloc_firstfit
balloc_firstfit_callee:
pop hl
pop bc
ex (sp),hl
l0_balloc_firstfit_callee:
ld a,c
jp asm_balloc_first... |
MODULE ba_BestFit_callee
SECTION code_alloc_balloc
PUBLIC ba_BestFit_callee
PUBLIC _ba_BestFit_callee
EXTERN balloc_firstfit_callee
defc ba_BestFit_callee = balloc_firstfit_callee
defc _ba_BestFit_callee = balloc_firstfit_callee
|
page , 132
;*****************************************************************************;
; ;
; FileName: GetVmmV.asm ;
; ;
; Contents: Get Virtual Machine Manager version ;
; ;
; Notes: ;
; ;
; History: ;
; 1995/11/10 ... |
%include "boot.inc"
org 0x7c00
[bits 16]
xor ax, ax ; eax = 0
; 初始化段寄存器, 段地址全部设为0
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov gs, ax
; 初始化栈指针
mov sp, 0x7c00
mov ax, LOADER_START_SECTOR
mov cx, LOADER_SECTOR_COUNT
mov bx, LOADER_START_ADDRESS
load_bootloader:
push ax
push bx
call asm_read_hard... |
SECTION code_l
PUBLIC l_asr_dehl
INCLUDE "clib_cfg.asm"
; arithmetic shift right 32-bit signed long
;
; enter : dehl = 32-bit number
; a = shift amount
;
; exit : dehl = dehl >> a
;
; uses : af, bc, de, hl
IF __CLIB_OPT_IMATH_SELECT & $01
EXTERN l_fast_asr_dehl
... |
// Demonstrates a procedure reserving addresses on zeropage
// Commodore 64 PRG executable file
.file [name="reserve-zp-procedure-1.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"... |
;===============================================================================
; Copyright 2015-2019 Intel Corporation
; All Rights Reserved.
;
; If this software was obtained under the Intel Simplified Software License,
; the following terms apply:
;
; The source code, information and material ("Material") co... |
page 60,132 ;
name _parse
title C to PARSER interface
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;-------------------------------------------------------------------
;
; MODULE: _parse
;
... |
# ORG 8000
LDA 8050
STA 8060
HLT
# ORG 8050
# DB 99
|
; code_driver to ensure we don't page ourselves out
SECTION code_driver
PUBLIC generic_console_calc_xypos
PUBLIC generic_console_printc
PUBLIC generic_console_scrollup
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_paper
PUBLIC... |
; $Id: pcibio32.asm $
;; @file
; BIOS32 service directory and 32-bit PCI BIOS entry point
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it... |
/*
MIT License
Copyright (c) 2021 Attila Kiss
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, dis... |
Music_Routes4_Ch1::
tempo 148
volume 7, 7
duty 3
vibrato 10, 3, 4
toggleperfectpitch
notetype 12, 10, 2
octave 2
G# 4
G# 4
G# 4
notetype 12, 7, 15
G# 4
notetype 12, 10, 2
G# 4
G# 4
G# 4
notetype 12, 11, 7
B_ 1
octave 3
E_ 1
F# 1
B_ 1
Music_Routes4_branch_a28a::
notetype 12, 11, 7
B_ 6
E_ 2
E_... |
; ---------------------------------------------------------------------------
; Object 0F - "PRESS START BUTTON" and "TM" from title screen
; ---------------------------------------------------------------------------
PSBTM:
moveq #0,d0
move.b obRoutine(a0),d0
move.w PSB_Index(pc,d0.w),d1
jsr PSB_Index(pc,d1.w... |
.data
dimension: .asciiz "Enter matrix dimension: "
enter_first: .asciiz "Enter first matrix:\n"
enter_second: .asciiz "Enter second matrix:\n"
show_first: .asciiz "First entered matrix:\n"
show_second: .asciiz "Second entered matrix:\n"
show_result: .asciiz "Result of matrix addition:\n"
space: .asciiz ... |
# Authors: Miriam Penger, Lena Gerken, Tina Hoeflich
# Draws both paddles using the draw_rectangle function.
# Note: This only acts as an init function on startup.
# returns:
# a4: highest y coordinate reached by the paddle on the left
# a6: highest y coordinate reached by the paddle on the right
draw_paddles:
# ... |
; line: 'Lucy: Hahaha'
; size in bytes: 13
line_0:
db #0c,#42,#90,#6d,#9b,#2a,#00,#39,#69,#77,#69,#77,#69
end_line_0:
; line: 'Lucy: From this house we will build our family!!'
; size in bytes: 49
line_1:
db #30,#42,#90,#6d,#9b,#2a,#00,#35,#8a,#84,#7f,#00,#8e,#77,#79,#8c
db #00,#77,#84,#90,#8c,#71,#00,#95,#... |
SECTION code_fp_math32
PUBLIC cm32_sdcc___fseq
EXTERN m32_compare
; Entry: stack: float right, float left, ret
cm32_sdcc___fseq:
call m32_compare
scf
ret z
ccf
dec hl
ret
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1995 -- All Rights Reserved
PROJECT:
MODULE:
FILE: messageSendableNotifyDialog.asm
AUTHOR: Allen Yuen, Jan 12, 1995
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name... |
;/*
; * FreeRTOS Kernel V10.3.1
; * 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 restri... |
; void z180_delay_tstate_fastcall(uint tstates)
SECTION code_clib
SECTION code_z180
PUBLIC _z180_delay_tstate_fastcall
EXTERN asm_z180_delay_tstate
defc _z180_delay_tstate_fastcall = asm_z180_delay_tstate
|
PUBLIC addnum
EXTERN randn:PROC
EXTERN newnum:PROC
.code
; adds a new number into an empty slot in the grid
; RCX = grid ptr
; RDX = grid size
; R8 = grbuf
addnum PROC
PUSH R12
PUSH R13
PUSH R14
ENTER 32, 0
MOV R12, RCX ; grid ptr
MOV R13, RDX ; grid size
MOV R14, R8 ; grbuf
MOV RCX, 0
MOV RDX, 0
searchloop:... |
***************
* Plasma 3.1
* 11 Bytes free!
****************
include <includes/hardware.inc>
* macros
include <macros/help.mac>
*
* vars only for this program
*
BEGIN_ZP
screen ds 2
x ds 1
y ds 1
temp ds 2
pal_off ds 1
ptr ds 2
END_ZP
;;; ROM sets this address
screen0 equ $2000
IFD LNX
;; BLL loader... |
/*colors:
.byte $06,$06,$06,$0e,$06,$0e
.byte $0e,$06,$0e,$0e,$0e,$03
.byte $0e,$03,$03,$0e,$03,$03
.byte $03,$01,$03,$01,$01,$03
.byte $01,$01,$01,$03,$01,$01
.byte $03,$01,$03,$03,$03,$0e
.byte $03,$03,$0e,$03,$0e,$0e
.byte $0e,$06,$0e,$0e,$06,$0e
.byte $06,$06,$06,$00,$00... |
##############################################################
# Homework #4
# name: Qi Yuan Fang
# sbuid: 111054484
##############################################################
.text
##############################
# PART 1 FUNCTIONS
##############################
clear_board:
#Define your code here
#########... |
.ORIG x3000
; add
AND R0, R0, #0 ; 3000
BRN DONE ; 3002
BRP DONE ; 3004
BRNP DONE ; 3006
ADD R1, R1, #1 ; 3008
BRN DONE ; 300a
BRZ DONE ; 300c
BRNZ DONE ; 300e
ADD R7, R1, #-2 ; 3010
BRP DONE ; 3012
BRZ DONE ; 3014
BRZP DONE ; 3016
; and/ld
LEA R0, A ; 3018
LDW R5, R0, #0 ; 301a
LDW R... |
build/emulator.elf: file format elf32-littleriscv
Disassembly of section .init:
80000000 <_start>:
80000000: 00001117 auipc sp,0x1
80000004: 18810113 addi sp,sp,392 # 80001188 <_sp>
80000008: 00001517 auipc a0,0x1
8000000c: 8dc50513 addi a0,a0,-1828 # 800008e4 <__init_arr... |
;[]-----------------------------------------------------------------[]
;| STRCPY.ASM -- copy string src to string dest |
;[]-----------------------------------------------------------------[]
;
; C/C++ Run Time Library - Version 10.0
;
; Copyright (c) 1991, 2000 by Inprise Corporation... |
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//
///
// Buffer Definitions:
//
// cbuffer cbPNTriangles
// {
//
// float4x4 g_f4x4World; // Offset: 0 Size: 64 [unused]
// float4x4 g_f4x4ViewProjection; // Offset: 64 Size: 64 [unused]
// float4x4 g_f4x4WorldV... |
0: BZJ 301 300
1: CP 15 150
2: BZJi 303 0
3: CP 16 150
4: BZJi 302 0
150: 3
300: 133
301: 3
302: 1
303: 2 |
SECTION "Map_098A", ROM0[$B800]
Map_098A_Header:
hdr_tileset 17
hdr_dimensions 5, 10
hdr_pointers_a Map_098A_Blocks, Map_098A_TextPointers
hdr_pointers_b Map_098A_Script, Map_098A_Objects
hdr_pointers_c Map_098A_InitScript, Map_098A_RAMScript
hdr_palette $06
... |
; Free cam, credit goes to marius851000, NTSC translation by Colt Zero(Olivine Ellva)
.org 0x8034f59c
li r3, 1 ; 0434f59c 38600001
blr ; 0434f5a0 4e800020
.org 0x80324168
nop ; 04324168 60000000
|
; float __fsneg_fastcall (float number)
SECTION code_clib
SECTION code_math
PUBLIC cm32_sdcc_fsneg_fastcall
EXTERN m32_fsneg_fastcall
; negate sdcc floats
;
; enter : stack = sdcc_float number, ret
;
; exit : DEHL = sdcc_float(-number)
;
; uses : af, bc, de, hl
DEFC cm32_sdcc_fsneg_f... |
;Caesar cipher (shift)
STDIN equ 0
STDOUT equ 1
SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
section .data
plaintext db "password123", 0 ;source
len equ $- plaintext
section .bss
ciphertext resb len ;destination
section .text
global main
main:
mov ecx, len
m... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: UserInterface/Gen
FILE: genFieldClass.asm
ROUTINES:
Name Description
---- -----------
GLB GenFieldClass Class that implements a field wind... |
0x0000 (0x000000) 0x2118- f:00020 d: 280 | A = OR[280]
0x0001 (0x000002) 0xB434- f:00132 d: 52 | R = OR[52], A = 0
0x0002 (0x000004) 0x0000- f:00000 d: 0 | PASS
0x0003 (0x000006) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
... |
; $Id: CPUMRCA.asm $
;; @file
; CPUM - Raw-mode Context Assembly Routines.
;
;
; Copyright (C) 2006-2017 Oracle Corporation
;
; This file is part of VirtualBox Open Source Edition (OSE), as
; available from http://www.virtualbox.org. This file is free software;
; you can redistribute it and/or modify it under the term... |
-- 7 Billion Humans --
-- 11: Injection Sites 1 --
-- Size: 11/5 --
-- Speed: 6/7 --
pickup s
step s
step s
step s
step s
a:
if c == nothing:
drop
jump b
endif
step s
step s
jump a
b:
|
.ASSUME ADL=1
errnosupport:
CALL.SIS OffpageRestoreHardware&$FFFF
CALL DispErrStart
LD HL,_errnosupp_str
CALL PutSInternal
LD HL,(r0syscalldata)
CALL DispHLHex
JR errorcommon
_errnosupp_str:
;0123456789012345
.db "System call not "
.db "supported: ",0
errorcommon:
CALL updateScreen
CALL waitAnyKey
JP e... |
test START 0x100000 . error: too large
END test
|
LMSpadeK label byte
word C_BLACK
Bitmap <71,100,0,BMF_MONO>
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00
db 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
0x00
db 0xb... |
// Ref opcodes: http://www.6502.org/tutorials/6502opcodes.html
macro check_index(evaluate code) {
if pc() - opcode_table != {code} * 8 {
error "Table out of sync"
}
}
macro read_op(evaluate code, _name, op1, op2) {
check_index({code})
j {op1}
la_gp(cpu_t0, {op2})
}
macro write_op(evaluate code, _name, ... |
; FV-1 Testing
;
; Program: Rand FIR G=1.13
;
; POT0: Feedback
;
; Test random FIR filtering
;
ldax ADCL ; load input from ADCL
wrax DACR,1.0 ; save a copy to DACR
; FIR : 100 random taps
rda 5787,0.216955 ; G=0.216955
rda 31048,-0.203752 ; G=0.013204
rda 9140,0.216397 ; G=0.229601
rda 18975,-0.191953 ; G=... |
.align 0x04
pikachu_chip_image:
.import "../temp/pikachu_chip_image.img.bin"
.align 0x04
pikachu_chip_image_pal:
.import "../temp/pikachu_chip_image.pal.bin"
;eof |
; =============================================================================
; Copyright (C) 2015 Manolis Fragkiskos Ragkousis -- see LICENSE.TXT
; =============================================================================
;;; The kernel bootloader.
[org 0x7c00]
[bits 16]
jmp 0x0000:start
KERNEL... |
page ,132
; SCCSID = @(#)tmisc2.asm 4.3 85/06/25
; SCCSID = @(#)tmisc2.asm 4.3 85/06/25
TITLE Part7 COMMAND Transient Routines
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
; More misc routines
... |
[BITS 32]
; disclose following functions to C language code
global kReadCPUID, kSwitchAndExecute64bitKernel
SECTION .text
; CPUID operation provides CPU specific information
; This function shows if long mode is supported
; return CPUID to the address pointed by the params
; PARAM: DWORD dwEAX, DWORD *pdwEAX, *pdwEB... |
;name: wordbin2bcd.asm
;
;description: wordbin2bcd.packed: Branch free word to packed bcd conversion.
; wordbin2bcd.unpacked: Word to unpacked bcd conversion.
;
;use:
;packed bcd: mov rdi,hexadecimal
; call wordbin2bcd.packed
;
;unpacked bcd: mov rdi,hexadecimal
; ... |
TITLE Keyboard Toggle Keys (Keybd.asm)
; This program shows how to detect the states of various
; keyboard toggle keys. Before you run the program, hold
; down a selected key.
; Last update: 12/7/01
INCLUDE Irvine32.inc
VK_NUMLOCK = 90h
VK_SCROLL = 91h
VK_LSHIFT = 0A0h
VK_RSHIFT = 0A1h
VK_... |
/*
* example4: memory setting
* ptr = 0;
* for (i=0; i<10; i++) {*ptr++ = i;}
*/
mov r0, 0 # pr = 0
/* for (i=0; i<10; i++) {*ptr++ = i;} */
mov r1, 0 # i = 0;
mov r2, 10 # loop condition
mov r3, 1 # loop variable incrementer
/* loop head */
cmp r1, r2 # flag = compare(i, 10)
b ge, 5 # if (flag =... |
;; CP/M FizzBuzz in 8080 assembly
bdos: equ 5 ; CP/M calls
puts: equ 9
max: equ 100 ; Amount of lines to print
org 100h
mvi d,max
lxi b,0305h ; Fizz and buzz counters
line: lxi h,num + 2 ; Increment the ASCII number
incn: inr m
mov a,m
cpi '9' + 1
jnz print
mvi m,'0'
dcx h
jmp incn
print: mvi e,0 ... |
*
* Program to repeatedly display "Hello, World!" on the
* Motorola 68000
*
* Written by Stephane Brunet, Computer Engineering student
* at Concordia University, Montreal, Canada.
*
* s_brunet@ece.concordia.ca
*
org $1000
;Main function: use a jump to this address from... |
# Implementation of selection sort.
# Kevin McDonnell
# 1/20/2016
# $s0: base address of array
# $s1: number of elements in the array
# $s2: address array[i]
# $s3: array[j]
# $s4: currentMin
# $s5: array[currentMinIndex]
# $t0: i
# $t1: j
# $t2: upper bound on outer loop
# $t3: value of array[i]
# $t4: value of array... |
; Reading a File (ReadFile.asm)
; Opens, reads, and displays a text file using
; procedures from Irvine32.lib.
INCLUDE Irvine32.inc
INCLUDE macros.inc
BUFFER_SIZE = 50
.data
buffer BYTE BUFFER_SIZE DUP(?)
filename BYTE 80 DUP(0)
fileHandle HANDLE ?
.code
main PROC
; Let user input a file... |
%ifndef _mouse_asm__
%define _mouse_asm__
%define MOUSEFN_RESET_QUERY 0x0000
%define MOUSEFN_SHOW 0x0001
%define MOUSEFN_HIDE 0x0002
%define MOUSEFN_QUERY_BTN_COUNTERS 0x0005
%define MOUSEFN_SET_POINTER_SHAPE 0x0009
section .data
mouse_enabled: db 0
section .bss
section .text
;;;;;; Initialize mouse driv... |
bits 64
vpaddd zmm0, zmm0, [rax]{1to16}
vpaddd zmm2{k3}, zmm0, zmm1
vpaddd zmm2 {k3}, zmm0, zmm1
vpaddd zmm0{k1}, zmm0, [rax]{1to16}
vmovdqa32 [rsi]{k1}, zmm1
vmovdqa32 [rsi]{z}, zmm1
vmovdqa32 [rsi]{k1}{z}, zmm1
vmovdqa32 [rsi]{z}{k1}, zmm1
%ifdef ERROR
vmovdqa32 [rsi]{z}{1to16}, zmm1
vmovdqa32 [rsi]{z}{k1}... |
.include "defines.inc"
.include "global.inc"
.segment "BANK0"
; these subroutines have to do with palettes and nametables
; temp_16_1: address of nametable/palette data
; temp_8_0: which nametable address to use
; loads a palette at where temp_16_1 points
.proc load_palettes
LDA #0
STA PPUMASK ; dis... |
;
; IO.ASM
; ------
;
io_string_crlf
FCB $0A,00
;
; IO_INIT
; -------
; Initialise the I/O console subsystem
;
io_init
LBSR serial_init
RTS
;
; IO_PUTCHAR
; ----------
; Print the character in A
;
io_putchar
LBSR serial_putchar
RTS
;
; IO_PUTS
; -------
; Print the '\0' terminated string pointed to by X
;
io_pu... |
; ******************************************************************************
; ******************************************************************************
;
; Name : tok_token.asm
; Purpose : Check if current word is a token.
; Author : Paul Robson (paul@robsons.org.uk)
; Created : 14th November 2019
;
... |
[bits 16]
[org 0x7c00]
BOOT_DRIVE_LOC equ 0x500
jmp boot
boot:
cli
mov bp, 0x8000
mov sp, bp
mov ax, 0
mov ds, ax
mov es, ax
mov fs, ax
mov gs, ax
mov byte [BOOT_DRIVE], dl
mov byte [BOOT_DRIVE_LOC], dl
mov si, BOOT_WELCOME_MSG
call print_string
call print_nl
m... |
.text
.globl main
main:
la $a0, meme_in
li $v0, 4
syscall
li $v0, 8
syscall
move $t0, $a0
li $t1, 1
li $t2, 1
li $t3, 0
wow:
add $t2, $t2, $t1
addi $t1, $t1, 1
lb $t4, 0($t0)
xor $t4, $t4, $t2
sb $t4, 0($t0)
addi $t4, $t1, -13
ad... |
; A283310: Nim value of complete graph K_n
; 0,1,2,0,1,2,0,2,0,1,2
mov $1,$0
mul $1,2
sub $1,$0
lpb $1
add $0,$1
mul $0,2
sub $0,2
sub $1,7
lpe
mod $0,3
|
.model small
.stack
.data
.code
xor bx, bx
mov al, '3' ;vd: nhap so 3
and al, 0Fh
shl bx, 1
or bl, al
mov cx, 16
printLoop:
rol bx, 1
jc print1
mov dl, '0'
mov ah, 2
int 21h
jmp exit
print1:
mov dl, '1'
mov ah, 2
int 21h
exit:
dec c... |
020075D4 B570 push r4-r6,r14
020075D6 B08E add sp,-38h
020075D8 4893 ldr r0,=27E00FCh
020075DA 6800 ldr r0,[r0]
020075DC 2800 cmp r0,0h
020075DE D100 bne 20075E2h
020075E0 E11F b 2007822h
020075E2 2801 cmp r0,1h
020075E4 D001 beq 20075EAh
020075E6... |
.286
public DOS16PCREATECSALIAS
_TEXT segment byte public 'CODE'
DOS16PCREATECSALIAS proc
mov bx,cs
mov ax,000Ah
int 31h
jc @F
push ds
mov ds,ax
assume ds:_TEXT
; mov ds:[__csalias],ax
pop ds
@@:
r... |
ori $1, $0, 11
ori $2, $0, 8
ori $3, $0, 1
ori $4, $0, 15
sw $2, 0($0)
sw $4, 4($0)
sw $1, 8($0)
sw $3, 12($0)
sw $2, 16($0)
sw $4, 20($0)
sw $4, 24($0)
sw $2, 28($0)
sw $4, 32($0)
sw $1, 36($0)
sw $2, 40($0)
sw $1, 44($0)
sw $1, 48($0)
sw $3, 52($0)
sw $1, 56($0)
sw $4, 60($0)
sw $3, 64($0)
sw $4, 68($0)
sw $1, 72($0)... |
; void bv_priority_queue_destroy_fastcall(bv_priority_queue_t *q)
SECTION code_adt_bv_priority_queue
PUBLIC _bv_priority_queue_destroy_fastcall
_bv_priority_queue_destroy:
INCLUDE "adt/bv_priority_queue/z80/asm_bv_priority_queue_destroy.asm"
|
incsrc "vars.asm"
//; Canada code locations
define SwapBank8 $d78c
define SwapBankA $d79b
define SwitchOld $bf0b
define GetTilePtr $efad
incsrc "mapextra.asm" |
; DeleteDisk.nasm
; Author: Ravehorn
global _start
section .text
_start:
; xoring registers
xor eax, eax
xor ecx, ecx
xor edx, edx
; push null eax register to the stack
push eax
; push //bin/rm to the stack and save it into ebx
push 0x6d722f6e
push 0x69622... |
lda #1
sta JOYPAD1
lda #0
sta JOYPAD1
; read pad data, xor with last frame's pad data to get edges
clc
ldx #8
.readpad
asl pad
lda JOYPAD1
and #$1
ora pad
sta pad
dex
bne .readpad
eor padold
sta pad... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: dBase IV
MODULE: Export
FILE: exportManger.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 9/14/92 Initial version
DESCRIPTION:
This is t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.