摘要 |
A method for dynamically altering Read-Only Memory (ROM)-based programs utilizes Random-Access Memory (RAM) and standard processor linkages associated with subroutine or function calls. Each original ROM program includes a statement to call a ROM processing routine. If information passed to the processing routine by the original routine indicates a RAM-based replacement routine is to be executed for the original routine, the processing routine (i) restores the processor to its state immediately following the call to the processing routine, and (ii) branches directly to the replacement routine at a location provided by a RAM-based data structure.
|