Anzahl der byvals in Sub routine limitiert?
Hallo Leute,
Zur zeit benutze ich folgende Statements um eine Sub routine aufzurufen.
Code:
Declare Sub Spi_write(byval Spi_instr As Byte , Byval Spi_bytes As Byte, byval CS as byte, byval spi_echo as byte)
Sub Spi_write(byval Spi_instr As Byte , Byval Spi_bytes As Byte, byval CS as byte, byval spi_echo as byte)
...
end sub
call Spi_write(&h40, 1,0,0)
...
jetzt habe ich festgestellt, das im Simutator falsche Werte als "Local variable" angezeigt werden, wenn die Anzahl der byval's > 2 wird.
Verwende ich nur 2 parameter, funzt alles ohne Probleme.
Ist das eine immer so und ich mache einen Fehler, oder ein Fehler in bascom? In der docu, ist nicht bezüglich Limitierung beschrieben.
Vielen Dank
mfg