I'm just wondering how it would work.
For example (untested code)
Code: Select all
uchar __FASTCALL__ read_hl (uchar *hl)
{
#asm
ld a, (hl)
#endasm
}
uchar __FASTCALL__ inc_a (uchar a)
{
#asm
ld h,a
inc h
ld a,h
#endasm
}
uchar __FASTCALL__ read_hl (uchar h, uchar l)
{
#asm
ld a, (hl)
#endasm
}
void main()
{
uchar x;
x = read_hl(read(23672), inc_a(read(23672)));
}
To be honest I just don't see this working, especially if I'm going to use recursion on the second parameter.