1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-07-20 07:28:56 +00:00

Documentation

This commit is contained in:
Peter Evans 2018-01-01 17:41:15 -06:00
parent d53b6df7a4
commit 49d475d534

View File

@ -4,6 +4,12 @@
#include "apple2.h"
/*
* These are the color codes for the lo-res colors that are available.
* Each pixel in lo-res indicates one color. These are colors I found
* somewhere online -- I'm not sure if they are exact matches, and are
* subject to change.
*/
static int lores_colors[][3] = {
{ 0x00, 0x00, 0x00 }, // black
{ 0xff, 0x28, 0x97 }, // magenta
@ -23,6 +29,10 @@ static int lores_colors[][3] = {
{ 0xff, 0xff, 0xff }, // white
};
/*
* Draw a pixel on screen at the given address.
* FIXME: we do not draw anything D:
*/
void
apple2_draw_pixel(apple2 *mach, vm_16bit addr)
{
@ -72,6 +82,9 @@ apple2_draw_pixel_lores(apple2 *mach, vm_16bit addr)
vm_screen_draw_rect(mach->screen, &loc);
}
/*
* Draw the character indicated by the given address.
*/
void
apple2_draw_text(apple2 *mach, vm_16bit addr)
{