From: Avelino H. <ave...@ho...> - 2005-04-12 18:24:29
|
Hi. There is one question regarding Z80 port addressing: When I declare a port at 0x99 with "sfr at 0x99 vdp;", I can output data to that port ussing "vdp = 0x34;" sentence, but what happens if i want to access (vdp + 1) port? If I access vdp with "*(&vdp) = 0x34", the assembler output is okay but if I write "*(&vdp + 1) = 0x34", SDCC generates a "ld" instead of a "out" instruction. Any sugestions about this trouble? |