Gurus is this correct!

Discussion in 'Assembly Language Programming (ALP) Forum' started by 12341234, Aug 24, 2007.

  1. 12341234

    12341234 New Member

    Joined:
    Aug 23, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hello, is this correct?

    1. A program in 8085 assembly language to store EFH in following registers
    Registers: B,C,D,H,L
    (using only MOV & MVI instructions)

    MVI B,EFH
    MOV C,B
    MOV D,C
    MVI M,EFH ; will store EFH into memory location pointed out by HL contents.
    HLT
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Your program is functional. It doesn't meet the requirements of putting EFh into registers H and L. It also places EFh into the location pointed to by HL, as you mention, but which you did not state as a requirement.

    Incidentally, this question could have been answered merely by assembling your code and stepping through it with a debugger. Surely that's more effective than asking the question on a forum and waiting for an answer.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice