1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-02 01:40:55 +11:00
collapseos/recipes/rc2014/glue.asm

58 lines
1.0 KiB
NASM
Raw Normal View History

2019-05-21 01:00:14 +10:00
.equ RAMSTART 0x8000
.equ RAMEND 0xffff
.equ ACIA_CTL 0x80 ; Control and status. RS off.
.equ ACIA_IO 0x81 ; Transmit. RS on.
.equ DIGIT_IO 0x00 ; digital I/O's port
2019-05-17 22:14:19 +10:00
jp init
; interrupt hook
.fill 0x38-$
jp aciaInt
.inc "err.h"
.inc "ascii.h"
.inc "core.asm"
.inc "str.asm"
2019-05-21 01:00:14 +10:00
.equ ACIA_RAMSTART RAMSTART
.inc "acia.asm"
2019-05-17 22:14:19 +10:00
.equ STDIO_RAMSTART ACIA_RAMEND
.equ STDIO_GETC aciaGetC
.equ STDIO_PUTC aciaPutC
.inc "stdio.asm"
2019-05-17 22:14:19 +10:00
; *** BASIC ***
; RAM space used in different routines for short term processing.
.equ SCRATCHPAD_SIZE STDIO_BUFSIZE
.equ SCRATCHPAD STDIO_RAMEND
.inc "lib/util.asm"
.inc "lib/ari.asm"
.inc "lib/parse.asm"
.inc "lib/fmt.asm"
.equ EXPR_PARSE parseLiteralOrVar
.inc "lib/expr.asm"
.inc "basic/util.asm"
.inc "basic/parse.asm"
.inc "basic/tok.asm"
.equ VAR_RAMSTART SCRATCHPAD+SCRATCHPAD_SIZE
.inc "basic/var.asm"
.equ BUF_RAMSTART VAR_RAMEND
.inc "basic/buf.asm"
.equ BAS_RAMSTART BUF_RAMEND
.inc "basic/main.asm"
2019-05-17 22:14:19 +10:00
init:
di
; setup stack
ld sp, RAMEND
im 1
2019-05-17 22:14:19 +10:00
call aciaInit
ei
call basInit
jp basStart