all repos — xyw @ 3bc789df5b9584b48b5dcb5b1e17d90730eadd83

A minimal virtual machine and assembler for terminals.

devices/display.c

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
#include <stdio.h>
#include "../xyw.h"

/* display device */
#define DISPLAY_WIDTH 0x40
#define DISPLAY_HEIGHT 0x41
#define DISPLAY_FILL 0x42
#define DISPLAY_X 0x43
#define DISPLAY_Y 0x44
#define DISPLAY_ON_RENDER 0x45

void display_output(xyw_byte *data, xyw_byte addr, xyw_byte *error)
{
    (void)error;
    (void)data;
    (void)addr;
}

void display_input(xyw_byte *data, xyw_byte addr, xyw_byte *error)
{
    (void)error;
    (void)data;
    (void)addr;
}