processor 8086 and real mode


by Ktx20
Tags: 8086, mode, processor, real
Ktx20
Ktx20 is offline
#1
Jun29-11, 04:45 AM
P: 1
Hello
Does anyone know if its true that all software running in real mode must use only 16-bit instructions? is there an authorised sourcet that can aprove od deny it?
Phys.Org News Partner Science news on Phys.org
SensaBubble: It's a bubble, but not as we know it (w/ video)
The hemihelix: Scientists discover a new shape using rubber bands (w/ video)
Microbes provide insights into evolution of human language
rcgldr
rcgldr is offline
#2
Jun29-11, 06:01 AM
HW Helper
P: 6,931
A true 8086 doesn't have 32 bit mode, but you asked about software running in real mode. On a 80386 or any later 32 bit cpu, I'm wondering what happens when a operand size prefix (66 hex) and/or effective address size prefix (67 hex) is used on an instruction in real mode?
SMD1990
SMD1990 is offline
#3
Jul15-11, 10:40 PM
P: 50
No. While in real-address mode on the 80386 and up, software may use the address-size override prefix (0x67) and/or the operand-size override prefix (0x66) to access 32-bit memory addresses and/or operate on 32-bit operands, respectively.

However, please note that, when using the address-size override prefix in real-address mode, the address is still limited to 20 bits (i.e., you can only access up to memory address 0x000FFFFF). That is, unless you switch to unreal mode...

My source? Volume 1: Basic Architecture of the Intel 64 And IA-32 Architectures Software Developer's Manuals. How is that for an authorized source? Straight from the horse's mouth, so to speak, eh?

And, Ktx20, if you are going to be programming in assembly for x86 processors, you should REALLY get familiar with the manuals from Intel.

There might be "educational" books out there, but Intel's PDFs were what I used to learn about the x86 architecture and how to program for it.


Register to reply

Related Discussions
Radiating mode vs Coupled mode leaky cables Electrical Engineering 6
8086 assembly code Electrical Engineering 0
Outputting to the parallel port (assembly 8086) Engineering, Comp Sci, & Technology Homework 4
Help choosing a real-time processor Electrical Engineering 3
Single Mode to Multi-mode back to Single Mode Electrical Engineering 0