[A83] Re: TI-OS resumes


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

[A83] Re: TI-OS resumes




yep, it's more like:

push pc + 1 or 2  ; pc = program counter
jp xxxx

xxxx:
..code..
pop pc  ; after which code would continue after the jp instruction

 
> 
> HL isn't used at all in calls and jumps.  But you can pop the return address 
> for a call into any register pair, since it uses the stack.
> 
> 
> >From: Gavin Olson <gtolson@snet.net>
> >Reply-To: assembly-83@lists.ticalc.org
> >To: assembly-83@lists.ticalc.org
> >Subject: [A83] Re: TI-OS resumes
> >Date: Thu, 23 Aug 2001 08:44:37 -0400
> >MIME-Version: 1.0
> >Received: from [195.67.128.9] by hotmail.com (3.2) with ESMTP id 
> >MHotMailBD4E45D800B04004314CC343800905430; Thu, 23 Aug 2001 05:45:31 -0700
> >Received: from towerguard. (mx-1.sollentuna.net [195.67.128.9])by 
> >mx-1.sollentuna.net (Postfix) with ESMTPid 565EE18074; Thu, 23 Aug 2001 
> >14:45:08 +0200 (CEST)
> >Received: with LISTAR (v1.0.0; list assembly-83); Thu, 23 Aug 2001 14:45:08 
> >+0200 (CEST)
> >Received: from mx2.snet.net (mx2.snet.net [204.60.203.164])by 
> >mx-1.sollentuna.net (Postfix) with ESMTP id 8AE611802Ffor 
> ><assembly-83@lists.ticalc.org>; Thu, 23 Aug 2001 14:44:57 +0200 (CEST)
> >Received: from gavcomputer-ii.snet.net (82.221.252.64.snet.net 
> >[64.252.221.82])by mx2.snet.net 
> >(8.12.0.Beta12/8.12.0.Beta12/SNET-mx-1.5/D-evisionO-evision$) with ESMTP id 
> >f7NCinLQ021870for <assembly-83@lists.ticalc.org>; Thu, 23 Aug 2001 08:44:50 
> >-0400 (EDT)
> >From assembly-83-bounce@lists.ticalc.org Thu, 23 Aug 2001 05:46:56 -0700
> >Delivered-To: lists.ticalc-assembly-83@mx-1.sollentuna.net
> >Message-Id: <5.1.0.14.0.20010823084343.009fa500@pop.snet.net>
> >X-Sender: gtolson@pop.snet.net
> >X-Mailer: QUALCOMM Windows Eudora Version 5.1
> >In-Reply-To: <F231FRaqbC8wSA1XvpF0000f01f@hotmail.com>
> >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: gtolson@snet.net
> >Precedence: bulk
> >X-list: assembly-83
> >
> >
> >Was it actually hl, or was it just a 16 bit place somewhere?  If it was hl,
> >calling could really screw things up (not that you should depend on
> >registers around calls and jps :-)
> >
> >At 07:37 PM 8/22/2001 +0000, you wrote:
> >
> > >The other day it was mentioned that when a label is called,
> > >it stores the ram location of the call xxxx in hl and the pushes
> > >it. And ret then pops hl, increments it and then goes there,
> > >So I though, when a prgm is executed like call prgm,
> > >the only thing I should do is to pop hl and in hl would be
> > >where the TI-OS in the ram or rom is working.
> > >
> > >       SUCKER
> > >
> > >
> > > >Wait, wait, what are you referrring to?
> > > >
> > > > > About the pop hl in the beginning of a prgm,
> > > > > this isn't right. It would be 529Eh (TI-83-).
> > > > > I was thinking for a while asm programs were
> > > > > executed like call xxxx, but they use _exec_assmebly
> > > >AFAIK, _exec_assembly just clears out the ram at the progstar location, 
> >and
> > > >then calls the program.
> > > >
> > > >(well, actually I believe it pushes some return address onto the stack,
> > > >and then jp's to 9327h, but that's a different story, with the same 
> >effect
> > > >to
> > > >the programmer)
> > > >
> > > >
> > > > > and I don't know how I should get the place in the ram
> > > > > where this code will be executed out of a romcall...
> > > > >
> > > > >       SUCKER
> > > > >
> > > > > (next time think first???)
> > > > >
> > > > >
> > > > > _________________________________________________________________
> > > > > Get your FREE download of MSN Explorer at
> > > >http://explorer.msn.com/intl.asp
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >_________________________________________________________________
> > >Get your FREE download of MSN Explorer at 
> >http://explorer.msn.com/intl.asp
> >
> >
> >
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> 





References: