Question about Memory addresses

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about Memory addresses

kostya3312
1) What should be the behavior of the Memory chip if program will try to load some value by not allowed addresses ( > 24576 ) ?
2) Why there is a possibility to load value by address 24576 (keyboard). Specification of Keyboard chip says that it hasn't input.
Reply | Threaded
Open this post in threaded view
|

Re: Question about Memory addresses

cadet1620
Administrator
kostya3312 wrote
1) What should be the behavior of the Memory chip if program will try to load some value by not allowed addresses ( > 24576 ) ?
That behavior is unspecified, anything can happen.  Most students return the Keyboard value for values 24576-32767.
2) Why there is a possibility to load value by address 24576 (keyboard). Specification of Keyboard chip says that it hasn't input.
I think that you are confusing directions. The Keyboard chip has an output which is connected to the Memoy's output when reading address 24576. The Keyboard chip has no input, so there is no place to store anything if there is a write to memory address 24576.

--Mark