I have an old project targeting DOS (yes, really) which I need to update and re-compile. The project is using the Open Watcom 1.9 C / C++ compilers an ...
I have an old project targeting DOS (yes, really) which I need to update and re-compile. The project is using the Open Watcom 1.9 C / C++ compilers an ...
I'm compiling this C source with OpenWatcom V2 wcc: In the disassebly of the .obj file generated by wcc the 6 pushes and the 5 pops don't balance o ...
Here is a short C file cu.c: When I compile it with OpenWatcom to a DOS .com file, the result is almost 3 KiB: The smallest possible DOS .com fi ...
I've created the following DOS .exe file with OpenWatcom: Regions: 0x0...0x1c: DOS .exe header. 0x1c...0x20: 4 bytes of padding. 0x20...0x2 ...
I'm trying to create a small DOS .exe program. I wrote the entry point in NASM assembly Please note that I'm not sure how the ..start: code and the ...
Is it possible to do a #define NORETURN(x) macro that works with the Open Watcom C compiler (not C++)? Based on the fine manual I have this file test ...
I am compiling and running binaries (boot sector, stage 1, stage 2) for practice. The boot sector is asm and the first stage is asm which run fine. Th ...
I have a peculiar set of makefiles in a legacy project. They are processed by the Watcom make, but they seem to have the NMAKE file format. I frequent ...
I would like to compile a Photoshop Filter plugin with OpenWatcom. The code already exists and works perfectly with Visual Studio. The function looks ...
How can I get the Watcom compiler (the forked version 2.0 beta which runs on 64-bit hosts) to output 8086 assembly source code in an ASM file? Running ...
I'm trying to run a dos/4gw application in Win7 32 bit OS. I'm getting the following error message, DOS/4GW fatal error (1307): not enough memory Whe ...
So I recently discovered the use of map and vectors, however, I'm having trouble of trying to figure a way to loop through a vector containing strings ...
I'm creating a program on DOS using the FreeRTOS kernel which allows me to render multiple windows onto the screen that contains its own text user int ...
I've been working on creating my own GUI library for MS-DOS on my free time and I got stuck on how I can implement an array that would contain structu ...
This program works incorrect in visual Fortran (incorrect): Result in WATCOM (correct): Why? ...
Today, I have learned that the SEG operator in MASM by default returns the address of the GROUP and not the address of the SEGMENT of the expression i ...
I am trying to produce 16-bit DOS executables, but using the gcc compiler. So I am using the ancient gcc-4.3 ia16 port. I made a Docker image of my bu ...
I wrote a boot loader in NASM which is load a 64kb program data from the disk into the memory starts by address 0060:0000 [SEG:OFF]. I had tested this ...
I have matrix declaration implemented as follows: Those are all global variables. This code compiles fine. Basically, the "pointers" holds the add ...
I have a simple (extreme simple) real mode kernel written in assembly that I am trying to port to C as much as I can. In order to do that I am using O ...