I've been reading CODE by Charles Petzold, and he mentions that ROM has no data inputs, only data outputs. 

How does ROM know what address signals to recieve then, if there is factually no data inputs whatsoever? I never found any explanation in the book.