split up ISCNTC

This commit is contained in:
Michael Steil committed 2008-10-18 07:50:47 +00:00
1 parent f2d1bbf497
commit 5bf0b4466b
9 files changed
+62 -41

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
.segment "CODE"
ISCNTC:
lda $C000
cmp #$83
beq L0ECC
rts
L0ECC:
jsr RDKEY
cmp #$03
;!!! runs into "STOP"
+1
View File
@@ -0,0 +1 @@
; nothing - ISCNTC is a KERNAL function
View File
File renamed without changes.
+6 -40
View File
@@ -3,55 +3,21 @@
; SEE IF CONTROL-C TYPED
; ----------------------------------------------------------------------------
.ifndef CONFIG_CBM_ALL
ISCNTC:
.include "cbm_iscntc.s"
.endif
.ifdef KBD
jsr LE8F3
bcc RET1
LE633:
jsr LDE7F
beq STOP
cmp #$03
bne LE633
.include "kbd_iscntc.s"
.endif
.ifdef OSI
jmp MONISCNTC
nop
nop
nop
nop
lsr a
bcc RET2
jsr GETLN
cmp #$03
.include "osi_iscntc.s"
.endif
.ifdef APPLE
lda $C000
cmp #$83
beq L0ECC
rts
L0ECC:
jsr RDKEY
cmp #$03
.include "apple_iscntc.s"
.endif
.ifdef KIM
lda #$01
bit $1740
bmi RET2
ldx #$08
lda #$03
clc
cmp #$03
.include "kim_iscntc.s"
.endif
.ifdef MICROTAN
lda $01
cmp #$03
beq LC6EF
lda #$01
rts
LC6EF:
nop
nop
cmp #$03
.include "microtan_iscntc.s"
.endif
;!!! runs into "STOP"
+10
View File
@@ -0,0 +1,10 @@
.segment "CODE"
ISCNTC:
jsr LE8F3
bcc RET1
LE633:
jsr LDE7F
beq STOP
cmp #$03
bne LE633
;!!! runs into "STOP"
+10
View File
@@ -0,0 +1,10 @@
.segment "CODE"
ISCNTC:
lda #$01
bit $1740
bmi RET2
ldx #$08
lda #$03
clc
cmp #$03
;!!! runs into "STOP"
+12
View File
@@ -0,0 +1,12 @@
.segment "CODE"
ISCNTC:
lda $01
cmp #$03
beq LC6EF
lda #$01
rts
LC6EF:
nop
nop
cmp #$03
;!!! runs into "STOP"
+1 -1
View File
@@ -17,7 +17,7 @@
.include "program.s"
.include "flow1.s"
.include "loadsave.s"
.include "flow3.s"
.include "flow2.s"
.include "misc1.s"
.include "print.s"
.include "input.s"
+12
View File
@@ -0,0 +1,12 @@
.segment "CODE"
ISCNTC:
jmp MONISCNTC
nop
nop
nop
nop
lsr a
bcc RET2
jsr GETLN
cmp #$03
;!!! runs into "STOP"