Skip to content

Instantly share code, notes, and snippets.

a patch against gcc-ia16 build scripts (https://github.com/tkchia/build-ia16):
- fix build break at ./build.sh gcc-windows or gcc-djgpp (with elkslibc)
- build GNU libiconv for gcc-windows to support --input-charset and --exec-charset
(before building, wget https://ftp.gnu.org/gnu/libiconv/libiconv-1.17.tar.gz && tar -xzf libiconv-1.17.tar.gz)
diff --git a/build.sh b/build.sh
--- a/build.sh
+++ b/build.sh
@@ -32,6 +32,9 @@ WITHCXX=true
@lpproj
lpproj / .gitattributes
Last active March 27, 2023 12:03
CWSDPMI r7のPC-98対応状況をすこし改善するパッチ
#
*.zip binary
#
# Makefile for OpenWatcom's wmake
# wmake -h -f idedev_ow.mak
#
# WCL/WCC specific options:
# important options for this build:
# -ecc default calling conversion: cdecl (compatible with MS/Borland C)
# -zk0 charset: Shift_JIS (cp932)
# -s remove stack check code
# -k4096 (linker) set default stack size: 4096 bytes
patch against AHASEL98 1.00 (http://offgao.net/program/ahasel98.html)
to build with LSI-C86 3.30c or OpenWatcom C/C++ (wcl)
diff --git a/AHASEL98.C b/AHASEL98.C
index 9e1af56..c99e1a0 100644
--- a/AHASEL98.C
+++ b/AHASEL98.C
@@ -5,10 +5,34 @@
V1.00 2022/06/01 by OffGao
******************************/
NASM 0.98.39 (guess last version for 16bit DOS)
quick fix option "-I path", and option "-f aout" on 16bit compiler.
to build with (Open)Watcom:
wmake -h -u -f Mkfiles\Makefile.wcd
(note option -u is important for Watcom wmake)
diff -urw nasm-0.98.39-org/output/outaout.c nasm-0.98.39/output/outaout.c
--- nasm-0.98.39-org/output/outaout.c 2005-01-16 07:16:08.000000000 +0900
+++ nasm-0.98.39/output/outaout.c 2021-09-30 21:37:27.452276300 +0900
a patch against RaSCSI 1.47
to (minimal) support SCSI-2 compliant LUN (specified by IDENTIFY messages)
only tested on Windows XP + Adaptec SlimSCSI 1450C
desctiption (日本語):
RaSCSIをWindowsに接続したとき、ひとつのIDに0~7まですべてのLUNでドライブが認識されてしまう問題に対する暫定的な修正
history:
2021-01-10 lpproj * test (initial)
patch against RaSCSI 1.47
to (minimal) support of Old 5.25" 650M double-sided MO drive (NEC PC-OD101)
usage:
rasctl -i 1 -c attach -t mo650
rasctl -i 1 -c insert -f /home/pi/single_sided_mo_flat_image
size of image: 305135616 bytes (297984sectors * 1024bytes)
revision:
patch against RaSCSI 1.47
to (minimal) support of Old 5.25" 650M double-sided MO drive (NEC PC-OD101)
usage:
rasctl -i 1 -c attach -t mo650
rasctl -i 1 -c insert -f /home/pi/single_sided_mo_flat_image
size of image: 305135616 bytes (297984sectors * 1024bytes)
revision:
to build djgpp (djgpp-cvs) on msys2 with cross-gcc (i586-pc-msdosdjgpp-gcc for Windows):
$ MAKE=mingw32-make mingw32-make CROSS_BUILD=1 CROSS_PREFIX=/djgpp/bin/i586-pc-msdosdjgpp-
note:
* use mingw32-make (instead of msys2-version of `make.exe')
* need to specify CROSS_BUILD=1 manualy
* may need standalone version of djgpp-mingw-gcc
diff --git a/src/djasm/djasm.y b/src/djasm/djasm.y
BITS 16
CPU 8086
%ifdef TEST
segment .text class=CODE
%else
segment .text
ORG 0
%endif