Short notes on displacement only addressing mode, Computer Engineering

Assignment Help:

(a) Write short notes on displacement only addressing mode.

(b) Explain the formats of a 80-bit floating point number.

(c) Given the following assembly program. Instructions affect the CPU status flags at several stages when the program is run. Show on which lines the flags ZF, CF and OF are triggered to 1.

TITLE Addition and Subtraction

INCLUDE Irvine32.inc

.data
Rval SDWORD ?
Xval SDWORD 26
Yval SDWORD 30
Zval SDWORD 40

.code
main PROC

; INC and DEC
mov ax,1000h
inc ax
dec ax

; Expression: Rval = -Xval + (Yval - Zval)
mov eax,Xval
neg eax
mov ebx,Yval
sub ebx,Zval
add eax,ebx
mov Rval,eax
mov cx,1
sub cx,1
mov ax,0FFFFh
inc ax

mov cx,0
sub cx,1
mov ax,7FFFh
add ax,2

mov al,0FFh
add al,1

mov al,+127
add al,1
mov al,-128
sub al,1
exit
main ENDP
END main

(d) Write a program in assembly to evaluate the sum of all the hexadecimal integer numbers of a 5-element array. Show the registers' contents.


Related Discussions:- Short notes on displacement only addressing mode

Where engaged tone is generated, E ngaged tone is generated in the: (...

E ngaged tone is generated in the: (A)  Telephone instrument of calling subscriber (B)  Telephone instrument of called subscriber (C)  Exchange (D)  Repeater

Introduction to the operating system, Q. Introduction to the Operating Syst...

Q. Introduction to the Operating System? An Operating system is software that creates a relation between the User, Hardware and Software. It is an interface between the all.

What is the maximum frequency of operation, For the circuit demonstrated be...

For the circuit demonstrated below, what is the Maximum Frequency of Operation? Are there any hold time violations for FF2? When yes, how do you modify the circuit to ignore them?

Which technique allows executing a program not in memory, A set of techniqu...

A set of techniques that allow executing a program which is not entirely in memory is called ? Ans. virtual memory which allows executing a program that is not entirely in me

Explain about interrupt procedure, Q. Explain about Interrupt Procedure? ...

Q. Explain about Interrupt Procedure? The interrupt procedure uses request header to conclude the function requested by DOS. It also performs all functions for device driver. T

What is socket inheritance, What is socket inheritance? Explain. Socke...

What is socket inheritance? Explain. Socket Inheritance: In a socket inheritance a reference count mechanism is utilized. Whenever a socket is first created, the system set

Adder substractor, how can we bimpliment half substractor using nand gate

how can we bimpliment half substractor using nand gate

What happens if acknowledge() is called within a transaction, As per the JM...

As per the JMS specification, when you are in a transaction, the acknowledge Mode is ignored. If acknowledge() is known as within a transaction, it is ignored.

Discuss various enhanced services of stored program control, Discuss the va...

Discuss the various enhanced services that can be made available to the subscribers because of stored program control. One of the instant benefits of stored program control is

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd