Jump to content

[Help] Assembler run.batch script to compile?

Vash Baldeus

I am studying Assembler, but after writing the code I need to compile it in DosBox using ASM/LINK/TD in order to compile and then debug it.

Current version:

Screenshot_1.png

 

Now I created a run.bat file with the following code:

SET	d	=	
ASM 	%d%.asm;
LINK	%d%.obj;
TD		%d%

I know it's shit, I am not very experienced in Batch.

Now when I try to type: run [filenamehere]

I get this:

Screenshot_2.png

 

Basically I need to do three commands:

asm [filename].asm;
link [filename].obj;
td [filename]

All I want is to make a batch file that I type: run [filename] and it auto compiles one after the other using the filename I gave.

 

Can anyone help?

Stampede

CPU: R9 5900X

COOLER: Noctua NH-D15

MOBO: X570 Aorus Pro (rev 1.2)

RAM: Corsair Vengeance LPX 4x8GB

GPU: EVGA FTW3 RTX 3080

Link to comment
Share on other sites

Link to post
Share on other sites

pretty sure your problem is using ; to end the line but I could could wrong.

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×