This will build, and then copy everything to the rel directory inside open-watcom-v2 directory. Since I ran this on an Apple Silicon Mac,
+ all the binaries for me are in the armo64 directory. You can now move everything inside the rel folder to another location, or create a simple
+ script to init all variables whenever you want.
+
+
I like having a script called exportVarsForDOS.sh
+
+
+
#!/bin/zsh
+
+exportWATCOM=/Users/navanchauhan/Developer/8088Stuff/open-watcom-v2/rel
+exportPATH=$PATH:$WATCOM/armo64
+exportEDDAT=$WATCOM/eddat
+
+# For DOS 8088/8086 development
+exportINCLUDE=$WATCOM/h
+exportLIB=$WATCOM/lib286# You don't really need this
+
+
+
+
Then, when you need to load up these variables, you can simply run source exportVarsForDOS.sh or . exportVarsForDOS.sh
In DOSBox-X we now mount the ~/Downloads folder as our C: drive
+
+
mount C ~/Downloads
+
+
+
Switch to the C drive
+
+
C:
+
+
+
Run the program:
+
+
example1
+
+
+
+
+
My DOSBox setup might look slightly different than yours...
+
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
--
cgit v1.2.3
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 @@
-
@@ -289,7 +289,7 @@ creatingaDOS 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
cpexample1.exe~/Downloads
--
cgit v1.2.3
From 9e620084e57378952c1a7f8e0a772ebebd18932b Mon Sep 17 00:00:00 2001
From: Navan Chauhan
Date: Wed, 27 Mar 2024 20:35:09 -0600
Subject: quick fix
---
docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html | 6 +++---
1 file changed, 3 insertions(+), 3 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 5fd5c48..7fcece6 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 @@
- 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" />
- Cross-Compiling Hello World for DOS on macOS" />
+
+
--
cgit v1.2.3
From 01ff93c9c16867216f2d249664803860e1d6d5eb Mon Sep 17 00:00:00 2001
From: Navan Chauhan
Date: Wed, 27 Mar 2024 22:49:40 -0600
Subject: generate new theme
---
...24-03-15-setting-up-macos-for-8088-dos-dev.html | 55 +++++++++++++++-------
1 file changed, 37 insertions(+), 18 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 7fcece6..502d4c9 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
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Cross-Compiling Hello World for DOS on macOS
+
+
+
+
+
+
+
- Cross-Compiling Hello World for DOS on macOS
-
@@ -29,21 +41,27 @@
-
-
Technically this should work for any platform that OpenWatcom 2 supports compiling binaries for. Some instructions are based on a post at retrocoding.net,
@@ -316,14 +334,15 @@ creatingaDOSMy DOSBox setup might look slightly different than yours...
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.