
#include <proto/graphics.h>
#include <proto/intuition.h>
#include <proto/dos.h>

#define MOD 40

void main(void)
{
	struct Screen *scr;
	struct RastPort *rp;
	UBYTE *plane;
	int c;
	UBYTE ch;

	scr=OpenScreenTags(NULL,SA_SysFont,0,TAG_DONE);
	rp=&scr->RastPort;
	plane=scr->BitMap.Planes[0];

	SetAPen(rp,1);
	SetBPen(rp,0);
	SetDrMd(rp,JAM2);
	for(c=0; c<256; c++) {
		Move(rp,0,6);
		ch=c;
		Text(rp,&ch,1);

		Printf("	dc.b	$%lx,$%lx,$%lx,$%lx,$%lx,$%lx,$%lx,$%lx\n",
			plane[0],
			plane[1*MOD],
			plane[2*MOD],
			plane[3*MOD],
			plane[4*MOD],
			plane[5*MOD],
			plane[6*MOD],
			plane[7*MOD]);

	}

	Printf("\n");

	SetSoftStyle(rp,FSF_BOLD,FSF_BOLD);
	for(c=0; c<256; c++) {
		Move(rp,0,6);
		ch=c;
		Text(rp,&ch,1);

		Printf("	dc.b	$%lx,$%lx,$%lx,$%lx,$%lx,$%lx,$%lx,$%lx\n",
			plane[0],
			plane[1*MOD],
			plane[2*MOD],
			plane[3*MOD],
			plane[4*MOD],
			plane[5*MOD],
			plane[6*MOD],
			plane[7*MOD]);

	}

	CloseScreen(scr);
}
