linux-assembly.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: gas jump
@ 2003-08-31 11:06 peter w krause
  2003-09-01  8:10 ` Maciej Hrebien
  0 siblings, 1 reply; 10+ messages in thread
From: peter w krause @ 2003-08-31 11:06 UTC (permalink / raw)
  To: linux-assembly; +Cc: Linux-assembly

Fekete Gabor am Samstag, 30. August 2003 23:46:
> hi
>
> i want to make a relative jump.
> i tried it with "jmp 0x09" and expected it to

the actual displacement is not an argument to <jmp>

> jump to the address that comes 9 bytes after
> this "jmp".
> is it correct?

no.

> i'm asking because when I examined (x/bx) the code with
> gdb it didn't really show any bytes with value 0x09 when
> looking at this jump instruction.

should copile a branch to address stored at location 0x09

correct code would be:
		jmp 1f
	...
1f:


best,
	hp

--
Linux,Assembly,Forth: http://www.lxhp.in-berlin.de/index-lx.shtml


^ permalink raw reply	[flat|nested] 10+ messages in thread
* gas jump
@ 2003-08-30 22:46 Fekete Gabor
  2003-08-31  9:38 ` Maciej Hrebien
  0 siblings, 1 reply; 10+ messages in thread
From: Fekete Gabor @ 2003-08-30 22:46 UTC (permalink / raw)
  To: linux-assembly

hi

i want to make a relative jump.
i tried it with "jmp 0x09" and expected it to
jump to the address that comes 9 bytes after
this "jmp".
is it correct?
i'm asking because when I examined (x/bx) the code with
gdb it didn't really show any bytes with value 0x09 when
looking at this jump instruction.

thanks



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-09-03 22:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-31 11:06 gas jump peter w krause
2003-09-01  8:10 ` Maciej Hrebien
2003-09-01  9:24   ` peter w krause
2003-09-03  8:45     ` Maciej Hrebien
2003-09-03 11:54       ` peter w krause
2003-09-03 22:22         ` Maciej Hrebien
  -- strict thread matches above, loose matches on Subject: below --
2003-08-30 22:46 Fekete Gabor
2003-08-31  9:38 ` Maciej Hrebien
2003-08-31  9:55   ` Maciej Hrebien
2003-09-01  3:42   ` Rick Hohensee

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).