Debug the rs232 routines. This involved using two new segments, STARTUP

and NMI to make sure the NMI handler is loaded into the low 16K of memory
which are active when the control is passed from the ROM NMI stub to the
user handler.


git-svn-id: svn://svn.cc65.org/cc65/trunk@1086 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2001-10-25 19:13:36 +00:00
parent c80c2049b6
commit 7e65f64c6a
3 changed files with 32 additions and 11 deletions

View File

@@ -18,7 +18,6 @@
; ------------------------------------------------------------------------
; Constants
CC65_MMU_CFG = $0E ; Bank 0 with kernal ROM
IRQInd = $2FD ; JMP $0000 - used as indirect IRQ vector
; ------------------------------------------------------------------------
@@ -45,9 +44,16 @@ tmp3: .res 1
tmp4: .res 1
regbank: .res 6 ; 6 byte register bank
zpspace = * - zpstart ; Zero page space allocated
zpspace = * - zpstart ; Zero page space allocated
.code
; Place the startup code in a special segment to cope with the quirks of
; c128 banking. Do also create an empty segment named "NMI" to avoid
; warnings if the rs232 routines are not used.
.segment "NMI"
; empty
.segment "STARTUP"
; ------------------------------------------------------------------------
; BASIC header with a SYS call