1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

help in writing assembly language 8085 using c++

Discussion in 'Assembly Language Programming (ALP) Forum' started by omaransi, Jan 1, 2007.

  1. omaransi

    omaransi New Member

    Joined:
    Dec 30, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    After respectful greeting
    I need help in writing assembly language 8085 using c++
    i need to write program that uses transfering instructions and mathematica instructions

    If the user enters MOV A,B
    the contents of B is copied into A
    and so on
    for
    ADD B
    SUB C
    INR C
    DRC C

    ...
    I NEED IMMEDIATE HELP ,THANKS
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    Re: help

    What you want us to do? Write the complete program for you?
     
  3. 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:
    Re: help

    Let me recommend these: posting hints and smart questions. Seriously, read them both with full attention. Your ability to get meaningful help rides on a polite and sensible approach. You're missing both parts.
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    I changed the title to something more meaningful.
     
  5. 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:
    Since the 8085 code is working with registers, you will need to declare variables which simulate those registers. You can then perform the same operations using them as operands. Obviously, you will need to gain familiarity with 8085 ASM. For instance, an instruction with a single operand, as ADD B, has an implicit operand, A, which serves as both an operand to be used in the calculation, and as the recepient of the result (the accumulator). The total result is as if one wrote, A = A + B. You will need to learn these things, and you will need to write your own code. Feel free to post questions regarding the problems that you have, but you must write the code.
     
  6. omaransi

    omaransi New Member

    Joined:
    Dec 30, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hi ,Mr.Dawei and Mr.Shabbir
    I know I commited a mistake on the requesting help ,
    But I 'd like you to know that i have got this assignment on C++ and i don't have agood background in C++ as well as I do in assembly ,But I request again if you could help me on this
    I would appreciate if you could help me in this
    with advanced thanks
    I have 5 days More its a special requst to u both
     
  7. 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:
    One presumes that the assignment's purpose is to help you learn C++, and not to inspire you to use someone else's material for a good grade.

    If you re-read my previous post, you will glean a nugget of information. You can parlay that into more simply by continuing along those lines. Write some code. Post back with things that are giving you problems.

    Incidentally, this seems more like a C++ question than an asm question, since you state that you know asm and are trying to write a C++ program.
     
  8. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    No you didnt, We also look for help here but its not the way we ask. Copy the complete assignment in post and expect some one to do it for us.
    Get yourself moving in this. Have a main where you take the input. Make a function where you process and you will get some errors and we will definitely help.
    Thats more than enough for you to get going.
     

Share This Page