ok, thanks. But then, does this mean that this code:
Code:
would work perfectly if RCVID was filled with five zeros?
Code:
::Pseudocode
//program inits
Repeat getkey(15)
//Load 4 bytes of data to be sent into L4
2->{L4}r
2->{L4+2}r
//Clear out L5, the recently received data buffer
0->{L5}r
0->{L5+2}r
//Sending
//is Sizeword+1 msb reset?
If GetS = 0
//load data into the send buffer
Copy(L4,OTDAT,4
//set size into Sizeword
4->{SNDID+5}r
//set Sizeword+1 msb
SetS
End
//Receiving
//is size word set?
If GetR
//put the data somewhere we can use it later in the program
Copy(INDAT,L5,4
//reset msb of Sizeword+1
SetR //I'm not sure if this is correct...
End
//now we're doing sending and receiving
//do whatever crap with the data
//recently sent data is in L4
//recently received data is in L5
ClrDraw
Text(0,0,{L5}r>Dec
Text(0,8,{L5}r>Dec
Dispgraph
End
would work perfectly if RCVID was filled with five zeros?