mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-04 04:48:06 +11:00
zasm: can now assemble stdio!
This commit is contained in:
parent
16922da3d4
commit
b499d320de
@ -9,10 +9,10 @@
|
||||
|
||||
; *** VARIABLES ***
|
||||
; Used to store formatted hex values just before printing it.
|
||||
STDIO_HEX_FMT .equ STDIO_RAMSTART
|
||||
STDIO_GETC .equ STDIO_HEX_FMT+2
|
||||
STDIO_PUTC .equ STDIO_GETC+2
|
||||
STDIO_RAMEND .equ STDIO_PUTC+2
|
||||
.equ STDIO_HEX_FMT STDIO_RAMSTART
|
||||
.equ STDIO_GETC STDIO_HEX_FMT+2
|
||||
.equ STDIO_PUTC STDIO_GETC+2
|
||||
.equ STDIO_RAMEND STDIO_PUTC+2
|
||||
|
||||
; Select the blockdev to use as stdio before calling this.
|
||||
stdioInit:
|
||||
|
@ -10,3 +10,7 @@
|
||||
.equ BLOCKDEV_RAMSTART ACIA_RAMEND
|
||||
.equ BLOCKDEV_COUNT 1
|
||||
#include "blockdev.asm"
|
||||
.dw aciaGetC, aciaPutC, 0, 0
|
||||
|
||||
.equ STDIO_RAMSTART BLOCKDEV_RAMEND
|
||||
#include "stdio.asm"
|
||||
|
Loading…
Reference in New Issue
Block a user