Questions tagged [80286]

Questions with this tag should be about code targeting this processor. The Intel 80286 is a 16-bit microprocessor that was introduced in 1982.

The Intel 80286 is a 16-bit microprocessor that was introduced in 1982. It had backwards compatibility with the earlier Intel 8086 and 8088 processors, and was the most widely used processor from the introduction of the IBM PC/AT in 1984 through the earlier 1990s.

An important innovation with this processor was the introduction of protected mode, Protected mode introduced privilege rings, which allows architectures to limit functionality of programs into rings - for example user mode and kernel mode.

5 questions
6
votes
1 answer

Why do I get triple fault when trying to handle an exception on 286 but not on a modern CPU nor Bochs?

I'm trying to initialize protected mode with exception handling on an AMD 286 system. I've debugged the code below on Bochs, and it works fine there. So does it when run on a Pentium 4 machine. But on the 286 it simply triple faults when it gets to…
Ruslan
  • 18,162
  • 8
  • 67
  • 136
4
votes
1 answer

Assembly Instructions: AAA

I am looking at the pseudo-code: The Hidden Power of BCD Instructions. Here's a snippet of the contents of the website: So, let's take a look at what AAA does. Here is the pseudo-code equivalent (from Intel): IF ((AL AND 0FH) > 9) OR (AF =…
supmethods
  • 525
  • 6
  • 18
3
votes
2 answers

COM executables with Open Watcom

I'm trying to make a small utility for an old i286 machine running PC-DOS and the target format a plain COM executable. The compiler choice has been Open Watcom and, on the documentation it says it can link DOS .COM files but documentation is…
NeonMan
  • 623
  • 10
  • 24
2
votes
1 answer

compile bootloader with open watcom for 286 cpu

im trying to build myself a small bootloader/program for my old 286. i started doing this with fasm and quickly grew tired of writing assembly. so i figured i want to write it in c instead, but the choice of c toolchains targeting 286 seems to be…
fredlllll
  • 75
  • 8
0
votes
2 answers

How to program in 16 bit protected mode with more than 64kb of data?

I want to write some code for the 16 bit protected mode, specifically a simple operating system with some programs. I know this sounds silly and it probably is, but I'm interested in understanding how to write programs under these constraints. I'd…
fuz
  • 88,405
  • 25
  • 200
  • 352