From 1e6e45ea7206dc9fc1e0eb9b2a64bb81901d171e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 15 Oct 2020 01:05:12 +0200 Subject: [PATCH] use se32 in the bmp example --- examples/bmp-parser.csn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)