Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a) (6p) Run the following program and show the memory locations 0220H and 0221H if IBM PC with 8088 CPU is keyed in. ORG 220H

image text in transcribedimage text in transcribed

a) (6p) Run the following program and show the memory locations 0220H and 0221H if IBM PC with 8088 CPU" is keyed in. ORG 220H BUFFER DB 15, 16 DUP (OFFH) 0220H 02211 and for the code: MOV AX, OAH MOV DX, OFFSET BUFFER INT 21H DB b) (6p) Complete the following program using a look-up table and XLAT to retrieve the value in the equation: y =r? + 2x + 5 for x values of 0 to 9. ; data segment Y TABLE X VAL DB Y VAL DB code segment MOV BX, MOV AL, XLAT MOV AL c) (7p) Complete the following program to monitor port A (of 8255) for a temperature of 100. If it is equal, it should be saved in register BL. Also, send AAH to port B and 55H to portC. BA8255 EQU 68H The base address of 8255 MOV AL, OUT BA8255+3, AL IN AL, CMP AL, BACK: BACK MOV BL, AL MOV AL, OUT NOT AL OUT AL AL d) (5p) The following program aims to clear the screen. However, it contains some errors. Find and correct the errors. CORRECTED PROGRAM INCORRECT PROGRAM MOV AX, 0600 MOV BL, 07 MOV cx, 0100 MOV DX, 184F INT 21H e) (8p) Write a four line of Assembly Code that multiplies AX by 7 without using MUL or IMUL command. Line-1: Line-2: Line-3: Line-4: f) (7p) Debug Question: Assume that the following program starts from CS:100; u cs:100 106 1523:0100 B80700 1523:0103 BB0400 1523:0106 0108 1523:0108 MOV AX, 0007 MOV BX, 0004 ADD AX, BX (2p) Execute the program using 'GO'command. - (5p) Save the program (only) on disk C:\ in a file name 'exam.1

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

Explain the development of human resource management (HRM)

Answered: 1 week ago

Question

Explain the different types of marketing strategies.

Answered: 1 week ago

Question

Explain product positioning.

Answered: 1 week ago

Question

Explain Industrial market segment.

Answered: 1 week ago