0% found this document useful (0 votes)
21 views4 pages

New Microsoft Word Document

The document contains an assembly language program with multiple examples and exercises. It loads values into registers, loads addresses into register pairs, copies values between registers, and uses PCHL to set the program counter.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views4 pages

New Microsoft Word Document

The document contains an assembly language program with multiple examples and exercises. It loads values into registers, loads addresses into register pairs, copies values between registers, and uses PCHL to set the program counter.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

; Lucrae de laborator NR.

;Lupascu Andrei

;gr.RST-171

;ex1

.org h'0000

mvi B,h'23

mvi C,h'45

mvi D,h'10

mvi E,h'62

mvi H,h'5

mvi L,h'97

mvi A,h'95

;ex2

lxi B,h'13EF

lxi D,h'A734

lxi H,h'1FA9

;ex3

lxi SP,h'0200

lxi SP,h'0222
lxi SP,h'0333

;ex4

mvi H,h'22 ;Incarcarea constantei 22h in registru H

mov H,A ;Copierea continutului H in registru A

mvi B,h'11

mov C,B

mvi L,h'10

mov D,L

;ex 5

mvi H,h'01

mvi L,h'00

pchl

.org h'0100

mvi H,h'02

mvi L,h'00

pchl

.org h'0200

mvi H,h'08

mvi L,h'00

pchl

.org h'0800

nop

nop

hlt

.end

You might also like