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

ord() problem

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

0CodErr member
Posts
201
Threads
37
Location
Unknown

ord() problem

Seems this code cannot compiles, console closes without success message:

program RAW_IMAGE 'test';

#set bits 32;

al = ord('\');

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

This should cause an unexpected EOF, this is because \ acts as a special character in strings, so you are actually outputting ' inside ord.

try al = ord('\\');