Help with poke please?

I'm doing a moderately complex RF receiver with LCD o/p and have run out of variables to work with.

I'm currently using eight bytes for receiving the incoming data:
Code:
SYMBOL rx_byte_0 = b8   	; 
SYMBOL rx_byte_1 = b9   	; 
SYMBOL rx_byte_2 = b10  	; 
SYMBOL rx_byte_3 = b11  	; 
SYMBOL rx_byte_4 = b12  	; 
SYMBOL rx_byte_5 = b13  	; 
SYMBOL rx_byte_6 = b14  	; 
SYMBOL rx_byte_7 = b15  	; 

SERIN RX, baud, rx_byte_0,rx_byte_1,rx_byte_2,_
rx_byte_3,rx_byte_4,rx_byte_5,rx_byte_6,rx_byte_7
; read eight bytes of data into b8 to b15
I really need these bytes to use as word variables so ideally I'd like to POKE the received SERIN values straight into RAM using addresses from b56 up and then retrieve the data with PEEKs.

Is this feasible or do I have to involve bytes in the b0 - b55 range first?

Thanks in anticipation.
 

hippy

Technical Support
Staff member
Code:
bPtr = 56
SerIn RX, BAUD, @bPtrInc, @bPtrInc ...
Should do the job.
 

inglewoodpete

Senior Member
The following definition, placed at the top of your code, allows shortening of multiple "bPtrInc" parameters, which can make really long lines of code otherwise.

Code:
#Define bpi bPtrInc

bPtr = 56
SerIn RX, BAUD, @bpi, @bpi ...
(Code otherwise based on hippy's)
 
Top