I've try to write this code:

Code:
.nolist
#include "ti83pce.inc"
.list
 .assume ADL=1
 .org userMem-2
 .db tExtTok,tAsm84CeCmp


  ld bc, $0000

  push BC
  ld a, $00
Touche:
  call _GetCSC
  cp a, skEnter
  jp nz, Touche
  ret

Similar to some tutorials, but i get the "RAM cleared" problem...
Did somebidy know why ?
#cemetech wrote:
[14:27] <PentiumII> ROstvoid: what's that `ld bc,0 \ push bc` for?
[14:42] <saxjax> [ROstvoid] Pentium, I was thinking doing more code after that, ie it may be part of a loop
[14:44] <saxjax> [ROstvoid] Pentium: In fact it should be dot and knot, the 0000 representing whois about playing
[14:46] <PentiumII> when you exit, the stack has to be where it started
[14:47] <PentiumII> right now, the program has $0000 on the stack when you do the final ret, so it jumps to address 0000 and crashes
[14:47] <PentiumII> remove that `ld bc,0 \ push bc`, or add a `pop bc` before the final ret, and see if that works
[14:56] <saxjax> [ROstvoid] Pentium: Itry it, it work !
  
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