You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my university, we use 16-bit MASM, and for some reason, we need to use DOSBox and other tricks to get our programs to work...
This is what I've suggested to my colleagues to make 16-bit programs work. Surely, there must be a better way to do this.
REM For a better MASM16 development envirornment~~~REM Tested on/with Windows 10 Pro x64, VisualMASM x32 v2.00, DOSBox x32 v0.74REM Supposing you've installed DOSBox and are using VisualMASM's default settingsREM From VisualMASM's toolbar, select "Project > Options > Link Events > Post-link"REM then copy and past this one liner:cmd /C ""C:\Program Files (x86)\DOSBox-0.74\dosbox.exe""%CD%\Projects\Program\Release\program.exe" -noconsole -c "cls""&&exitREM Now, to run MASM16 programs, simply click 'build' or 'run' and DOSBox will start...REM PS: You're a big boy/girl, in case your paths are different, change them by yourself!REM ====================<< EXPLANATION SORTA >>====================REM This longer version is easier to understand and edit.REM It works fine with CMD, but not with VisualMASM's post-link thing, I wonder why...rem Path to DOSBoxrem it can be different depending on your software versions, may need to be edited.SETdosbox="C:\Program Files (x86)\DOSBox-0.74\dosbox.exe"rem The 16-bit resulting program (this is its default path)rem (%CD% refers to VisualMASM's Current working Directory)SETprogram="%CD%\Projects\Program\Release\program.exe"rem Command to open that program with DOSbox. Also, hide its console and clear its logo.rem To better tweak DOSBox read its documentation or manual.SETcommand="%dosbox%%program% -noconsole -c "cls""rem To better tweak the CMD, check `cmd /?` and `start /?`rem Run itcmd /C %command%rem Done executing the program, exit nowrem (Again, for some reason, VisualMASM doesn't close the post-link console.)exit
The text was updated successfully, but these errors were encountered:
In my university, we use 16-bit MASM, and for some reason, we need to use DOSBox and other tricks to get our programs to work...
This is what I've suggested to my colleagues to make 16-bit programs work. Surely, there must be a better way to do this.
The text was updated successfully, but these errors were encountered: