added peek functions for soft80

This commit is contained in:
mrdudz
2017-12-28 01:58:03 +01:00
parent 9a8b7d9a23
commit 0543ecabe2
7 changed files with 323 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
;
; 2017-12-27, Groepaz
;
; unsigned char cpeekcolor (void);
;
.export soft80_cpeekcolor
.include "c64.inc"
.include "soft80.inc"
.segment "CODE"
soft80_cpeekcolor:
ldy #0
lda (CRAM_PTR),y
and #$0f
ldx #0
rts