हिंदी

Write a Subroutine in Assembly Language to Fill the Memory Locations 7301h to 73ffh with the Hexadecimal Numbers 01h to Ffh Respectively - Computer Science 2

Advertisements
Advertisements

प्रश्न

Write a subroutine in assembly language to fill the memory locations 7301H to 73FFH with the hexadecimal numbers 01H to FFH respectively

उत्तर

Label Mnemonic Comment

START:

 

 

LOOP:

 

 

 

 

 

LXI D, 7301H

MVI A, 01 H

MVI B, FFH

STAX D

INR A

INR E

DCR B

JNZ LOOP

RET

; Set memory start address

; Set accumulator to immediate data 01 H

; Load counter

; Store data in memory

; Increment data

; Increment memory address

; count = count – 1

; go back if not over

; return to the main program if over

 

shaalaa.com
Instruction Set and Programming of 8085
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2017-2018 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×