Multiple "DAT" trick for huge assembly section
Rayman
Posts: 14,826
Working on a very large assembly code and it get's hard to navigate when it's big...
Here's a trick to aid navigation:
Insert "DAT" commands in every subsection.· This way, you can use the slight color change to see different sections.
But, more importantly, the summary view lets you instantly jump to the desired section.
Here's a look at my summary:
(I'm not sure Parallax intended DAT to be used this way, but it seems to work just fine....)
Here's a trick to aid navigation:
Insert "DAT" commands in every subsection.· This way, you can use the slight color change to see different sections.
But, more importantly, the summary view lets you instantly jump to the desired section.
Here's a look at my summary:
(I'm not sure Parallax intended DAT to be used this way, but it seems to work just fine....)
Comments
-Phil
I think some other big ones, like TV/VGA drivers and Graphics.SPIN could use this kind of thing, to make it easier to navigate...
(EDITED 3-5-2009)
Actually, every block (CON,VAR,OBJ,PUB,PRI,DAT) has slight color variations between them·which are intended to·be·simple, automatic, "landmarks" for your eyes to quickly find something you're looking for.· The PUB/PRI blocks will each always be separate public/private methods, rather than parts of the same block, but the other block types may be used the way you suggested.
To answer Phil's question:
The cog address (affected by ORG) is not reset at the start of DATs, you'll have to issue a separate ORG every time you want to change the cog address.
Take care,
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.
Post Edited (Jeff Martin (Parallax)) : 3/5/2009 6:22:32 PM GMT
-Phil
It is nice that we have BST with colored sections, because I do all my programming in OS X. (Occasionally in Linux).
Definitely, multiple PUB/PRI blocks are distinct public/private methods and not part of the same block.
The CON, VAR, OBJ, and DAT blocks can be used in a contiguous fashion as if they were all one block.
In fact, you can even do things like this (though it's not recommended for most cases):
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.