The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sub Fastcall behaviour
#1
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.

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)