![]() ![]() ![]() Again, good simulators will produce an error when loading the program, but others may silently use mailbox 0 instead, which leads to undesirable behaviour. ![]() The code to reset the counter refers to an undefined label zero. So rename one of the two labels, and adjust one of the STA LDIT instructions accordingly. If anything, this will not be what happens. Either way, the intention of the program is that one STA LDIT uses the first LDIT location and the second STA LDIT uses the second LDIT location. A good simulator should give an error message about this, but other simulators will just take one definition and ignore the duplicates. Obviously that - needs to be removed for the label reference to be valid. There is a brz printf instruction, but that label is not defined, since - makes it a comment.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |