 Contended memory occupies addresses 0x4000..0x7FFF of the Z80 memory map.This is the first 16 KB of RAM in the 48 KB machine and the entire RAM of the 16 KB machine.Contention occurs as a result of the ULA reading the display and attributes data in this RAM to produce the TV video display.