I'm trying to build my menu and it seems like when I have a message that's "too long" it reaches the end lines of the code and then goes right back to the start without pausing to display the message. If I shorten the messages, it will display the message I want and stay there....anyone know why that might be?

Views: 14

Reply to This

Replies to This Discussion

do u mean that the code restarts from 0x000? if so it might be because you can only have tables in the first like 250 words of program memory (so put it right after ORG 0x000 goto init). each character in a datatable is actually a word of program memory. so its possible you were straddling the limit with your long message

Is there a way to fix that? Because yeah that's what's happening

Kenny Kim said:

do u mean that the code restarts from 0x000? if so it might be because you can only have tables in the first like 250 words of program memory (so put it right after ORG 0x000 goto init). each character in a datatable is actually a word of program memory. so its possible you were straddling the limit with your long message

 just have your tables in the first 250 lines

that keeps happening to me too, and I'm pretty sure my table ends at line 107 :S any ideas?

check 7.6.13.1 in the textbook, it gives a small block of sample code that might solve the problem


That ^ totally worked in solving the going back to the start problem, but for some reason it disrupted my code after. Basically I wait for another key to be pressed before going back to a subroutine, but now if I press a key, this weird looking symbol gets displayed instead? Any ideas?


Kenny Kim said:

check 7.6.13.1 in the textbook, it gives a small block of sample code that might solve the problem

RSS

© 2024   Created by PML.   Powered by

Badges  |  Report an Issue  |  Terms of Service