content stringlengths 23 1.05M |
|---|
%include "../defaults_bin.asm"
; Disable NMI
xor al,al
out 0xa0,al
mov bx,0x4000
segmentLoop:
mov es,bx
xor si,si
offsetLoop:
mov ah,0xff
mov byte[es:si],ah
mov al,byte[es:si]
cmp al,ah
jz okHigh
printHex
mov ax,es
printHex
mov ax,si
printHex
printNewLine
okHigh:
mov ah,0
mov... |
Name: zel_vma.asm
Type: file
Size: 47613
Last-Modified: '2016-05-13T04:25:37Z'
SHA-1: 84836B253DA17823EC3DD16A6C62C0A4C5E92ED2
Description: null
|
/*
* Copyright © <2010>, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Eclipse Public License (EPL), version 1.0. The full text of the EPL is at
* http://www.opensource.org/licenses/eclipse-1.0.php.
*
*/
//----- Close a Message Gateway -----
#if defined(_DEBU... |
.section .data
file_stat: .space 144 #; Size of the fstat struct
#; Strategy:
#; Get file descriptor from input
#; Allocate memory for whole file
#; Read file into that memory
#; count newlines
#; Allocate memory for newlines * number sizes (in chars)
#; copy file with padding into allocated memory region
#; Sort usi... |
.relativeinclude on
.include "Status_00055.asm"
.include "Keyboard_00056.asm"
.include "Shop_00057.asm"
.include "Monster_Book_00066.asm"
|
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;/*************************************************************************
;* ... |
LCClubJ label byte
word C_BLACK
Bitmap <71,100,BMC_PACKBITS,BMF_4BIT or mask BMT_MASK>
db 0x00, 0x1f, 0xfa, 0xff, 0x00, 0xf0
db 0x01, 0xdd, 0xd0, 0xe1, 0x00, 0x01, 0xdd, 0xd0
db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc
db 0x01, 0xd0, 0x0f, 0xe1, 0xff, 0x01, 0x00, 0xd0
db 0x00, 0x7f, 0xfa, 0xff, 0x00, 0xfc
db ... |
; A011767: From studying monochromatic solutions to x3-x2=x2-x1+2n.
; 9,14,17,21,25,30,34,38,42,46,50
mul $0,2
mov $2,$0
add $2,$0
lpb $0
div $0,3
cmp $1,0
lpe
add $1,$2
mov $0,$1
add $0,9
|
db "LIGHT@" ; species name
dw 311, 500 ; height, weight
db "This #MON uses"
next "the bright part of"
next "its body, which"
page "changed from a"
next "dorsal fin, to"
next "lure prey.@"
|
;
; K051649 Konami SCC
;
SCC_REGISTER_BASE: equ 9800H
SCC_WAVEFORM: equ 9800H
SCC_FREQUENCY: equ 9880H
SCC_AMPLITUDE: equ 988AH
SCC_MIXER: equ 988FH
SCC_DEFORMATION: equ 98E0H
SCC_BANK_SELECT: equ 9000H
SCC_BANK: equ 3FH
SCC_BANK_DEFAULT: equ 02H
SCC_CLOCK: equ 1789773
SCC: MACRO
super: Driver SCC_name, SCC_CLOCK, Dr... |
MoveDeletion:
ld hl, .IntroText
call PrintText
call YesNoBox
jr c, .declined
ld hl, .AskWhichMonText
call PrintText
farcall SelectMonFromParty
jr c, .declined
ld a, [wCurPartySpecies]
cp EGG
jr z, .egg
ld a, [wCurPartyMon]
ld hl, wPartyMon1Moves + 1
ld bc, PARTYMON_STRUCT_LENGTH
call AddNTimes
ld a, [hl... |
;
; feilipu, 2019 May
;
; This Source Code Form is subject to the terms of the Mozilla Public
; License, v. 2.0. If a copy of the MPL was not distributed with this
; file, You can obtain one at http://mozilla.org/MPL/2.0/.
;
;-------------------------------------------------------------------------
; Coefficients f... |
.model flat
assume fs:nothing
public __EH_prolog3
public __EH_prolog3_catch
public __EH_epilog3
extern ___security_cookie: dword
.code
__EH_prolog3_catch proc
__EH_prolog3::
; This is a special helper routine that is called at the beginning
; of a function when optimizing for size. The caller's prolog might look
... |
ORG 0x8000
MODULE main ; module "main"
Main: ; main.Main
CALL SetScreen ; SetScreen
CALL vdp.Cls ; main.vdp.Cls
.loop: ; main.Main.loop
LD A,(.event) ; main.Main.event
CALL ProcessEvent ; label not found: ... |
; general test code
; all opcodes entered alphabetically from Intel's guide are added here
; the ones we know we support are uncommented.
; if they show up on disassembly correctly, we know it's supported.
org 0
; for testing: we can make 16-bit and 32-bit binaries
%ifdef B32
bits 32
%else
bits 16
%endif
; Requires: ... |
%include "../utils/printf32.asm"
section .data
num dd 100
print_format1 db "Sum(", 0
print_format2 db "): ", 0
section .text
extern printf
global main
main:
push ebp
mov ebp, esp
mov ecx, [num] ; Use ecx as counter for computing the sum.
xor eax, eax ; Use eax to store the sum. ... |
print macro msg
lea dx, msg
mov ah, 09h
int 21h
endm
readmsg macro
mov ah, 01h
int 21h
endm
exit macro
mov ah, 4ch
int 21h
endm
.model small
.stack 64h
.data
str1 db 40 dup (0)
str2 db 40 dup (0)
entermsg db 10,13,"please enter string:",10,13,'$'
sucmsg db 10,13,"is pali... |
IDEAL
; Two segments in group. ASSUME segment.
ASSUME CS:SEG1, DS:SEG0, ES:SEG0
SEGMENT SEG0
DB 1024 DUP (00h)
DB 1024 DUP (01h)
DB 1024 DUP (02h)
DB 1024 DUP (03h)
DB 1024 DUP (04h)
DB 1024 DUP (05h)
DB 1024 DUP (06h)
DB 1024 DUP (07h)
DB 1024 DUP (08h)
DB 1024 DUP (09h)
DB 1024 DUP (0Ah)
DB 1024 D... |
; void __FASTCALL__ sp1_Invalidate(struct sp1_Rect *r)
; 02.2006 aralbrec, Sprite Pack v3.0
; sinclair zx version
SECTION code_clib
SECTION code_temp_sp1
PUBLIC sp1_Invalidate
EXTERN asm_sp1_Invalidate
sp1_Invalidate:
ld d,(hl)
inc hl
ld e,(hl)
inc hl
ld b,(hl)
inc hl
ld c,(hl)
jp asm_sp1_... |
;;
;; Copyright (c) 2019-2020, 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... |
TITLE crypto\bn\asm\bn-586.asm
IF @Version LT 800
ECHO MASM version 8.00 or later is strongly recommended.
ENDIF
.686
.XMM
IF @Version LT 800
XMMWORD STRUCT 16
DQ 2 dup (?)
XMMWORD ENDS
ENDIF
.MODEL FLAT
OPTION DOTNAME
IF @Version LT 800
.text$ SEGMENT PAGE 'CODE'
ELSE
.text$ SEGMENT ALIGN(64) 'CODE'
... |
MOV AX,0100h
MOV DS,AX
MOV DS:[1502h],0FFh
MOV AX,1500h
MOV SI,AX
MOV AX,0000h
MOV CX,0FFh
dongu:
MOV AL,DS:[SI]
CMP AL,00h
JE birarttir
JNE islemyapma
birarttir:
MOV AX,DS:[SI]
INC AX
MOV DS:[SI],AX
INC SI
islemyapma:
LOOP dongu
ret |
%ifdef CONFIG
{
"RegData": {
"RAX": "0xFF",
"RBX": "0x00",
"RCX": "0x00",
"RDX": "0xF0"
}
}
%endif
mov rdx, 0xe0000000
mov rax, 0x8080808080808080
mov [rdx + 8 * 0], rax
mov rax, 0x0000000000000000
mov [rdx + 8 * 1], rax
mov rax, 0x7070707070707070
mov [rdx + 8 * 2], rax
mov rax, 0x808080800000000... |
; NUL device initialisation V2.01 1989 Tony Tebby QJUMP
section nul
xdef nul_init
xref.l nul_vers
xref iou_idset
xref iou_idlk
include 'dev8_keys_iod'
include 'dev8_iod_nul_data'
include 'dev8_mac_vec'
;+++
; NUL driver initialisation
;---
nul_init
lea nul_link,a3
jsr iou_idset ; setup pipe l... |
; ------------------------------------------------------------------
; MichalOS File Viewer
; ------------------------------------------------------------------
BITS 16
%INCLUDE "michalos.inc"
ORG 100h
start:
call .draw_background
call os_file_selector ; Get filename
jc .exit
mov bx, ax ; Save filename... |
device zxspectrum128
org #8000
lab nop
lab ret
|
/*****************************************************************************
Name : supervisor.use.asm
Title : USE program for handling supervisor tasks
Author : Imagination Technologies
Created : 19/11/2009
Copyright : 2009 by Imagination Technologies Limited. All rights reserved.
No part of this ... |
push rax
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
push rbx
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte 90h
.byte ... |
Route12SuperRodHouse_Script:
jp EnableAutoTextBoxDrawing
Route12SuperRodHouse_TextPointers:
dw Route12HouseText1
Route12HouseText1:
text_asm
ld a, [wd728]
bit 5, a ; received super rod?
jr nz, .got_item
ld hl, Route12HouseText_564c0
call PrintText
call YesNoChoice
ld a, [wCurrentMenuItem]
and a
jr nz, .re... |
bits 64
default rel
section .text
global pal_execute_write_dr7
pal_execute_write_dr7 :
mov dr7, rdi
ret
|
.segment "CODE0"
.org $0000
LDA #$2A
STA $0000
.segment "VECTORS"
.word $4000
.word $4000
.word $4000
|
IDEAL
MODEL large
P386
CODESEG
PUBLIC C randtau
LABEL randtau WORD
db 1024 dup(0)
rptr dw 0
eino dd 22a53341h
PUBLIC C arand
PROC C arand
ARG buu:word
mov bx, [cs:rptr]
mov eax, [cs:eino]
add eax, 0a753cd3dh
add bx, 2*4
and bx, 3ffh
add eax, [dword cs:bx+randtau]
add bx, 23... |
.linecont +
.include "ggsound.inc"
.segment "ZEROPAGE"
sound_region: .res 1
sound_disable_update: .res 1
sound_local_byte_0: .res 1
sound_local_byte_1: .res 1
sound_local_byte_2: .res 1
sound_local_word_0: .res 2
sound_local_word_1: .res 2
sound_local_word_2: .res 2
sound_param_byte_0: .res 1
sound_... |
SECTION code_fp_math16
PUBLIC asinf16
EXTERN _m16_asinf
defc asinf16 = _m16_asinf
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _asinf16
defc _asinf16 = asinf16
ENDIF
|
;; @file
; Provide FSP API entry points.
;
; Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;;
SECTION .text
;
; Following functions will be provided in C
;
extern ASM_PFX(FspApiCommon)
extern ASM_PFX(FspMultiPhaseSiInitApiHandler)
;... |
section text
test: add n1
sub n1
test: add n1 ;rotulo repetido
section data
n1: const 1
n2: space
n1: const 3 ;n1 repetido
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Novell NetWare Driver
FILE: userInfo.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Eric 8/92 Initial version
chungl 9... |
;; ls.asm: Copyright (C) 2001 Brian Raiter <breadbox@muppetlabs.com>
;; Licensed under the terms of the GNU General Public License, either
;; version 2 or (at your option) any later version.
;;
;; To build:
;; nasm -f bin -o ls ls.asm && chmod +x ls
;;
;; Usage: ls [-abdilsBCFNR1] [--] [FILE]...
;; -C columnar output;... |
; only used for setting bit 2 of wd736 upon entering a new map
IsPlayerStandingOnWarp:
ld a, [wNumberOfWarps]
and a
ret z
ld c, a
ld hl, wWarpEntries
.loop
ld a, [wYCoord]
cp [hl]
jr nz, .nextWarp1
inc hl
ld a, [wXCoord]
cp [hl]
jr nz, .nextWarp2
inc hl
ld a, [hli] ; target warp
ld [wDestinationWarpID], ... |
save_preset_data:
LDA.b #$80 : STA $2100 : STA $13
STZ $4200
%i16()
LDY #$0000
LDA.b #!sram_pss_offset : STA $00
LDA.b #!sram_pss_offset>>8 : STA $01
LDA.b #!sram_pss_offset>>16 : STA $02
LDA $1B : INC : STA [$00], Y : INY
CMP #$02 : BEQ .dungeon
%a16()
; overworld
LDA $040A : STA [$00], Y : INY #2
LDA ... |
; ** Atari 7800 OpenBIOS
; **********************************************************************
; ** Created by Bob DeCrescenzo and Michael Saarna, 2021
; **
; ** the BIOS source code is provided here under the CC0 license.
; ** https://creativecommons.org/publicdomain/zero/1.0/legalcod... |
dc.w word_2B076-Map_AIZCollapsingLogBridge
dc.w word_2B076-Map_AIZCollapsingLogBridge
dc.w word_2B07E-Map_AIZCollapsingLogBridge
word_2B076: dc.w 1 ; DATA XREF: ROM:0002B070o
dc.b $F8, $D, 0, $2D, $FF, $F0
word_2B07E: dc.w 3 ; DATA XREF: ROM:0002B070o
dc.b $F8, $D, 0, $2D, $FF, $F0
dc.b 8, 8... |
.model tiny
.data
filename db 'nameID.txt',0
handle dw ?
myname db 'jbnerd'
nextline db 0dh,0ah
id db '2015A7PS116P'
nextline1 db 0dh,0ah
.code
.startup
mov ah,3ch
lea dx,filename
mov cl,01h
int 21h
mov handle,ax
mov ah,3dh
mov al,02h
lea dx,filename
int 21h
mov bx,ax
... |
;-------------
; ludumdare38 - bank0.asm
;-------------
; Includes
;-------------
INCLUDE "hardware.asm"
INCLUDE "header.asm"
INCLUDE "gfx.asm"
; INCLUDE "tiles.asm"
; INCLUDE "map.asm"
INCLUDE "vars.asm"
; INCLUDE "splash.asm"
; INCLUDE "game.asm"
; INCLUDE "player.asm"
; INCLUDE "enemy.asm"
; INCLUDE... |
; =====================================================
; To assemble and run:
; nasm -felf64 08-multi-func.asm -o 08-multi-func.o
; =====================================================
%include "include/consts.inc"
%include "include/syscalls_x86-64.inc"
global strchr
global strlen
global writeout
section .text
... |
.386P
.model FLAT
externdef _d_zistepu:dword
externdef _d_pzbuffer:dword
externdef _d_zistepv:dword
externdef _d_zrowbytes:dword
externdef _d_ziorigin:dword
externdef _r_turb_s:dword
externdef _r_turb_t:dword
externdef _r_turb_pdest:dword
externdef _r_turb_spancount:dword
externdef _r_turb_turb:d... |
HERE: SETB P1.0
LCALL DELAY
CLR P1.0
LCALL DELAY
SJMP HERE
DELAY: MOV R3, #250
LAST: NOP
NOP
NOP
NOP
DJNZ R3, HERE
RET |
BITS 64
GLOBAL strcasecmp:function
strcasecmp:
PUSH RBP
MOV RBP, RSP
XOR RAX, RAX
XOR RCX, RCX
loop:
CMP BYTE[]
|
;*************************************************************
; VIO TERMINAL FIRMWARE REQUIRES REFRESH MEMORY TO BE AT
; F000 AND FIRMWARE ITSELF AT F800
; COPYRIGHT IMSAI MANUFACTURING COMPANY
; SAN LEANDRO, CALIFORNIA
; 6/1/77
;
; MODIFIED TO ASSEMBLE WITH INTEL 8080 CROSS ASSEMBLER
; AND PRETTI... |
SECTION code_clib
PUBLIC w_xorpixel
EXTERN xor_MODE0
EXTERN xor_MODE1
EXTERN __z9001_mode
w_xorpixel:
ld a,(__z9001_mode)
cp 1
jp z,xor_MODE1
and a
ret nz
jp xor_MODE0
|
global TAKE_THIS_
extern initIncRip
%include "_macros.hasm"
section .text ; makes this executable
USE64
TAKE_THIS_:
PUSH_REGISTER_ENTIER_VOLATILE
PUSH_REGISTER_ENTIER_CALLEE_SAFE
PUSH_REGISTER_XMM_VOLATILE
PUSH_REGISTER_XMM_CALLEE_SAFE
mov rcx, cLaQueLonVa
mov rdx, rsp
sub rsp, 28h
and rsp, 0FFFFFFFFFFFF... |
; BSD 3-Clause License
;
; Copyright (c) 2020, k4m1 <k4m1@protonmail.com>
; 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 no... |
; ---------------------------------- ;
; Final Project - Classic snake game ;
; recreated in DOS 8086 language. ;
; ---------------------------------- ;
; Instituto Tecnológico de Tijuana ;
; LDI | SCC-1014 SC7C | 2018-2 ;
; López Garay Luis Felipe - 15211312 ;
; Tijuana, México @ December of 2018 ;
; ______... |
;Program of dividing one number by another
;port 0 - number to divide, port 1 - divisor, port 8 - quotient, port 9 - remainder
;d - number to divide, e - divisor, b - quotient, c - remainder
inp 0
lda
inp 1
lea
cal div
lab
out 8
lac
out 9
hlt
div:
lad
cpe
jtc cannotBeDivided
loop:
sue
inb
cpe
jfc loop
lca
ret
canno... |
SFX_Collision_1_Ch5:
duty_cycle 2
pitch_sweep 5, -2
square_note 15, 15, 1, 768
pitch_sweep 0, 8
sound_ret
|
// Test using operator byte0() in an lvalue
// Commodore 64 PRG executable file
.file [name="operator-byte0-lvalue-1.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code [start=$80d]
.segmentdef Data [startAfter="Code"]
.segment Basi... |
LDA 00A0H
MOV C,A ;C=Number of data
LDA 00A1H ;A=Data
MVI D,00H ;D=Frequency
LXI H,00B0H
LOOP: CMP M
JNZ ENDIF
INR D
ENDIF: INX H
DCR C
JNZ LOOP
MOV A,D
STA 00A2H
HLT |
; A011767: From studying monochromatic solutions to x3-x2=x2-x1+2n.
; 9,14,17,21,25,30,34,38,42,46,50
mov $2,$0
sub $3,$0
mul $0,6
mul $2,4
mov $4,$0
lpb $0
add $2,1
div $4,2
add $1,$4
mov $0,$1
add $3,1
mov $5,$3
cmp $5,0
add $3,$5
div $0,$3
sub $0,$3
sub $3,$1
lpe
mov $0,$2
add $0,9
|
SECTION code_clib
PUBLIC im1_install_isr
PUBLIC _im1_install_isr
EXTERN im1_vectors
EXTERN CLIB_IM1_VECTOR_COUNT
EXTERN asm_interrupt_add_handler
im1_install_isr:
_im1_install_isr:
pop bc
pop de
push de
push bc
ld hl, im1_vectors
ld b, CLIB_IM1_VECTOR_COUNT
call asm_interrupt_add_handler
l... |
Name: Shadow.asm
Type: file
Size: 5659
Last-Modified: '1992-02-13T07:47:47Z'
SHA-1: D5F902166A1A119B45CA4DE2E705D14B2088192F
Description: null
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Teclado.asm - leitura de numeros do teclado
;Prof. Roberto M. Ziller - 04.01.2000
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
LETECLA EQU 02E7H ; Sinonimos utilizados abaixo
MOSTRAD EQU 0363H ;
MOSTRAA EQU 036EH ;
... |
Name: zel_msge4.asm
Type: file
Size: 157833
Last-Modified: '2016-05-13T04:23:03Z'
SHA-1: CF8F71982E138CECF336B0E298B8890885D01749
Description: null
|
;---------------------------------------
; Editline print (output) module
;---------------------------------------
_editInit ld de,#0000 ; начальная инициализация
ld (printEX),de
editClear ld hl,edit256 ; очистка редактируемой строки 256 (ASCII)
ld de,edit256+1
ld bc,127
ld a," "
ld (hl),a
... |
aesenc xmm0, xmm13
aesenc xmm1, xmm13
aesenc xmm2, xmm13
aesenc xmm3, xmm13
aesenc xmm4, xmm13
aesenc xmm5, xmm13
aesenc xmm6, xmm13
aesenc xmm7, xmm13
aesenc xmm0, xmm14
aesenc xmm1, xmm14
aesenc xmm2, xmm14
aesenc xmm3, xmm14
aesenc xmm4, xmm14
aesenc xmm5, xmm14
aesenc xmm6, xmm14
aesenc xmm7, xmm14
aesenclast xmm... |
SECTION code_clib
SECTION code_fp_math48
PUBLIC cm48_sdcciyp_dload
EXTERN cm48_sdcciyp_d2m48
cm48_sdcciyp_dload:
; sdcc float primitive
; Load float pointed to by HL into AC'
;
; Convert from sdcc float format to math48 format.
;
; enter : HL = float * (sdcc format)
;
; exit : AC'= double ... |
.file "j9.c"
.text
.globl main
.type main, @function
main:
pushq %r13
pushq %r12
pushq %rbp
movq %rsi, %rbp
pushq %rbx
movl %edi, %ebx
subq $8, %rsp
leaq e(%rip), %rdi
call atexit
.L0040081B:
cmpl $1, %ebx
jle .L00400829
.L00400820:
movq 8(%rbp), ... |
global test_case
extern fs.stat
extern sys.error
%include "fs.inc"
section .text
test_case:
lea rax, [test_path] ; test filesystem path
call fs.stat ; get file stats
mov rbx, rax ; stat result
mov rax, [rbx+Stat.dev_id] ; device
cmp rax,... |
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_stdio
PUBLIC __stdio_input_sm_gets
__stdio_input_sm_gets:
; GETS STATE MACHINE
;
; Qualify function for STDIO_MSG_EATC
;
; Write all chars up to but not including '\n'
; to the buffer. '\n' is rejected to cause
; immediate return to the c... |
// Multiplies R0 and R1 and stores the result in R2.
@R2
M=0
(LOOP)
@R1
D=M
@END
D;JEQ
@R0
D=M
@R2
M=M+D
@R1
M=M-1
@LOOP
0;JMP
(END)
@END
0;JMP
|
section .text
global _start
_start:
mov eax, 4
mov ecx, data
mov edx, len
int 0x80
mov eax, 1
int 0x80
data db 'Hello World!', 0xA
len equ $ - data |
.ifdef NTSC
.ifdef PAL_60
.error "Both NTSC and PAL_60 have been defined."
.else
.include "engine/interrupt/declarations/video-standards/ntsc.asm"
.endif
.else
.ifdef PAL_60
.include "engine/interrupt/declarations/video-standards/pal-60.asm"
.else
.error "Neither NTSC nor PAL_60 have been defi... |
SECTION code_l
PUBLIC l_eat_digits
EXTERN l_char2num
l_eat_digits:
; advance buffer pointer past digits
;
; enter : hl = char *
; c = base
;
; exit : hl = char * (points past number)
;
; uses : af, hl
ld a,(hl)
call l_char2num
ret c
cp c
ret nc
inc h... |
;---------------------------------------
; NeoGS (General Sound) Library Header
;---------------------------------------
cReset equ #80 ; команда reset
cGetRAMPages equ #23 ; Получить число страниц в GS. (В базовой версии 3 страницы)
pReset equ #33 ; порт resrt
pDataOutReg equ #b3 ; порт регистра дан... |
CGROUP group code
code segment dword 'CODE'
assume cs:CGROUP,ds:CGROUP
include errcodes.i
public dos_key_shift
;dos_key_shift()
; returns keyboard shift/control/alt state
dos_key_shift proc near
mov ah,2
int 16h
and eax,0ffh
ret
dos_key_shift endp
code ends
end
|
db "SEAFARING@" ; species name
db "It starts life"
next "with a wondrous"
next "power that permits"
page "it to bond with"
next "any kind of"
next "#MON.@"
|
Set R1, #30.0 --angle of inclined plane
--convert to radians
Set R2, #3.14159265 --pi
Fmul R1, R1, R2
Set R2, #180.0
Fdiv R1, R1, R2
--compute equation
Cos R2, R1
Set R3, #0.4
FMul R2, R2, R3
Sin R1, R1
Fadd R1, R1, R2
Set R2, #100.0 --mass of crate
Fmul R1, R1, R2
Set R2, #9.81 --acceleration of gravity
Fmul R1, R1, R... |
stx $ff
lda {m1}
cmp $ff
lda {m1}+1
sbc #0
bvc !+
eor #$80
!:
bpl {la1}
|
musicChan2MainMenuTheme::
setRegisters $00, $00, $00, $00
.loop:
setVolume $A5
disableTerminals TERMINAL_TWO
wait SEMIBREVE * 8
enableTerminals TERMINAL_TWO
repeat 2
setFrequency NOTE_F * 2, $80
wait CROTCHET
setFrequency NOTE_D * 2, $80
wait CROTCHET
setFrequency NOTE_F * 2, $80
wait CROTCHET
setFrequen... |
lcl r5, 1
halt
#@expected values
#r5 = 1
#pc = 0x80000008
#e0 = 0
#e3 = 0
|
.data
.text
jmp @main
hello:
sb $0 0[$ebp]
ld $8 0x0001
sb $8 0[$ebp]
popb $0
ret
main:
sw $0 0[$ebp]
sw $0 4[$ebp]
ld $8 0x0003
sw $8 0[$ebp]
call @hello
ld $8 0x0004
sw $8 4[$ebp]
popw $0
popw $0
ld $v0 0x0002
syscall
|
[BITS 16]
[ORG 0x7e00]
start:
;testing for long mode
mov [driveid],dl
call longmodetests
;loading kernel
call loadkernel
call loadinit
call loaduser1
call loaduser2
call printnewline
mov bx,loadermsg
call printc
;getting memory map
call GetMemoryMap
call... |
; DV3 MSDOS Map Update V3.00 1993 Tony Tebby
section dv3
xdef msd_umap
xdef msd_setmu
xref dv3_psector
include 'dev8_dv3_keys'
include 'dev8_keys_dos'
include 'dev8_dv3_msd_keys'
;+++
; DV3 MSDOS Map Update
;
; d0 r physical sector to write
; d1 cr operation status, 0 on first call, 0 when done
; d7... |
MOV 0x6E,#0x00
MOV 0x43,#0x11
MOV 0x3B,#0x22
MOV 0x67,#0x33
MOV 0x21,#0x44
MOV 0x6C,#0x55
MOV 0x3F,#0x66
MOV 0x4C,#0x77
MOV 0xD0,#0x00
MOV R0,#0x6E
MOV R1,#0x43
MOV 0xD0,#0x08
MOV R0,#0x3B
MOV R1,#0x67
MOV 0xD0,#0x10
MOV R0,#0x21
MOV R1,#0x6C
MOV 0xD0,#0x18
MOV R0,#0x3F
MOV R1,#0x4C
MOV A,#0xFF
MOV 0xD0,#0x00
XCHD... |
.data
zero: .double 0.0 # You can not use registers from outside the coprocessor 1 in floats and doubles.
# Therefore, we will define $f0 as our zero register.
number: .double 50.1 # double is a basic unit to store double numbers.
.text
ldc1 $f0, zero # load .double variable "zero" by using load double word co... |
lda {m1}
clc
adc #<{c1}
sta {m1}
lda {m1}+1
adc #>{c1}
sta {m1}+1
|
global _start
section .text
_start:
jmp call_shellcode
decoder:
xor rax, rax
xor rcx, rcx
xor rbx, rbx
xor rdx, rdx
; number of bytes to xor
add rcx, 4
mov ch, cl
mov cl, bl
pop rsi ; address of shellcode
mov rdi, 0xa... |
.intel_syntax noprefix
_dt_alu_add:
mov edi, ebx //Move read 1 to write 1
add edi, edx
jmp _dt_control_ret
_dt_alu_sub:
mov edi, ebx
sub edi, edx
jmp _dt_control_ret
_dt_alu_inc:
mov edi, ebx
add edi, 1
jmp _dt_control_ret
_dt_alu_dec:
mov edi, ebx
add edi, 1
jmp _dt_control_ret
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Desktop/Util
FILE: utilCode.asm
ROUTINES:
INT CheckQuickTransferType - check if quick-transfer item
supports CIF_FILES
INT CreateNewFolderW... |
LOADIM R1, #64
LOADIM R2, #32
LOADIM R3, #01
LOADIM R4, #10
SUBIM R1, #32
OR R3, R1, R2
SHIFTR R4, R1, R3
EQ R1, R2
JMPRIND R4
|
SECTION code_fp_am9511
PUBLIC cam32_sdcc___fsgt_callee
EXTERN asm_sdcc_readr_callee
EXTERN asm_am9511_compare_callee
; Entry: stack: float right, float left, ret
.cam32_sdcc___fsgt_callee
call asm_sdcc_readr_callee ;Exit dehl = right
call asm_am9511_compare_callee
jr Z,gt1
ccf
ret C
.gt1
... |
[BITS 64]
global _init
global _fini
section .init
_init:
push rbp
mov rbp, rsp
section .fini
_fini:
push rbp
mov rbp, rsp |
#include "config.h"
[GLOBAL tss_flush]
tss_flush:
mov ax, GDT_TSS_SELECTOR
ltr ax
ret
|
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
b:
c:
COMMENT 0
INBOX
COPYTO 0
COPYTO 1
COMMENT 1
INBOX
SUB 0
JUMPN d
ADD 0
COPYTO 1
JUMP e
d:
ADD 0
COPYTO 0
e:
COMMENT 2
INBOX
COPYTO 6
COMMENT 3
SUB 0
... |
clubs_l_PUNCH_VZ_LO !byte <0,<7458,<7143,<6825,<6284,<5880,<5473,<5158,<5108,<4997,<4654,<3668,<0
clubs_l_PUNCH_VZ_HI !byte >0,>7458,>7143,>6825,>6284,>5880,>5473,>5158,>5108,>4997,>4654,>3668,>0
clubs_l_PUNCH_VY_LO !byte <0,<408,<391,<433,<434,<406,<426,<416,<457,<438,<484,<392,<0
clubs_l_PUNCH_VY_HI !byte >0,>408,>39... |
;THIS IS A PART OF FROST 4k INTRO
S4L
DB #F7,#02,#00,#8F,#77,#03,#00,#8F
DB #77,#04,#00,#8F,#77,#05,#00,#8F
DB #77,#06,#00,#8E,#77,#07,#00,#8D
DB #77,#08,#00,#8C,#77,#09,#00,#8B
DB #77,#0A,#00,#8A,#F7,#0A,#00,#88
DB #77,#0B,#00,#85,#F7,#0B,#00,#81
DB #77,#00,#00,... |
.start_fx_3dshape
; hacked mode7 version of Nick Jamesons 3d renderer
EFFECT_3DSHAPE_ORG = *
;ORG &90
; logic vars
.space SKIP 1
.p SKIP 1
.f SKIP 1
.flicker SKIP 1
.pause SKIP 1
;.culling SKIP 1 ; culling = 0=disabled, 255=enabled
.cullingdb SKIP 1 ; culling key debounce
.opt_filled SKIP 1
.opt_filled_db SKI... |
SECTION code_fp_math16
PUBLIC ___sint2h_callee
PUBLIC _f16_f16_i16_fastcall
EXTERN cm16_sdcc___sint2h_callee
EXTERN cm16_sdcc___sint2h_fastcall
defc ___sint2h_callee = cm16_sdcc___sint2h_callee
defc _f16_f16_i16_fastcall = cm16_sdcc___sint2h_fastcall
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: RFSD (Remot File System Driver)
FILE: rfsdManager.asm
AUTHOR: In Sik Rhee, Apr 14, 1992
ROUTINES:
Name Description
---- -----------
R... |
[BITS 16]
[ORG 0x0100]
[SECTION .text]
xor ax, ax
mov es, ax
test [es:0066h], word 0FFFFh
jz NotInstalled
mov dx, MessageOK
mov ah, 09h
int 21h
NoInput:
mov dl, 0FFh
mov ah, 06h
int 21h
jz NoInput
int 19h
int 20h
NotInstalled:
mov dx, MessageError
mov ah, 09h
int 21h
... |
setrepeat 2
frame 0, 10
frame 8, 10
dorepeat 1
frame 1, 24
frame 2, 24
frame 3, 24
endanim
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.