Page 10 - LKPD 5
P. 10

EXIT:

                  MOV AH,4CH
                  INT 21H
                  MAIN ENDP
              END MAIN

                 Program diatas merupakan syntak program  kalkulator sederhana
              yang  dapat  kalian  modifikasi  program  tampilannya  yang  asalnya
              Bahasa  inggris  menjadi  Bahasa  Indonesia,  selain  program  aplikasi
              kalkulator,  berikut  ini  program  quiz  berbasis  mikroprosessor  yang
              dapat  kalian  jalankan  di  software  yang  mendukung  pemrograman
              Bahasa assembly, yang penulis gunakan salah satunya software emu
              8086. Syntak programnya sebagai berikut:

              .MODEL SMALL
                                    Bagian tampilan program, dapat kalian
              .STACK 100H
                                     modifikasi menjadi Bahasa indonesia

              .DATA

              MSG1 DB '                .....WELCOME TO YOUR FIRST QUIZ.....$'
              MSG2 DB 'Rules : $'
              MSG3 DB '*. For Every Correct answer you will get 1 point.$'
              MSG4 DB '*. For Every Wrong answer 1 Point will cut from your total
              point.$'
              MSG5 DB 'Press Enter to start the quiz : $'
              MSG6 DB 'Right Answer....$'
              MSG7 DB 'Wrong Answer....$'
              MSG8 DB 'You have successfully completed your quiz.$'
              MSG9 DB 'Your Total obtained point is : $'
              MSG10 DB 'Press 1 to Re-attempt quiz or 0 to Exit.$'
              MSG11 DB '                    ***Thank you.! ***$'
              Q1 DB '1. 2+3=?$'

                                           9
   5   6   7   8   9   10   11   12   13   14   15