From c39022729d14906cfa4db4b680b52d344653ee1c Mon Sep 17 00:00:00 2001 From: cuz Date: Mon, 31 May 2004 15:17:40 +0000 Subject: [PATCH] Some improvements in font generation git-svn-id: svn://svn.cc65.org/cc65/trunk@3055 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- samples/fire.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/samples/fire.c b/samples/fire.c index a4810f88e..7d2c4e9db 100644 --- a/samples/fire.c +++ b/samples/fire.c @@ -67,14 +67,12 @@ static void makechar (void) { - char *font; - static const unsigned char bittab[8] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; - unsigned char i, ii, b; - int c; - int s,bc; + register char *font; + register unsigned char i, ii, b, bc; + unsigned char c; gotoxy (0, 1); @@ -87,12 +85,11 @@ static void makechar (void) for (c = 0; c < 0x40; ++c) { - s = c; bc = 0; for (i = 0; i < 8; i++){ b = 0; for (ii = 0; ii < 8; ii++) { - bc += s; + bc += c; if (bc > 0x3f) { bc = bc - 0x40; b += bittab[(ii + (i & 1)) & 0x7]; -- 2.39.5