KestrelComputer / kestrel

The Kestrel is a family of home-made computers, built as much as possible on open-source technology, and supporting as much as possible the open-source philosophy.
http://kestrelcomputer.github.io/kestrel
Mozilla Public License 2.0
185 stars 10 forks source link

Problem: loadseg doesn't record size of segment. #151

Closed sam-falvo closed 8 years ago

sam-falvo commented 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.