Sunday, December 13, 2009

Into the Code Section

Finished going through the equate statements in the first half of the program. So far, I've just been able to flick back and forth between the equate statement and the line of code using the value. If it gets more complicated, I'll make a spreadsheet with the values and names (Excel - the last refuge of scoundrels.)

The system defines several flash banks (Flash Bank 1, Flash Bank 2 - with parallel setup.) I'm going to guess these are banks of flash memory that the chip can access.

Some DCD instructions assigning values equated above or 0xFFFFFFFF in a default case. They don't have labels, so I don't see how they are used later. Well, they're written to a specified location, so I guess it's done directly. Everything else has labels, though, so I'm not sure why not these.

And we're up to the area definition and entry point. Starts out with a series of unconditional branch commands. I recognize the concept from Gibson's book. These commands start at the 0 memory location, which is where the control jumps when the power is cycled.

There's no code for the reset handler, but it is exported. I assume you have to write the export handler.

Note to me: read up on IMPORT and EXPORT keywords.

And we're getting into assigning values specified in the EQU section to the correct locations in memory - also specified in the EQU section.

More tomorrow.

No comments:

Post a Comment