Skip to content

Commit

Permalink
Protype added to the main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisLasselin committed Dec 11, 2023
2 parents af3e2e4 + 7ff2298 commit bb6fca2
Show file tree
Hide file tree
Showing 15 changed files with 16,152 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*.i*86
*.x86_64
*.hex
*.com

# Fortran module files
*.mod
Expand Down Expand Up @@ -60,6 +61,9 @@ Thumbs.db
*.cache
*.ilk
*.log
*.tdh
*.sys
*.c
[Bb]in
[Dd]ebug*/
*.sbr
Expand Down
Binary file added DosBox_exe/main.com
Binary file not shown.
44 changes: 44 additions & 0 deletions debugMode.cmd
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 added nasm/.add-nasm-here
Empty file.
29 changes: 29 additions & 0 deletions nasm/LICENSE
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.
Loading

0 comments on commit bb6fca2

Please sign in to comment.