flat assembler
Message board for the users of flat assembler.

Index > Windows > Question about 32bit programing, please help me!

Author
Thread Post new topic Reply to topic
alf_ua



Joined: 18 Dec 2003
Posts: 11
Location: Ukraine, Lviv
alf_ua
I am learning assembler programing and I started with 16bit programming for DOS. Now I want to start 32bit programing. I want to write multiplatform program (Windows, Linux, BSD) in 32bit.
The question is:
1. 32bit mode means I get flat memory model(4 Gb RAM) and everything else is the same as with 16bit, or I need to create windows in my program and do everything throught Win32API functions?
2. Can I use BIOS interrupts under Windows (I wana make may own little library for I/O based on BIOOS ints)?


Please make your answers (if you have something to say) more clear because English is not my native language, and I am not guru in assembler programming.

Thank you for you answers.

_________________
Codeing is an ART !
Post 18 Dec 2003, 23:48
View user's profile Send private message Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm
1. Yes you get your 4gigs, and no everything else is not the same, you have to use the windows api functions and etc. no interrupts or 16-bit only operations are available. You can still use the 16-bit registers though such as ax,bx, and so on.

2. No sorry bios interrupts can not be used from within a 32bit program(legit that is, I think there is a way you can hack it into the program).

_________________
I shall not evade what is predestined
because every battle, is another lesson
- GuyonAsm.

A Believer of The System.
Post 19 Dec 2003, 00:58
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
You can use BIOS interrupts from DPMI level, writing programs for DPMI is a solution worth considering, as you can execute them under DOS, Win32 and even under Linux using DOSEMU.
Post 19 Dec 2003, 01:34
View user's profile Send private message Visit poster's website Reply with quote
GuyonAsm



Joined: 27 Sep 2003
Posts: 45
GuyonAsm
Fasm has support for the Dos Protected Mode Interface? If so i never knew that, I know that masm doesn't support it( I could never get it working).

_________________
I shall not evade what is predestined
because every battle, is another lesson
- GuyonAsm.

A Believer of The System.
Post 19 Dec 2003, 01:46
View user's profile Send private message Reply with quote
alf_ua



Joined: 18 Dec 2003
Posts: 11
Location: Ukraine, Lviv
alf_ua
Privalov wrote:
You can use BIOS interrupts from DPMI level, writing programs for DPMI is a solution worth considering, as you can execute them under DOS, Win32 and even under Linux using DOSEMU.


Maybe my question is very stupid but still : What is DPMI (I know what does abriviation means)? I mean how does it works (I simply get 4GB ram under dos with all interrupts available)? How this code can be executeable on different OSs (I mean Windows, Linux and BSD).

Thanx for your help, your site is the BEST!!!
You make a great things .......

_________________
Codeing is an ART !
Post 19 Dec 2003, 10:32
View user's profile Send private message Reply with quote
scientica
Retired moderator


Joined: 16 Jun 2003
Posts: 689
Location: Linköping, Sweden
scientica

_________________
... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself.
- Bradley Kuhn
Post 19 Dec 2003, 12:33
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
Download the DOS version of flat assembler - you've got an example of DPMI programming there.
This should also be useful: http://www.google.co.uk/search?hl=en&ie=UTF-8&oe=utf-8&safe=off&q=DPMI+function+reference&meta=
Post 19 Dec 2003, 13:50
View user's profile Send private message Visit poster's website Reply with quote
Kevin_Zheng



Joined: 04 Jul 2003
Posts: 125
Location: China
Kevin_Zheng
Please see the belowing url link:
http://board.flatassembler.net/topic.php?t=197
It supported protect mode demo source code and using pure fasm.
Post 20 Dec 2003, 04:31
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.