Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Building MS-DOS 2.00's DEBUG (version 2.30) (Announce)

posted by neozeed(R), 05.10.2018, 07:57

> As I specified in https://github.com/stsp/dosemu2/issues/680 I went and
> tried building the MS-DOS 2.00 source's DEBUG. (MS-DOS 2.00 was recently
> released under the MIT license, see
> https://blogs.msdn.microsoft.com/commandline/2018/09/28/re-open-sourcing-ms-dos-1-25-and-2-0/
> )
>
> Without LOADFIX, the included MASM 1.10 (albeit technically "free software"
> now, this is given as a binary only) errors out with "Out Of Memory" on
> some files. Eric suggested it may be due to using memory in the first 64
> KiB of the LMA. With FreeCOM's LOADFIX either MASM and/or my batch file
> crash or hang, though. As an alternative, I loaded up my lDebug, entered
> TSR mode ("tsr"), and insured with "dm" that the memory behind the debugger
> is above 64 KiB. Then I run with "g", which causes the debugged process to
> terminate and returns to the shell, now with lDebug resident.
>
> After that a few more problems occurred, but I solved all of them and made
> scripts (one for building in DOS, which I run in dosemu2, and the other for
> packing the archive in bash on Linux) to build and package DEBUG version
> 2.30.
>
> I uploaded my repository (based on Microsoft's) to
> https://bitbucket.org/ecm/msdos2 and also put an archive with the binary
> (and object and listing files) to
> https://bitbucket.org/ecm/msdos2/downloads/ (Make sure to use debug.com
> though; debug.exe is only included here as an intermediate object file and
> doesn't work correctly when run directly.)


I've been using MS-DOS player to stage stuff.. and building debug seemed straight forward..

call m DEBASM
call m DEBCOM1
call m DEBCOM2
call m DEBCONST
call m DEBDATA
call m DEBEQU
call m DEBMES
call m DEBUASM
call m DEBUG
..binlink @deblink
..binexe2bin debug.exe debug.com


C:projdos2v2.0source>type m.cmd
..binmasm %1 %1.obj %1.lst %1.crf


and it appears to run 'okay'

-uprojdos2v2.0source>..binmsdos debug command.com
0B61:0100 E9CD0B JMP 0CD0
0B61:0103 0000 ADD [BX+SI],AL
0B61:0105 0000 ADD [BX+SI],AL
0B61:0107 0000 ADD [BX+SI],AL
0B61:0109 0000 ADD [BX+SI],AL
0B61:010B 0000 ADD [BX+SI],AL
0B61:010D 0000 ADD [BX+SI],AL
0B61:010F 0000 ADD [BX+SI],AL
0B61:0111 0000 ADD [BX+SI],AL
0B61:0113 0000 ADD [BX+SI],AL
0B61:0115 0000 ADD [BX+SI],AL
0B61:0117 0000 ADD [BX+SI],AL
0B61:0119 0000 ADD [BX+SI],AL
0B61:011B 0000 ADD [BX+SI],AL
0B61:011D 0000 ADD [BX+SI],AL
0B61:011F 0000 ADD [BX+SI],AL
-g


TeleVideo Personal Computer DOS Vers. 2.11
(C) Copyright TeleVideo Systems, Inc. 1983
(C) Copyright Microsoft Corp. 1981, 1982, 1983

C:PROJDOS2V2.0SOURCE>exit

Program terminated normally
-q


So yeah.... I'm using Microsoft MASM v3, and the included Microsoft Link 2. MS-DOS Player has flags like -e to reduce the environmnet, -m to restrict free memory enable or disable EMS/XMS and my favorite is to 'bind' an exe to run on Win32/Win64.

 

Complete thread:

Back to the forum
Board view  Mix view
15673 Postings in 1427 Threads, 259 registered users, 5 users online (0 registered, 5 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum