content stringlengths 23 1.05M |
|---|
# timetemplate.asm
# Written 2015 by F Lundevall
# Copyright abandonded - this file is in the public domain.
.macro PUSH (%reg)
addi $sp,$sp,-4
sw %reg,0($sp)
.end_macro
.macro POP (%reg)
lw %reg,0($sp)
addi $sp,$sp,4
.end_macro
.data
.align 2
mytime: .word 0x5957
timstr: .ascii "text more text lots of t... |
; Group14
; ASSEMBLY ASSASSINS* ----
; Muhammad Ahmad(19l - 1199)
; Hassan Khalid(19l - 1181)
; Gulraiz jutt(19l - 1217)
; Yousaf Qadri(19l - 0909)
; TIC TAC TOE BY ASSEMBLY ASSASSINS* ----
[org 0x0100]
section.data
intro dw 0
n db 0
msg1 db 'He\$$lloh ', 41h, 7, '$', 10, 0
msg2 equ $ - msg1
msg3 dw msg2... |
INCLUDE asmlib.inc
.data
prompt1 BYTE "Input number: ", 0ah, 0dh, 0
prompt2 BYTE "First number is larger", 0ah, 0dh, 0
prompt3 BYTE "Numbers are equal", 0ah, 0dh, 0
prompt4 BYTE "Second number is larger", 0ah, 0dh, 0
num1 DWORD ?
num2 DWORD ?
.code
main PROC
mov eax, 0
mov edx, OFFSET prompt1
call write... |
page ,132
TITLE C library emulation, not relying on MS-DOS.
;*****************************************************************************;
; ;
; FILE NAME: anlrem.asm ;
; ;
; DESCRIPTION: C compiler long math library ;
; ;
; NOTES: ... |
;Ionian (major) : R,W,W,H,W,W,W
;Dorian : R,W,H,W,W,W,H
;Phrygian : R,H,W,W,W,H,W
;Lydian : R,W,W,W,H,W,W
;Mixolydian : R,W,W,H,W,W,H
;Aeolian (minor) : R,W,H,W,W,H,W
;Melodic Minor : R,W,H,W,W,W,W
;Harmonic Minor : R,W,H,W,W,H,W+
;Locrian : R,H,W,W,H,W,W
;Whole Tone : R,W,W,W,W,W,W
;Gypsy : R,W,H,W+,H,H,W+
;Pentat... |
SECTION code_clib
PUBLIC generic_console_cls
PUBLIC generic_console_printc
PUBLIC generic_console_scrollup
PUBLIC generic_console_set_ink
PUBLIC generic_console_set_pap... |
;
; Turtle graphics library
; Stefano - 11/2017
;
; $Id: move.asm $
;
SECTION code_clib
PUBLIC move
PUBLIC _move
EXTERN swapgfxbk
EXTERN __graphics_end
EXTERN __pen
EXTERN Line_r
EXTERN plotpixel
EXTERN setxy
.move
._move
push ix
l... |
title Missing.cpp
.386
.387
includelib CPPOM30.LIB
includelib OS2386.LIB
CODE32 segment dword use32 public 'CODE'
CODE32 ends
DATA32 segment dword use32 public 'DATA'
DATA32 ends
CONST32_RO segment dword use32 public 'CONST'
CONST32_RO ends
BSS32 segment dword use32 public 'BSS'
BSS32 ends
EH_CODE segment dword us... |
X = 42
PRINTLN "{X}"
PRINTLN "{x:X}"
PRINTLN "{X:X}"
PRINTLN "{d:X}"
PRINTLN "{b:X}"
Y equ 1337
PRINTLN "{b:Y}"
rsreset
R rb 0
PRINTLN "{d:R}"
S equs "You can't format me!"
PRINTLN "{X:S}"
SECTION "Test", ROM0
Label:
PRINTLN "{x:Label}"
PRINTLN "{x:@}"
|
;Testname=optimized; Arguments=-Ox -fbin -obcd.bin; Files=stdout stderr bcd.bin
dt 765432109876543210p
dt -765432109876543210p
dt +765432109876543210p
dt 123p
dt -456p
dt +789p
dt 98765432109876543210p
dt 123.0
dt 0x123p+44
dt 789p
dt 0p765432109876543210
dt -0p765432109876543210
dt +0p765432109876543210... |
.MODEL SMALL
.DATA
M1 DB 86H, 0AFH, 0CFH, 8EH ; E r I F
M2 DB 8CH, 0C7H, 86H, 89H ; P L E H
PA EQU 0D800H
PB EQU 0D801H
PC EQU 0D802H
CW EQU 0D803H
.CODE
MOV AX,@DATA
MOV DS, AX
MOV DX,CW
MOV AL,80H ;all ports are output
OUT DX,AL
L3:
LEA SI, M1 ;display FIRE
CALL DISPLAY
CALL DELAY
LEA SI, M2
CALL DISPL... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: object.asm
AUTHOR: Steve Scholl, Nov 15, 1989
Routines:
Name Description
---- -----------
GrObjUnDrawHandlesLow
DrawHandlesForce... |
// Tests creating a long (32bit) pointer on zeropage for 45GS02 flat memory access
// Commodore 64 PRG executable file
.file [name="long-pointer-0.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [st... |
_RunPaletteCommand: ;remember to edit this file down below when adding new pokes, so their palettes display.
call GetPredefRegisters
ld a, b
cp $ff
jr nz, .next
ld a, [wDefaultPaletteCommand] ; use default command if command ID is $ff
.next
cp UPDATE_PARTY_MENU_BLK_PACKET
jp z, UpdatePartyMenuBlkPacket
ld l, a
... |
LI A, 0xff
MOV B, A
MOV D, A
MOV U, A
MOV V, A
MOV X, A
MOV Y, A
HLT
|
; default without device will go outside into 0x10000+ address realm (with warnings)
DEVICE NONE
ORG $FFFF
ta1 scf
tb1 jr tb1
tc1 jr tc1
call tc1
ORG $FFFF
ta2 ld a,'7' ; will reset warning-displayed flag => warnings again
tb2 jr tb2
tc2 jr tc2
call tc2
; default with device will produc... |
Name: ys_play.asm
Type: file
Size: 104822
Last-Modified: '2016-05-13T04:51:15Z'
SHA-1: DD79CDC14DDDDA54D63006ADD6C5D51136407B3F
Description: null
|
GLOBAL _cli
GLOBAL _sti
GLOBAL picMasterMask
GLOBAL picSlaveMask
GLOBAL haltcpu
GLOBAL _hlt
GLOBAL halt
GLOBAL _irq00Handler
GLOBAL _irq01Handler
GLOBAL _irq02Handler
GLOBAL _irq03Handler
GLOBAL _irq04Handler
GLOBAL _irq05Handler
GLOBAL _sirqHandler
GLOBAL _exception00Handler
GLOBAL _exception06Handler
EXTERN irqD... |
MODULE in_Inkey
PUBLIC in_Inkey
PUBLIC _in_Inkey
EXTERN in_keytranstbl
; write line to port 0x40
; read first 8 rows form 0x41
; read second 8 rows form 0x42
;
; We have 128 characters per set...
in_Inkey:
_in_Inkey:
ld hl,ignore_keys
ld c,@11111110
ld b,8
ld de,... |
@ARG
D=M
@1
A=D+A
D=M
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@R13
M=D
@3
D=A
@1
A=D+A
D=A
@R14
M=D
@R13
D=M
@R14
A=M
M=D
@0
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@R13
M=D
@THAT
A=M
D=A
@R14
M=D
@R13
D=M
@R14
A=M
M=D
@1
D=A
@SP
A=M
M=D
@SP
M=M+1
@SP
M=M-1
A=M
D=M
@R13
M=D
@THAT
D=M
@1
A=D+A
D=A
@R14
M=D
@R13
D=M
... |
0x0000 (0x000000) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0001 (0x000002) 0x2925- f:00024 d: 293 | OR[293] = A
0x0002 (0x000004) 0x1000- f:00010 d: 0 | A = 0 (0x0000)
0x0003 (0x000006) 0x292C- f:00024 d: 300 | OR[300] = A
... |
; push sky
skyInicialize:
push bp
mov bp,sp
push bx
mov bx,[bp+4]
mov cx,[bx]
add bx,4
add bx,2
skyInicialize_loop1:
push cx
call rnd
xor dx,dx
mov cx,340
div cx
mov [bx],dx
add bx,2
call rnd
xor dx,dx
mov cx,200
div cx
mov [bx],dx
add bx,2
pop cx
loop skyInicialize_loop1
pop bx
mov sp,bp
... |
; Wait for vertical trace
.waitvsync
{
TXA:PHA
LDA #&13
JSR OSBYTE
PLA:TAX
RTS
}
; Palettes
PAL_BLANK = &00
PAL_TITLE = &01
PAL_GAME = &02
PAL_DBG = &03
; Set palette to one specified in A
.setpal
{
ASL A:ASL A:ASL A:TAY
LDX #&00
.loop
LDA #&13:JSR OSWRCH
LDA paltable, Y:JSR OSWRCH:INY:INX
L... |
MODULE __printf_handle_n
SECTION code_clib
PUBLIC __printf_handle_n
EXTERN __printf_loop
EXTERN get_16bit_ap_parameter
EXTERN __printf_write_chars_written
__printf_handle_n:
push hl ;save format
call get_16bit_ap_parameter ; de = ap, hl = value
IF __CPU_INTEL_... |
TITLE SwitchCoreStacks.asm: Core stack switching routine
;------------------------------------------------------------------------------
;Copyright (c) 2004 - 2007, Intel Corporation
;All rights reserved. This program and the accompanying materials ... |
;================================================================================
; Dark World Spawn Location Fix & Master Sword Grove Fix
;--------------------------------------------------------------------------------
DarkWorldSaveFix:
LDA.b #$70 : PHA : PLB ; thing we wrote over - data bank change
JSL.l MasterSwo... |
#ifdef SHARED
#define __fixunstfti __fixunstfti_compat
#endif
#define L_fixunstfdi
#include "config/ia64/lib1funcs.asm"
#ifdef SHARED
#undef __fixunstfti
.symver __fixunstfti_compat, __fixunstfti@GCC_3.0
#endif
|
build/atomic.elf: file format elf32-littleriscv
Disassembly of section .crt_section:
00000000 <trap_entry-0x20>:
0: 04c0006f j 4c <_start>
4: 00000013 nop
8: 00000013 nop
c: 00000013 nop
10: 00000013 nop
14: 00000013 nop
18: 00000013 ... |
; DCL_DF22_C2C3.asm - Pre-computed Direct Form 2 implementation in second order
;
; Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
; ALL RIGHTS RESERVED
.if __TI_EABI__
.asg DCL_runDF22_C2, _DCL_runDF22_C2
.asg DCL_runDF22_C3, _DCL_runDF22_C3
.endif
.global _DCL_runDF22_C2
.global... |
SECTION code_fp_math32
PUBLIC cm32_sdcc_exp
EXTERN cm32_sdcc_fsread1, _m32_expf
cm32_sdcc_exp:
call cm32_sdcc_fsread1
jp _m32_expf
|
;;
;; Copyright (c) 2012-2021, Intel Corporation
;;
;; 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... |
.include "punkpc.s"
punkpc ppc
# Enable REL Support v1.0.0
# authors: @["sushie"]
# description:
gecko 2151510208
OSLink:
mflr r0
li r5, 0
stw r0, 4(r1)
stwu r1, -8(r1)
bl Link
lwz r0, 0x0000000C(r1)
addi r1, r1, 8
mtlr r0
blr
Link:
mflr r0
stw r0, 4(r1)
li r0, 0
stwu r1, 0xFFFFFFD8(r1)
stw r31, 0x00000024(r1)
addi r3... |
push 99
print_next_number: jumpz exit
load
store
store
read
print
pop
push 1
sub
jump print_next_number
exit: pop |
; AMXJITSN.ASM: Just-In-Time compiler for the Abstract Machine of the "Pawn"
; scripting language
; (C) 1999-2000, Marc Peter; beta version; provided AS IS WITHOUT ANY WARRANTIES
; I reached >155 million instr./sec on my AMD K6-2/366 with the Hanoi "bench"
; (27 disks, no output, DOS4/GW under Win95) with this impleme... |
; Phantasy Star Gaiden tile decompressor
; To use:
;
; .define PSGDecoderBuffer $c000 ; define a 34 byte work area for it
; .include "Phantasy Star Gaiden decompressor.inc" ; include this file
; ld ix, <address of compressed data>
; ld hl, <VRAM address to write to, ORed with $4000>
; call PSG_decompr... |
include "hardware.inc"
include "constants.inc"
SECTION "Helpers", ROM0
; Copies a block of memory somewhere else
; @param de Pointer to beginning of block to copy
; @param hl Pointer to where to copy (bytes will be written from there onwards)
; @param bc Amount of bytes to copy (0 causes 65536 bytes to be copied)
; @... |
; **************************************************
; SMSlib - C programming library for the SMS/GG
; ( part of devkitSMS - github.com/sverx/devkitSMS )
; **************************************************
INCLUDE "SMSlib_private.inc"
SECTION code_clib
SECTION code_SMSlib
PUBLIC asm_SMSlib_hideSprite
EXTERN __SMSl... |
;
; This file contains the texture images (16x16 palette coloured, light and dark versions)
;
global tex_grass, tex_dirt, tex_grass_side
section .data
; Grass top
tex_grass db 0x03, 0x05, 0x07, 0x09, 0x0B, 0x0D, 0x0E, 0x10, 0x0E, 0x05
db 0x0D, 0x10, 0x12, 0x14, 0x16, 0x18, 0x1A, 0x1... |
Music_PalletTown_Ch1::
tempo 160
volume 7, 7
duty_cycle 2
note_type 12, 12, 3
Music_PalletTown_branch_a7ce::
octave 3
note B_, 4
octave 4
note C_, 2
note D_, 4
note G_, 2
note D_, 2
note C_, 2
octave 3
note B_, 4
note G_, 2
octave 4
note D_, 4
note D_, 2
note C_, 2
octave 3
note B_, 2
rest 2
not... |
title nmsghdr - near message header and finder
;--------------------------------------------------------------------------
;
; Microsoft C Compiler Runtime for MS-DOS
;
; (C)Copyright Microsoft Corporation, 1986
;
;--------------------------------------------------------------------------
;
; Revision History
;... |
SECTION code_clib
SECTION code_l_sdcc
PUBLIC ____sdcc_ll_push_hlix
PUBLIC ____sdcc_ll_push_hlix_0
____sdcc_ll_push_hlix:
IFDEF __SDCC_IX
push ix
pop de
ELSE
push iy
pop de
ENDIF
add hl,de
____sdcc_ll_push_hlix_0:
ex de,hl
ld hl,-6
add hl,sp
pop af
ld sp,hl
... |
LXI H, 5000
MOV B, M
DCR B
MOV C, M
DCR C
INX H
|
COMMENT @----------------------------------------------------------------------
Copyright (c) Geoworks 1992-1994 -- All Rights Reserved
PROJECT: GEOS
MODULE: Studio
FILE: documentAttributeManager.asm
ROUTINES:
Name Description
---- -----------
INT RelayCommon Handle a request to substitute a... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 19.26.28720.3
include listing.inc
INCLUDELIB LIBCMT
INCLUDELIB OLDNAMES
CONST SEGMENT
$SG30706 DB 'Hello World!', 0aH, 00H
ORG $+2
$SG30707 DB '%lld', 0aH, 00H
ORG $+2
$SG30708 DB '%I64d', 0aH, 00H
ORG $+1
$SG30709 DB 'Hello World 1!', 0aH, 00H
$SG... |
extern m7_ippsGFpAdd_PE:function
extern n8_ippsGFpAdd_PE:function
extern y8_ippsGFpAdd_PE:function
extern e9_ippsGFpAdd_PE:function
extern l9_ippsGFpAdd_PE:function
extern n0_ippsGFpAdd_PE:function
extern k0_ippsGFpAdd_PE:function
extern ippcpJumpIndexForMergedLibs
extern ippcpSafeInit:function
segment .data
align 8
... |
mod_b: begin
section text
public mod_b
public y
x: extern
fim: extern
result: extern
load x
add y
mult dois
store result
jmp fim
section data
dois: const 2
y: space
end
|
TITLE NHLHUTIL - Local Heap utilities
;***
; NHLHUTIL - Local Heap utilities
;
; Copyright <C> 1986, Microsoft Corporation
;
;Purpose:
;
;******************************************************************************
INCLUDE switch.inc
INCLUDE baslibma.inc
INCLUDE files.inc
INCLUDE rmacros.inc
USESEG _DATA
US... |
DATA SEGMENT
DAT DB 0,1,4,9,16,25,36,49
DB 64,81,100,121,144,169,196,225
SQU DB 10
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START: MOV AX,DATA
MOV DS,AX
MOV BX,OFFSET DAT
XOR AX,AX
MOV AL,SQU
ADD BX,AX
MOV ... |
;
; 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... |
DOSSEG
.MODEL small
.DATA
line_offset DW 0, 80, 160, 240, 320, 400, 480, 560, 640, 720
DW 800, 880, 960, 1040, 1120, 1200, 1280, 1360, 1440, 1520
DW 1600, 1680, 1760, 1840, 1920, 2000, 2080, 2160, 2240, 2320
DW 2400, 2480, 2560, 2640, 2720, 2800, 2880, 29... |
; ---------------------------------------------------------------------------
; Animation script - bubbles (LZ)
; ---------------------------------------------------------------------------
Ani_Bub: dc.w @small-Ani_Bub
dc.w @medium-Ani_Bub
dc.w @large-Ani_Bub
dc.w @incroutine-Ani_Bub
dc.w @incroutine-Ani_Bub
... |
.686P
.model flat, stdcall
ExitProcess proto stdcall:dword
includelib kernel32.lib
includelib libcmt.lib
includelib legacy_stdio_definitions.lib
printf PROTO C :VARARG
scanf PROTO C :VARARG
getchar PROTO C:VARARG
calculate proto
copy proto
display proto
include struct.asm
cmpstr macro flag,st... |
circle_throw_move_script:
attackcanceler
accuracycheck 0x081D695E, 0x03020000
critcalc
damagecalc
typecalc
adjustnormaldamage
attackanimation
waitanimation
effectivenesssound
hitanimation 0x0
waitstate
healthbarupdate 0x0
datahpupdate 0x0
critmessage ... |
; ---------------------------------
; 32-bit implementation of Caeser's Cipher
; @author Sma Das
; ---------------------------------
section .data
; Basic constants for system calls
SYS_EXIT equ 1
SYS_READ equ 3
SYS_WRITE equ 4
EXIT_SUCCESS equ 0
EXIT_FAIL equ 1
; File descriptors
STD... |
xor a
ld hl, basescradr + #0835
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr + #0855
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
inc h
ld (hl), a
ld hl, basescradr ... |
; SPIR-V
; Version: 1.3
; Generator: Khronos Glslang Reference Front End; 8
; Bound: 15
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %4 "main"
OpExecutionMode %4 LocalSize 1 ... |
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
trees_c_BEGIN = *
; *****************
; *** CONSTANTS ***
; *****************
trees_c_NUM_PATTERNS = 10
trees_c_PATTERNS_BLOCK_SIZE = 512
;trees_c_MAX_TILE_CLASSES = 24
trees_c_MAX_TILES = 16
; Trees beyond this point won't be drawn.
trees_c_MAX_DISTANCE_LO = <(2... |
; PROLOGUE(mpn_rshift)
; Version 1.0.4.
;
; Copyright 2008 Jason Moxham
;
; Windows Conversion Copyright 2008 Brian Gladman
;
; This file is part of the MPIR Library.
; The MPIR Library is free software; you can redistribute it and/or modify
; it under the terms of the GNU Lesser General Public License as publis... |
; EXAMPLE TAPE : PRINT HEADERS
ORG 50000
LD A,2 ; upper screen
CALL 5633 ; open channel
CALL LOAD_HEADER
CALL PRINT_HEADER
; need to return to lower screen
LD A,1 ; lower screen
CALL 5633 ; open channel
... |
; *******************************************************************************************
; *******************************************************************************************
;
; Name : list.asm
; Purpose : Program Lister
; Author : Paul Robson (paul@robsons.org.uk)
; Date : 14th November 2019
;
;... |
!to "swcx16.bin", cbm
!cpu 65c02
;--------1--------2--------3--------4--------5--------6---
; Sweet16c: A 65c02 Implmentation of a Virtual Machine
; for Executing Code written for Steve Wozniak's SWEET16
; Virtual Machine for the 6502.
; Written in 2020 by Bruce Richard McFarling
; BruceRMcF@aol.com
; To th... |
gdt_start:
dd 0x0 ; 4 byte
dd 0x0 ; 4 byte
gdt_code:
dw 0xffff ; segment length, bits 0-15
dw 0x0 ; segment base, bits 0-15
db 0x0 ; segment base, bits 16-23
db 10011010b ; flags (8 bits)
db 11001111b ; flags (4 bits) + segment length, bits 16-19
db 0x0 ; segment... |
GLOBAL alloc, free, mem_dump
free: ; void free(void *ptr);
mov rax, 19
int 80h
ret
alloc: ; void *alloc(size_t size);
mov rax, 18
int 80h
ret
mem_dump: ; void mem_dump(void);
mov rax, 25
int 80h
ret |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1990 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE: nimbusSegments.asm
AUTHOR: Gene Anderson, May 27, 1990
ROUTINES:
Name Description
---- -----------
Segments Process character com... |
dnl SPARC T3/T4/T5 mpn_bdiv_dbm1c.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 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... |
SilphCo6Script:
call SilphCo6Script_1a1bf
call EnableAutoTextBoxDrawing
ld hl, SilphCo6TrainerHeaders
ld de, SilphCo6ScriptPointers
ld a, [wSilphCo6CurScript]
call ExecuteCurMapScriptInTable
ld [wSilphCo6CurScript], a
ret
SilphCo6Script_1a1bf:
ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [hl]
ret z
ld... |
; Aula 11 - Ponto-Flutuante
; a11e02.asm
; Calculo de distância entre pontos 3D
; d = raiz( (x1 - x2)^2 + (y1 - y2)^2 + (z1 - z2)^2)
; nasm -f elf64 a11e02.asm ; gcc -m64 -no-pie a11e02.o -o a11e02.x
%define _exit 60
extern printf
extern scanf
section .data
pfstr1 : db "Entre com Ponto_%d (int) no formato x y z... |
Route16_Script:
call EnableAutoTextBoxDrawing
ld hl, Route16TrainerHeaders
ld de, Route16_ScriptPointers
ld a, [wRoute16CurScript]
call ExecuteCurMapScriptInTable
ld [wRoute16CurScript], a
ret
Route16Script_59946:
xor a
ld [wJoyIgnore], a
ld [wRoute16CurScript], a
ld [wCurMapScript], a
ret
Route16_ScriptP... |
.MODEL SMALL
.STACK
.DATA
.CODE
MOV AL, 1010B
MOV CL, 2
SHL AL, CL
SHR AL, CL
ROL AL, 1
RCL AL, 1
HLT |
; OZ - A more utopian OS
; ex: set expandtab softtabstop=4 shiftwidth=4 nowrap :
;
;
; x86-32 startup
;
;
; usage:
; $ qemu-system-i386 -boot a -fda oz_fd -monitor stdio
;
; requires: nasm-2.07 or later from: http://www.nasm.us
;
; contributors:
; djv - Duane Voth
;
; history:
; 2007/03/03 - 0.00.01 - dj... |
org 500h
use16
;const-------------------
_reboot equ 0
_get_char equ 1
_printf equ 2
_find_file equ 3
_exec equ 4
_find_first equ 5
_color equ 6
_setcursor equ 7
_gets equ ... |
ASSUME cs: code, ds:data
data SEGMENT
yy DB 19 ; <the last two digits of your birth year (19yy)>
d DB 26 ; <your birth day (1-31)>
negative DB -3
result DW ?
data ENDS
code SEGMENT
start:
mov ax, data ; the address of the data segment is copied into AX
mov ds, ax ... |
; Z88 Small C+ Run Time Library
; Long functions
;
SECTION code_clib
SECTION code_l_sccz80
PUBLIC l_long_ult
EXTERN l_long_ucmp
l_long_ult:
; PRIMARY < SECONDARY, carry set if true
; HL set to 0 (false) or 1 (true)
; dehl = secondary
; stack = primary, ret
call l_long_ucmp
... |
SECTION "ROM Bank 06", ROMX[$4000], BANK[$06]
db $50, $00, $52, $00, $54, $00, $56, $00
db $50, $00, $52, $00, $54, $00, $56, $00
db $58, $00, $5A, $00, $5C, $00, $5E, $00
db $5A, $20, $58, $20, $5E, $20, $5C, $20
db $3E, $21, $E0, $EC, $11, $00, $40, $CD
db $3B, $3C, $CD, $DF, $64,... |
; A100656: a(n)=1 if a hexagonal number is a prime, otherwise 0.
; 0,1,1,1,1,0,1,0,0,1,1,1,0,1,1,0,0,1,0,0,0,0,0,1,1,1,0,1
mov $1,$0
add $0,1
mul $1,$0
mul $1,3
seq $1,10051 ; Characteristic function of primes: 1 if n is prime, else 0.
mov $0,$1
|
; Program 01 - Find Min/Max of 10 Unsigned Decimal Byte-Numbers
; Written by Hamidreza Hosseinkhani (hosseinkhani@live.com)
; June, 2011
TITLE Find Min/Max of 10 Unsigned Decimal Byte-Numbers
StkSeg SEGMENT para stack 'stack'
DB 64 DUP (?)
StkSeg ENDS
DtaSeg SEGMENT para private 'data'
Nums DB 23, 1... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; The MIT License
;
; Copyright (c) 2014 Intel Corporation
;
; 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... |
;-----------------------------------------------
load_option_weapon_tiles:
ld hl,weapon_tiles_directional_plt
ld de,buffer5
call unpack_compressed
ld de,CHRTBL2+(FIRST_WEAPON_TILE+N_WEAPON_TILES)*8
jp load_weapon_tiles_entry_point
;-----------------------------------------------
update_player_options:
ld a,(in... |
lc t0, 0
lc sp, 10
lc s0, 10
lc t0, 0
lc g1, 1
lc g2, -1
geu g4, g0, g1
geu g5, g0, g2
geu g6, g1, g0
geu g7, g1, g2
geu g8, g2, g0
geu g9, g2, g1
lc s0, 10
halt
.data
# .byte '\0', '\1', '\2', '\3'
.ascii "A\022\023\024\025\026\020"
.ascii "\001\011\111 to see what happens"
|
dc.w word_2BB00-Map_StillSprites
dc.w word_2BB0E-Map_StillSprites
dc.w word_2BB16-Map_StillSprites
dc.w word_2BB1E-Map_StillSprites
dc.w word_2BB26-Map_StillSprites
dc.w word_2BB00-Map_StillSprites
dc.w word_2BB34-Map_StillSprites
dc.w word_2BB96-Map_StillSprites
dc.w word_2BBC8-Map_StillSprites
dc.... |
;xlat example
;indices: 0 1 2 3
TABLE DB 3FH, 06H, 5BH, 4FH
;DB 66H, 6DH, 7DH, 27H ; these lines are commented since this is not supported by the emulator in 8086 mode
;DB 7FH, 6FH
mov al, 1 ; try with 0 to 3
mov bx, offset TABLE
xlat
|
# ORG 8000
MVI D,08
LXI B,A2C2
LXI SP,80FF
MVI A,3C
NXTR: OUT 40
CALL DELAY
RLC
DCR D
JNZ NXTR
HLT
DELAY: PUSH B
PUSH PSW
NXTCNT: DCX B
MOV A,C
ORA B
JNZ NXTCNT
POP PSW
POP B
HLT
|
// WindMan minigame cybermeters -> cyberfeet
// Corresponds to text archive 71551C
.if !VAR_TEXT_EU
.org 0x80DE25C
.dw 13000 // from 4000
.dw 20000 // from 6200
.dw 26000 // from 7800
.dw 31000 // from 9600
.dw 36000 // from 11000
.dw 40000 // from 12300
.dw 43000 // from 13000
.dw 52000 // from 160... |
push 0
push 0
sethi 0x0400
st_em 0x0,2,0
push 0
pull_cp 0
push 20
cmp_ult
bz 2
drop 0
halt
pull_cp 0
push 0
sethi 0x0400
tuck_cp 1
ld_em 0x0,2,0
add
pull 1
st_em 0x0,4,0
push 1
add
j -17 |
SECTION code_fp_am9511
PUBLIC cosh
EXTERN cam32_sccz80_cosh
defc cosh = cam32_sccz80_cosh
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _cosh
EXTERN cam32_sdcc_dcc_cosh
defc _cosh = cam32_sdcc_dcc_cosh
ENDIF
|
; DV3 Atari Wait for Ticks 1994 Tony Tebby
section fd
xdef fd_wait
xref at_pd0u
include 'dev8_keys_sys'
include 'dev8_keys_q40'
;+++
; Wait for ticks
;
; d0 c r number of ticks / 0
;
;---
fd_wait
lsl.w #5,d0 ; 20000/32 us units
fdw_loop
swap d0
move.w #20000/32,d0
jsr at_pd0u ; pause
swa... |
org 07c00h
mov ax, cs
mov ds, ax
mov es, ax
call DispStr
jmp $
DispStr:
mov ax, BootMessage
mov bp, ax
mov cx, 16
mov ax, 01301h
mov bx, 000ch
mov dl, 0
int 10h
ret
BootMessage:
db "Hello, OS world!"
times 510-($-$$) db 0
dw 0xaa55
|
RESULTS_START EQU $c000
RESULTS_N_ROWS EQU 4
include "base.inc"
; "Extra length clocking occurs when writing to NRx4 when the frame
; sequencer's next step is one that doesn't clock the length counter.
;
; In this case, if the length counter was PREVIOUSLY disabled
; and now enabled and the length counter is not zer... |
%include "io.inc"
%include "/home/alejandro/Desktop/fun.asm"
section .data
inAudioFile db 'audio.txt', 0h ; name of input audio file
outAudioFile db 'audio-reverb.txt', 0h ; name of output audio file
section .bss
; file management
inDescr resb 4 ; in file desc... |
Route19_h:
db OVERWORLD ; tileset
db ROUTE_19_HEIGHT, ROUTE_19_WIDTH ; dimensions (y, x)
dw Route19_Blocks ; blocks
dw Route19_TextPointers ; texts
dw Route19_Script ; scripts
db NORTH | WEST ; connections
NORTH_MAP_CONNECTION ROUTE_19, FUCHSIA_CITY, -3, 2, FuchsiaCity_Blocks
WEST_MAP_CONNECTION ROUTE_19, ROUTE... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
930! Copyright (c) GeoWorks 1989 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Kernel Graphics
FILE: Graphics/graphicsString.asm
AUTHOR: Jim DeFrisco, 26 September 1989
ROUTINES:
Name Description
---- -----------
... |
.code
; bool AVX_Packed_Convert_Number_(const XmmVal & source, const XmmVal & destination, CvtOp operation)
AVX_Packed_Convert_Number_ proc
mov eax, 1 ; Success
; Make sure cvt_op is valid, then jump to target conversion code
cmp r8d, CvtOpJumpTableCount ; Is r8d a valid jump table index ?
jae BadCvtOp ... |
; rst 0x08
kcall:
push hl
inc sp \ inc sp
pop hl
push hl
dec sp \ dec sp
push de
push bc
push af
; HL has return address, stack is intact
dec hl
ld (hl), 0
inc hl
ld a, (hl)
cp 0xDD
jr z, _
cp 0xFD
jr z, _
cp 0xED
jr nz, ++_
_:
inc hl ; H... |
;
; jcsamss2.asm - downsampling (SSE2)
;
; 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
;
; This file should be ass... |
REPORTS:EQU $-1
DEFM "Missing EN"
DEFB $80+"D" ; S
DEFM "Label not foun"
DEFB $80+"d" ; T
DEFM "UNTIL without REPEA"
DEFB $80+"T" ; U
DEFM "Assertion faile"
DEFB $80+"d" ; V
DEFM "END WHILE without WHIL"
DEFB $80+"E" ; W
DEFM "END PROC without "
DEFB $80+"@" ; X
MAX_ERR:EQU $22
ERR7TXT:DEFM "7 Missing... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) Geoworks 1991 -- All Rights Reserved
PROJECT: PC GEOS
MODULE:
FILE:
AUTHOR: Cheng, 1/91
ROUTINES:
Name Description
---- -----------
Constants:
----------
FloatLn2
FloatLn10
FloatPi
Fl... |
%include "include/u7bg-all-includes.asm"
defineAddress 30, 0x0084, gameStep_callDiscardKeys
defineAddress 31, 0x0F9F, callTranslateKeyBeforeProcessKey
defineAddress 31, 0x0FB3, callTranslateKeyBeforeProcessKey_end
defineAddress 31, 0x07EB, keyMappingCode
defineAddress 31, 0x0924, keyMappingCode_end
defineAddress 31... |
;******************************************************************************
;* SSE-optimized functions for the DCA decoder
;* Copyright (C) 2012-2014 Christophe Gisquet <christophe.gisquet@gmail.com>
;*
;* This file is part of FFmpeg.
;*
;* FFmpeg is free software; you can redistribute it and/or
;* modify it... |
andi $3,$3,58845
sltu $4,$3,$3
ori $3,$3,1203
sltiu $4,$3,22338
xori $6,$1,59184
srlv $1,$4,$3
subu $1,$5,$3
srlv $4,$4,$3
addu $4,$4,$3
slt $3,$0,$3
sw $3,12($0)
lbu $1,12($0)
sb $3,6($0)
lbu $3,6($0)
subu $6,$1,$3
srlv $4,$4,$3
subu $5,$3,$3
sra $1,$6,31
andi $3,$3,23516
or $5,$3,$3
lhu $6,0($0)
srlv $1,$3,$3
slt $5,... |
section .text
global sys_print
global sys_kbrd_read
global sys_sleep
global sys_exit
global sys_wait
sys_print:
; allocate 16-byte space on the stack for the arguments
sub rsp, 16
; rax holds the index number of syscall function
; the index is 0 for write screen function
xor eax, eax
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.