Qbasicnews.com

Full Version: dos batch files help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi. i want to open up debug and it to go into asm (a) you know.

DEBUG
-a
blah:blag


how would i go and do this?
batch files execute dos commands, they can't type into a program for you.
Quote:batch files execute dos commands, they can't type into a program for you.
hmm. you sure? darn. oh well. nevermind.
Not unless the program allows for an entire file to be input from the command line (I'm not sure if debug allows this)

Just get tasm or masm or nasm to do your asm programming.
Quote:...Just get tasm or masm or nasm to do your asm programming.
whats the difference between them??
Quote:Not unless the program allows for an entire file to be input from the command line
Remember those programs that take asm and convert it to CALL ABSOLUTE statements? I think they passed a filename to debug, so debug does support something like that.

I agree with Ninkazu, just get masm. It's legal (I think - does anybody here know?) and free to get at http://www.masm32.com (yeah I know, the site looks cheap, but the package really does include and use Microsoft's assembler)

EDIT: Masm and tasm are similar to debug's syntax. Nasm is free, open source, and GPL, but it has a very weird syntax.

Masm supports stuff like this:
Code:
.IF AX == BX && CX != DX
     MOV  AX, blah
.ENDIF
Tasm doesn't, but it has a special syntax you can enable called ideal that is a little more consistant and logical, and only slightly different from masm (it mostly the way square brackets [] are used).
If you really want to use Debug, There's an application made by L_O_J that allows you to have variables using Debug and outputs opcodes for Call Absolute. It even makes the necessary Sub to call it. ;*)

Yeah, we used it to make AFLib. ;*)

It's called Scratch.