'Contoh Source Code assembler (part 1)
.model small
.code
org 100h
Mulai :
jmp proses
bilA db 10
bilB db 38
Proses:
mov al,bilA
cmp al,bilB
je sama
ja kecil
jb besar
sama : mov ah,02h
mov dl, 41h
mov cx,03
ulangs:
int 21h
inc dl
loop ulangs
int 20h
kecil : mov ah,02h
mov dl, 61h
mov cx,03
ulang:
int 21h
inc dl
loop ulang
int 20h
besar : int 20h
End mulai