0% found this document useful (0 votes)
3 views1 page

Programming Sheet1

The document contains two assembly language programs authored by Iannah Chelsea L. Belonia on April 13, 2024. The first program initializes values in memory locations 1900 to 1905 and then halts, while the second program manipulates these values using various instructions before halting. Both programs are structured with labels, operations, operands, and remarks for clarity.

Uploaded by

Iannah Belonia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Programming Sheet1

The document contains two assembly language programs authored by Iannah Chelsea L. Belonia on April 13, 2024. The first program initializes values in memory locations 1900 to 1905 and then halts, while the second program manipulates these values using various instructions before halting. Both programs are structured with labels, operations, operands, and remarks for clarity.

Uploaded by

Iannah Belonia
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PROGRAM: 1 PAGE: 1

AUTHOR: BELONIA, IANNAH CHELSEA L. DATE: 13 April 2024

LABEL OPERATION OPERAND ADDRESS OP CODE OPERAND REMARKS


LOWER UPPER
MVI A, 0A 1 8 0 0 3 E 0 A
STA 1900 1 8 0 2 3 2 0 0 1 9
MVI A, 0B 1 8 0 5 3 E 0 B
STA 1901 1 8 0 7 3 2 0 1 1 9
MVI A 0C 1 8 0 A 3 E 0 C
STA 1902 1 8 0 C 3 2 0 2 1 9
MVI A, 0D 1 8 0 F 3 E 0 0 D
STA 1903 1 8 1 0 3 2 0 3 1 9
MVI A, 0E 1 8 1 3 3 E 0 0 E
STA 1904 1 8 1 5 3 2 0 4 1 9
MVI A, 0F 1 8 1 8 3 E 0 F
STA 1905 1 8 1 A 3 2 0 5 1 9
HLT 1 8 1 D 7 6 0

PROGRAM: 2 PAGE: 1

AUTHOR: BELONIA, IANNAH CHELSEA L. DATE: 13 April 2024

LABEL OPERATION OPERAND ADDRESS OP CODE OPERAND REMARKS


LOWER UPPER
MVI B 06 1 8 0 0 0 6 0 A
MVI A 0A 1 8 0 2 3 E 0 A
LXI H 1900 1 8 0 4 2 1 0 0 1 9
MOV M,A 1 8 0 7 7 7
INR A 1 8 0 8 3 C
INX H 1 8 0 9 2 3
DCR B 1 8 0 A 0 5
JNZ 1807 1807 1 8 1 B C 2 0 7 1 8
HLT 1 8 1 E 7 6

You might also like