All pastes #477938 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-08 22:29 UTC
rendered paste body
		LEA SI, STRING2
	
compare:
		CMP KB_DATA[BX], '$'
		JE done			;end of string
		CMP KB_DATA[BX], 20h
		JE found
		MOV AH, KB_DATA[BX]
		MOV [SI], AH
		INC BX
		INC SI
		
found:
		INC BX
		jmp compare
	
done:
		
		MOV AH, 09H
		LEA DX, MSG2
		INT 21h
		
		MOV AH, 09H
		LEA DX, STRING2
		INT 21h