diff --git a/examples/bmp-parser.csn b/examples/bmp-parser.csn index 119c24d..5afa5e4 100644 --- a/examples/bmp-parser.csn +++ b/examples/bmp-parser.csn @@ -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)