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.

AldeBasiClib.h 913B

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