/* test6116.c Stewart, December 17, 1981 11:46 AM */ extern char end; main() { char *top; int in; top = &end; in = 0; putstring("\rMemory finder\r"); putstring("←end = "); putnum(top, 16); putstring("H\r"); while(++top) { if (in) { if (!check(top)) { putstring("hole at "); putnum(top, 16); putstring("H\r"); in = 0; }; }; else { if (check(top)) { putstring("memory at "); putnum(top, 16); putstring("H\r"); in = 1; }; }; }; };