Tarkus
11-23-2002, 01:56 AM
Well, I've been tinkering around with the assembly on the TI-83+ for the last day or so and I've run into a problem...
ld b,0ffh
loopy:
B_CALL PutS
B_CALL NewLine
djnz loopy
It's a fairly small program but this seems to cause a problem. When I put an already exisiting string out with a djnz loop, I get a bunch of garbled text and all of the ram is used up. however when I don't use the loop and simply cut and paste the command over and over again, it works just fine with no ill effects.
Correct me if I'm wrong, but djnz is decrement jump non zero, it's not a call so it shouldn't be storing any sort of reference to itself. Am I right?
if not, what sort of loop could I use?
ld b,0ffh
loopy:
B_CALL PutS
B_CALL NewLine
djnz loopy
It's a fairly small program but this seems to cause a problem. When I put an already exisiting string out with a djnz loop, I get a bunch of garbled text and all of the ram is used up. however when I don't use the loop and simply cut and paste the command over and over again, it works just fine with no ill effects.
Correct me if I'm wrong, but djnz is decrement jump non zero, it's not a call so it shouldn't be storing any sort of reference to itself. Am I right?
if not, what sort of loop could I use?