[rec.music.synth] MIDI Assembly Code...

v097pba8@ubvmsd.cc.buffalo.edu (Ken F Morton) (02/19/91)

	I just found a book called _C_Programming_for_MIDI_, by Jim Conger
that has a I/O assembly routine that I just can't get to compile.  I get
a error message 10/syntax, which I have no idea how to fix.  The lines
in question are macro calls with in a _definition for calling from C.

(IBM PC)
The macro is:
SAVESTK		MACRO		;MACRO TO SAVE REGS FOR C FUNCTION
		PUSH	BP
		MOVE	BP,SP
		PUSH	DI
		USH	SI
		ENDM
and where it's called looks like:
_putcmd		PROC
		SAVESTK
BTW, I'm using MS assembler 4.0

	Anyway, can someone direct me to an FTP site for such .obj code,
toolkits, etc for MIDI?
			
			Thanks...

				Ken Morton
				v097pba8@ubvmsd.cc.buffalo.edu

dbell@cup.portal.com (David J Bell) (02/20/91)

Ken...

If you have correctly entered the code you are trying:

>SAVESTK		MACRO		;MACRO TO SAVE REGS FOR C FUNCTION
>		PUSH	BP
>		MOVE	BP,SP
>		PUSH	DI
>		USH	SI
>		ENDM

.....   That should be PUSH    SI, not  USH   SI

Dave