[This is a not very good translation from Japanese, I am deeply sorry] --------------------------------------------------------------------- Maguroda! MAG Loader Specifications ======================================================================== #### MAG Loader specification ### Not for sale #### - MAKIchan Graphic loader is not MAG Loader! - Errata By Woody RINN (MAKIchanNET #03) ======================================================================== (1) There was a mistake in the screen mode section. >(00000000) 400 rows, analog 16 colors Standard PC98 >(00000001) 200 rows, analog 16 colors MSX SC7 mode >(00000010) 400 rows, analog 8 colors VM98 >(00000011) 200 rows, analog 8 colors PC88 with analog palette >(00000100) 400 rows, digital 16 colors :-) >(00000101) 200 rows, digital 16 colors :-) >(00000110) 400 rows, digital 8 colors Old PC98 >(00000111) 200 rows, digital 8 colors Standard PC88 >(10000101) 200 rows, analog 16 colors MSX SC8 mode > ! !!! > ! !!+- b0 : 200-row flag (aspect ratio of dots is 2:1) > ! !+-- b1 : 8-color flag > ! +--- b2 : digital flag > ! > +-------- b7 : 256-color flag SC8 mode at the bottom of the list should read as follows: (10000001) 200 rows, analog 256 colors MSX SC8 mode ! ! ! +-- not 16 colors :-) +-- the digital flag is not important Oh, after seeing the transplanted source, we can see what was made to match the header of the initial specification. The correct header is as follows. Offset Content Size Description ------- -------------- ------- -------------------- 0 0 b Start of header 1 0 b Model code 2 0 b Model-dependent flag 3 0 b Screen mode In the initial specification, the 2nd byte was the number of planes, but the official version changed the 8th bit of the screen mode to be the 256-color flag, and the 2nd byte is the model-dependent flag. Please be careful. --------------------------------------------------------------------- MAG/MAKI MSX flag specification document by MERON 1992/03/06 Purpose I asked Rinn-san to add the MSX flag to MAKI/MAG. Recently, MAKI/MAG support has been becoming more popular, so I have decided to publish this specification. Actually, I should have published it sooner, but the mail to Rinn got lost... -- oi oi (^_^;; Earlier, I was responding to those who asked, but I could not give accurate information. Apologies! (But I got it almost right?! (^_^;;) Now that I found the e-mail, I want to officially publish it. ☆ MAKI MSX flag position In MAKI, the MSX flag shall be in the file header, the last three bytes of the 23-byte name field. (Please refer to the MAKI specification for the position of the name.) The three bytes are: 0x1a + model code (1 byte) + variable (1 byte). (That is, it is the same as MAG, so you can use it on not only MSX ☆) (Please contact Rinn-san if you need to add a new model code.)   In other words, it is translated using 3 bytes immediately before the 0x1a that terminates the name field. The model code was changed to: 0 = off, 3 = MSX. (Same as MAG) Whether or not the variable is present depends on the 0x1a position. The variable encodes the width and height of the saved screen, so that when reproducing it on MSX, the original picture is displayed correctly. By the way, in MAKI, the model-specific flag is only present in MSX images. Since the name field has a fixed size, it's not a problem to insert an additional 0x1a in there. However, if the model-specific flag is attached, the 0x1a will be moved by 1 byte. Be careful ☆ When checking if the MSX flag is present, check if 0x1a exists in the last three bytes of the name field. Next, if the model code is 3, the MSX-exclusive flag exists. Otherwise, it does not. MAG MSX flag position This is in the MAG specification, please see that. Using the MSX flag The MSX flag byte parts are: 0 SSS LL MM. 0 - not used SSS - used to set the graphic mode: 000 - Screen mode 7 001 - Screen mode 8 (not used in MAKI) 010 - Screen mode A (not used in MAKI) 011 - Screen mode B (not used in MAKI) 100 - Screen mode C (not used in MAKI) 101 - Screen mode 5 (not used in MAKI) 110..111 - not used LL - number of rows: 00 - 400 rows 01 - 212 rows 10 - 238 rows (not used) 11 - not used MM - Horizontal storage position 00 - L 01 - M 10 - R 11 - W This is meaningful only when loading on MSX.   In the case of MAKI, when loading, the position adjustment existed, but the image would not be screen mode 7. But with the MSX flag it is automatically translated as a screen mode 7 image. In fact, MAKI was planned to work with all screen modes, but it became unnecessary with the advent of MAG. The horizontal storage position is unnecessary in MAG. (So it should always be set to 00) However, if you add the MSX flag to an image whose width exceeds 512, you can set the display position in advance. (May work in MAKI) (I have not made a tool for that yet (^_^;; Do I need to?) MAG does not need the number of rows. However, for now, we set the flags anyway (^_^;; I thought it was necessary when working on MAKI and added it. Why was it necessary?! I can not remember it clearly (^_^;; I thought MAKI can only display up to 200 rows, but MSX has 212 rows ☆ So, when I crossed it, I thought there should be a flag. Conclusion   Well, now, looking at it again, what did you set for?! Nothing, there are things that I think (^_^;; However, even as it is, it still helps ☆, right? ☆ (^_^;; (^_^;; If you are going to make a loader/saver for MAKI/Mag, you will be able to follow this standard. ~ MERON ~ (NAT23181) 1992/03/06 --------------------------------------------------------------------- About MSX flag in MAG by MERON 1992/06/13 Since MAG's two-screen loader has appeared, we changed it to enable the row flag. LL 00 ... 400 (424) rows 01 ... 212 rows (in the current saver, this is the default) 10 ... 236 rows (not used) 11 ... not used ~ MERON ~ P.S. When in screen mode 7, in horizontal compression mode (W mode), will it be crushed when displayed?! Should the MSX flag be set in order to eliminate the harmful effect even in the screen mode 7 two-screen save also?! 1992/06/13