Feb 6th, 2012, 08:13 PM
#1
Addicted Member
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....
Feb 8th, 2012, 02:49 AM
#2
Re: Help me with this small Assembly Language code!!
Can you not run it and examine the contents of $C100 and $C101 yourself?
Feb 8th, 2012, 08:15 PM
#3
Addicted Member
Re: Help me with this small Assembly Language code!!
Nope, just an assignment...
Feb 9th, 2012, 01:54 AM
#4
Re: Help me with this small Assembly Language code!!
I'm not sure what you mean by "just an assignment".
Feb 9th, 2012, 10:37 AM
#5
Lively Member
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?
Feb 16th, 2012, 12:42 AM
#6
Addicted Member
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
Forum Rules