Coa-2020-tugas_10-solusi-1

  • Uploaded by: Novita
  • 0
  • 0
  • February 2021
  • 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 Coa-2020-tugas_10-solusi-1 as PDF for free.

More details

  • Words: 207
  • Pages: 1
Loading documents preview...
CSH2I3 ORGANISASI DAN ARSITEKTUR KOMPUTER TUGAS MINGGU 10 SAP-3 2020 MVI MVI MVI MVI MOV ADD MOV MOV ADC MOV HLT

B, 02H C, FFH H, 03H L, 22H A,C L L,A A,B H H,A

; ; ; ; ; ; ; ; ; ;

Bß Cß Hß Lß Aß Aß Lß Aß Aß Hß

02h ffh 03h 22h ffh ffh+22h=21h ; CY=1 21h 02h 02h+03h+CY=06h 06h

1. Ubah program di atas menggunakan hanya instruksi LXI,DAD, dan HLT! Jawab: LXI B,02FFH LXI H,0322H DAD

2. Tulis perubahan yang terjadi di memory pada Kondisi Akhir, setelah Instruksi Indirect di bawah dieksekusi! 2FFAH FAH LXI H, 2FFAH 2FFAH 00H 2FFBH FBH LOOP: MOV A,M 2FFBH 00H 2FFCH FCH SUB L 2FFCH 00H 2FFDH FDH MOV M,A 2FFDH 00H 2FFEH FEH INR L 2FFEH 00H 2FFFH FFH JNZ LOOP 2FFFH 00H 3000H 00H HLT 3000H 00H Kondisi Awal Instruksi Indirect Kondisi Akhir 3. Tulis perubahan yang terjadi di register pada Kondisi Akhir, setelah Instruksi Stack di bawah dieksekusi! A F BBH CCH B C DDH EEH D E AAH FFH Kondisi Awal

PUSH PSW PUSH B PUSH D POP PSW POP D POP B Instruksi Stack

A F AAH FFH B C BBH CCH D E DDH EEH Kondisi Akhir

More Documents from "Novita"