Help me with this small Assembly Language code!!-VBForums
Results 1 to 6 of 6

Thread: Help me with this small Assembly Language code!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Dec 2010
    Posts
    213

    Help me with this small Assembly Language code!!

    LDD #$F00D
    LDX #$C100
    STD 0,X
    BSET 0,X,$44
    BCLR 1,X,$11

    What numbers are in memory locations $C100 and $C101 after the program is executed?

    If it helps, we're using the HC12 & S12 microcontrollers....

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Help me with this small Assembly Language code!!

    Can you not run it and examine the contents of $C100 and $C101 yourself?
    ---My Flickr photo (mostly screenshots these days!) stream. Have a look!

    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    TCP client/server connection | Retrieving the EventHandler for any Event by code.
    Me on.. BitBucket, Google Code, Github (pretty empty)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Dec 2010
    Posts
    213

    Re: Help me with this small Assembly Language code!!

    Nope, just an assignment...

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Help me with this small Assembly Language code!!

    I'm not sure what you mean by "just an assignment".
    ---My Flickr photo (mostly screenshots these days!) stream. Have a look!

    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    TCP client/server connection | Retrieving the EventHandler for any Event by code.
    Me on.. BitBucket, Google Code, Github (pretty empty)

  5. #5
    Lively Member CADman's Avatar
    Join Date
    Aug 2007
    Posts
    92

    Re: Help me with this small Assembly Language code!!

    Correct me if I am wrong but, what you posted looks like a custom language for the microcontroller not MS assembler (ASM).
    Did the product include a debugger program?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Dec 2010
    Posts
    213

    Re: Help me with this small Assembly Language code!!

    Yeah its called CodeWarrior IDE and we're using the Motorola HCS12 microcontroller...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.