1 #include <stddef.h> 2 #include <unistd.h> 3 #include "nextrom.h" 4 #include "../atari_m68k/toscalls.h" 5 6 /* we compile this code as an atari TOS PRG to verify offsets in mon_global */ 7 8 int main() 9 { 10 int o = offsetof(struct mon_global, mg_board_rev); 11 /* let's return the value to the shell. Only on 8bit, so it's %256 */ 12 /* return doesn't work without using the crt files so we must Pterm() */ 13 Pterm(o); 14 return o; 15 } 16 17