Jump to content

DosFlatToSel: Difference between revisions

From EDM2
Created page with " ==Timur Tabi Comments== This are 16-bit and 32-bit conversion functions. They convert pointers in one memory model to another.[https://groups.google.com/forum/#!topic/de.com..."
 
Ak120 (talk | contribs)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This converts a 32 bit flat address to a 16:16 far pointer to be usable by 16 bit code. This routine is callable from 16 bit code. The result is returned in eax (selector=high word, offset=low word).


==Syntax==
void far* DOSFLATTOSEL(ULONG eax)
==Parameters==
;eax (register) : The flat address to be converted. This argument is not passed on the stack.


==Timur Tabi Comments==
==Timur Tabi Comments==
This are 16-bit and 32-bit conversion functions. They convert pointers in one memory model to another.[https://groups.google.com/forum/#!topic/de.comp.os.os2/sWft7VBSjvE]   
These are 16-bit and 32-bit conversion functions. They convert pointers in one memory model to another.[https://groups.google.com/forum/#!topic/de.comp.os.os2/sWft7VBSjvE]   


I don't think they're part of the OS/2 API; rather, they are part of the compiler's runtime library. C Set++ has them also.
I don't think they're part of the OS/2 API; rather, they are part of the compiler's runtime library. C Set++ has them also.


[[Category:The OS/2 API Project]]
[[Category:Dos]]

Latest revision as of 00:58, 18 January 2020

This converts a 32 bit flat address to a 16:16 far pointer to be usable by 16 bit code. This routine is callable from 16 bit code. The result is returned in eax (selector=high word, offset=low word).

Syntax

void far* DOSFLATTOSEL(ULONG eax)

Parameters

eax (register)
The flat address to be converted. This argument is not passed on the stack.

Timur Tabi Comments

These are 16-bit and 32-bit conversion functions. They convert pointers in one memory model to another.[1]

I don't think they're part of the OS/2 API; rather, they are part of the compiler's runtime library. C Set++ has them also.