linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frederic Marmond <fmarmond@eprocess.fr>
To: fmarmond@eprocess.fr
Cc: linux-assembly@vger.kernel.org
Subject: Re: question on assembly on SH4 (linux portage)
Date: Thu, 11 Dec 2003 08:43:37 +0100	[thread overview]
Message-ID: <3FD82029.3070806@eprocess.fr> (raw)
In-Reply-To: <3FD48669.9030203@eprocess.fr>

Well, it seems nobody works on SH4 here? ;)
For information in the archives, opcodes for SH4/SH5 can be found here.
http://www.superh.com/documentation/documents.php?id=17

For self-answering (if anybody wants to switch from x86 to sh4 one day):
BSR and BSRF are for relative jumps, we can use JSR for absolute jumps.
Integration in a C/C++ prog is pretty easy, just have to know that a JSR 
needs a indirection (mov.l function_to_call_ptr,rx; jsr @rx) (instead 
of: bsr function_to_call)

After few hours working on SH4 assembly, it is not too complexe and 
powerfull enough to make it fun to code!

Fred

Frederic Marmond wrote:

> Hi,
> I'm working on a SH4 portage, and I have a problem in a function.
> Using a BSR, we seems to be limited to a 12bits jump.
> How may I call a far subroutine?
>
> thanks for help...
>
> Fred
>
>



      reply	other threads:[~2003-12-11  7:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-08 14:10 question on assembly on SH4 (linux portage) Frederic Marmond
2003-12-11  7:43 ` Frederic Marmond [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=3FD82029.3070806@eprocess.fr \
    --to=fmarmond@eprocess.fr \
    --cc=linux-assembly@vger.kernel.org \
    /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).