TWIGZ Engine Memory Usage

Memory for the TWIGZ Engine is stored mostly in XMS memory. EMS memory is used mainly as a secondary screen buffer and for some other graphical memory functions. Below is a table explaining how, exactly, XMS memory is used by the TWIGZ Engine. (Note: All items in red represent the XMS memory "handle" that the TWIGZ Engine uses to access those areas in XMS).

BinVarHandle&    
Offset
Length
Description
0 4004 1000 Bin Variables
5000 1440 GUI Font A-Z, 0-9
6440 6020 Dialogue Font A-Z, 0-9, Special Chars, a-z
12460 1040 GUI Font a-z
13500 660 GUI Font Special Characters
14100 1260 Mouse Cursors
15360
Varies
Costume Headers: Sets, Images, Offsets, Lengths
End of Costume Header
Varies
Costume Image Pixel Maps
   
XMSHandle&    
Offset
Length
Description
0 46080 Map Image 1
46080 46080 Map Image 2
92160 46080 Map Image 3
138240 17920 Inventory With Items
156160 17920 Dialogue GUI (Text Choices)
174080 17920 Blank Inventory
192000 17920 Blank Dialogue GUI
209920 64000 GUI Menu (with transparency)
   
XMSMaskHandle&    
Offset
Length
Description
0 46080 Map Mask Image 1
46080 46080 Map Mask Image 2
92160 46080 Map Mask Image 3
138240
Varies
Default Inventory Images
  
XMSObjects&    
Offset
Length
Description
FO L Object Set 1, Image 1
FO + L L Object Set 1, Image 2
FO + (2 * L) L Object Set 1, Image 3
FO + (3 * L) L Object Set 1, Image 4
    … … … … … … … …
FO + (Total Images * L) L2 Object Set 2, Image 1

Note: L = Object Image Length, FO = First Set Object Offset

Top

© 2004 Shattered Realm Productions