From f6d2141a480dd6b5b8ee0e48d43bb64773232791 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 26 Mar 2024 23:38:14 -0600 Subject: add header ids --- ...24-03-15-setting-up-macos-for-8088-dos-dev.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html') diff --git a/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html b/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html index bb37d00..5fd5c48 100644 --- a/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html +++ b/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html @@ -6,13 +6,13 @@ - Cross-Compiling Hello World for DOS on macOS + id="cross-compiling-hello-world-for-dos-on-macos">Cross-Compiling Hello World for DOS on macOS - - + Cross-Compiling Hello World for DOS on macOS" /> + Cross-Compiling Hello World for DOS on macOS" /> @@ -44,12 +44,12 @@
-

Cross-Compiling Hello World for DOS on macOS

+

Cross-Compiling Hello World for DOS on macOS

Technically this should work for any platform that OpenWatcom 2 supports compiling binaries for. Some instructions are based on a post at retrocoding.net, and John Tsiombikas's post

-

Prerequisites

+

Prerequisites

You should already have XCode / Command Line Tools, and Homebrew installed. To compile Open Watcom for DOS you will need DOSBox (I use DOSBox-X).

@@ -58,7 +58,7 @@ -

Compiling Open Watcom v2

+

Compiling Open Watcom v2

If this process is super annoying, I might make a custom homebrew tap to build and install Open Watcom

@@ -115,9 +115,9 @@ cp open-watcom-v2/setvars.sh custo

Then, when you need to load up these variables, you can simply run source exportVarsForDOS.sh or . exportVarsForDOS.sh

-

Hello World

+

Hello World

-

Buliding without any Makefiles

+

Buliding without any Makefiles

Create a new file called example1.c

@@ -163,7 +163,7 @@ creating a DOS If you want to test this executable, jump to the section titled Testing with DOSBox-X below.

-

Simple Makefile

+

Simple Makefile

obj = main.o hello.o
@@ -251,7 +251,7 @@ creating a DOS 
-

Using CMake

+

Using CMake

Create a file called CMakeLists.txt

@@ -289,7 +289,7 @@ creating a DOS There you have it. Three different ways to compile a C program on a macOS device in 2024 that can run on an IBM PC 5150 (which was released in 1981!)

-

Testing with DOSBox-X

+

Testing with DOSBox-X

cp example1.exe ~/Downloads
-- 
cgit v1.2.3