use se32 in the bmp example

This commit is contained in:
2020-10-15 01:05:12 +02:00
parent 22cbfeb4ff
commit 1e6e45ea72
+2 -2
View File
@@ -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)