Well, as far as the handling of negative numbers go, I made things work quite quickly, thanks to the advice I've so kindly been given in this thread.
I don't consider myself what you'd call a "seasoned" programmer in this architecture yet. But my skills have been improving steadily, and I've been learning some pretty neat tricks that to me were unimaginable a year ago.
One thing I have not yet learned, though, is how to structure memory usage for optimizing the use of registers in assembly. For instance, I want to make sure that the registers being temporarily used in a routine are not destroyed in another routine being called from the current one. This is a problem because some of the processes that I run sometimes nest as many as five levels deep, before they sequentially return to the original calling routine. And it's become hard to manually keep track of things.
Is there some book or document out there that could teach me the best practices regarding this subject?
I don't consider myself what you'd call a "seasoned" programmer in this architecture yet. But my skills have been improving steadily, and I've been learning some pretty neat tricks that to me were unimaginable a year ago.
One thing I have not yet learned, though, is how to structure memory usage for optimizing the use of registers in assembly. For instance, I want to make sure that the registers being temporarily used in a routine are not destroyed in another routine being called from the current one. This is a problem because some of the processes that I run sometimes nest as many as five levels deep, before they sequentially return to the original calling routine. And it's become hard to manually keep track of things.
Is there some book or document out there that could teach me the best practices regarding this subject?




