[A83] Re: Do I get this?


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

[A83] Re: Do I get this?




don't jump 5700 to quit (at least don't if you pllan on publishing the 
program), it may be different on different os versions. 1.13 gave me 5718, 
rather than your 5700

Jimmy Pardey


>From: "Ronald Teune" <rtwolf@gmx.net>
>Reply-To: assembly-83@lists.ticalc.org
>To: <assembly-83@lists.ticalc.org>
>Subject: [A83] Re: Do I get this?
>Date: Sat, 25 Aug 2001 18:33:00 +0200
>MIME-Version: 1.0
>Received: from [195.67.128.9] by hotmail.com (3.2) with ESMTP id 
>MHotMailBD5277DC00A54004319CC343800912920; Sun, 26 Aug 2001 10:07:48 -0700
>Received: from towerguard. (mx-1.sollentuna.net [195.67.128.9])by 
>mx-1.sollentuna.net (Postfix) with ESMTPid CC85A18038; Sun, 26 Aug 2001 
>19:07:21 +0200 (CEST)
>Received: with LISTAR (v1.0.0; list assembly-83); Sun, 26 Aug 2001 19:07:21 
>+0200 (CEST)
>Received: from mail.gmx.net (mail.gmx.net [213.165.64.20])by 
>mx-1.sollentuna.net (Postfix) with SMTP id 2EC0318030for 
><assembly-83@lists.ticalc.org>; Sun, 26 Aug 2001 19:07:21 +0200 (CEST)
>Received: (qmail 21484 invoked by uid 0); 26 Aug 2001 17:07:18 -0000
>Received: from 1cust127.tnt29.rtm1.nl.uu.net (HELO qxd2j) (213.116.152.127) 
>  by mail.gmx.net (mp007-rz3) with SMTP; 26 Aug 2001 17:07:18 -0000
>From assembly-83-bounce@lists.ticalc.org Sun, 26 Aug 2001 10:09:17 -0700
>Delivered-To: lists.ticalc-assembly-83@mx-1.sollentuna.net
>Message-ID: <00f501c12e51$94489d20$090a0a0a@qxd2j>
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook Express 4.72.3155.0
>X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
>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: rtwolf@gmx.net
>Precedence: bulk
>X-list: assembly-83
>
>
>Well I was actually too lazy to try :-)
>**
>Yes, It works.(83+) 22272=$5700
>Hey! TI changes the stack pointer right after that
>
>5700:call $254E
>
>245E:pop bc
>254F: ld sp,($86DE)
>
>If you set a breakpoint at $5700, it monitors exactly when an asm-program
>stops (not an ion program). During a quick test, I didn't find any other
>calls of $5700. Could be useful, probably.
>
> >Sure, but you probably found that out already
> >
> >
> >> ----------------------------------------
> >> From: Ronald Teune <rtwolf@gmx.net>
> >> Sent: Wed Aug 22 22:21:58 GMT+02:00 2001
> >> To: <assembly-83@lists.ticalc.org>
> >> Subject: [A83] Re: Do I get this?
> >>
> >>
> >>
> >> Well, to continue about the calls/pops/pushes:
> >>
> >> Would this program work correctly?
> >>
> >>     pop hl
> >>     push hl
> >>     bcall(_disphl)        ;shows the decimal representation of the
> >> ret-address.
> >>     ret
> >>
> >> >Ehm, yes, but you'll mess up your stack too, because you didn't remove
> >> >the original ret address from it.
> >> >
> >> >Routine should be:
> >> >
> >> >routine:
> >> > pop hl
> >> > ld hl,xxxx
> >> > push hl
> >> > ret
> >> >
> >> >--(Peter-Martijn)
> >> >
> >> >
> >> >> Out of the awnsers to my last question, I understand that when I do
>this:
> >> >>
> >> >>
> >> >>     call    routine
> >> >> .......................
> >> >>
> >> >> routine:
> >> >>     ld  hl,xxxx
> >> >>     push    hl
> >> >>     ret
> >> >>
> >> >>
> >> >> My program will get messed up and return to xxxx, instead of to the
> >> dotted
> >> >> line.
> >> >> Am I correct?
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >>
> >>
> >>
> >
> >-----------------------------------------------------
> >Mail.be, Free WebMail and Virtual Office
> >http://www.mail.be
> >
> >
> >
>
>
>


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp