This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

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
  • Another remark:
    The addressing mode ("near" or "far" or huge") has nothing to do with the memory model ("small" or "large" or whatever).
    The addressing modes will work in any memory model. You can also force the C-compiler to use a certain addressing mode by using (near*), (far*) or (huge*).
    Only the "tiny" memory model may have some restrictions, but you won't have to modify the DPP-Registers in tiny model.

Reply
  • Another remark:
    The addressing mode ("near" or "far" or huge") has nothing to do with the memory model ("small" or "large" or whatever).
    The addressing modes will work in any memory model. You can also force the C-compiler to use a certain addressing mode by using (near*), (far*) or (huge*).
    Only the "tiny" memory model may have some restrictions, but you won't have to modify the DPP-Registers in tiny model.

Children
No data