mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Can I use movne here instead?
This commit is contained in:
parent
ceb57eb002
commit
e72de28961
|
@ -190,7 +190,7 @@ SWAP_SIGN .req r11
|
|||
@ So (-1 logical >> 24) gives 11111111 and (1 logical >> 24) gives 00000000 so register is clamped between these two values.
|
||||
.macro clamp_s8 reg:req
|
||||
subs TEMP, CONST_0, \reg, asr #8
|
||||
andne \reg, CONST_FF, TEMP, lsr #24
|
||||
movne \reg, TEMP, lsr #24
|
||||
.endm
|
||||
|
||||
.macro load_sample left_reg:req right_reg:req
|
||||
|
|
Loading…
Reference in a new issue