added peek functions for soft80
This commit is contained in:
19
libsrc/c64/soft80_cpeekcolor.s
Normal file
19
libsrc/c64/soft80_cpeekcolor.s
Normal 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
|
||||
Reference in New Issue
Block a user