What's wrong with it ? Thank you! cmpb rl6, byte_294 ___________________________________________________________^ *** ERROR #A74 IN 6387 (T15.A66, LINE 5082): OPERAND TYPE MISMATCH
If you have another byte variable your code which has not given you a problem try substituting it into the statement to replace one of the two variables. reassemble the code and see if the error message goes away. Where is byte_259 in the memory map? Conversely try another two operand instruction with those operands. Good luck.
Thank you very much! i will try it!
Yeah! It's the problem that the byte varibale is in the memory map which is out off the range of 4 dpp pointers,but i want to use the instructions like this: extp 0,#1 compb rl4,byte_259 what should i do? Thanks!
You answered your own question. You can't address byte_259 directly so you have to do that indirectly. How do you do that with a data pointer? ( we give free hints here but the solutions cost money ).
"You can't address byte_259 directly" In other words, byte_259 is of the wrong type - a type that is not directly addressable. Hence the original error message, "TYPE MISMATCH"