[TUHS] speaking of early C compilers

Ronald Natalie ron at ronnatalie.com
Mon Oct 27 23:34:53 AEST 2014


Yep, the kernel was littered with funky memory constants using ->  to point at various registers.   Probably the most ubuiqtous was
#define PS 0177776
struct { 
    int integ;
};

yielding the PS->integ access to the Processor Status Register.





More information about the TUHS mailing list