Skip to content

Commit

Permalink
Mudando local do executável
Browse files Browse the repository at this point in the history
  • Loading branch information
LorhanSohaky committed Dec 1, 2018
1 parent 272b15d commit 83e77f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
out/
bin/
ralphAssembles.exe
12 changes: 3 additions & 9 deletions make.bat
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
@echo off

set MAIN_FILE=main.asm
set OUT_FILE=jogo.exe
set OUT_FILE=ralphAssembles.exe
set LIBPATH=lib
set DEBUG=1

set OBJ=out/%MAIN_FILE:.asm=.obj%
set LST=out/%MAIN_FILE:.asm=.lst%
set IN=src/%MAIN_FILE%
set OUT=bin/%OUT_FILE%
set OUT=%OUT_FILE%

:prepare
if %DEBUG%==1 (
Expand All @@ -20,10 +20,6 @@ set OUT=bin/%OUT_FILE%
)

:create_directory
if not exist "bin" (
mkdir bin
)

if not exist "out" (
mkdir out
)
Expand All @@ -35,7 +31,5 @@ set OUT=bin/%OUT_FILE%
@echo Linking: %OBJ%
link %LINKFLAGS% %OBJ% /OUT:%OUT%
set /p teste=""
cd bin
jogo.exe
cd ..
ralphAssembles.exe

4 changes: 2 additions & 2 deletions src/jogo.asm
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ JanelaStruct ENDS
terminou BYTE 0
somPulo BYTE "..\assets\pulo.wav",0
somColisao BYTE "..\assets\colisao.wav",0
somPulo BYTE "assets\pulo.wav",0
somColisao BYTE "assets\colisao.wav",0
.CODE

Expand Down
2 changes: 1 addition & 1 deletion src/menu.asm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ sair BYTE "
sairSelecionado BYTE " -> SAIR <- ", 10, 0


musicaMenu BYTE "..\assets\menu.wav",0
musicaMenu BYTE "assets\menu.wav",0



Expand Down

0 comments on commit 83e77f6

Please sign in to comment.