Fix color depack algo

This commit is contained in:
Thomas Bernard 2019-12-31 20:01:52 +01:00
parent d7451d6d6e
commit 22d98caa5b
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -131,7 +131,7 @@ colorrestore:
; special color RAM compression (only low nibble matters) ; special color RAM compression (only low nibble matters)
; high nibble is count ; high nibble is count
colordepack: colordepack:
dex ;dex
colordepacklp: colordepacklp:
jsr readbyte jsr readbyte
colordepacklp2: colordepacklp2:
@ -141,7 +141,7 @@ colordepacklp2:
dex dex
bpl + bpl +
rts rts
* cld * clc
adc #$10 adc #$10
bcs colordepacklp bcs colordepacklp
bcc colordepacklp2 bcc colordepacklp2