;========================= ;39H = ANGKA ;5AH = HURUF BESAR (A-Z) ;7AH = HURUF KECIL ;30H = KARAKTER ;======================== CODE_SEG SEGMENT ASSUME CS:CODE_SEG ORG 100H START: JMP MULAI TEXT_INPUT DB 13,10,'INPUT TOMBOL=$' TEXT_ANGKA DB 13,10,'INPUT=ANGKA$' TEXT_HURUF_KECIL DB 13,10,'INPUT=HURUF KECIL$' TEXT_HURUF_BESAR DB 13,10,'INPUT=HURUF BESAR$' TEXT_KARAKTER DB 13,10,'INPUT=KARAKTER$' MULAI: MOV AH,09H MOV DX,OFFSET TEXT_INPUT INT 21H MOV AH,01H INT 21H CMP AL,30H JB TAMPIL_KARAKTER CMP AL,39H JB TAMPIL_ANGKA CMP AL,41H JB TAMPIL_KARAKTER CMP AL,5AH JB TAMPIL_HURUF_BESAR CMP AL,61H JB TAMPIL_KARAKTER CMP AL,7AH JB TAMPIL_HURUF_KECIL MOV AH,09H MOV DX,OFFSET TEXT_KARAKTER INT 21H INT 20H TAMPIL_ANGKA: MOV AH,09H MOV DX,OFFSET TEXT_ANGKA INT 21H INT 20H TAMPIL_HURUF_BESAR: MOV AH,09H MOV DX,OFFSET TEXT_HURUF_BESAR INT 21H INT 20H TAMPIL_HURUF_KECIL: MOV AH,09H MOV DX,OFFSET TEXT_HURUF_KECIL INT 21H INT 20H TAMPIL_KARAKTER: MOV AH,09H MOV DX,OFFSET TEXT_KARAKTER INT 21H INT 20H CODE_SEG ENDS END START