MICROPROCESSOR PROGRAMMING PROBLEMS Flashcards
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?
g
Given TWO numbers – 100 and 80 - stored in memory location 20H & 25H respectively, WRITE a simple assembly program to subtract the numbers
d
With an illustration, explain the different types of instructions found in assembly language.
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”.