Call a foreign-language function: Difference between revisions

Line 1,279:
`free(@p)`;
);</lang>
 
=={{header|Locomotive BASIC}}==
WinAPE has a built-in Z80 assembler that can copy the assembled program into the Amstrad CPC's memory. Whatever address your <code>org</code> directive was at can be <code>CALL</code>ed in BASIC.
 
<lang z80>org &1000
ld a,'A'
call &bb5a
ret</lang>
 
{{out}}
<pre>call &1000
A
Ready</pre>
 
=={{header|Lua}}==
1,489

edits