ASM
Syntax
Section titled “Syntax”asm (z80 assembler code) ...end asm
Description
Section titled “Description”Starts immediate inline assembly context using standard z80 opcodes. Use with caution.
Examples
Section titled “Examples”FUNCTION FASTCALL whatLetter (A as uByte) as uByte Asm JP START DATA: DEFB "A Man, A Plan, A Canal, Panama" START: LD HL,DATA LD E, A LD D, 0 ADD HL, DE LD A, (HL) End AsmEND FUNCTION
The above function, when called with whatLetter(<value>)
will return the <value>
-th letter of the phrase
"A Man, A Plan, A Canal, Panama"
.