Hello, does anybody has a programm example how to programm Good old Basic Peek & Poke in C.
I am conscious Peek & Poke is no good stil in C
Let's say you want to peek and poke bytes, then something like:
#define PEEK(addr) (*(unsigned char *)(addr)) #define POKE(addr, b) (*(unsigned char *)(addr) = (b)) unsigned char byte; byte = PEEK(0x10000); POKE(0x10000, byte);