AldeBasiClib/AldeBasiClib.h

40 lines
913 B
C
Raw Permalink Normal View History

2016-04-29 21:20:21 +02:00
#ifndef ALDBASICLIB
#define ALDBASICLIB
#include "MonochromeLib.h"
2016-04-29 22:02:02 +02:00
#define If if
#define Then {
2016-04-29 22:01:47 +02:00
#define IfEnd }
#define While(txt) while(txt){
#define WhileEnd }
2016-04-29 21:20:21 +02:00
#define Cls ML_clear_screen()
#define RclVRAM ML_display_vram()
#define ClrVRAM ML_clear_vram()
2016-05-08 11:11:52 +02:00
#define PlotOn(x,y) ML_pixel(x,64-y,ML_BLACK)
#define PlotOff(x,y) ML_pixel(x,64-y,ML_WHITE)
#define PlotTest(x,y) ML_pixel_test(x,64-y)
2016-04-29 21:20:21 +02:00
#define F-Line(a,b,c,d) ML_line(a,b,c,d,ML_BLACK)
#define Circle(x,y,z) ML_circle(x,y,z,ML_BLACK)
#define Vertical(x) ML_vertical_line(x,1,63,ML_BLACK)
#define Horizontal(y) ML_horizontal_line(y,1,127,ML_BLACK)
2016-05-08 11:11:52 +02:00
#define PxlOn(x,y) ML_pixel(x,y,ML_BLACK)
#define PxlOff(x,y) ML_pixel(x,y,ML_WHITE)
2016-04-29 21:20:21 +02:00
#define PxlTest(x,y) ML_pixel_test(x,y)
#define Text(x,y,txt) PrintMini(x,y,#txt,0)
#define Locate(x,y,txt) PrintXY(x*6,y*9,#txt,0)
void PlotChg(int x, int y);
void PxlChg(int x, int y);
#endif // ALDBASICLIB