BSAVE Header

From OHRRPGCE-Wiki

Jump to: navigation, search

The BSAVE header is a "stamp" that QBasic puts on an array that it saves to disk. It tells QBasic how to load it again, and where to stick it. However, OHHRPGCE ignores most of this data, just using the size, which is what you should do too.

When saving a BSAVE lump, you can set the segment to 0x9999 and offset to 0, this will work with the OHRRPGCE. There is nothing special about the value 0x9999 - it just looks like a valid segment number to QBasic.


[edit] Formal Specs

About Formal Specs

Data Meaning
BYTEMagic number (always 0xFD, 253)
INTSegment. Set this to 0x9999 when saving.
INTOffset is always 0
INTLength, the number of bytes

ARCHINYM.LMP . BROWSE.TXT . ATTACK.BIN . BINSIZE.BIN . DEFPAL#.BIN . DEFPASS.BIN . FIXBITS.BIN . LOOKUP.BIN . MENUS.BIN . MENUITEM.BIN . PALETTES.BIN . PLOTSCR.LST . SFXDATA.BIN . SONGDATA.BIN . UICOLORS.BIN . GEN . BAM . Map Format . T . P . E . D . L . N . DOR . DOX . DT0 . DT1 . DT6 . EFS . FOR . FNT . HSP . HSZ . ITM . MAP . MAS . MN . MXS . PAL . PT0 . PT1 . PT2 . PT3 . PT4 . PT5 . PT6 . SAY . SHO . SNG . STF . STT . TAP . TIL . TMN . VEH

Personal tools