zasm: can now assemble stdio!

This commit is contained in:
Virgil Dupras 2019-05-17 15:43:44 -04:00
parent 16922da3d4
commit b499d320de
2 changed files with 8 additions and 4 deletions

View File

@ -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:

View File

@ -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"