flat assembler
Message board for the users of flat assembler.

Index > Main > About far jumps

Author
Thread Post new topic Reply to topic
pini



Joined: 04 Jul 2005
Posts: 14
pini 27 Nov 2005, 16:24
Hi,

I'm currently writing a small program (in facts, it's a bootloader) and I want to perform a far jump when in 16 bits mode, after having entered protected mode. The target of that jump is the absolute value 0x10:0x100000.

My problem is that I can't find a way to write the correct jmp instruction, either with jmp far or jmp dword. Currently, I'm using the following hack :
Code:
db      0x66,0xEA,0x00,0x00,0x10,0x00,0x10,0x00    

and it works well, but I really would like to be able to write something like "jmp dword 0x10:0x100000" instead.

Thanks,

pini
Post 27 Nov 2005, 16:24
View user's profile Send private message Reply with quote
pini



Joined: 04 Jul 2005
Posts: 14
pini 27 Nov 2005, 16:31
Auto-reply: it works with this "jmp pword 0x10:0x100000". It didn't know this size specifier existed. FASM is definitely my favorite assembler Smile
Post 27 Nov 2005, 16:31
View user's profile Send private message Reply with quote
RedGhost



Joined: 18 May 2005
Posts: 443
Location: BC, Canada
RedGhost 28 Nov 2005, 04:51
pini wrote:
FASM is definitely my favorite assembler Smile


i tend to agree Cool

_________________
redghost.ca
Post 28 Nov 2005, 04:51
View user's profile Send private message AIM Address MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.