Changes between Version 1 and Version 2 of Develop/FileFormats/MOTO
- Timestamp:
- Nov 19, 2018, 10:38:37 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Develop/FileFormats/MOTO
v1 v2 18 18 GrafX2 use a format that can be natively be loaded on the Thomson machine using the LOADM instruction. 19 19 20 The FORME VRAM is selected and loaded, then the COULEUR VRAM is selected and filled. 21 20 The FORME VRAM is selected and loaded, then the COULEUR VRAM is selected and filled. For TO8/TO9 : 22 21 {{{ 23 22 offset| data | comment … … 28 27 3f16 | ff 00 00 00 00 | end marker 29 28 }}} 29 30 When targeting MO6 or TO8/TO9/TO9+, the 16 colors palette is store immediately after the 8000 bytes picture data in 0bgr format. 31 Then 31 bytes are reserved for the comment, and one last byte for the video mode. 32 33 The video mode at offset 8063 (&H1F7F) is stored in ascii format ('0' => 40col, '1' => 80col, '2' => bm4 or '3' => bm16). 34 35 Theses supplementary data are duplicated between FORME and COULEUR VRAM, so they are always readable from BASIC with PEEK(). 36 37 Here are the offsets after loading : 38 39 {{{ 40 MO6 | TO8/TO9 41 picture data &H0000 | &H4000 42 palette data &H1F40 | &H5F40 43 comment &H1F60 | &H5F60 44 video mode &H1F7F | &H5F7F 45 }}} 46 30 47 31 48 Here is a BASIC 128/512 program to load such a file : … … 49 66 170 PRINT 50 67 }}} 51 52