Harvard vs. vonNeuman

From: Cameron Kaiser <spectre_at_floodgap.com>
Date: Tue Sep 28 15:16:59 2004

> > I have yet to see a good use for self-modifying code. Other than
> > subroutines and interupts placing data into a code segement the only
> > self modifying code I have seen was for the 8088.
>
> Self-modifying code was somewhat common in the 6502 world. I have seen
> (and written) several examples for the PET, VIC-20, C-64, and Apple II.

I was about to say that very thing. Due to the paucity of registers and the
crammed zero page in the 6502 architecture, I often wrote pointers in-line
in my programs (i.e. with absolute or absolute-indexed addressing), and
updated them directly in place rather than the classic way of indirect
indexed addressing where you have a pointer outside of the program that is
updated. In fact, this is still a habit of mine, even when it's not
strictly speaking necessary or elegant.

-- 
---------------------------------- personal: http://www.armory.com/~spectre/ --
 Cameron Kaiser, Floodgap Systems Ltd * So. Calif., USA * ckaiser_at_floodgap.com
-- An apple every eight hours will keep three doctors away. -------------------
Received on Tue Sep 28 2004 - 15:16:59 BST

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:37:32 BST