Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.forth > #13857
| From | mhx@iae.nl (Marcel Hendrix) |
|---|---|
| Subject | Re: x64 assembler & RIP for call/jmp absolute indirect |
| Newsgroups | comp.lang.forth |
| Message-ID | <92561592968435@frunobulax.edu> (permalink) |
| Date | 2012-07-11 20:47 +0200 |
| References | <5aec6524-87a3-49ba-89bc-cca28a61d453@fr28g2000vbb.googlegroups.com> |
| Organization | Wanadoo |
Alex McDonald <blog@nospicedham.rivadpm.com> writes Re: x64 assembler & RIP for call/jmp absolute indirect
> While constructing a Forth assembler for x64 mode, I've added RIP
> addressing support, and come across a slight oddball encoding during
> testing the encodings. I've not yet been able to test this under an
> x64 system (that's what the assembler is for...) so I'm looking for
> anyone that can shed some light on the possible consequences of this.
For what it is worth:
FORTH> code x
$4111C q# -> rax mov,
[rax] call,
$4111C offset call,
[_ $4111C +] call,
ret,
end-code
FORTH> see x
Flags: ANSI
$012A96C0 pop rbx 5B [
$012A96C1 mov rax, $0004111C d# 48C7C01C110400 HG@....
$012A96C8 call [rax] qword FF10 ..
$012A96CA call $0004111C offset NEAR E84D7AD9FE hMzY~
$012A96CF call $0004111C qword-offset FF15477AD9FE ..GzY~
$012A96D5 ret NEAR C3 C
I have no way to encode your
> ( $6 ) call qword { $4111C } \ FF14254C114000
-marcel
Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar
x64 assembler & RIP for call/jmp absolute indirect Alex McDonald <blog@nospicedham.rivadpm.com> - 2012-07-11 09:25 -0700
Re: x64 assembler & RIP for call/jmp absolute indirect Alex McDonald <blog@nospicedham.rivadpm.com> - 2012-07-11 10:32 -0700
Re: x64 assembler & RIP for call/jmp absolute indirect mhx@iae.nl (Marcel Hendrix) - 2012-07-11 20:47 +0200
Re: x64 assembler & RIP for call/jmp absolute indirect Alex McDonald <blog@rivadpm.com> - 2012-07-11 12:31 -0700
Re: x64 assembler & RIP for call/jmp absolute indirect "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-07-13 03:35 -0400
Re: x64 assembler & RIP for call/jmp absolute indirect "Rod Pemberton" <do_not_have@notemailnot.cmm> - 2012-07-13 03:44 -0400
Re: x64 assembler & RIP for call/jmp absolute indirect Alex McDonald <blog@rivadpm.com> - 2012-07-13 03:34 -0700
csiph-web