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.

13 lines
356 B

5 years ago
  1. #include "c2logic/builtins.h"
  2. // prints the memory of a memory cell separated by spaces in a 8x8 grid
  3. extern struct MindustryObject message1;
  4. extern struct MindustryObject cell1;
  5. void main(void) {
  6. for (int y = 0; y < 8; y++) {
  7. for (int x = 0; x < 8; x++) {
  8. printd(read(cell1, y * 8 + x));
  9. print(" ");
  10. }
  11. print("\n");
  12. }
  13. printflush(message1);
  14. }