1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-11-22 14:33:51 +00:00
8bitworkshop/presets/astrocade/acextra.h

29 lines
724 B
C
Raw Normal View History

2019-05-31 22:15:30 +00:00
#ifndef _ACEXTRA_H
#define _ACEXTRA_H
#include "aclib.h"
2019-06-03 14:08:29 +00:00
// special case for draw_sprite()
#define M_ERASE 0x04
2019-06-02 02:09:45 +00:00
// font constants
#define LOCHAR 32
#define HICHAR 127
#define FONT_BWIDTH 1
#define FONT_HEIGHT 8
2019-05-31 22:15:30 +00:00
void clrscr();
void vline(byte x, byte y1, byte y2, byte col, byte op);
void pixel(byte x, byte y, byte col, byte op);
void render_sprite(const byte* src, byte x, byte y, byte op);
void draw_char(byte ch, byte x, byte y, byte op);
void draw_string(byte x, byte y, byte options, const char* str);
void draw_bcd_word(word bcd, byte x, byte y, byte op);
word bcd_add(word a, word b);
#define pixel(x,y,color,op) vline(x, y, y, color, op);
#define erase_sprite(src,x,y) render_sprite(src,x,y,M_ERASE);
#endif