On the following site (Also seen on multiple other sites) they are saying that in case of a 8 bit return value, the value will be parsed back in register L.
https://www.z88dk.org/wiki/doku.php?id= ... y_language
Code: Select all
The rules are exactly the same as for the return value already discussed. A subset of DEHL holds the parameter value ([b]L for an 8-bit value[/b], HL for a 16-bit value, DEHL for a 32-bit value).
Code: Select all
T00F0h CD1702.. Í... CALL T0217H
T00F3h 7C...... |... LD A,H
T00F4h B5...... µ... OR L
T00F5h CAF000.. Êð.. JP Z,T00F0H
Code: Select all
zcc +z80 -vn -O3 -clib=new --list @ProjectFiles.lst -o test -lm -create-app -pragma-include:zpragma.inc