Is real mode limited to 16-bit instructions on the 8086 processor?

  • Thread starter Thread starter Ktx20
  • Start date Start date
  • Tags Tags
    Mode Processor
AI Thread Summary
In real mode, all software must use 16-bit instructions on a true 8086 processor. However, on 80386 and later 32-bit CPUs, it is possible to utilize address-size (0x67) and operand-size (0x66) override prefixes to access 32-bit memory addresses and perform operations on 32-bit operands while still in real mode. Despite this capability, the address remains limited to 20 bits, allowing access only up to memory address 0x000FFFFF unless the system switches to unreal mode. The information is corroborated by the Intel 64 and IA-32 Architectures Software Developer's Manuals, which serve as an authoritative source for understanding x86 architecture and programming. Familiarity with Intel's official documentation is recommended for anyone programming in assembly for x86 processors.
Ktx20
Messages
1
Reaction score
0
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?
 
Computer science news on Phys.org
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?
 
Last edited:
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 http://www.intel.com/products/processor/manuals/" .

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.
 
Last edited by a moderator:
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Back
Top