dis_asm.h 888 B

1234567891011121314151617181920212223242526272829303132
  1. /*******************************************************************************
  2. * Emu51
  3. * dis_asm.h:
  4. * Created by mlt on 22/03/23.
  5. ******************************************************************************/
  6. #ifndef EMU51_DIS_ASM_H
  7. #define EMU51_DIS_ASM_H
  8. #include <stdint.h>
  9. #include <allegro.h>
  10. class dis_asm // display code class
  11. {
  12. private:
  13. void hexoutB(int, int, int, uint8_t);
  14. public:
  15. uint8_t *ram; // pointer to external ram table
  16. BITMAP *buf, *surface; // screen buffer, work surface
  17. int frame;
  18. int left;
  19. bool changed;
  20. dis_asm(uint8_t *, BITMAP *); // ext. ram, draw bitmap, constructor
  21. void blit_it(int, int);
  22. void draw(uint16_t); // x,y,PC (PC is an adr. of register which string is displayed in the middle of the code monitor)
  23. ~dis_asm();
  24. };
  25. #endif /* EMU51_DIS_ASM_H */