0% found this document useful (0 votes)
138 views2 pages

Gray To Binary Conversion

The document contains assembly language instructions to get data, store it in the accumulator and a register, decrement a counter and jump if it reaches zero, set and complement the carry flag, rotate and perform logic operations on registers, and halt the program. It stores data in the accumulator and B register, rotates the contents of the accumulator right four times and performs AND and XOR operations before halting.

Uploaded by

Rohan Vaidya
Copyright
© Attribution Non-Commercial (BY-NC)
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)
138 views2 pages

Gray To Binary Conversion

The document contains assembly language instructions to get data, store it in the accumulator and a register, decrement a counter and jump if it reaches zero, set and complement the carry flag, rotate and perform logic operations on registers, and halt the program. It stores data in the accumulator and B register, rotates the contents of the accumulator right four times and performs AND and XOR operations before halting.

Uploaded by

Rohan Vaidya
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 2

LXI MOV MOV MVI UP: DCR JZ STC CMC RAR XRA JMP DOWN:STA HLT

H,2050 A,M B,A C,08 C DOWN

B UP 2051

; Get data ; store data in acc ; Store data in reg. B ;number of bits ;Decrement C by 1 ;jump if zero at down ;Set the carry ; Complement the carry ; Rotate acc. right ;XOR with reg. B ; Jump up unconditionally

MVI MOV RRC RRC RRC RRC ANI XRA MOV

A,0X42 ; STORE DATA IN ACC B,A ; STORE DATA IN REG. B

0X0F B B,A

RRC RRC ANI XRA MOV RRC ANI XRA HLT

0X3F B B,A 0X7F B

You might also like