problem with setint command

AlbertZ

Senior Member
When I type in the following code, the program compiles without issues:

Code:
dirsB = %11111111
dirsC = %00000000
setint %00000011, %00000011, C
but when I try to add C.4 into the mix like so:

Code:
 dirsB = %11111111
dirsC = %00000000
setint %00010011, %00010011, C
I get a syntax error. Why is this happening?
 

johnlong

Senior Member
Hello
Have just dropped your codes into editor added the interrupt: lable with a return and both pass without a problem
Code:
'Comment out as required
'A
dirsB = %11111111
dirsC = %00000000
setint %00000011, %00000011, C

'B
 dirsB = %11111111
dirsC = %00000000
setint %00010011, %00010011, C
interrupt:
return
so should work on yours (strange the quirks that happen)
regards
john
 

hippy

Ex-Staff (retired)
I'm not sure why you suggest the possibility of an M2 here. The on-line and pdf command descriptions both say that the port ID parameter is only required for the X2 series.
The SETINT command allows a port ID to be specified even when it isn't required, even when only C is accepted.

So having a "C" present doesn't indicate whether it is for an M2 or X2.
 
Top