[A83] Re: more push and pop stuff


[Prev][Next][Index][Thread]

[A83] Re: more push and pop stuff




Since I was in an "I wanna screw up my calc" mood :-),
I just tried it out with the followind program:

---
#include "ti83plus.inc"
  .org 9D95h
  ld hl,0300
  bcall(_disphl)
  bjump(_jforcecmdnochar)
---
I put it on my calc, ran it, and voila,
result:

Asm(prgmX
  786[flashing curor I can use]

It might be a nice trick to avoid the stupid "Done" message.

Though this works, there might be a reason why TI wants of only to be used for 
apps anyone an ideawhat it might be?

--(Peter Martijn)


 
> Thank you, but the SDK says NOT FOR ASM PROGRAMS, JUST APPS!! (I am not 
> meaning to be insuting, just the sdk put it in caps, and it might raly screw 
> up someone's calc.) I read in the SDK that the other two were JForceGraphKey 
> (in: a, key to execute in graph screen) and JForceGraphNoKey, for app 
> programmers (use both with BJUMP).
> 
> Jimmy Pardey
> 
> 
> >From: Peter-Martijn Kuipers <hyper@hysoft-automation.com>
> >Reply-To: assembly-83@lists.ticalc.org
> >To: assembly-83@lists.ticalc.org
> >Subject: [A83] Re: more push and pop stuff
> >Date: Thu, 23 Aug 2001 09:25:33 +0200 (CEST)
> >MIME-Version: 1.0
> >Received: from [195.67.128.9] by hotmail.com (3.2) with ESMTP id 
> >MHotMailBD4DF92C003340043793C343800909B10; Thu, 23 Aug 2001 00:18:49 -0700
> >Received: from towerguard. (mx-1.sollentuna.net [195.67.128.9])by 
> >mx-1.sollentuna.net (Postfix) with ESMTPid 7E25A18019; Thu, 23 Aug 2001 
> >09:17:59 +0200 (CEST)
> >Received: with LISTAR (v1.0.0; list assembly-83); Thu, 23 Aug 2001 09:17:59 
> >+0200 (CEST)
> >Received: from sunsparc.hysoft-automation.com 
> >(hvs-o-0613.mxs.adsl.euronet.nl [212.129.134.19])by mx-1.sollentuna.net 
> >(Postfix) with ESMTP id DB6D218006for <assembly-83@lists.ticalc.org>; Thu, 
> >23 Aug 2001 09:17:57 +0200 (CEST)
> >Received: (from hyper@localhost)by sunsparc.hysoft-automation.com 
> >(8.11.0/8.8.7) id f7N7PXJ27274for assembly-83@lists.ticalc.org; Thu, 23 Aug 
> >2001 09:25:33 +0200
> >From assembly-83-bounce@lists.ticalc.org Thu, 23 Aug 2001 00:19:54 -0700
> >Delivered-To: lists.ticalc-assembly-83@mx-1.sollentuna.net
> >Message-Id: <200108230725.f7N7PXJ27274@sunsparc.hysoft-automation.com>
> >In-Reply-To: <002a01c12b6d$a7a124f0$4100000a@brinstar> from "David 
> >Phillips" at Aug 22, 2001 05:50:49 PM
> >X-Mailer: ELM [version 2.5 PL3]
> >X-listar-version: Listar v1.0.0
> >Sender: assembly-83-bounce@lists.ticalc.org
> >Errors-To: assembly-83-bounce@lists.ticalc.org
> >X-original-sender: hyper@hysoft-automation.com
> >Precedence: bulk
> >X-list: assembly-83
> >
> >
> >83+: _jforcecmdnochar, used to quit applications
> >
> >there are 2 other _jforcecmd* 's,and they allow you to pass a key on to the
> >tios after quitting.
> >See the 83Plus sdk manual for details.
> >
> >--(Peter-Martijn)
> > >
> > >
> > > Yes.  So don't do that :)
> > >
> > > On the 86, there is a rom call to get you out no matter what, called
> > > "_jforcecmdnochar" (not kidding).  I don't remember what the 83/83+
> > > equivalent is, but a quick grep of the include file ought to turn up 
> >what
> > > you want.
> > >
> > > Or, you can do it yourself:
> > >
> > > ; at the start of the program, save the stack position
> > >  ld hl,0
> > >  add hl,sp
> > >  ld (stacksave),hl
> > >
> > > ; when you need to bail
> > > stacksave = $+1
> > >  ld hl,0
> > >  ld sp,hl
> > >  ret            ; return to TI-OS
> > >
> > > > I would expect a _quit romcall or something, because if I push without
> > > > poping back the same number of time I pushed and try to return to the 
> >the
> > > > shell, something will (65534 out of 65535 times (memory adresses, I 
> >might
> > > > just hit the quit adress)) get messed up, or wouldn't it?
> > >
> > >
> > >
> > >
> >
> >
> >
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> 





Follow-Ups: References: