forked from MightyPork/crsn
use se32 in the bmp example
This commit is contained in:
@@ -49,9 +49,9 @@
|
||||
(ld x 0)(ld y h)(ld dy -1)(dec y)
|
||||
|
||||
; test if height is negative
|
||||
(and r0 h 0x80000000
|
||||
(and r0 h 0x8000_0000
|
||||
(nz?
|
||||
(or h 0xFFFFFFFF_00000000) ; sign extend
|
||||
(se32 h) ; sign extend to u64
|
||||
(mul h -1)
|
||||
(ld dy 1) ; going downward
|
||||
(ld y 0)
|
||||
|
||||
Reference in New Issue
Block a user