You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
844 B

  1. #ifndef ALDBASICLIB
  2. #define ALDBASICLIB
  3. #include "MonochromeLib.h"
  4. #define If if{
  5. #define IfEnd }
  6. #define While(txt) while(txt){
  7. #define WhileEnd }
  8. #define Cls ML_clear_screen()
  9. #define RclVRAM ML_display_vram()
  10. #define ClrVRAM ML_clear_vram()
  11. #define PlotOn(x,y) ML_Pixel(x,64-y,ML_BLACK)
  12. #define PlotOff(x,y) ML_Pixel(x,64-y,ML_WHITE)
  13. #define F-Line(a,b,c,d) ML_line(a,b,c,d,ML_BLACK)
  14. #define Circle(x,y,z) ML_circle(x,y,z,ML_BLACK)
  15. #define Vertical(x) ML_vertical_line(x,1,63,ML_BLACK)
  16. #define Horizontal(y) ML_horizontal_line(y,1,127,ML_BLACK)
  17. #define PxlOn ML_Pixel(x,y,ML_BLACK)
  18. #define PxlOff ML_Pixel(x,y,ML_WHITE)
  19. #define PxlTest(x,y) ML_pixel_test(x,y)
  20. #define Text(x,y,txt) PrintMini(x,y,#txt,0)
  21. #define Locate(x,y,txt) PrintXY(x*6,y*9,#txt,0)
  22. void PlotChg(int x, int y);
  23. void PxlChg(int x, int y);
  24. #endif // ALDBASICLIB