MICROPROCESSOR PROGRAMMING PROBLEMS Flashcards

1
Q

Consider the 8085 microprocessor for following two questions:

a) Write a simple assembly language program to multiply two 8 bit numbers. (Include comments to explain your code) (3 Marks)
b) What observations would be made if the multiplication was done successfully?

A

g

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Given TWO numbers – 100 and 80 - stored in memory location 20H & 25H respectively, WRITE a simple assembly program to subtract the numbers

A

d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

With an illustration, explain the different types of instructions found in assembly language.

A

Opcode mnemonics
Generally, a mnemonic is a symbolic name for a single executable machine language instruction (an opcode)
Data definitions
There are instructions used to define data elements to hold data and variables.
Assembly directives
Assembly directives are commands given to an assembler “directing it to perform operations other than assembling instructions”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly