Harvard vs. vonNeuman

From: Wai-Sun Chia <waisun.chia_at_hp.com>
Date: Fri Oct 1 02:38:08 2004

Did the use of your self-modifying code in the past propelled you to the
future from where you're sending us mail in the present? :-)

Sean 'Captain Napalm' Conner wrote:
> It was thus said that the Great ben franchuk once stated:
>> 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.
> Back when I took Assembly langauge (8086) at college, I used
> self-modifying code in one of the assignments (the teacher and I didn't get
> along and this was my attempt at getting a "rise" out of the teacher). The
> assignment was to sort a list of numbers in ascending or descending order
> (depending upon user input) so I simply changed the jump instruction after
> the compare in the sort routine. It saved either two copies of the routine
> (differing in only a single instruction), a complicated logical nest in the
> middle of a sort routine, or using a callback routine.
> As far as I can recall, that was the *only* time I've ever done
> self-modifying code.
> -spc (And it seemed like a good reason at the time ... )
Received on Fri Oct 01 2004 - 02:38:08 BST

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