mirror of
https://github.com/cc65/cc65.git
synced 2024-11-05 08:05:51 +00:00
20 lines
323 B
ArmAsm
20 lines
323 B
ArmAsm
|
;
|
||
|
; 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
|