Assembly Code

I am trying to write 0xAA to Address location 0x5555.
The following code is working. May someone kindly explain in details how C167 controller interpret it? Why is #09555H used???

MOV	DPP2,#0001H
MOV	R12,#09555H
MOVB	RL1,#00AAH
MOV	[R12],RL1

Parents
  • Thank you for you information, Mike.

    This is written in Assembly code which was obtained from the web site, and not from the compiler. Somehow, the bit 15-14 had to be set to 10B.

    On similar situation where address 0x2AAA is to be written, R12 is loaded with #AAAAH!!

    Probably the addressing is different when in SMALL model, as what you had mentioned. I am not able to get any information from the C167 manual. Maybe you can help.

Reply
  • Thank you for you information, Mike.

    This is written in Assembly code which was obtained from the web site, and not from the compiler. Somehow, the bit 15-14 had to be set to 10B.

    On similar situation where address 0x2AAA is to be written, R12 is loaded with #AAAAH!!

    Probably the addressing is different when in SMALL model, as what you had mentioned. I am not able to get any information from the C167 manual. Maybe you can help.

Children
More questions in this forum