How can I itterate through a array defined in a DB so that I can write/read to it.
::: DB1. Pressure Defined as Array of [0..1,1..8]
--------------------------------------------------------
// !!! This doesn't WORK
L 1 // Start
T #a // Load Start to a temp variable
L MW288 // Read Data
NEx: T Db1.pressure[1,#a] // store data to array
inc #a // increment array pointer
L 8 // Load Loop Limit
<> I // compare
JC Nex // Jump if loop limit is not reached.
--------------------------------------------------------
This should fill
DB1.pressure [1,1] with value of MW288
DB1.pressure [1,2] with value of MW288
DB1.pressure [1,3] with value of MW288
DB1.pressure [1,4] with value of MW288
DB1.pressure [1,5] with value of MW288
DB1.pressure [1,6] with value of MW288
DB1.pressure [1,7] with value of MW288
DB1.pressure [1,8] with value of MW288
Thanks is Advance
::: DB1. Pressure Defined as Array of [0..1,1..8]
--------------------------------------------------------
// !!! This doesn't WORK
L 1 // Start
T #a // Load Start to a temp variable
L MW288 // Read Data
NEx: T Db1.pressure[1,#a] // store data to array
inc #a // increment array pointer
L 8 // Load Loop Limit
<> I // compare
JC Nex // Jump if loop limit is not reached.
--------------------------------------------------------
This should fill
DB1.pressure [1,1] with value of MW288
DB1.pressure [1,2] with value of MW288
DB1.pressure [1,3] with value of MW288
DB1.pressure [1,4] with value of MW288
DB1.pressure [1,5] with value of MW288
DB1.pressure [1,6] with value of MW288
DB1.pressure [1,7] with value of MW288
DB1.pressure [1,8] with value of MW288
Thanks is Advance