Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #60412

Re: Gforth assembler examples for AMD64

From Bernd Paysan <bernd@net2o.de>
Newsgroups comp.lang.forth
Subject Re: Gforth assembler examples for AMD64
Date 2017-06-07 01:00 +0200
Organization A noiseless patient Spider
Message-ID <oh7bvh$mui$1@dont-email.me> (permalink)
References (1 earlier) <2017Jun4.172529@mips.complang.tuwien.ac.at> <286724d6-1297-468e-9b08-dc188c10a57f@googlegroups.com> <2017Jun4.184657@mips.complang.tuwien.ac.at> <b3f574ee-409c-4827-b6e6-ca8155daf483@googlegroups.com> <b7688729-b3be-4b46-90c0-92fd81b61e5f@googlegroups.com>

Show all headers | View raw


Am 05.06.2017 um 04:38 schrieb krishna.myneni@ccreweb.org:
> However, storing an immediate value indirectly into the address contained in the rax register doesn't appear to work in an abi-code word for some reason:
> 
>    0 # ax ) mov

Line 273 in arch/amd64/asm.fs should be

: mov ( r/m reg / reg r/m / reg -- ) imm# @
   IF    assign#  reg?
...

I've no idea what the extra code there should have done, but it's 
causing the problem and doesn't any good thing.

The current git version fixes your problem, and it also fixes a problem 
with the disassembler, who didn't understand the 64 bit immediate move.

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 06:29 -0700
  Re: Gforth assembler examples for AMD64 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-04 15:25 +0000
    Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 09:31 -0700
      Re: Gforth assembler examples for AMD64 anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2017-06-04 16:46 +0000
        Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 16:13 -0700
          Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-04 19:38 -0700
            Re: Gforth assembler examples for AMD64 Bernd Paysan <bernd@net2o.de> - 2017-06-07 01:00 +0200
              Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-06 19:05 -0700
              Re: Gforth assembler examples for AMD64 krishna.myneni@ccreweb.org - 2017-06-06 19:38 -0700

csiph-web