flat assembler
Message board for the users of flat assembler.

Index > DOS > far call

Author
Thread Post new topic Reply to topic
NoName_s



Joined: 16 Jan 2006
Posts: 19
NoName_s 01 Feb 2006, 14:14
howto in RM?
i want to write simple: call far gx:bx (cs?)

1. in fasm call pword [gs:eax], but i need to tranfer control througt r16 offset else gen interrupt in dos and it crash.
2. if i write call pword [eax] where is segment and offset
32-16 = segm ?
0-15 = offset ?
Post 01 Feb 2006, 14:14
View user's profile Send private message Reply with quote
NoName_s



Joined: 16 Jan 2006
Posts: 19
NoName_s 02 Feb 2006, 09:39
if i write: call [es:FarCall]
FarCall = dword segm:off
fasm generate call far ds:addr of FarCall
start:
jmp data ; 2 bytes
rb 13 ; reserve mem
;and here fasm add 1 byte! and i must correct it by hands
; ...
call [es:FarCall] ; if this line delete fasm not add 1 byte

fix: not byte, but word = 00 00, fasm 1.64
Howto write jmp 0x200a:0x0066 as far call ?
Post 02 Feb 2006, 09:39
View user's profile Send private message 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.