Contents    Page-10    Prev    Next    Page+10    Index   

Banked Memory

A load instruction transfers data from memory to a register; A store instruction transfers data from a register to memory.

Some CPU architectures employ a banked memory in which memory is divided into two banks that can be accessed independently. This allows instruction fetching (from the instruction bank) to be overlapped with data access (from the data bank).


I1:   LDA  X           y := x
I2:   STA  Y

With banked memory, the CPU can run twice as fast. On such a machine, the compiler and linker will have to put code and data in separate banks.