Beruflich Dokumente
Kultur Dokumente
EXPERIMENT 7
AIM
To find the maximum no. in a given string (16 Bytes Long) and store it in location 0510.
PROGRAM
0408 3A,24 CMP AH,[SI] Compare the 1st data byte of the string
with 00
040A 73,02 JAF 040E If both bytes match (above is equal)
then branch to (1).
040C 8A,24 MOV AH,[SI] Else, move the contents of (0500) into
8-bit Accumulator, i.e., a real no. in AH.
STEPS
EXAMPLE
Aman Arora 06496502714
Before Execution:
After Execution:
START
PRESS
PRESS INITIALIZE
DDISPLAY
A ON ANDTHEENTER
OF DATA
STOP MEMORY
VARIOUS VALUES
OPTIONS TOLOCATION
TO BE
COMPARE
COMPARED
INITIALIZE
THE NUMBERS0510
THE INTOMEMORY
DISPLAY
MNEMONICS OFLOCATIONS
THE RESULTONE
THE OPERATIONS BY
TO BE