18 lines
278 B
NASM
18 lines
278 B
NASM
|
; 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
|