I am learning assembly for the ti-84, and my code kept crashing. I figured out that bcall(_GrBufClr) causes the program to crash. Even when it's the only opcode in the entire program, it still causes the RAM to be cleared. Why is this? As I understand it, I don't need to do anything special with the registers before I call it.

Crashing program:

Code:
.nolist
#include "ti83plus.inc"
.list

   .org userMem-2
   .db $BB,$6D
   
   bcall (_GrBufClr)
   ret
Hello ebopalisesy and welcome to Cemetech! That code seems correct to me; and it still gives a crash? Do you get any warnings when assembling?
Nope, no warnings or errors when assembling. I get the same crash when I run it with Asm(prgmTEST and through Doors CS.
Just as a post in case anyone was wondering; removing the space between bcall and (_GrBufClr) solves the issue Smile
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement