Python-Cpu-Emulator/std.asm

18 lines
278 B
NASM
Raw Permalink Normal View History

2024-12-24 05:17:07 +00:00
; Simplified Standard Library for CPU Emulator
; No sections, strings, or floating-point numbers
; Mode definitions
%define BITMAP_MODE 0
%define TEXT_MODE 1
; Boolean values
%define null 0
%define true 1
%define false 0
test:
ldw b, 0x5
ldb a, b
int 0x1
ret