Skip to content

Commit

Permalink
Fix pixel parity!
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranhj committed Feb 13, 2020
1 parent b99a9fa commit a61b0e0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doom-fire.asm
Original file line number Diff line number Diff line change
Expand Up @@ -537,8 +537,7 @@ do_fire:
ldrb r5, [r10], #1 ; load screen byte

; Left pixel
mov r4, r5, lsr #4 ; mask out left hand pixel
cmp r4, #0
ands r4, r5, #0x0F
moveq r0, r2
beq .3
RND
Expand All @@ -548,8 +547,7 @@ do_fire:
add r2, r2, #1

; Right pixel
and r4, r5, #0x0F
cmp r4, #0
movs r4, r5, lsr #4 ; mask out left hand pixel
moveq r0, r2
beq .4
RND
Expand Down

0 comments on commit a61b0e0

Please sign in to comment.