improved initialization and Kernal vector handling

This commit is contained in:
FeralChild64 committed 2019-07-22 19:16:41 +02:00
1 parent 273eb3ee6a
commit 4a12719986
5 files changed
+81 -30

No files matched your search

+6 -6
View File
@@ -10,24 +10,24 @@
clrchn:
;; Restore input device to default
;; Handle IEC input device
lda DFLTN
jsr iec_devnum_check
bcs +
;; Previous device was IEC one - send UNTALK first
jsr untlk
*
;; Set input device number to keyboard
lda #$00
sta DFLTN
;; Restore output device to default
lda DFLTO
jsr iec_devnum_check
bcs +
;; Previous device was IEC one - send UNLISTEN first
;; Handle IEC output device
jsr unlsn
*
clrchn_reset:
;; Set input device number to keyboard
lda #$00
sta DFLTN
;; Set output device number to screen
lda #$03
sta DFLTO