I'm using TASM for a class, and we're learning from Irvine's book, which uses MASM.
Thus, for things specific to TASM, I have to wait for the professor to give us packets on the commands/parameters. I've emailed my professor, but she only "gets" her email when she needs something from me.
All I have to work with at present is a batch file I've written from the first packet, which is primarily this:
tasm/l/n/z gn
tlink/3/m/v gn
gn
I'm now trying to do the equivalent of "#include" and I'm having some problems. What exactly is the syntax for this presuming I use
call Random
in my main file and have something like this procedure:
;--------------------------------------------------------------
Random proc
;
; Returns an unsigned pseudo-random 8-bit integer
; in AL,in the range 0 - 9.
; Last update: 9/23/04
;--------------------------------------------------------------
.data
.code
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Get system seconds ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
mov ah,2Ch
int 21h
mov al,dh ;; is now 0-59 (dh is seconds)
cmp al,10
jc DONE ;; if al < 10 jump to done
DECR_LOOP:
sub al,10
cmp al,9
jc DONE
jmp DECR_LOOP
DONE:
ret
Random endp
I've tried
include proc.asm
after the .stack/.model directives which removes some errors but not all. What parameters am I missing in the bat file and in the proc.asm?