Re: PS Message #9 Posted by Bill Wiese on 13 Dec 2002, 8:26 p.m., in response to message #7 by Sean McNamee
Sean...
> Even if ROM isn't available, it is evident that the
> programmable memory is shared with the registers, so
> that "self-modifying" code could be entered using this
> trick, if the instruction format was known.
Umm, not quite - at least at machine level. Memory space is NOT really "unified" on such calcs; machine code in ROM is in a different 'space' than data (user programs, data memory, stack, display regs) in RAM. Also, machine ROM code, IIRC, is 10 bits wide. There is no mechanism (instruction, data path, etc.) to move data in RAM/regs to ROM space to execute machine instructions.
At 'user code' level - where you program the calculator w/keystrokes - you aren't really programming per se: you're entering *data*. This data is interpreted by a machine code routine that fetches 'tokens' and calling appropriate ML routines. With a lot of handwaving you might be able to 'execute' data. The whole premise of SP is to form normally unpairable commands/operands by using tricks - entering data, then fooling the machine and making it think it's program steps.
Bill Wiese
San Jose, CA
|