use se32 in the bmp example

floats
Ondřej Hruška 4 years ago
parent 22cbfeb4ff
commit 1e6e45ea72
Signed by untrusted user: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 4
      examples/bmp-parser.csn

@ -49,9 +49,9 @@
(ld x 0)(ld y h)(ld dy -1)(dec y) (ld x 0)(ld y h)(ld dy -1)(dec y)
; test if height is negative ; test if height is negative
(and r0 h 0x80000000 (and r0 h 0x8000_0000
(nz? (nz?
(or h 0xFFFFFFFF_00000000) ; sign extend (se32 h) ; sign extend to u64
(mul h -1) (mul h -1)
(ld dy 1) ; going downward (ld dy 1) ; going downward
(ld y 0) (ld y 0)

Loading…
Cancel
Save