more escape sequences implemented
This commit is contained in:
1 parent
a70cd521f0
commit
c9484fc7ef
3 files changed
+95
-22
No files matched your search
@@ -88,16 +88,22 @@ m65_colorset_color:
|
||||
@2:
|
||||
lda (PTR1), y
|
||||
sta PALETTE_R, y
|
||||
jsr m65_colorset_get_bold
|
||||
sta PALETTE_R + $10, y
|
||||
|
||||
jsr m65_colorset_PTR1_inc_16
|
||||
|
||||
lda (PTR1), y
|
||||
sta PALETTE_G, y
|
||||
jsr m65_colorset_get_bold
|
||||
sta PALETTE_G + $10, y
|
||||
|
||||
jsr m65_colorset_PTR1_inc_16
|
||||
|
||||
lda (PTR1), y
|
||||
sta PALETTE_B, y
|
||||
jsr m65_colorset_get_bold
|
||||
sta PALETTE_B + $10, y
|
||||
|
||||
jsr m65_colorset_PTR1_dec_32
|
||||
|
||||
@@ -134,11 +140,15 @@ m65_colorset_greyscale:
|
||||
ldy #$0F
|
||||
@2:
|
||||
lda (PTR1), y
|
||||
|
||||
sta PALETTE_R, y
|
||||
sta PALETTE_G, y
|
||||
sta PALETTE_B, y
|
||||
|
||||
jsr m65_colorset_get_bold
|
||||
sta PALETTE_R + $10, y
|
||||
sta PALETTE_G + $10, y
|
||||
sta PALETTE_B + $10, y
|
||||
|
||||
dey
|
||||
bpl @2
|
||||
|
||||
@@ -170,6 +180,15 @@ m65_colorset_PTR1_dec_32:
|
||||
@1:
|
||||
rts
|
||||
|
||||
m65_colorset_get_bold:
|
||||
|
||||
phy
|
||||
lda m65_colorset_bold_tab, y
|
||||
tay
|
||||
lda (PTR1), y
|
||||
ply
|
||||
|
||||
rts
|
||||
|
||||
m65_colorset_selection:
|
||||
|
||||
|
||||
@@ -2,6 +2,26 @@
|
||||
;; #LAYOUT# * * #IGNORE
|
||||
|
||||
|
||||
m65_colorset_bold_tab: ; color redirection table for bold attribute
|
||||
|
||||
!byte $0B ; black -> dark grey
|
||||
!byte $0A ; white -> light red
|
||||
!byte $0A ; red -> light red
|
||||
!byte $07 ; cyan -> yellow
|
||||
!byte $0A ; purple -> light red
|
||||
!byte $0D ; green -> light green
|
||||
!byte $0E ; blue -> light blue
|
||||
!byte $0A ; yellow -> light red
|
||||
!byte $07 ; orange -> yellow
|
||||
!byte $08 ; brown -> orange
|
||||
!byte $07 ; light red -> yellow
|
||||
!byte $0C ; dark grey -> medium grey
|
||||
!byte $0F ; medium grey -> light grey
|
||||
!byte $07 ; light green -> yellow
|
||||
!byte $03 ; ligh blue -> cyan
|
||||
!byte $01 ; light grey -> white
|
||||
|
||||
|
||||
; #1 - original C65 palette, data taken from C65 manual
|
||||
|
||||
; RRGGBB
|
||||
|
||||
Reference in new issue
Block a user