9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: geoff@collyer.net
To: 9fans@cse.psu.edu
Subject: Re: [9fans] pointer to the last TOS
Date: Thu,  2 Mar 2006 17:54:58 -0800	[thread overview]
Message-ID: <51ec0cc7d9a6045ecc67de893a082d6c@collyer.net> (raw)
In-Reply-To: <308c5cd1e1d85ace80c202f90e490d44@coraid.com>

Another way to see the stack-manipulation instructions is to look at
the output of 8l -a; here's the start of it using Brantley's example:

: cpu; 8l -a t.8|p
001020 	(776)	TEXT	put+0(SB),$12
001020 83ec0c	(776)	SUBL	$12,SP
001023 b80c690000	(778)	MOVL	$.string<1>+0(SB),AX
001028 890424	(778)	MOVL	AX,(SP)
00102b 8b442410	(778)	MOVL	x+16(FP),AX
00102f 89442404	(778)	MOVL	AX,4(SP)
001033 e86e010000	(778)	CALL	,11a6+print
001038 83c40c	(778)	ADDL	$12,SP
00103b c3	(778)	RET	,
00103c 	(782)	TEXT	main+0(SB),$16
00103c 83ec10	(782)	SUBL	$16,SP
00103f b102	(786)	MOVB	$2,CX
001041 0fbec1	(787)	MOVBLSX	CX,AX
001044 890424	(787)	MOVL	AX,(SP)
001047 b803000000	(787)	MOVL	$3,AX
00104c 89442404	(787)	MOVL	AX,4(SP)
001050 e8cbffffff	(787)	CALL	,1020+put
001055 83c410	(787)	ADDL	$16,SP
001058 c3	(787)	RET	,



  parent reply	other threads:[~2006-03-03  1:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-02 14:57 Gorka guardiola
2006-03-02 15:23 ` Brantley Coile
2006-03-02 15:34   ` Gorka guardiola
2006-03-03  1:54   ` geoff [this message]
2006-03-02 15:24 ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51ec0cc7d9a6045ecc67de893a082d6c@collyer.net \
    --to=geoff@collyer.net \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).