??? 05/19/06 12:47 Read: times |
#116644 - PLM/51 addressing Responding to: ???'s previous message |
Thanks Steve:
The bottom line is. Say if I want to set Bit 2 at the first byte located at 0xC200 I would simply call my write_output function with write_output(3,1), For the same bit located on the next byte it would be (11,1). I have three bytes of i/o at two different addresses which I'm indexing contiguously. Even though all of my pointer arithmetic and bit shifting is workng correctly my final call below is not accessing the hardware. valve = (valve or mask); I suspect that valve is not being addressed properly in set_ouput declaration. set_output: procedure(ptr, mask, state); declare ptr word, mask byte, state byte; declare valve based ptr byte; |
Topic | Author | Date |
PLM/51 addressing | 01/01/70 00:00 | |
Why ? | 01/01/70 00:00 | |
Why? | 01/01/70 00:00 | |
PLM/51 addressing | 01/01/70 00:00 | |
Looks like Pascal | 01/01/70 00:00 | |
PLM/51 addressing | 01/01/70 00:00 | |
Extend - not port | 01/01/70 00:00 | |
PLM/51 addressing | 01/01/70 00:00 | |
Ah... | 01/01/70 00:00 | |
a blind shot | 01/01/70 00:00 | |
PLM/51 addressing![]() | 01/01/70 00:00 |