The scope of this project is growing, mostly for fun. I doubt I'll ever get to the point where I can actually use it on a real Z80 system, but who knows. Mostly this is a good way to learn about vasm and refresh my Z80 assembly knowledge.
17 lines
499 B
NASM
17 lines
499 B
NASM
; SPDX-License-Identifier: MPL-2.0
|
|
; SPDX-FileCopyrightText: (c) 2025 A.M. Rowsell
|
|
; ============================================================
|
|
; OS Vector Table (128 x 2-byte addresses) at 0xF000-0xF1FF
|
|
; ============================================================
|
|
.equ OS_VEC_BASE,0xF000
|
|
|
|
; .vectors is pinned to 0xF000 via linker.cmd
|
|
.section .vectors
|
|
.global os_vectors
|
|
|
|
os_vectors:
|
|
.word os_print_vec
|
|
.word os_getch_vec
|
|
.word os_outbyte_vec
|
|
.word os_inbyte_vec
|
|
.zero 248
|