ok so here's the code:
assume cs:code, ds:data
data segment
sname db 'Some Name','$'
len equ $-sname
ascii db 'a'-'A'
data ends
code segment
start:
mov ax,data
mov ds,ax
cld
lea si,sname
do_this:
lodsb
cmp al,61h
jae lowercase
uppercase:
cmp si,len
je the_end
jmp continue
lowercase:
mov bl,ascii
sub ax,bx
mov ds:[si-1],al
cmp si,len
je the_end
continue:
loop do_this
the_end:
mov ax,0000
lea dx,sname
mov ah,09h
int 21h
mov ax,4c00h
int 21h
code ends
end start
Basically it just converts all lowercase letters of the string 'sname' into uppercase. My question is, how do i split this code into 2 modules, one of which will handle the string printing part. Specifically, i want an .asm module that handles the string conversion to uppercase, and one that handles :
lea dx,sname
mov ah,09h
int 21h
I can't seem to find any good tutorials on this so if you could point me towards some, it would be much appreciated, and if not, a simple example of how to put 2 .asm modules together ( what directives are required, etc ) , would be great.