Johnny T
Member
Hi
Does anyone know how I can indirectly address a byte within an indirectly addressed Data Block?
Here's the code so far...
Where I have the Load command looking at Byte 0, I want to make it indirect so I can either pass into the FB the byte to look at. Or use the value of a marker byte to tell it which byte to look at.
I've experimented with a few different ideas but can't get anything to work.... I'm still waiting for my Hans Berger book so, until that arrives, anyone got any ideas?
Thanks
JT
Does anyone know how I can indirectly address a byte within an indirectly addressed Data Block?
Here's the code so far...
L MW 8 // MW 8 HOLDS DB No.
T #DB_TEMP // TRANSFER IT INTO TEMP STORAGE
OPN DB[#DB_TEMP] // OPEN THE DATABLOCK
L DBB 0 // ** THIS IS THE BYTE I WANT TO MAKE INDIRECT
OPN DB 100 // OPEN DESTINATION BLOCK
T DBB 3 // TRANSFER VALUE OF BYTE TO BYTE 3
Where I have the Load command looking at Byte 0, I want to make it indirect so I can either pass into the FB the byte to look at. Or use the value of a marker byte to tell it which byte to look at.
I've experimented with a few different ideas but can't get anything to work.... I'm still waiting for my Hans Berger book so, until that arrives, anyone got any ideas?
Thanks
JT