Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Bugs and Fixes

Unexpected number

A community discussion post from the original code:zIRON forum.

0CodErr member
Posts
201
Threads
37
Location
Unknown

Unexpected number

program RAW_IMAGE 'test';

#set bits 32;

add  byte[0x12345678], 0x12
add  word[0x12345678], 0x1234
add dword[0x12345678], 0x12345678

The code above produce error

Unexpected number

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

Added this for next release.

0CodErr member
Posts
201
Threads
37
Location
Unknown
program PE32_CUI 'test';
#include 'platform_def.zir';
function X(byte* src; dword n) {}
const buf1 = '55';
X(buf1, sizeof buf1);
Unexpected number 55
Colin admin
Posts
928
Threads
49
Location
Bulgaria

This was a problem related to the other const post, issue with the optimiser, it is fixed for next release. :)