From c80c2049b6b306a691fa03e714b9cbf52a342ded Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 25 Oct 2001 19:11:52 +0000 Subject: [PATCH] Use names instead of numeric addresses git-svn-id: svn://svn.cc65.org/cc65/trunk@1085 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/c64/rs232.s | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libsrc/c64/rs232.s b/libsrc/c64/rs232.s index 2c7078864..b2c8ecdf6 100644 --- a/libsrc/c64/rs232.s +++ b/libsrc/c64/rs232.s @@ -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 - 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 -- 2.39.5