Difference between revisions of "MGV"

From MSX Game Library

(Header)
Line 18: Line 18:
 
! 7 || 6 || 5 || 4 || 3 || 2 || 1 || 0
 
! 7 || 6 || 5 || 4 || 3 || 2 || 1 || 0
 
|-
 
|-
| 0 || 0 || 0 || 0 |colspan="4"| Version (0)
+
| 0 || 0 || 0 || 0  
 +
|colspan="4"| Version (0)
 
|}
 
|}
  
Line 42: Line 43:
 
|-
 
|-
 
| <tt>0x07</tt> || <tt>nnnn,vv</tt> || Fill <tt>nnnn+1</tt> bytes (1-65536) with <tt>vv</tt> value
 
| <tt>0x07</tt> || <tt>nnnn,vv</tt> || Fill <tt>nnnn+1</tt> bytes (1-65536) with <tt>vv</tt> value
 +
|-
 +
| <tt>0x08</tt> || <tt>nn,vv[nn]</tt> || Copy <tt>nn+1</tt> bytes (1-256) from <tt>vv[nn]</tt> data table
 +
|-
 +
| <tt>0x09</tt> || <tt>nnnn,vv[nnnn]</tt> || Copy <tt>nnnn+1</tt> bytes (1-65536) from <tt>vv[nnnn]</tt> data table
 
|}
 
|}
  
 
== Extension ==
 
== Extension ==
 
<tt>.MGLV</tt> (for Windows/Linux) or <tt>.MGV</tt> (for MSX-DOS)
 
<tt>.MGLV</tt> (for Windows/Linux) or <tt>.MGV</tt> (for MSX-DOS)

Revision as of 21:03, 30 March 2024

MGLV is a video format for MSXgl.

Format

Header

Offset Size Desc. Value
0x0000 4 Signature "MGLV"
0x0004 1 Flag
7 6 5 4 3 2 1 0
0 0 0 0 Version (0)

Commands

Cmd Options Desc.
0x00 End of data
0x01 End of frame
0x02 End of segment (increment segment index and reset data pointer)
0x04 nn Skip nn+1 bytes (1-256)
0x05 nnnn Skip nnnn+1 bytes (1-65536)
0x06 nn,vv Fill nn+1 bytes (1-256) with vv value
0x07 nnnn,vv Fill nnnn+1 bytes (1-65536) with vv value
0x08 nn,vv[nn] Copy nn+1 bytes (1-256) from vv[nn] data table
0x09 nnnn,vv[nnnn] Copy nnnn+1 bytes (1-65536) from vv[nnnn] data table

Extension

.MGLV (for Windows/Linux) or .MGV (for MSX-DOS)