Control Table - Instruction Fetch

Instruction Fetch

When a multi-dimensional control table is used to determine program flow, the normal "hardware" Program Counter function is effectively simulated with either a pointer to the first (or next) table entry or else an index to it. "Fetching" the instruction involves decoding the data in that table entry - without necessarily copying all or some of the data within the entry first. Programming languages that are able to use pointers have the dual advantage that less overhead is involved, both in accessing the contents and also advancing the counter to point to the next table entry after execution. Calculating the next 'instruction' address (i.e. table entry) can even be performed as an optional additional action of every individual table entry allowing loops and or jump instructions at any stage.

Read more about this topic:  Control Table

Famous quotes containing the words instruction and/or fetch:

    Everything from airplanes to kitchen blenders—and even chopsticks—comes with an instruction manual. Children, despite all their complexity, do not.
    Lawrence Kutner (20th century)

    We fetch fire and water, run about all day among the shops and markets, and get our clothes and shoes made and mended, and are the victims of these details, and once in a fortnight we arrive perhaps at a rational moment.
    Ralph Waldo Emerson (1803–1882)