Camen Design Forum

Delete

(Leave this as-is, it’s a trap!)

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[6]: Kroc's Work Log

Kroc

This function is such drudgery! I haven't been able to do much in the last week. The Abstract Syntax Tree is now generated with the nodes linked together. I need to write more error messages and carefully check that all the possible validity checks are being made.

Once this is done I will flesh out the RAM Page feature explained a couple of posts up as the Sonic 1 code is not assembling with the correct RAM addresses at the moment.

I had a nice idea for handling appending to data tables, something that is very necessary in assembly and useful for making extensible code. For my needs, I would like all the mobs (enemies and interactive objects) in Sonic 1 insert their required code and table-entries (across the code-base) only when that mob's file is included, allowing fully dynamic inclusion and ordering of mobs.

An elegant way of handling this dynamic inclusion would be to define a table initially deft of data:

% OZ80
TABLE :pointers SECTION ::mobs
%

And then allow us to append a row of data to this table anywhere in the code-base:

% OZ80
ROW :pointers SECTION ::mobs {
WORD :sonic
}

This would also make row indexing and enumeration easier and more implicit too.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn