07-27-2012, 11:39 AM
I understand that if, for example, you pass an uByte parameter, it's put into the A register... But it seems that the parameter itself is not usable from BASIC. I don't know if this is intended, there's nothing about this in the doc.
I expected this code to print 16 twice, but it outputs:
This is, the value of "n" is 0. In other scenarios, I get other values, not just 0.
Code:
Sub Fastcall test (n as uByte)
Asm
ld (40000),a
End Asm
Print n
Print Peek (40000)
End Sub
test (16)
I expected this code to print 16 twice, but it outputs:
Code:
0
16
This is, the value of "n" is 0. In other scenarios, I get other values, not just 0.