Questions tagged [ia16-gcc]

ia16-gcc is a an unofficial port of the GCC/G++ toolchain that targets 16-bit code running on 8086/80186/80286 class Intel CPUs with additional support for chips produced by manufacturers like NEC.

ia16-gcc has support for 16-bit real mode in the tiny, small, and medium memory models. There is some support for code that runs in 16-bit protected mode. The linker can produce code for DOS MZ executables, and DOS COM files. Programs can also be generated that target Embedded Linux Kernel Subset (ELKS). The ia16-gcc project has been developed by TK Chia, Rask Ingemann Lambertsen, Andrew Jenner, and various contributors.

At this time ia16-gcc is experimental and shouldn't be used for mission critical applications.

2 questions
6
votes
1 answer

What do the constraints "Rah" and "Ral" mean in extended inline assembly?

This question is inspired by a question asked by someone on another forum. In the following code what does the extended inline assembly constraint Rah and Ral mean. I haven't seen these before: #include void tty_write_char(uint8_t inchar,…
Michael Petch
  • 46,082
  • 8
  • 107
  • 198
1
vote
1 answer

Programmable Interrupt Controller: PIC1 and PIC2 are not returning zeros in real mode

Hyper-V output: Code: /*PIC Definition*/ #define PIC1 0x20 /* IO base address for master PIC */ #define PIC2 0xA0 /* IO base address for slave PIC */ #define PIC1_COMMAND PIC1 #define PIC1_DATA (PIC1+1) #define…
Zack Ni
  • 179
  • 3
  • 8