Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org 100h
- .data
- .code
- ; JZ - jump if zero
- ; JNZ - jump if not zero
- ; JZ nume_label
- mov al, 5
- mov bl, 2
- and ah,ah
- mov ah,1
- int 21h
- sub al, 30h
- jnz impar ; daca este 0 intra pe if adica pe par
- par:
- mov dl, 'P'
- jmp endif
- impar:
- mov dl, 'I'
- jmp endif
- endif:
- mov ah, 2
- int 21h
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement