Tuesday, January 28, 2014

MPP Experiment 2

a) 32-bit addition for signed and unsigned numbers b) 32-bit subtraction for signed and unsigned numbers, now let me write programs to each one of them:: 

1) To write 8086 Assembly Language Program to add two 32-bit signed & unsigned number.




2) To write 8086 Assembly Language Program to Subtract two 32-bit signed & unsigned number:


2) List the differences between 8085 and 8086 microprocessors.

MPP experiment 1

Questions:

a) List 8-bit and 16-bit registers present in 8085.
Answer:
The 8085/8080A-programming model includes six registers, one accumulator, and one flag register, as shown in Figure. In addition, it has two 16-bit registers: the stack pointer and the program counter. They are described briefly as follows. The 8085/8080A has six general-purpose registers to store 8-bit data; these are identified as B,C,D,E,H, and L as shown in the figure. They can be combined as register pairs -  BC, DE, and HL - to perform some 16-bit operations. The programmer can use these registers to store or copy data into the registers by using data copy instructions.

b) What is the role of accumulator in 8085?
Answer:
The accumulator is an 8-bit register that is a part of arithmetic/logic unit (ALU). This register is used to store 8-bit data and to perform arithmetic and logical operations. The result of an operation is stored in the accumulator. The accumulator is also identified as register A.

c) List allowed register pairs of 8085.
Answer:
BC, DE and HL register pair.

Saturday, January 25, 2014

SAS assignment 1

Below is the link to the answers to assignment number 1 of SAS in compressed zip format.

CLICK HERE TO DOWNLOAD!

File size: 16.09MB

CORRECTIONS:
(1) There is also a minute correction on page 10, question 5, 4th sum. The final answer posted earlier is correct but still please refer to the solution here:

Correction in page 10!

DISCLAIMER:
The uploads are done for doubt solving in case you get stuck at some point! Don't just copy blindly!!