7. Pseudo Hires Video Harware
The pseudo hires graphics video display generator consists of the Z80 CPU, ROM, RAM and a large part of the ZX-81 Sinclair logic chip (ULA) as shown in Fig. 2 with all relevant connections including the isolation resistors. For simplicity, only the 2K RAM version is shown.

The only difference between pseudo hires and Sinclair character hardware is the ULA LCNTR and the use of the INT input. Most pseudo hires core routines do not use INT and the ULA LCNTR is reset to zero every horizontal line. The exception is Xtricator which uses INT and makes dual use of the I register in INT mode 2 as part of the RST vector address when interrupted at the end of each horizontal line and at refresh time as a ROM pattern table pointer.
8. True Hires Video Hardware
The portion of the ZX81 hardware required for true hires graphics display consists of Z80 CPU, the RAM, the video shift register and the sync circuit of the ULA as hown in Fig. 4 with all relevant connections. Again the 2K SRAM is shown for simplicity but applies to larger SRAM designs as well. If a 16K RAMPACK is used, it must be slightly modified, as will be shown later, to enable the data output during RFSH time as required for this hires display method.

With the exception of WRX1K which creates a miniature hires screen on a 1K ZX81 all hires programs need a 6K hires graphics file (HFILE). Suitable RAM for true hires graphics can be implimented by modifying a standard 16K RAMPACK with a couple of diodes and a resistor.
The RAMPAK is modified to enable the data output at RFSH time by cutting the RD and RFSH lines at the edge connector and installing only two germanium diodes and a 4.7K pull-up resistor.

9. ZX81 Character Display Timing
All the Sinclair ZX81 character display hardware shown in FIG 2 is required to generate a standard screen of 24 lines of 32 characters. The character display starts when the last blank line at the top of the screen has occurred and and the video routine jumps to the DFILE echo above 32K. The hardware in the ZX81 ULA takes control when any opcode is executed above 32K (A15 high and M1 low) with data bit 6 equal to zero. The video data is loaded in these simplified steps;
1. The ULA loads the character code into a address register in the ULA
2 The ULA forces the data lines low.
3. The CPU interprets the byte as a NOP.
4. The ULA generates part of the ROM pattern table address and the Z80 CPU
generates the pattern table pointer with the I register.
5. The pattern byte is loaded into the ULA shift register.
One could say that the Dfile is literally executed with NOPs substituted for each character code. Each NOP executes in 4 CPU clock cycles at 3.25 MHz or 8 pixels at 6.5MHz from the ULA video shift register.

1. Each character code (CHR$) byte in DFILE is addressed by the CPU PC, on the rising edge T2 data is loaded from DFILE into the ULA : bits 0-5 into a 6 bit ULA address latch while bit 7 is loaded into 1 bit ULA video invert latch
2. On the falling edge of T2, the ULA forces all CPU data lines to zero.
3. On the rising edge of T3 the low data lines are interpreted by the CPU as a NOP instruction.
4. During T3/4, the CPU executes the cycle and ROM address lines are generated with I register on A9-A15, the ULA 6 bit character code register on A3-A8, and the ULA modulo 8 line counter on line A0-A2, 5.
5. On the failing edge of T4, pattern data from the ROM is loaded into ULA video shift register and 8 video pixels are shifted out at 6.5MHz.
6. If character code bit 7 latch in ULA equals 1, video pixels are inverted.
7. The CPU increments the program counter and fetches the next character code.
8. This repeats until a HALT (Sinclair) is fetched.
9. HALT opcode bit 6 = 1 and is therefore executed (no NOP).
10. The ULA generates a HSYNC pulse independend of the CPU timing and the ULA LCNTR is incremented.
11. The halted CPU continues to execute NOPs, incrementing register R and samples the INT input on the rising edge of each T4.
12. When A6, which is hardwired to INT, goes low during refresh time, (bit 6 of the R reg = 0), the Z80 executes the INT routine (below 32K)
13. CPU returns from INT and resumes “excution” of DFILE CHR$ codes.
14. The process repeats 192 times and then INT routine returns to the main video routine, turns on the NMI generator and switches back to the application code.