cleanup
This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
.export _cpeekchar
|
|
||||||
.export _cpeekcharxy
|
|
||||||
|
|
||||||
.import _gotoxy
|
|
||||||
|
|
||||||
.include "c16.inc"
|
|
||||||
|
|
||||||
.segment "CODE"
|
|
||||||
|
|
||||||
_cpeekcharxy:
|
|
||||||
|
|
||||||
jsr _gotoxy ; Set cursor
|
|
||||||
|
|
||||||
_cpeekchar:
|
|
||||||
|
|
||||||
ldy CURS_X
|
|
||||||
lda (SCREEN_PTR),y ; get char
|
|
||||||
ldx #0
|
|
||||||
|
|
||||||
and #$7f
|
|
||||||
|
|
||||||
; 0 - $1f +$40
|
|
||||||
; $20 - $3f
|
|
||||||
; $40 - $7e +$80
|
|
||||||
|
|
||||||
cmp #$1f
|
|
||||||
bcs @sk1
|
|
||||||
;; clc
|
|
||||||
adc #$40
|
|
||||||
rts
|
|
||||||
|
|
||||||
@sk1:
|
|
||||||
cmp #$40
|
|
||||||
bcc @end
|
|
||||||
clc
|
|
||||||
adc #$80
|
|
||||||
@end:
|
|
||||||
rts
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
.export _cpeekchar
|
|
||||||
.export _cpeekcharxy
|
|
||||||
|
|
||||||
.import _gotoxy
|
|
||||||
|
|
||||||
.include "c64.inc"
|
|
||||||
|
|
||||||
.segment "CODE"
|
|
||||||
|
|
||||||
_cpeekcharxy:
|
|
||||||
|
|
||||||
jsr _gotoxy ; Set cursor
|
|
||||||
|
|
||||||
_cpeekchar:
|
|
||||||
|
|
||||||
ldy CURS_X
|
|
||||||
lda (SCREEN_PTR),y ; get char
|
|
||||||
ldx #0
|
|
||||||
|
|
||||||
and #$7f
|
|
||||||
|
|
||||||
; 0 - $1f +$40
|
|
||||||
; $20 - $3f
|
|
||||||
; $40 - $7e +$80
|
|
||||||
|
|
||||||
cmp #$1f
|
|
||||||
bcs @sk1
|
|
||||||
;; clc
|
|
||||||
adc #$40
|
|
||||||
rts
|
|
||||||
|
|
||||||
@sk1:
|
|
||||||
cmp #$40
|
|
||||||
bcc @end
|
|
||||||
clc
|
|
||||||
adc #$80
|
|
||||||
@end:
|
|
||||||
rts
|
|
||||||
@@ -1,33 +0,0 @@
|
|||||||
|
|
||||||
.export _cpeekchar
|
|
||||||
.export _cpeekcharxy
|
|
||||||
|
|
||||||
.import _gotoxy
|
|
||||||
|
|
||||||
.include "cbm510.inc"
|
|
||||||
.include "extzp.inc"
|
|
||||||
|
|
||||||
.segment "CODE"
|
|
||||||
|
|
||||||
_cpeekcharxy:
|
|
||||||
|
|
||||||
jsr _gotoxy ; Set cursor
|
|
||||||
|
|
||||||
_cpeekchar:
|
|
||||||
lda #0
|
|
||||||
ldx #0
|
|
||||||
rts
|
|
||||||
|
|
||||||
;; ?!?!
|
|
||||||
|
|
||||||
ldx IndReg
|
|
||||||
ldy #$0F
|
|
||||||
sty IndReg
|
|
||||||
|
|
||||||
ldy CURS_X
|
|
||||||
lda (SCREEN_PTR),y ; get char
|
|
||||||
|
|
||||||
stx IndReg
|
|
||||||
|
|
||||||
ldx #0
|
|
||||||
rts
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
.export _cpeekchar
|
|
||||||
.export _cpeekcharxy
|
|
||||||
|
|
||||||
.import _gotoxy
|
|
||||||
|
|
||||||
.include "pet.inc"
|
|
||||||
|
|
||||||
.segment "CODE"
|
|
||||||
|
|
||||||
_cpeekcharxy:
|
|
||||||
|
|
||||||
jsr _gotoxy ; Set cursor
|
|
||||||
|
|
||||||
_cpeekchar:
|
|
||||||
|
|
||||||
ldy CURS_X
|
|
||||||
lda (SCREEN_PTR),y ; get char
|
|
||||||
ldx #0
|
|
||||||
|
|
||||||
and #$7f
|
|
||||||
|
|
||||||
; 0 - $1f +$40
|
|
||||||
; $20 - $3f
|
|
||||||
; $40 - $7e +$80
|
|
||||||
|
|
||||||
cmp #$1f
|
|
||||||
bcs @sk1
|
|
||||||
;; clc
|
|
||||||
adc #$40
|
|
||||||
rts
|
|
||||||
|
|
||||||
@sk1:
|
|
||||||
cmp #$40
|
|
||||||
bcc @end
|
|
||||||
clc
|
|
||||||
adc #$80
|
|
||||||
@end:
|
|
||||||
rts
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
.export _cpeekchar
|
|
||||||
.export _cpeekcharxy
|
|
||||||
|
|
||||||
.import _gotoxy
|
|
||||||
|
|
||||||
.include "plus4.inc"
|
|
||||||
|
|
||||||
.segment "CODE"
|
|
||||||
|
|
||||||
_cpeekcharxy:
|
|
||||||
|
|
||||||
jsr _gotoxy ; Set cursor
|
|
||||||
|
|
||||||
_cpeekchar:
|
|
||||||
|
|
||||||
ldy CURS_X
|
|
||||||
lda (SCREEN_PTR),y ; get char
|
|
||||||
ldx #0
|
|
||||||
|
|
||||||
and #$7f
|
|
||||||
|
|
||||||
; 0 - $1f +$40
|
|
||||||
; $20 - $3f
|
|
||||||
; $40 - $7e +$80
|
|
||||||
|
|
||||||
cmp #$1f
|
|
||||||
bcs @sk1
|
|
||||||
;; clc
|
|
||||||
adc #$40
|
|
||||||
rts
|
|
||||||
|
|
||||||
@sk1:
|
|
||||||
cmp #$40
|
|
||||||
bcc @end
|
|
||||||
clc
|
|
||||||
adc #$80
|
|
||||||
@end:
|
|
||||||
rts
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
|
|
||||||
.export _cpeekchar
|
|
||||||
.export _cpeekcharxy
|
|
||||||
|
|
||||||
.import _gotoxy
|
|
||||||
|
|
||||||
.include "vic20.inc"
|
|
||||||
|
|
||||||
.segment "CODE"
|
|
||||||
|
|
||||||
_cpeekcharxy:
|
|
||||||
|
|
||||||
jsr _gotoxy ; Set cursor
|
|
||||||
|
|
||||||
_cpeekchar:
|
|
||||||
|
|
||||||
ldy CURS_X
|
|
||||||
lda (SCREEN_PTR),y ; get char
|
|
||||||
ldx #0
|
|
||||||
|
|
||||||
and #$7f
|
|
||||||
|
|
||||||
; 0 - $1f +$40
|
|
||||||
; $20 - $3f
|
|
||||||
; $40 - $7e +$80
|
|
||||||
|
|
||||||
cmp #$1f
|
|
||||||
bcs @sk1
|
|
||||||
;; clc
|
|
||||||
adc #$40
|
|
||||||
rts
|
|
||||||
|
|
||||||
@sk1:
|
|
||||||
cmp #$40
|
|
||||||
bcc @end
|
|
||||||
clc
|
|
||||||
adc #$80
|
|
||||||
@end:
|
|
||||||
rts
|
|
||||||
Reference in New Issue
Block a user