regs.h 724 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*******************************************************************************
  2. * Emu51
  3. * regs.h:
  4. * Created by mlt on 22/03/23.
  5. ******************************************************************************/
  6. #ifndef EMU51_REGS_H
  7. #define EMU51_REGS_H
  8. #include <stdint.h>
  9. #include <allegro.h>
  10. class regs
  11. {
  12. private:
  13. void hexoutB(int x, int y, int color, uint8_t numb);
  14. public:
  15. int frame;
  16. int left;
  17. bool changed;
  18. uint8_t *sfr;
  19. uint8_t reg[25];
  20. char reg_label[25][10];
  21. BITMAP *surface, *buf;
  22. void draw();
  23. void blit_it(int, int);
  24. int red;
  25. int white;
  26. int lblue;
  27. int green;
  28. int lred;
  29. regs(uint8_t *, BITMAP *);
  30. ~regs();
  31. };
  32. #endif /* EMU51_REGS_H */