Commodore 128 Uni-Comal-Cartridge: Logic-Encoding
----------------------------------------------------------------------------
Function Table 74LS139
----------------------------------------------------------------------------
G1
G A (R/W:1/0) B (IO/1)
0 0 0 = y0 Register Write (74LS125 on Tri-State, Load 74161 Flip-Flops)
0 1 0 = y1 Register Read (74LS125 on Output, Read 74161 Flip-Flops )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
G2 A (D5) B (D6)
0 0 0 y0 U1 ROM
0 0 1 y1 unused
0 1 0 y2 U2 ROM
0 1 1 y3 U3 ROM
----------------------------------------------------------------------------
Banking will be switched by D4 : 0 = low($0000) / 1= high ($4000)
----------------------------------------------------------------------------
Example Configuration
---------------------
switch_U1_low:
lda %x000 %D7(x=unused)D6,D5 : ROM (%00 =U1) D4:Banking (0=$0000, 1=$4000)
sta io_1
rts
switch_U1_high: lda %x001 %D7(x=unused)D6,D5 : ROM (%00 =U1) D4:Banking (0=$0000, 1=$4000)
sta io_1
rts
|