Hello z80 with arduino

I think, the Mega stores the Z80 machine code and applies it to the Z80 pins via I/O pin sequences.