मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

Write an Assembly Language Program to Fill in the Memory Locations Starting from 6900h an Onward with the Decimal Numbers 0 to 99. - Computer Science 2

Advertisements
Advertisements

प्रश्न

Write an Assembly Language Program to fill in the memory locations starting from 6900H an onward with the decimal numbers 0 to 99.

उत्तर

Label Mnemonics Comment

START;

 

 

BACK:

 

 

 

 

 

 

LXI H, 6900 H

MVI B, 64 H

SUB A

MOV M, A

ADI 01H

DAA

INX H

DCR B

JNZ BACK

RST 1.0

; Load HL pair with 6900H

; Store memory block count in B

; Clear accumulator

; Move accumulator to memory

; Add 01 to an accumulator

; Decimal adjust accumulator

; Increment HL memory pointer

; Decrement counter by one

; Jump, if no zero to BACK

; Restart

 

shaalaa.com
Instruction Set and Programming of 8085
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2017-2018 (March)

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×