Call a foreign-language function: Difference between revisions
Content added Content deleted
Puppydrum64 (talk | contribs) |
Puppydrum64 (talk | contribs) |
||
Line 1,279: | Line 1,279: | ||
`free(@p)`; |
`free(@p)`; |
||
);</lang> |
);</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}}== |
=={{header|Lua}}== |