I have this line of code:
X DC.W 5
This means basically X = 5 But shouldn’t be X DC.W #5 ?
When using MOVE I need always #
MOVE.B #1,VAR
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
#1means immediate value, i.e. the value 1. Without the#, it would mean the contents of the memory location 1.With
DC.*you place values (I guess you can call them “immediate” values) into memory locations specified by X. It is not a processor instruction, but the instruction for the assembler to reserve memory and fill it with specified value(s).