6 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
73
views
NASM+WCC+WLINK (OW 1.9): strange error addressing CONST data (wrong/even addressing)
I'm porting a tiny experimental 80286 kernel from pure assembler (NASM) to assembler+C (NASM+Open Watcom 1.9). Boot sector code loads the BIN kernel image at address 0x010000 and then jumps to that ...
2
votes
1
answer
378
views
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 ...
6
votes
1
answer
368
views
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 ...
4
votes
1
answer
6k
views
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 (...
3
votes
3
answers
1k
views
How to create a DOS COM executable with OpenWatcom
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 ...
0
votes
2
answers
662
views
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 ...