mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +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_init, _rs232_params, _rs232_done, _rs232_get
|
||||||
.export _rs232_put, _rs232_pause, _rs232_unpause, _rs232_status
|
.export _rs232_put, _rs232_pause, _rs232_unpause, _rs232_status
|
||||||
|
|
||||||
|
.include "c64.inc"
|
||||||
|
|
||||||
|
|
||||||
NmiExit = $febc ;exit address for nmi
|
NmiExit = $febc ;exit address for nmi
|
||||||
|
|
||||||
@ -139,14 +141,14 @@ _rs232_init:
|
|||||||
|
|
||||||
;** set up nmi's
|
;** set up nmi's
|
||||||
|
|
||||||
lda $318
|
lda NMIVec
|
||||||
ldy $319
|
ldy NMIVec+1
|
||||||
sta NmiSave+0
|
sta NmiSave+0
|
||||||
sty NmiSave+1
|
sty NmiSave+1
|
||||||
lda #<NmiHandler
|
lda #<NmiHandler
|
||||||
ldy #>NmiHandler
|
ldy #>NmiHandler
|
||||||
sta $318
|
sta NMIVec
|
||||||
sty $319
|
sty NMIVec+1
|
||||||
|
|
||||||
;** set default to 2400-8N1, enable interrupts
|
;** set default to 2400-8N1, enable interrupts
|
||||||
|
|
||||||
@ -310,8 +312,8 @@ _rs232_done:
|
|||||||
|
|
||||||
lda NmiSave+0
|
lda NmiSave+0
|
||||||
ldy NmiSave+1
|
ldy NmiSave+1
|
||||||
sta $318
|
sta NMIVec
|
||||||
sty $319
|
sty NMIVec+1
|
||||||
|
|
||||||
; Flag uninitialized
|
; Flag uninitialized
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user