/* Checker for I/O Memory Status Register ($FF8000) */
/* by Barry Orlando in Mark Williams C */
#include <stdio.h>
#include <osbind.h>
#include <aesbind.h>
#define peekb(cp) (*((char *)cp))

main()
{
	int p;
	printf("\f\nMemory Configuration, written by Barry Orlando");
	printf("\nversion 1.0\n");
	printf("\n    Memory Configuration Table\n\n");
	printf("\n  Status      Bank 0      Bank 1");
	printf("\n -----------------------------------");
	printf("\n    3          512K        0K ");
	printf("\n    5          512K        512K ");
	printf("\n    6          512K        2M,normally reserved");
	printf("\n    7          2M          0K ");
	printf("\n    9          2M          512K ");
	printf("\n   10          2M          2M ");
	printf("\n\n       Your Computer's Status is:  ");
	p = sup_stf();
        printf("%d",p);
	printf("\n\n    Press any key to quit.....");
	printf("\n  Bye");
	gemdos(0x01);
}
sup_stf()
{
	long save_ssp;
	int o;
	save_ssp = Super(0L);
	o = peekb(0x424);
	Super(save_ssp);
	return (o);
}

