Machine code: Difference between revisions

Make the Nim version actually work
m (Commodore BASIC: Machine code loader was off by 1 on line 105.)
(Make the Nim version actually work)
Line 655:
 
# copy code to buffer
copyMem(addr buf, addr code[0], sizeof(code))
 
# run code
{.emit: "`result` = cast[proc((inta, (*b: cint): (int,cint int))&`{.nimcall.}](buf`)(`a`,` b`);".}
 
# free buffer
Anonymous user