render-cg: fix negative alpha values being miscompared in P8

This commit is contained in:
Lephe 2022-05-07 18:12:44 +01:00
parent 667f43b45c
commit d2f788a3fc
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 8 additions and 2 deletions

View File

@ -79,6 +79,9 @@
nop
.endif
exts.b r8, r8
nop
START
mov.b @r3+, \TMP2

View File

@ -56,10 +56,13 @@
nop
.endif
mov.w @(2,r8), r0 /* cmd.color_2 (dye value) */
mov.w @r8+, r11 /* cmd.color_1 ≤ 255, thus zero-extended */
nop
mov.w @r8, r8 /* cmd.color_1 ≤ 255, thus zero-extended */
mov.w @r8+, r0 /* cmd.color_2 (dye value) */
nop
exts.b r11, r8
mov #0, r11
START