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
BYTE Magic number (always 0xFD, 253)
INT Segment. Set this to 0x9999 when saving.
INT Offset is always 0
INT Length, the number of bytes
Personal tools