WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
What is FASM G
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

Converting .asm programs from 16-bit to 32-bit, I have a 16-bit program called Alarm.asm and I want to convert it to 32-bit

lordbyronmtg
Quote Post


New Member
*

Group: Members
Posts: 1
Member No.: 61181
Joined: 17-March 14


Sponsored Links
How do I convert a 16-bit MASM program to 32-bit? I have a 16-bit program called Alarm.asm and I want to convert it to 32-bit.
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2335
Member No.: 160
Joined: 22-June 04


this is not so simple as sounds.

16-bit programs (MS DOS) are quiet different against 32-bit (Win32): they use not only 32-bit registers, but have different format and communicate with OS in different way.

MS DOS programs use software interrupts (say, int 21h) to invoke OS functions, while Win32 console program uses WinAPI calls.

Also, program with name "Alarm" may appear a resident (TSR)

Anyway, it may be possible: try to make Win32 console "hello world" program at first. If succeed then try to implement similar algorithm as in 16-bit program, to replace DOS interrupts search win32 help for API functions which are similar.
PMEmail PosterUsers Website
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google