Skip to content

Instantly share code, notes, and snippets.

@houmei
Created December 9, 2025 14:57
Show Gist options
  • Select an option

  • Save houmei/cda42aa4be7bae2b180653631c27c66b to your computer and use it in GitHub Desktop.

Select an option

Save houmei/cda42aa4be7bae2b180653631c27c66b to your computer and use it in GitHub Desktop.
FM-11 Z80 CARD BANKREGISTER
Name FM11Z80BANK;
PartNo FM11Z80;
Revision 01;
Date 25/12/08;
Designer Katunori Takesita;
Company MSD;
Assembly ;
Location ;
Device G22V10;
/* INPUTS */
Pin 1 = CLK; /* BANKSET */
Pin 2 = DB0;
Pin 3 = DB1;
pin 4 = DB2;
pin 5 = DB3;
pin 6 = !RESET;
pin 7 = ZA14;
pin 8 = ZA15;
pin 9 = CPUSEL; /* "1"=8088 */
/* pin 12 GND */
pin 13 = OE; /* WAITZ / AB[19:16] enable if z80 is waiting */
/* OUTPUTS */
/* pin 24 Vcc */
Pin 23 = BANKA16;
Pin 22 = BANKA17;
Pin 21 = BANKA18;
Pin 20 = BANKA19;
Pin 19 = AB16;
Pin 18 = AB17;
Pin 17 = AB18;
Pin 16 = AB19;
[BANKA16..19].ar = RESET;
BANKA16.sp = 'b'0;
BANKA17.sp = 'b'0;
BANKA18.sp = 'b'0;
BANKA19.sp = 'b'0;
AB16.oe = OE;
AB17.oe = OE;
AB18.oe = OE;
AB19.oe = OE;
BANKA16.d = DB0;
BANKA17.d = DB1;
BANKA18.d = DB2;
BANKA19.d = DB3;
$DEFINE BSEL (ZA14 $ ZA15)
AB16 = (BSEL & BANKA16) # (!BSEL & CPUSEL);
AB17 = (BSEL & BANKA17);
AB18 = (BSEL & BANKA18);
AB19 = (BSEL & BANKA19);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment