Hi

I am learning and i am getting an "Illegal Instruction Error" from TASM compiler. What does it mean?


Code:
text 	segment
assume	CS:text,DS:data

VirtualReplace proc ptrString ;pass parameters
	;looping...
	mov SI,0
	mov CX,2

scroll: ;we are scrolling
	inc SI ;increase counter...
	mov ptrString[SI], 30	
	loop scroll	   
endp

begin:
   mov AX,data ;create data segment
   mov DS,AX   ;move AX to DX
   ;This is where the error happends
   VirtualReplace ptr offset hello
   mov AH,09h  ;screen output
   lea DX,hello ;move output
   int 21h     ;call dos
   mov AH,4Ch  ;finished!
   mov AL,0    ;code 0 - success
   int 21h     ;call dos
text   ends
data	segment
symbols db 233 dup('*')
crlf      db 10,13,'$'
hello   db 'hi!$'
data	ends
stk	segment stack
	db 256 dup (0)
stk ends
	end	begin