2019-05-19 12:57:59 -04:00
|
|
|
.equ USER_CODE 0x4800
|
|
|
|
.equ USER_RAMSTART 0x5800
|
2019-06-19 11:42:39 -04:00
|
|
|
.equ FS_HANDLE_SIZE 6
|
2019-06-04 11:53:02 -04:00
|
|
|
.equ BLOCKDEV_SIZE 8
|
2019-05-17 20:47:43 -04:00
|
|
|
|
2019-05-19 12:57:59 -04:00
|
|
|
; *** JUMP TABLE ***
|
|
|
|
.equ strncmp 0x03
|
|
|
|
.equ addDE 0x06
|
|
|
|
.equ addHL 0x09
|
|
|
|
.equ upcase 0x0c
|
|
|
|
.equ unsetZ 0x0f
|
|
|
|
.equ intoDE 0x12
|
|
|
|
.equ intoHL 0x15
|
|
|
|
.equ writeHLinDE 0x18
|
|
|
|
.equ findchar 0x1b
|
|
|
|
.equ parseHex 0x1e
|
|
|
|
.equ parseHexPair 0x21
|
|
|
|
.equ blkSel 0x24
|
2019-06-04 20:45:01 -04:00
|
|
|
.equ blkSet 0x27
|
|
|
|
.equ fsFindFN 0x2a
|
|
|
|
.equ fsOpen 0x2d
|
|
|
|
.equ fsGetC 0x30
|
|
|
|
.equ cpHLDE 0x33
|
|
|
|
.equ parseArgs 0x36
|
|
|
|
.equ _blkGetC 0x39
|
|
|
|
.equ _blkPutC 0x3c
|
|
|
|
.equ _blkSeek 0x3f
|
|
|
|
.equ _blkTell 0x42
|
2019-06-19 11:42:39 -04:00
|
|
|
.equ printstr 0x45
|
2019-05-18 15:18:19 -04:00
|
|
|
|
2019-06-02 14:05:20 -04:00
|
|
|
#include "err.h"
|
2019-05-27 11:22:38 -04:00
|
|
|
#include "zasm/const.asm"
|
2019-05-18 15:41:21 -04:00
|
|
|
#include "zasm/util.asm"
|
2019-05-19 12:57:59 -04:00
|
|
|
.equ IO_RAMSTART USER_RAMSTART
|
2019-05-18 15:45:36 -04:00
|
|
|
#include "zasm/io.asm"
|
2019-05-18 18:56:27 -04:00
|
|
|
.equ SYM_RAMSTART IO_RAMEND
|
|
|
|
#include "zasm/symbol.asm"
|
2019-05-18 19:59:58 -04:00
|
|
|
#include "zasm/parse.asm"
|
2019-05-18 20:31:52 -04:00
|
|
|
.equ TOK_RAMSTART SYM_RAMEND
|
|
|
|
#include "zasm/tok.asm"
|
2019-05-18 20:37:34 -04:00
|
|
|
.equ DIREC_RAMSTART TOK_RAMEND
|
|
|
|
#include "zasm/directive.asm"
|
2019-05-19 10:40:45 -04:00
|
|
|
#include "zasm/instr.asm"
|
2019-05-19 10:45:11 -04:00
|
|
|
#include "zasm/expr.asm"
|
2019-05-19 13:00:52 -04:00
|
|
|
.equ ZASM_RAMSTART TOK_RAMEND
|
|
|
|
#include "zasm/main.asm"
|