content stringlengths 23 1.05M |
|---|
; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
; / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /
; / / / /
; / / Copyright 2021 (c) Navegos QA - optim... |
PUBLIC ChangeRegsWrapper
PUBLIC ChangeRegs
PUBLIC SaveRegsToMem
.686
.XMM
.model flat, c
extern gprval:dword
extern agprval:dword
extern stval:real10
extern astval:real10
extern xmmval:xmmword
extern axmmval:xmmword
IFDEF CONTEXT_USING_AVX
extern ymmval:ymmword
extern aymmval:ymmword
ENDIF
extern fpSaveArea:dword
.co... |
%define suffix 'slm'
%macro cglobal 1-2+ ""
cglobal_internal 1, %1 %+ suffix, %2
%endmacro
%macro cglobal_internal 2-3+
%endmacro |
.data
n1: .asciiz "Enter the Nth natural number: "
naivef: .asciiz "Naive: "
interestingf: .asciiz "Interesting: "
error: .asciiz "Input is erroneous"
nextLine: .asciiz "\n"
.text
.globl main
main:
li $v0, 4
la $a0, n1
syscall
li $v0, 5
syscall
move $t0, $v0
slti $s1, $t0, 0
beq $s1,0, R
li ... |
; rst vectors
section "rst $00", rom0 [$00]
section "rst $08", rom0 [$08]
section "rst $10", rom0 [$10]
section "rst $18", rom0 [$18]
section "rst $20", rom0 [$20]
section "rst $28", rom0 [$28]
section "rst $30", rom0 [Bankswitch]
jp _Bankswitch
section "rst $38", rom0 [$38]
; Hardware interrupts. None used at the mo... |
#d "abc" ; = 0x61_62_63
#d utf8("abc") ; = 0x61_62_63
#d ascii("abc") ; = 0x61_62_63
#d utf16be("abc") ; = 0x0061_0062_0063
#d utf16le("abc") ; = 0x6100_6200_6300
#d utf32be("abc") ; = 0x00000061_00000062_00000063
#d utf32le("abc") ; = 0x61000000_62000000_63000000
#d "àÿĀ" ; = 0xc3a0_c3bf_c480
#d utf8("àÿĀ") ; = 0xc3a... |
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1993 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: Loader
FILE: videoEGA.asm
ROUTINES:
Name Description
---- -----------
LoaderDisplayEGA Switch to EGA, and display the splash screen.
REVI... |
; void sp1_InitCharStruct(struct sp1_cs *cs, void *drawf, uchar type, void *graphic, uchar plane)
; CALLER linkage for function pointers
SECTION code_sprite_sp1
PUBLIC sp1_InitCharStruct
EXTERN sp1_InitCharStruct_callee
EXTERN ASMDISP_SP1_INITCHARSTRUCT_CALLEE
.sp1_InitCharStruct
ld hl,2
add hl,sp
ld a,(hl... |
db DEX_DITTO ; pokedex id
db 48, 48, 48, 48, 48
; hp atk def spd spc
db PSYCHIC_TYPE, PSYCHIC_TYPE ; type
db 35 ; catch rate
db 61 ; base exp
INCBIN "gfx/pokemon/front/ditto.pic", 0, 1 ; sprite dimensions
dw DittoPicFront, DittoPicBack
db TRANSFORM, NO_MOVE, NO_MOVE, NO_MOVE ; level 1 learnset
... |
optimise_taille_code_genere : ; in: eax=nb transfos restantes
push edx
mov ebx,eax
inc ebx
imul eax,edx
xor edx,edx
div ebx
pop edx
sub edx,eax
ret
|
INCLUDE "clib_cfg.asm"
SECTION code_clib
SECTION code_math
PUBLIC l_divs_32_32x32, l0_divs_32_32x32
; compute: dehl = dehl' / dehl, dehl' = dehl' % dehl
; alters : af, bc, de, hl, bc', de', hl', ix
; alternate entry (l_divs_32_32x32 - 1)
; exchanges divisor / dividend
; alternate entry (l0_div... |
// Test a procedure with calling convention stack
// Test that comments are handled correctly
// Commodore 64 PRG executable file
.file [name="procedure-callingconvention-stack-12.prg", type="prg", segments="Program"]
.segmentdef Program [segments="Basic, Code, Data"]
.segmentdef Basic [start=$0801]
.segmentdef Code ... |
segment .text
global fact
fact:
push ebp
mov ebp,esp
sub esp,4
mov dword [ebp-4],1
mov ecx,[ebp+8]
back:
mov eax,[ebp-4]
mul ecx
mov [ebp-4],eax
dec ecx
cmp ecx,1
jne back
mov eax,[ebp-4]
mov esp,ebp
pop ebp
ret
|
COMMENT @----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Thread
FILE: threadThread.asm
ROUTINES:
Name Description
---- -----------
GLB ThreadCreate Create a new thread
GLB ThreadDestroy ... |
; Title: Win32 API Download/Execute file
; Platforms: Windows NT 4.0, Windows 2000, Windows XP, Windows 2003
;To compile:
;nasmw -fbin -O6 shellcode.asm
FILE_ATTRIBUTE_HIDDEN EQU 2
FILE_ATTRIBUTE_SYSTEM EQU 4
CREATE_ALWAYS EQU 2
FILE_SHARE_READ EQU 1
GENERIC_WRITE EQU 0x40000000
BUFF_SIZE ... |
; compile with nasm -felf64 foo.asm; ld foo.o -o foo.out
bits 64
section .data
test2_ind dq test2
section .start
global _start
_start:
call test1 ; should not trigger
test1:
call [test2_ind] ; should trigger (?)
test2:
push test3 ; should trigger
call [rsp]
test3:
mov rax, test4 ; sh... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Hookshot
; General-purpose library for injecting DLLs and hooking function calls.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Authored by Samuel Grossman
; Copyright (c) 2019-2021
;;;;;;;;;;;;;;;;;;... |
;
; ANSI Video handling for the ABC80
;
; set it up with:
; .__console_w = max columns
; .__console_h = max rows
;
; Display a char in location (__console_y),(__console_x)
; A=char to display
;
; A slower (but working) method it commented out
;
;
; $Id: f_ansi_char.asm,v 1.5 2016-06-12 16:06:42 dom Exp $
;
SE... |
;==============================================================
; WLA-DX banking setup
;==============================================================
.memorymap
defaultslot 0
slotsize $8000
slot 0 $0000
slot 1 $C000
.endme
.rombankmap
bankstotal 1
banksize $8000
banks 1
.endro
;======================================... |
ORG 0x8000
MODULE ma
lb: equ 6
nop
ld a,lb
ld a,ma.lb
ld a,lb2
ld a,ma.lb2
lb2=8
ENDMODULE
|
;
; Old School Computer Architecture - interfacing FLOS
; Stefano Bodrato, 2011
;
; Like 'rename' but with a FLOS style error handling
;
; $Id: rename_file_callee.asm,v 1.4 2016-06-22 22:13:09 dom Exp $
;
INCLUDE "target/osca/def/flos.def"
SECTION code_clib
PUBLIC rename_file_callee
PUBLIC _rename_fil... |
org $80830D ; Hack directly into ROM
db $00 ; Change speed of canoe
|
; 8080 assembler code
.hexfile PrintNumbers.hex
.binfile PrintNumbers.com
; try "hex" for downloading in hex format
.download bin
.objcopy gobjcopy
.postbuild echo "OK!"
;.nodump
; OS call list
PRINT_B equ 1
PRINT_MEM equ 2
READ_B equ 3
READ_MEM equ ... |
; Z80 test - flags only version.
;
; Copyright (C) 2012 Patrik Rak (patrik@raxoft.cz)
;
; This source code is released under the MIT license, see included license.txt.
macro testname
db "FLAGS"
endm
maskflags equ 0
onlyflags equ 1
postccf equ ... |
SECTION code_clib
PUBLIC remove
PUBLIC _remove
.remove
._remove
call 0xB893
ld hl, 0
ret c
dec hl
ret
|
dnl ARM mpn_lshiftc.
dnl Contributed to the GNU project by Torbjörn Granlund.
dnl Copyright 2012 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 * the GNU ... |
; GIVEN A LOWERCASE LETTER
; PRINT THE LOWERCASE LETTER OF THE LETTER BEFORE THE UPPERCASE
; SUPPOSE, IF B IS GIVEN PRINT 'a'
; ALSO PRINT IT'S 1'S COMPLEMENT
.MODEL SMALL
.STACK 100H
.DATA
CLR EQU 0DH
RLF EQU 0AH
MSG1 DB 'ENTER A UPPER CASE LETTER: $'
MSG2 DB CLR, RLF, 'IN LOWER CASE IT IS: $... |
copyright zengfr site:http://github.com/zengfr/romhack
03D756 move.w #$340, ($56,A6) [boss+32, boss+34]
03D75C rts [boss+56]
03D76E subi.w #$50, ($56,A6) [boss+A, boss+C]
03D774 bpl $3d77e [boss+56]
03D77A addq.b #2, ($5,A6)
03D796 addi.w #$50, ($56,A6) [boss+A, boss+C]
03D79C cmpi.w #$600, ($56,A6) [... |
CeladonMansion1Script:
jp EnableAutoTextBoxDrawing
CeladonMansion1TextPointers:
dw CeladonMansion1Text1
dw CeladonMansion1Text2
dw CeladonMansion1Text3
dw CeladonMansion1Text4
dw CeladonMansion1Text5
CeladonMansion1_486a1:
call PlayCry
jp TextScriptEnd
CeladonMansion1Text1:
TX_FAR _CeladonMansion1Text1
TX_... |
SECTION code_clib
SECTION code_stdlib
PUBLIC __dtoa_remove_zeroes
__dtoa_remove_zeroes:
; HL = buffer_dst *
; IX = buffer *
; (IX-6) = flags, bit 7 = 'N', bit 4 = '#', bit 0 = precision==0
; (IX-5) = iz (number of zeroes to insert before .)
; (IX-4) = fz (number of zeroes to insert after .)
... |
MVI C, 00 // adjust variable
MVI D, 00 // carry flag
// lower nibble
LDA f100
CALL RSHIFT
MOV B, A
LDA f200
CALL RSHIFT
ADD B
JNC J1 // if CY == 0 then jump to J1
MVI C, 06
JMP J2
J1: CPI A0 // if A < A0 then jump to J2
JC J2
MVI C, 06
J2:
// higher nibble
LDA f100
ANI f0
MOV B, A
LDA f200
ANI f0
ADD B
JNC... |
BITS 32
start:
org 0x7c00
sub esp, 16
mov ebp, esp
mov eax, 2
mov dword [ebp+4], 5
add dword [ebp+4], eax
mov esi, [ebp+4]
inc dword [ebp+4]
mov edi, [ebp+4]
jmp 0 |
#To be inserted at 800d9f68
#################################
##FPSHack_UpdateBombTimer_LowHz##
#################################
lis r17, 0x817F
lwz r17, 0x0000 (r17) #Load LowHzUpdate
cmpwi r17, 0
beq- 0x000C
##If LowHzUpdate != 0
subi r0, r3, 1 #Vanilla
b 0x0008 #Skip over the move register function
##If LowHzUpda... |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2019 Intel Corporation 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 so... |
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992-1995. All rights reserved.
GEOWORKS CONFIDENTIAL
PROJECT: GEOS
MODULE: Sokoban
FILE: sokobanUI.asm
AUTHOR: Steve Yegge, Jul 9, 1993
ROUTINES:
Name Description
---- -----------
IN... |
db "null@" ; species name
db "null"
next "null"
next "null"
page "null"
next "null"
next "null.@"
|
; Stub for the Philips P2000 family
;
; Stefano Bodrato - 7/4/2014
;
; $Id: p2000_crt0.asm,v 1.12 2016-07-15 21:03:25 dom Exp $
;
MODULE p2000_crt0
;--------
; Include zcc_opt.def to find out some info
;--------
defc crt0 = 1
INCLUDE "zcc_opt.def"
;--------
; So... |
AREA RESET,DATA,READONLY
EXPORT __Vectors
__Vectors
DCD 0X40000000
DCD Reset_Handler
ALIGN
AREA mycode,CODE,READONLY
ENTRY
EXPORT Reset_Handler
Reset_Handler
LDR R0,=VALUE1
LDR R1,=VALUE2
LDR R6,=RESULT
LDR R2,[R0]
LDR R3,[R1]
UP CMP R2,R3
BEQ SAME1
BCC DOWN1
... |
lda {m2}+1
sta {m1}+3
lda {m2}
sta {m1}+2
lda #0
sta {m1}
sta {m1}+1
|
; encoding: utf-8
; ff3_field_window_driver.asm
;
; description:
; replaces field::draw_window_box($3f:ed02) related codes.
; this file implements 'driver'-like logics,
; which drives underlying functions to show up windows on screen.
; these logics are originally placed around $3f:eb2d - $3f:eefa.
;
; version... |
; void *shadowwrite(void * restrict s1, const void * restrict s2, size_t n)
SECTION smc_lib
PUBLIC _shadowwrite
EXTERN asm_push_di
EXTERN asm_pop_ei_jp
EXTERN asm_shadowcopy
._shadowwrite
pop af
pop de
pop hl
pop bc
push bc
push hl
push de
push af
call asm_push_di
ld a,b
or... |
* Test program for Multiplication
LDAA VALUE1
STAR D
LDAA VALUE2
MULT
STAA OUT *Low byte of OUT contains high byte of mult
LDAD
STAA OUT+1
LOOP:
CLRC
BCCA LOOP *Infinite loop
OUT: ds.b 2
VALUE1: dc.b 9
VALUE2: dc.b 7
|
;/************************************************************************************
;Thu Mar 31 15:04:03 2016
;
;MIT License
;Copyright (c) 2016 zhuzuolang
;
;Permission is hereby granted, free of charge, to any person obtaining a copy
;of this software and associated documentation files (the "Software"), to deal
;i... |
org #1200
SCREEN_WIDTH = 40
SCREEN_HEIGHT = 25
FIRE_WIDTH = 29
FIRE_HEIGHT = SCREEN_HEIGHT
FIRE_FRAME_COUNT = 180
hblnk = 0xe008
vblnk = 0xe002
macro wait_vbl
; wait for vblank
ld hl, vblnk
ld a, 0x7f
@wait0:
cp (hl)
jp nc, @wait0
@wait1:
cp (hl)
jp c, @wait1
mend
macro fire_update... |
;// DEMO4.ASM
;//
;// Copyright (C)2005-2011 The NASMX Project
;//
;// This is a fully UNICODE aware, typedefined demo that demonstrates
;// using NASMX typedef system to make your code truly portable between
;// 32 and 64-bit systems using either ASCII or UNICODE
;//
;// Contributors:
;// Bryant Keller
;/... |
page ,132
;/*
; * Microsoft Confidential
; * Copyright (C) Microsoft Corporation 1991
; * All Rights Reserved.
; */
;
; Revision History
; ================
;
;M031 SR 10/11/90 Bug #3069. Use deny write sharing mode to open files
; instead of co... |
; Original address was $A4F9
; 5-7 lower part (broken LoadLevel_LittleCloudSolidRun fails to load in editor)
.word W507L ; Alternate level layout
.word W507O ; Alternate object layout
.byte LEVEL1_SIZE_07 | LEVEL1_YSTART_170
.byte LEVEL2_BGPAL_00 | LEVEL2_OBJPAL_08 | LEVEL2_XSTART_18 | LEVEL2_UNUSEDFLAG
.byte LEVE... |
SECTION rodata_font
SECTION rodata_font_fzx
PUBLIC _ff_ao_GenevaMonoCyrillic
_ff_ao_GenevaMonoCyrillic:
BINARY "font/fzx/fonts/ao/GenevaMono/GenevaMonoCyrillic.fzx"
|
/* autogenerated by dtc, do not edit */
#define OF_DT_HEADER 0xd00dfeed
#define OF_DT_BEGIN_NODE 0x1
#define OF_DT_END_NODE 0x2
#define OF_DT_PROP 0x3
#define OF_DT_END 0x9
.globl dt_blob_start
dt_blob_start:
_dt_blob_start:
.globl dt_header
dt_header:
_dt_header:
.long OF_DT_HEADER /* magic */
.long _dt_blob_end... |
include "src/include/hardware.inc"
include "src/libs/hUGE.inc"
add_a_to_r16: MACRO
add \2
ld \2, a
adc \1
sub \2
ld \1, a
ENDM
;; Thanks PinoBatch!
sub_from_r16: MACRO ;; (high, low, value)
ld a, \2
sub \3
ld \2, a
sbc a ; A = -1 if borrow or 0 if not
add \1
ld \1, a
ENDM
... |
DATA SEGMENT
BLOCK1 DB 'MALAYALAM'
MSG1 DB "IT IS PALINDROME $"
MSG2 DB "IT IS NOT PALINDROME $"
PAL DB 00H
DATA ENDS
PRINT MACRO MSG
MOV AH,09H
LEA DX,MSG
INT 21H
INT 3H
ENDM
EXTRA SEGMENT
BLOCK2 DB 9 DUP(?)
EXTRA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA,ES:EXTRA
START:
MOV AX,DATA
MOV DS,AX
MOV AX,E... |
#~~~JUMP TEST~~~
#init registers
addi $s6, $zero, 5
addi $s7, $zero, 3
addi $s1, $zero, 0
#increment s0 from 0 to 5
func1: addi $s0, $zero, 0
loop1: addi $s0, $s0, 1
bne $s0, $s6, loop1
#increment s1 from 0 to 3
addi $s1, $s1, 1
BEQ $s1, $s7, end
J func1
end: |
; ===============================================================
; Jan 2014
; ===============================================================
;
; unsigned int _strtou(const char *nptr, char **endptr, int base)
;
; Read number encoded in given radix from string; if base == 0,
; radix is auto-detected as decimal, octa... |
loc
;******************************************************************
;* MODO_CARRERA - sensing mode. Once the bike goes through both
;* sensors, a speed can be calculated. .
;*
;* Calling convention:
;* jsr MODO_CARRERA
;*
;* Calls: Cargar_LCD, PANT_CTRL
;* Changes: X, Y, D, BIN1, BIN2, TICK_EN, TICK_DIS, Bander... |
;
; FreeRTOS Kernel V10.4.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 restriction, includ... |
; AoC 2018 Day21 - from elfcode to elf.
; Compile with:
;
; nasm -f elf64 Day21.asm
; gcc -m64 -o Day21 Day21.o
;
; you have to enter you desired value for register 0
; before the label begin at mov r9, <value>
; because I was lazy and did not add program argument support
; For part 1, comment out the lines at the end
... |
;Sorting an array by selection sort SEL_SORT.ASM
;
; Objective: To sort an integer array using selection sort.
; Input: Requests numbers to fill array.
; Output: Displays sorted array.
%include "io.mac"
.DATA
MAX_SIZE EQU 100
input_prompt db "Please enter input array: "
... |
org $780CA ; Bank07.asm(179)
JSL CheckIfLinkShouldDie : NOP : NOP : NOP
;SEC : SBC.b $00 : CMP #$00 : BEQ .linkIsDead ; Bank07.asm(179) -
org $780D1
BNE linkNotDead : NOP : NOP ; Bank07.asm(183) - CMP.b #$A8 : BCC .linkNotDead
org $780D5
linkIsDead:
org $780F7
linkNotDead:
|
; ARM MODE.
code32
processor CPU32_V2
mul r0,r1
mul r0,r1,r2
mla r0,r1,r2,r3
processor CPU32_M
smlal r0,r1,r2,r3
smull r0,r1,r2,r3
umlal r0,r1,r2,r3
umull r0,r1,r2,r3
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Copyright(c) 2011-2017 Intel Corporation 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 so... |
DoPoisonStep::
ld a, [wPartyCount]
and a
jr z, .no_faint
xor a
ld c, wPoisonStepDataEnd - wPoisonStepData
ld hl, wPoisonStepData
.loop_clearPoisonStepData
ld [hli], a
dec c
jr nz, .loop_clearPoisonStepData
xor a
ld [wCurPartyMon], a
.loop_check_poison
call .DamageMonIfPoisoned
jr nc, .not_poisoned
; the ... |
.byte $01 ; Unknown purpose
.byte OBJ_PODOBOO, $0E, $0D
.byte OBJ_PODOBOO, $12, $0F
.byte OBJ_PODOBOO, $19, $10
.byte OBJ_PODOBOO, $17, $0D
.byte OBJ_PODOBOO, $1E, $11
.byte OBJ_PODOBOO, $23, $10
.byte OBJ_PODOBOO, $2B, $0F
.byte OBJ_PODOBOO, $25, $0B
.byte OBJ_PODOBOO, $33, $0F
.byte $FF ; Terminator
|
TITLE WINSTUB - Assembly stub program for new format EXE files
.xlist
include cmacros.inc
.list
stubstack segment stack
dw 80h dup (?)
stubstack ends
sBegin CODE
assumes CS,CODE
WINSTUB PROC NEAR
call ws1
DB 'XEDIT Version 1.0',13,10
DB ... |
.ALTERNATE
! test of string operators
define MACRO str1,str2
SDATA str1
SDATA "str2"
ENDM
define one" way to get "spaces,0
define "lot's! of <special>,chars%", 0
|
Route11_Object:
db $f ; border block
def_warps
warp 49, 8, 0, ROUTE_11_GATE_1F
warp 49, 9, 1, ROUTE_11_GATE_1F
warp 58, 8, 2, ROUTE_11_GATE_1F
warp 58, 9, 3, ROUTE_11_GATE_1F
warp 4, 5, 0, DIGLETTS_CAVE_ROUTE_11
def_signs
sign 1, 5, 11 ; Route11Text11
def_objects
object SPRITE_GAMBLER, 10, 14, STA... |
{
calldatacopy(0, 0, 32)
calldatacopy(32, 32, 32)
mload(0)
mload(32)
gt
greater_than
jumpi
return(0, 32)
greater_than:
return(32, 32)
} |
%include "../../defaults_bin.asm"
frames equ 838
positions equ 154
scanlines equ 200
footerSize equ (footerEnd-footer)
headerSize equ (headerEnd-header)
startAudio
mov ax,cs
mov es,ax
mov ds,ax
cli
add ax,((unrolledCode + headerSize + 34*scanlines + footerSize + 15)>>4)
mov ss,ax
mov sp,0xfffe
sti
... |
; RC Car --- Control an RC car using a Nunchuk controller to drive a dual H-bridge such as L298N.
; Uses arduino pins 7-10 for controlling the H-bridge
jmp main
include "libraries/Nunchuk.asm"
main:
jsr nunchuck_init
ldr #7,A
out {arduino_output},A
ldr #8,A
out {arduino_output},A
ld... |
COMMENT @-----------------------------------------------------------------------
Copyright (c) GeoWorks 1988 -- All Rights Reserved
PROJECT: PC GEOS
MODULE: Geode
FILE: geodeDriver.asm
ROUTINES:
Name Description
---- -----------
GLB GeodeFreeDriver Free a driver
GLB GeodeInfoDriver Retur... |
DATA SEGMENT
MSG1 DB "HELLO WORLD$"
MSG2 DB "ASSEMBLY LANGUAGE CSE331$"
START:
MOV AX, DATA
MOV DS,AX
LEA DX, MSG1
MOV AH,9
INT 21H
MOV AX, DATA
MOV DS,AX
LEA DX, MSG2
MOV AH,9
INT 21H
MOV AH,4CH
INT 21H
END START |
; -----------------------------------------
; Boot sector
; TingOS Hobbyist Kernel
; Global Descriptor Table
;
; chia_jason96@live.com
; -----------------------------------------
GDT_START:
GDT_NULL: ; the mandatory null descriptor
dd 0x0 ; ’dd’ means define double word (i.e. 4 bytes)
dd 0x0
GDT_CODE: ; t... |
org 0x100
mov ax, cs
mov es, ax
mov ds, ax
mov ss, ax ; 设置堆栈指针
mov sp, 100h - 8
; 环境设置
mov ah, 0x01
mov cx, 0x2000
int 0x10 ; 利用10号中断停止光标闪烁
mov ax, 0x0305
mov bx, 0x031F
int 0x16 ; 增加重复键入延迟
call game_loop
game_loop:
call cls ; 清屏
push word [snake_pos] ; 讲蛇头位置压栈保存
mov ah, 0x01 ; 调用功能号为01的16中断判断是否有按键信号
... |
[section .inittext]
idt_init:
; Save to make following instructions smaller
mov rdi, IDT
; Set an IDT entry to a callback
%macro SETIDT 2
mov rsi, %1
mov rax, %2
call set_idt
%endmacro
; Install error handlers
%assign i 0
mov rsi, 0
%rep 32
mov rax, Isr%[i]
call set_idt
inc rsi
%assign i i+1
%endre... |
; interrupt vectors
SECTION "vblank",ROM0[$40]
jp VBlank
SECTION "lcdstat",ROM0[$48]
jp LCDInterrupt
SECTION "timer",ROM0[$50]
reti
SECTION "serial",ROM0[$58]
reti
SECTION "joypad",ROM0[$60]
reti
SECTION "Header", ROM0[$100]
di ; entry point
jp EntryPoint
; allocate space for the header generated by RGBFIX... |
; 05.2005 aralbrec
XLIB ba_BlockCount
LIB BABlockCount
.ba_BlockCount
call BABlockCount
ld l,c
ld h,b
ret
|
; 5e01.asm
global main
section .bss
descr RESD 1
section .rodata
nomfich DB `brol`, 0
chnok DB `fichier ouvert avec succès\n`
chnoklg DD $ - chnok
chnerr DB `échec lors de l'ouverture du fichier\n`
chnerrlg DD $ - chnerr
section .text
main:
mov eax, 5 ; numéro de service: 5 -... |
Marts:
; entries correspond to MART_* constants
dw MartCherrygrove
dw MartCherrygroveDex
dw MartViolet
dw MartAzalea
dw MartCianwood
dw MartGoldenrod2F1
dw MartGoldenrod2F2
dw MartGoldenrod3F
dw MartGoldenrod4F
dw MartGoldenrod5F1
dw MartGoldenrod5F2
dw MartGoldenrod5F3
dw MartGoldenrod5F4
dw MartOlivine
... |
; [Enemy Within] v1.00 by Crypt Keeper -Phalcon/Skism-
;
; Enemy Within is a memory resident virus that infects EXE and overlay files
; with directory size increases hidden. I'll be using this as a base for
; future more advanced viruses.
;
; Enemy Within infects EXEs and overlays on file Open, Get/Set
; attributes, ... |
; XXX grantham - this is in a different format than our other assembler
; sources... e.g. "wboote:", but our labels do not have colons.
; Is it easily modifiable?
;
; modified by Donn Stewart, dstew@cpuville.com, for his Z-80 computer
;
; skeletal cbios for first level of CP/M 2.0 alteration
;
; XXX grantham - c... |
; USB keyboard reporter for MSX using a CH372/5/6
; By Konamiman, 7/2021
;
; Configures the CH372 in internal firmware mode and checks
; the keyboard status continuously, if there's any change
; it sends two bytes (row number + row data) to interrupt
; endpoint 81h.
;
; A circular queue is used in case keyboard status ... |
\ -*- mode:beebasm -*-
\ ******************************************************************
\ * TEXT BLOCKS
\ ******************************************************************
.text_block_table
{
EQUW text_block_test ; c800
EQUW text_block_credits ; c801
EQUW text_block_greetz ... |
.MODEL SMALL
.STACK 100H
.DATA
ARRAY1 DB 'a','b','c','d','e','f','g','h'
ARRAY2 DB 0H,0H,0H,0H,0H,0H,0H,0H
.CODE
MAIN PROC
MOV AX,@DATA
MOV DS,AX
MOV CX,8
LEA si,ARRAY1
LEA di,ARRAY2
COPY:
MOV AH,[si]
MOV [di],AH
INC si
INC di
DEC CX
JNZ COPY
EXIT:
MOV AH,4CH
INT 21H
... |
;
; 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/.
;
;------------------------------------------------------------------------------
;
; REPLICA... |
SECTION rodata_font
SECTION rodata_font_8x8
PUBLIC _font_8x8_sam_system
PUBLIC _font_8x8_sam_system_end
_font_8x8_sam_system:
IF __CPU_GBZ80__
INCLUDE "target/gb/fonts/lower.asm"
ENDIF
BINARY "font_8x8_sam_system.bin"
_font_8x8_sam_system_end:
|
FillMemory::
; Fill bc bytes at hl with a.
push de
ld d, a
.loop
ld a, d
ld [hli], a
dec bc
ld a, b
or c
jr nz, .loop
pop de
ret
|
COMMENT @%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Copyright (c) GeoWorks 1992 -- All Rights Reserved
PROJECT: PC/GEOS
MODULE: uiHeader.asm
FILE: uiHeader.asm
AUTHOR: Gene Anderson, Jul 22, 1992
ROUTINES:
Name Description
---- -----------
REVISION HISTORY:
N... |
; void sms_vdp_set_write_address(unsigned int addr)
SECTION code_clib
SECTION code_arch
PUBLIC sms_vdp_set_write_address
EXTERN asm_sms_vdp_set_write_address
defc sms_vdp_set_write_address = asm_sms_vdp_set_write_address
|
dnl Intel Atom mpn_and_n,...,mpn_xnor_n -- bitwise logical operations.
dnl Copyright 2011 Free Software Foundation, Inc.
dnl Contributed to the GNU project by Marco Bodrato.
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 un... |
// push constant 17
@17
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 17
@17
D=A
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
AM=M-1
D=M
A=A-1
D=M-D
@is-eq-9
D;JEQ
@end-9
D=0;JMP
(is-eq-9)
D=-1
(end-9)
@SP
A=M-1
M=D
// push constant 17
@17
D=A
@SP
A=M
M=D
@SP
M=M+1
// push constant 16
@16
D=A
@SP
A=M
M=D
@SP
M=M+1
// eq
@SP
AM=M-1
D=M... |
// A simple SID music player using RASTER IRQ
/// @file
/// Commodore 64 Registers and Constants
/// @file
/// The MOS 6526 Complex Interface Adapter (CIA)
///
/// http://archive.6502.org/datasheets/mos_6526_cia_recreated.pdf
// Commodore 64 PRG executable file
.file [name="music_irq.prg", type="prg", segments="Progr... |
;This program counts from 10 to 0
.ORIG x3000
LEA R0, TEN ;This instruction will be loaded into memory location x3000
LDW R1, R0, #0
START ADD R1, R1, #-1
BRZ DONE
BR START
;blank line
DONE TRAP x25 ;The last executable instruction
TEN .FILL x000A ;This is 10 in 2's comp, hexadecimal
.END ;The pseudo-op, delimiting the... |
; Initialize the stack pointer
MOV8 XL, "11111111"
MOV8 XH, "11111111"
MOV16 SP, X
MOV8 F, "11110000"
; Call a subroutine...
CALL :SUBROUTINE
MOV8 F, "10101010"
; Stops program execution
HLT
:SUBROUTINE
MOV8 F, "01010101"
; ======================
; RET implementation...
; ======================
; 1. Increment th... |
dnl PowerPC-32 umul_ppmm -- support for longlong.h
dnl Copyright (C) 2000 Free Software Foundation, Inc.
dnl This file is part of the GNU MP Library.
dnl The GNU MP Library is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU Lesser General Public License as published by
dnl the ... |
.686
.model flat
.xmm
.code
_test proc
create_stack_frame
mov dword21,2
mov dword ptr [ebp-12],1
mov dword11,4
cdq dword12,dword11
idiv dword11,dword21
add dword11,[ebp-12]
mov dword18,dword11
sub d... |
; Assembly code emitted by HLA compiler
; Version 2.16 build 4413 (prototype)
; HLA compiler written by Randall Hyde
; NASM compatible output
bits 32
%define ExceptionPtr__hla_ [dword fs:0]
global QuitMain__hla_
global DfltExHndlr__hla_
global _HLAMain
global HWexcep... |
TITLE prscg.asm - Parser Code Generation Functions
;==========================================================================
;
; Module: prscg.asm - Parser Code Generation Functions
; Subsystem: Parser
; System: Quick BASIC Interpreter
;
;=======================================================================... |
TITLE ASK4
ASSUME CS:KODIKAS, DS:DEDOMENA, SS:SOROS
KODIKAS SEGMENT PUBLIC
KYRIO PROC NEAR
MOV AX,DEDOMENA
MOV DS,AX
LEA DX,PROTROPI
MOV AH,09H
INT 21H
MOV SI,0
B2:
MOV AH,01H
INT 21H
CMP AL,'#'
JE KLISI
MOV BUFFER[SI],AL
INC SI
... |
; Input from your keyboard, and convert the lowercase character to uppercase character.
DATA SEGMENT
MES DB 0DH,0AH,'PLEASE INPUT A CHARACTER: $'
DATA ENDS
CODE SEGMENT
ASSUME CS:CODE,DS:DATA
START:
MOV AX,DATA
MOV DS,AX
MOV CX,10
MOV AH,09H
MOV DX,OFFSET MES
INT 2... |
// Text input censor
.align 2
textInput_containsBadword:
push r4-r7,r14
mov r4,r0
ldr r5,=file_6368E8
ldrh r1,[r5,0xC] // script 6
add r5,r5,r1 // badwords pointer
ldr r7,=file_05290C+0x2 // VWF table: similar char
@@checkEmpty:
ldrb r1,[r0]
add r0,0x1
cmp r1,0xE5
bge @@isEmpty
lsl r1,r1,0x2
ldrb r1,[r7,... |
;
;
; Quadrant mapping for the Exidy Sorcerer
;
; $Id: textpixl.asm,v 1.3 2016-06-23 19:53:27 dom Exp $
;
;
; .. X. .X XX
; .. .. .. ..
;
; .. X. .X XX
; X. X. X. X.
;
; .. X. .X XX
; .X .X .X .X
;
; .. X. .X XX
; XX XX XX XX
SECTION rodata_clib
PUBLIC textpixl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.