I have found what appear to be discrepancies between the Picaxe simulator and program execution on the 14M2 using the serrxd and sertxd instructions.
The differences come in the use of the # option before the variable eg. "serrxd b0" or "serrxd #b0" and "sertxd (b0, 13, 10)" or "sertxd (#b0, 13, 10)".
Experimenting gives the following results:
Simulator:
serrxd bo followed by sertxd (b0) requires ascii input to get a digit output
serrxd #b0 followed by sertxd (#b0) as above
serrxd b0 followed by sertxd (#b0) requires a digit input to get a digit output
serrxd #b0 followed by sertxd (b0) gives a blank output for either ascii or digit input
14M2 program:
serrxd bo followed by sertxd (b0) requires a digit input to get a digit output
serrxd #b0 followed by sertxd (#b0) gives a blank output for either ascii or digit input
serrxd b0 followed by sertxd (#b0) requires a digit in to get an ascii output
serrxd #b0 followed by sertxd (b0) gives a blank output for either ascii or digit input (same as the simulator)
I have also noticed that the simulator "Simulate timeout" (for the serrxd instruction) closes the simulator.
Also, the recovery from a "token timeout" when submitting a post appears to be busted.
The differences come in the use of the # option before the variable eg. "serrxd b0" or "serrxd #b0" and "sertxd (b0, 13, 10)" or "sertxd (#b0, 13, 10)".
Experimenting gives the following results:
Simulator:
serrxd bo followed by sertxd (b0) requires ascii input to get a digit output
serrxd #b0 followed by sertxd (#b0) as above
serrxd b0 followed by sertxd (#b0) requires a digit input to get a digit output
serrxd #b0 followed by sertxd (b0) gives a blank output for either ascii or digit input
14M2 program:
serrxd bo followed by sertxd (b0) requires a digit input to get a digit output
serrxd #b0 followed by sertxd (#b0) gives a blank output for either ascii or digit input
serrxd b0 followed by sertxd (#b0) requires a digit in to get an ascii output
serrxd #b0 followed by sertxd (b0) gives a blank output for either ascii or digit input (same as the simulator)
I have also noticed that the simulator "Simulate timeout" (for the serrxd instruction) closes the simulator.
Also, the recovery from a "token timeout" when submitting a post appears to be busted.
Last edited: