Added tick() function.
Added function to write the data bus and the address bus.