12345

  • Uploaded by: Handaru Pudy Astowo
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View 12345 as PDF for free.

More details

  • Words: 189
  • Pages: 2
;========================= ;39H = ANGKA ;5AH = HURUF BESAR (A-Z) ;7AH = HURUF KECIL ;HANDARU PUDY ASTOWO ;E11.2008.00280 ;======================== CODE_SEG SEGMENT ASSUME CS:CODE_SEG ORG 100H START: JMP MULAI MSG DB 13,10,'INPUT TOMBOL=$' MSG1 DB 13,10,'INPUT=ANGKA$' MSG2 DB 13,10,'INPUT=HURUF KECIL$' MSG3 DB 13,10,'INPUT=HURUF BESAR$' MULAI: MOV AH,09H MOV DX,OFFSET MSG INT 21H MOV AH,01H INT 21H CMP AL,39H JB TAMPIL_ANGKA CMP AL,5AH JB TAMPIL_HURUF_BESAR CMP AL,7AH JB TAMPIL_HURUF_KECIL TAMPIL_ANGKA: MOV AH,09H MOV DX,OFFSET MSG1 INT 21H INT 20H TAMPIL_HURUF_BESAR: MOV AH,09H MOV DX,OFFSET MSG3 INT 21H INT 20H TAMPIL_HURUF_KECIL: MOV AH,09H MOV DX,OFFSET MSG2 INT 21H INT 20H CODE_SEG ENDS END START

;NAMA = AEROBI WIDYANTO ;NIM = E11.2008.00280 CODE_SEG SEGMENT ASSUME CS:CODE_SEG ORG 100H START:JMP MULAI TEXT_INPUT DB 'INPUT TOMBOL=$' TEXT_ANGKA DB 'INPUT=ANGKA$' TEXT_HURUF_KECIL DB 'INPUT=HURUF KECIL$' TEXT_HURUF_BESAR DB 'INPUT=HURUF BESAR$' MULAI:

MOV DX,OFFSET TEXT_INPUT MOV AH,09H INT 21H MOV AH,01H INT 21H CMP AL,3AH JB TAMPIL_ANGKA CMP AL,5BH JB TAMPIL_HURUF_BESAR CMP AL,7BH JB TAMPIL_HURUF_KECIL

TAMPIL_ANGKA: MOV DX,OFFSET TEXT_ANGKA MOV AH,09H INT 21H INT 20H TAMPIL_HURUF BESAR: MOV DX,OFFSET TEXT_HURUF_BESAR MOV AH,09H INT 21H INT 20H TAMPIL_HURUF_KECIL: MOV DX,OFFSET TEXT_HURUF_KECIL MOV AH,09H INT 21H INT 20H CODE_SEG ENDS END START

Related Documents

12345
June 2020 12
12345
November 2019 24
12345
November 2019 22
12345
October 2019 29
12345
May 2020 15
12345
June 2020 17

More Documents from "Handaru Pudy Astowo"

12345
June 2020 17
Angka Dan Bukan Angka
June 2020 22
39h
June 2020 16
Perkembangan Sms
July 2020 17
Pertemuan Pertama
June 2020 23