make assembler use \\ instead of / for newlines

This commit is contained in:
Redo
2024-03-01 20:58:07 -06:00
parent eaae7bb2d2
commit 717a9d9b08
3 changed files with 345 additions and 3 deletions

47
examples/_hwdefs.asm Normal file
View File

@@ -0,0 +1,47 @@
.define SYSROM $0000
.define GPIO $0400
.define KEYBOARD $0500
.define PERIPH $0600
.define ROBOT $0700
.define SCREEN $0800
.define SCRCLR $0C00
.define SYSRAM $1000
.define USERROM $2000
.define USERRAM $3000
;.define FUNC .space 1 \ .align $10 \
.define FUNC .space 1 \
; I/O devices
.org GPIO
io:
.mulLeft: .mulHigh: .mulResultHigh: byte
.mulRight: .mulLow: .mulResultLow: .mulResult: byte
.dividend: .quotient: byte
.divisor: .remainder: byte
.popcount: byte
.timer: byte
byte[(256-6)]
.org KEYBOARD
keyboard:
.queue: .int: byte
byte[(256-1)]
.org PERIPH
byte[256]
.org ROBOT
robot:
.color: byte
.control: byte
byte[(256-2)]
.org SCREEN
screen:
.char: byte[1024]
.color: byte[1024]
.org $0000