mzm.txt 715 B

123456789101112131415161718192021222324252627282930313233
  1. MZM file format: MZX image
  2. This file format is a simple format that describes graphically a
  3. rectangular area.
  4. b = byte (8bit)
  5. w = word (16bit)
  6. d = dword (32bit)
  7. sN = string of N size (ie N bytes)
  8. header:
  9. pos size description
  10. 0 s4 "MZMX" tag
  11. 4 b width
  12. 5 b height
  13. 6
  14. . reserved
  15. f
  16. data:
  17. The data is composed of w * h (width * height) blocks, where each
  18. block is 6 bytes and contains the following:
  19. pos size description
  20. 0 b ID (5 for overlay)
  21. 1 b param (char for overlay)
  22. 2 b color
  23. 3 b under ID (0 for overlay)
  24. 4 b under param (0 for overlay)
  25. 5 b under color (0 for overlay)