opencode.energia.arti.ee 68f873784b
Build / Linux (push) Waiting to run
tms34010: run TI TMS34010 OS/2 tools (gspa/gsplnk/gsprom) under 2ine
Fixes needed to run the 1990 TI 'TMS340 Family Code Generation Tools r5.01'
(16-bit OS/2 1.x NE, DOSCALLS-only) on 2ine:

* CMake: fall back to the system SDL2 headers when /usr/local/include/SDL2
  is absent; the hard-coded path broke the build on stock distros.

* doscalls16: implement the entry points these tools import
  - Dos16GetDateTime (33) with the OS/2 1.x *hours-first* 10-byte layout
    (the year-first 8-byte layout crashes gspa in asctime/localtime)
  - Dos16NewSize (68)
  - Dos16GetHugeShift (135) / Dos16HugeIncr (136)
  - Dos16CreateCSAlias (43), Dos16DevConfig (52), Dos16Move (67)

* lx_loader: walk NE fixup chains to the segment's 64K virtual size instead
  of its file size, so fixups pointing into the BSS tail are applied. gspa
  segfaulted in a lcall to its CRT exit handler because of this.

* doscalls: do not assert that the host PID fits in 16 bits (pid_max is
  4194304 on current kernels); the 16-bit API truncates anyway.

Verified: gspa assembles a 2,412-line TMS34010 source with 'No Errors,
No Warnings', gsplnk links it with rts.lib, gsprom converts to Tek-hex.
The C compiler child (gspac via gspcl) still hits the lxConvert1616to32
selector assertion; see TMS34010.md.
2026-10-31 20:50:11 +00:00
2021-07-03 17:06:43 -04:00
2018-07-11 01:13:42 -04:00
2018-02-26 12:54:16 -05:00
2018-07-10 02:00:31 -04:00
2022-01-29 16:35:17 -05:00
2021-07-02 16:36:33 -04:00

2ine

What is this?

It's a program that loads and runs OS/2 .exe files on Linux.

Does it work?

Barely. It runs some command line OS/2 apps.

Why?

Because.

Does it work on Mac OS X?

No.

I have questions.

I have answers: icculus@icculus.org

--ryan.

S
Description
2ine with fixes for the TI TMS34010 OS/2 toolchain
Readme Zlib
1.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 73.4%
Perl 25.9%
CMake 0.6%