flat assembler
Message board for the users of flat assembler.

Index > Main > int 10 in DPMI

Author
Thread Post new topic Reply to topic
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 13 Oct 2003, 19:48
What I am doing wrong?

Code:
include '%include%\win32ax.inc'
struc  dpmi {
._edi       dd   0
._esi       dd   0
._ebp       dd   0
.none1      dd   0
._ebx       dd   0
._edx       dd   0
._ecx       dd   0
._eax       dd   0
._flag      dw   0
._es        dw   0
._ds        dw   0
._fs        dw   0
._gs        dw   0
.none2      dw   0
.none3      dw   0
._sp        dw   0
._ss        dw   0
}
;-- ------------------------------
.data
zxc dpmi    ;malloc dpmi stucture as zxc
;--------------------------------
.code

start:

        mov     eax     ,       13h     ;graph mode
        mov     [zxc._edi],     eax     ;put into structure
        mov     eax     ,       0300h   ;to call RM INT
        mov     ebx     ,       10h     ;int number
        int     31h                     ;call dpmi
loops:
        jmp loops
     
    

_________________
Microsoft: brings power of yesterday to computers of today.
Post 13 Oct 2003, 19:48
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8395
Location: Kraków, Poland
Tomasz Grysztar 13 Oct 2003, 20:04
You don't have access to DPMI functions from the Win32 application (in PE format), you have to write DOS program to be able to use DPMI.
Post 13 Oct 2003, 20:04
View user's profile Send private message Visit poster's website Reply with quote
HarryTuttle



Joined: 26 Sep 2003
Posts: 211
Location: Poland
HarryTuttle 13 Oct 2003, 21:00
uhmm Crying or Very sad

_________________
Microsoft: brings power of yesterday to computers of today.
Post 13 Oct 2003, 21:00
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.