Top "X86-16" questions

For programming and/or microarchitecture questions about the 16-bit x86 Intel CPUs, including the 8088, 8086, and later chips running in 16-bit mode.

Is there a C compiler that targets the 8086?

I have an 8086 CPU emulator. It emulates only 8086 instructions. I am searching now for a C compiler to target this …

c compiler-construction x86 x86-16
Use of TEST instruction with same register

Here is some C, found in a textbook I'm learning: ... do { ... n--; } while (n > 0) ... I assume n is at %…

assembly x86 x86-16 instructions
Program solving expression in assembly

I have a problem with my simple program in assembly. I'm using DOSBox and TASM. The problem is that the …

assembly expression x86-16 tasm dosbox
Assembly 8086 EQU directive

I'm having trouble just making clear EQU directive in assembler (8086). abc EQU xyz Does EQU literally swaps abc when found …

assembly x86-16 emu8086
Calculate Segment:Offset from absolute address

I can calculate an address Segment:Offset as Segment * 0x10 + Offset. But how do I calculate the opposite? E.g. …

assembly x86-16 memory-segmentation
Assembly instruction for setting, clearing OF & TF flags

Are there any assembly instructions to let us directly "set" or "clear" the "OF" and "TF" flags in Intel's 8086 16-bit …

x86 intel flags masm x86-16
the use of ASSUME directive in 8086 instruction set

In my textbook, its given that the ASSUME directive tells the assembler the names of the logical segments to use …

assembly emulation x86-16 directive
Move character from a string to a register in Assembly

I am using dosBox and nasm to run this program. I am trying to write an assembly program that takes …

assembly nasm x86-16 dosbox
How to check if the CF flag is 1 in emu8086?

I am trying to find if the CARRY flag is 1 or not, but I don't know how to check it. …

assembly x86 emu8086 x86-16
Change the background color of dosbox console when executing a tasm program

I am trying to display x in the center of the screen and then change the background color of the …

assembly screen tasm dosbox x86-16