Changes between Version 1 and Version 2 of Develop/FileFormats/MOTO


Ignore:
Timestamp:
Nov 19, 2018, 10:38:37 AM (5 years ago)
Author:
Thomas Bernard
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Develop/FileFormats/MOTO

    v1 v2  
    1818GrafX2 use a format that can be natively be loaded on the Thomson machine using the LOADM instruction.
    1919
    20 The FORME VRAM is selected and loaded, then the COULEUR VRAM is selected and filled.
    21 
     20The FORME VRAM is selected and loaded, then the COULEUR VRAM is selected and filled. For TO8/TO9 :
    2221{{{
    2322offset| data                    | comment
     
    2827 3f16 | ff 00 00 00 00          | end marker
    2928}}}
     29
     30When targeting MO6 or TO8/TO9/TO9+, the 16 colors palette is store immediately after the 8000 bytes picture data in 0bgr format.
     31Then 31 bytes are reserved for the comment, and one last byte for the video mode.
     32
     33The video mode at offset 8063 (&H1F7F) is stored in ascii format ('0' => 40col, '1' => 80col, '2' => bm4 or '3' => bm16).
     34
     35Theses supplementary data are duplicated between FORME and COULEUR VRAM, so they are always readable from BASIC with PEEK().
     36
     37Here are the offsets after loading :
     38
     39{{{
     40              MO6 | TO8/TO9
     41picture data &H0000 | &H4000
     42palette data &H1F40 | &H5F40
     43comment      &H1F60 | &H5F60
     44video mode   &H1F7F | &H5F7F
     45}}}
     46
    3047
    3148Here is a BASIC 128/512 program to load such a file :
     
    4966170 PRINT
    5067}}}
    51 
    52