Department of Computer Science and Information EngineeringNational Cheng Kung University, TAIWAN8051 HANEL
REGISTER BANKS AND STACKRegister Banks (cont’)
We can switch to other banks by use of the PSW register
¾Bits D4 and D3 of the PSW are used to select the desired register bank¾Use the bit-addressable instructions SETB and CLR to access PSW.4 and PSW.3
11Bank 301Bank 210Bank 100Bank 0RS0(PSW.3)RS1(PSW.4)PSW bank selection