How can I make this code segment more efficient to use less programming memory?
if b3=$2D then let b3=$0A
endif
if b4=$2D then let b4=$0A
endif
if b5=$2D then let b5=$0A
endif
if b3=$32 then let b3=$0F
endif
if b4=$32 then let b4=$0F
endif
if b5=$32 then let b5=$0F
endif
I cannot figure how to increment the working register as a variable,; b3-b5 to check for condition as hex $2D or $32 and change to corresponding value, $0A or $32, respectively.
I am trying for something like this;
FOR b13 = 3 to 5
if b(b13)=$2D then let b(b13)=$0A
if b(b13)=$32 then let b(b13)=$0F
Next b13
Thanks in advance.
D.
if b3=$2D then let b3=$0A
endif
if b4=$2D then let b4=$0A
endif
if b5=$2D then let b5=$0A
endif
if b3=$32 then let b3=$0F
endif
if b4=$32 then let b4=$0F
endif
if b5=$32 then let b5=$0F
endif
I cannot figure how to increment the working register as a variable,; b3-b5 to check for condition as hex $2D or $32 and change to corresponding value, $0A or $32, respectively.
I am trying for something like this;
FOR b13 = 3 to 5
if b(b13)=$2D then let b(b13)=$0A
if b(b13)=$32 then let b(b13)=$0F
Next b13
Thanks in advance.
D.