Page 3 - LKPD 5
P. 3
MSG1 DB 'For Add type :'1'$'
MSG2 DB 10,13,'For Sub type :'2'$'
MSG3 DB 10,13,'For Mul type :'3'$'
MSG4 DB 10,13,'For Div type :'4'$'
MSG5 DB 10,13,'Choose Any One:$'
MSG6 DB 10,13,10,13,'Enter 1st Number:$'
MSG7 DB 10,13,'Enter 2nd Number:$'
MSG8 DB 10,13,10,13,'The Result is:$'
MSG DB 10,13,10,13,' ***THANK YOU FOR USING MY
APP***$'
NUM1 DB ?
NUM2 DB ? Bagian tampilan awal menu dari aplikasi
RESULT DB ?
kalkulator, saat program di run, maka
.CODE bagian inilah yang akan muncul terlebih
MAIN PROC
dahulu. Bagian ini yang harus kalian
MOV AX,@DATA modifikasi di di tugas dengan merubah
MOV DS,AX
bahasanya menjadi Bahasa indonesia
LEA DX,MSG1
MOV AH,9
INT 21H
LEA DX,MSG2
MOV AH,9
INT 21H
Bagian control program, yang menjadi
LEA DX,MSG3
syntak utama program ini
MOV AH,9
INT 21H
LEA DX,MSG4
MOV AH,9
INT 21H
2