mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Use names instead of numeric addresses
git-svn-id: svn://svn.cc65.org/cc65/trunk@1085 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
99ddd22dc8
commit
c80c2049b6
@ -27,6 +27,8 @@
|
||||
.export _rs232_init, _rs232_params, _rs232_done, _rs232_get
|
||||
.export _rs232_put, _rs232_pause, _rs232_unpause, _rs232_status
|
||||
|
||||
.include "c64.inc"
|
||||
|
||||
|
||||
NmiExit = $febc ;exit address for nmi
|
||||
|
||||
@ -139,14 +141,14 @@ _rs232_init:
|
||||
|
||||
;** set up nmi's
|
||||
|
||||
lda $318
|
||||
ldy $319
|
||||
lda NMIVec
|
||||
ldy NMIVec+1
|
||||
sta NmiSave+0
|
||||
sty NmiSave+1
|
||||
lda #<NmiHandler
|
||||
ldy #>NmiHandler
|
||||
sta $318
|
||||
sty $319
|
||||
sta NMIVec
|
||||
sty NMIVec+1
|
||||
|
||||
;** set default to 2400-8N1, enable interrupts
|
||||
|
||||
@ -310,8 +312,8 @@ _rs232_done:
|
||||
|
||||
lda NmiSave+0
|
||||
ldy NmiSave+1
|
||||
sta $318
|
||||
sty $319
|
||||
sta NMIVec
|
||||
sty NMIVec+1
|
||||
|
||||
; Flag uninitialized
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user