-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
16,152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
@REM Launch dosbox | ||
@REM Add turbo debugger to the DosBox_exe folder manually. | ||
|
||
@REM @echo off is used to hide the commands from the user | ||
|
||
@echo off | ||
|
||
@REM Set the path to the directory where the script is located | ||
|
||
set "ROOT_DIR=%~dp0" | ||
|
||
@REM Set the path to the directory where the main.com file will be placed | ||
set "BIN_DIR=%ROOT_DIR%\DosBox_exe" | ||
|
||
@REM Set the path to the nasm executable | ||
set "NASM=%ROOT_DIR%.\nasm\nasm" | ||
|
||
@REM source code file | ||
set "SRC_FILE=%ROOT_DIR%\src\main.asm" | ||
|
||
@REM Library file | ||
set "LIB_FILE=%ROOT_DIR%\src" | ||
|
||
@REM Set the path to the dosbox executable | ||
|
||
set "DOSBOX_BIN=%ProgramFiles(x86)%\DOSBox-0.74-3\DOSBox.exe" | ||
|
||
@REM Set the path to the dosbox configuration file | ||
set "CONFIG_LOC=%ROOT_DIR%" | ||
|
||
|
||
@REM Execute the dosbox command to go to the DosBox_exe folder | ||
|
||
@REM Execute the nasm command to build the main.com file | ||
@REM Commented the command below if you don't want to build the main.com file before debugging | ||
"%NASM%" "%SRC_FILE%" -f bin -o "%BIN_DIR%\main.com" -i "%LIB_FILE%" | ||
|
||
::"%DOSBOX_BIN%" -conf "%CONFIG_LOC%" | ||
|
||
@REM Mount the DosBox_exe folder as the C drive | ||
@REM Go to the C drive | ||
@REM Clear the screen | ||
|
||
"%DOSBOX_BIN%" -c "MOUNT c %BIN_DIR%" -c "c:" -c "cls" -c "td main.com" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
NASM is now licensed under the 2-clause BSD license, also known as the | ||
simplified BSD license. | ||
|
||
Copyright 1996-2010 the NASM Authors - All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following | ||
conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND | ||
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, | ||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR | ||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR | ||
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Oops, something went wrong.