Closed sam-falvo closed 8 years ago
I need to know the size of a loaded segment in order to calculate the bounds within which to look for romtags.
A segment, then, should consist of the following header and body combination:
+0 pointer to next segment. Currently unused, so keep this null. +8 size of the data that follows, in bytes.
Thus, to getmem a segment of size s, you need to allocate s+16 bytes.
getmem
I need to know the size of a loaded segment in order to calculate the bounds within which to look for romtags.
A segment, then, should consist of the following header and body combination:
Thus, to
getmem
a segment of size s, you need to allocate s+16 bytes.