# The Videopac+ G7400: EF9340 + EF9341 (a later row) ## What is added - A Thomson **EF9340** (VIN, video input/timing) and **EF9341** (GEN, character generator) pair: a Teletext-style 40 x 24 text display, characters 8 x 10, 8 colours, a service row, parallel attributes (colour, double height and width, inverse, blinking) and serial attributes (background colour for text, conceal, box, underline); up to 96 redefinable characters with default background and 96 with explicit background (GUST 14.1). 4 KB of its RAM is used of 6 KB fitted (GUST 14.11.2). - An **Intel 8243** port expander on the 8048 (MAME's device list for videopacp, jopac and odyssey3; what it drives is U13). - P1.5 low selects the EF9340/41 for `MOVX` (GUST 16.1). - A BIOS modified at 153 bytes for the new SELECT GAME screen; the bit-field and random number routines were removed to make room (GUST 14), so some G7000 programs fail (GUST's bitfield.a48: "does not run on Videopac+ G7400 machines"). ## How the two pictures combine (GUST 14.3, 14.11; tier 3) - The EF9340/41 picture is **always behind** the 8245's objects. - Each of the 8 VDC colours can be made transparent (the BIOS routine `plusmode`, R7 bits). - EF9340/41 objects in a bright colour take part in collisions as the 8245's **external** overlap (bit 6), through the CX pin; dark ones do not (GUST's coll-plus.a48). - **Box mode** can only black out the screen outside the box zone. If **cartridge pin B is not grounded**, even the 8245's graphics are blanked outside the box. This is the `b_pin` feature in MAME's software list (47 entries; census.md). ## The EF9340/41 sources | Source | Tier | Status | | --- | --- | --- | | Thomson/SGS-Thomson EF9340 and EF9341 data sheets | 2 | **not pinned**: listed by datasheet aggregators (alldatasheet, 28 pages, 1 MB, which refuse automated fetches); GUST found it there too. Owed by hand (open decision 9) | | SGS-Thomson Graphic Processors Databook, March 1989 (GPDB) | 2 for the EF9345 only | pinned: its EF9345 is "upward compatible with EF9340/41", "binary code compatible with few exceptions: flashing attribute is negated, A7 is negated in delimitors", with two underline differences. Useful only to read the 9340/41 data sheet against | | GUST chapter 14 | 3 | the programmer's view on the G7400 | | MAME `video/ef9340_1.cpp` | 5, run only | its character ROM dump `charset_ef9340_1.rom` (2,560 bytes, SHA-1 f8e38922...ca8) is marked **baddump** by MAME | ## Clocks GUST 13.2: "The Videopac+ G7400 uses different clock sources for CPU and VDC, so there is no fixed relationship between CPU and VDC clock." MAME: 8048 at 5.911 MHz, 8245 at 3.5468 MHz. The EF9340/41 clock and its relation to the 8245's dot clock are U14. For the board this means **two clocks in one tightly coupled domain** (the CX collision line is a per-dot channel), converted at the bus: see the brief's "Domains and speed". ## Add-ons that need the G7400 or are big enough to be their own boards From MAME's software list (CC0): the **C7010 Chess Module** (an NSC800 Z80-compatible CPU with its own ROM: `o2_chess`) and the **C7420 Home Computer Module** (a Z80 with BASIC ROM and a cassette: `o2_homecomp`). Both are separate boards in the add-on shape (they would pin z80-python), not part of this repository's plan.