Lab 5

mail@pastecode.io avatar
unknown
assembly_x86
a year ago
406 B
3
Indexable
Never
include Irvine32.inc
.data 
myID BYTE "111502551";
myID2 BYTE "111502563";
size_ID = 9
result BYTE 9 DUP(?)
.code 

main PROC 
	mov esi, 0
	mov ecx, size_ID
L1:
	movzx ax, myID[esi]
	movzx bx, myID2[esi]
	cmp ax,bx	
	ja L2
	jb L3
	mov result[esi],41h
	jmp L4
L2:
	mov result[esi], 42h
	jmp L4
L3:
	mov result[esi], 43h
	jmp L4
L4:
	inc esi
	loop L1
	exit
main ENDP 
END main