Binary layout of restunts.exe

Base Segment description Segment name Segment class Segment group
1000 Original code segments SEGxxx STUNTSC  
3B77 Original data segment DSEG STUNTSD DGROUP
4649 New data generated by the C compiler _DATA DATA DGROUP
? Stack and uninitialized data STACK, SEG041, _BSS STACK and BSS DGROUP
? New code generated by the C compiler _TEXT and *_TEXT CODE  

Segment ordering is controlled by wlinks ORDER directive in the makefile.

The medium model dictates that DGROUP can be max 64k.