9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <forsyth@terzarima.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] assembler question
Date: Sat, 30 Oct 2004 10:24:18 +0100	[thread overview]
Message-ID: <dbe1c3c67fb6063b162829afb593e6fc@terzarima.net> (raw)
In-Reply-To: <Pine.BSI.4.58.0410291703150.24294@malasada.lava.net>

[-- Attachment #1: Type: text/plain, Size: 433 bytes --]

be careful that all the plan 9 assemblers always use source -> dest
data flow order for instructions, which can differ from the (sometimes inconsistent)
order used by others.  (i quite like this because once you know the rule,
you won't get screwed up writing code for several architectures in the same hour,
as i do, but it needs some attention if you're working from another code sample
where the conventions are different.)

[-- Attachment #2: Type: message/rfc822, Size: 2638 bytes --]

From: Tim Newsham <newsham@lava.net>
To: Russ Cox <russcox@gmail.com>, Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
Cc: 
Subject: Re: [9fans] assembler question
Date: Fri, 29 Oct 2004 17:04:11 -1000 (HST)
Message-ID: <Pine.BSI.4.58.0410291703150.24294@malasada.lava.net>

> Looking at /sys/src/cmd/ka/a.y:208, it appears you
> can just say ADDW r2, r3, r4.  Have you tried this?

Ahh.. I was trying "ADD R1, $1, R2" but "ADD $1, R1, R2" seems
to have worked.  Sorry to raise a false warning.

> Russ

Tim N.

      reply	other threads:[~2004-10-30  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-30  2:32 Tim Newsham
2004-10-30  2:58 ` Russ Cox
2004-10-30  3:04   ` Tim Newsham
2004-10-30  9:24     ` Charles Forsyth [this message]

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=dbe1c3c67fb6063b162829afb593e6fc@terzarima.net \
    --to=forsyth@terzarima.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).