Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] x86 and windows questation

Status
Not open for further replies.

sagar474

Full Member level 5
Joined
Oct 18, 2009
Messages
286
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,318
Location
India,kakinada
Activity points
3,122
what is win32 application
then dose windows run in real mode or in protected mode
but in real mode we can use only 16 bit registers.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
48,181
Helped
14,200
Reputation
28,659
Reaction score
12,889
Trophy points
1,393
Location
Bochum, Germany
Activity points
279,145
As the name suggests, it uses 32 bit registers (and wide memory space), which already answers your question.

Windows still provides a 16-Bit subsystem to support old real mode Windows and DOS applications. You can e.g. start the good old real mode DOS debugger in a command window and feel like 30 years back in time ...
 

srizbf

Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,995
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
windows application is a 32bit application.
windows run in protected mode.
 

sagar474

Full Member level 5
Joined
Oct 18, 2009
Messages
286
Helped
5
Reputation
10
Reaction score
5
Trophy points
1,318
Location
India,kakinada
Activity points
3,122
if windows runs under protected mode how this program can work


TITLE ch04p8 This is the string
.MODEL small
.data

message db "This is the string",0dh,0ah,'$'

.code
main proc

mov ax,@data
mov ds,ax

mov ah,9
mov dx, offset message
int 21h
mov ax,4C00h
int 21h
main endp

end main
 

srizbf

Advanced Member level 5
Joined
Apr 3, 2010
Messages
1,995
Helped
417
Reputation
840
Reaction score
328
Trophy points
1,363
Activity points
10,985
under protected mode , it switches to 'virtual 86' mode for that program.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top