You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .u file format is too strict, making it harder to both generate and hand write assembly code for the Unicon VM. Through various experiments, mostly failures, I eventually managed to write a program that generate a valid .u file but this is tedious. I believe that the compiler should be permissive in terms of tabs versus spaces, the ^L and spacing in general.
procedure main()
write("Hello, Professor!")
end
version U12.1.00
uid hello.u1-1746625644-0
impl local
global 1
0,000005,main,0
proc main
local 0,000000,write
con 0,010000,17,110,145,154,154,157,054,040,120,162,157,146,145,163,163,157,162,041
declend
filen hello.icn
line 1
colm 11
synt any
mark L1
var 0
str 0
line 2
colm 9
synt any
invoke 1
unmark
lab L1
pnull
line 3
colm 1
synt any
pfail
end
Activity