Using DJNZ with Array Element
When I use DJNZ with an array element, the compiler throws an error.
The compiler error is BYTE VARIABLE EXPECTED, and it is on the DJNZ line.
Any ideas?
Thanks,
Joe
MyArray VAR BYTE(2) First VAR MyArray(0) Second VAR MyArray(1) DJNZ First,ALabel INC Second ALabel:
The compiler error is BYTE VARIABLE EXPECTED, and it is on the DJNZ line.
Any ideas?
Thanks,
Joe
Comments
This allows the compiler to point to the array and your variable to be decremented. The Z flag is tested manually.
Joe
Joe