I'm thinking about how to patch a single byte on a ROM.
The idea is to use diodes on the Address bus to set the address to be patched.
Them make a latch active wich have the data to be patched.
Probably I should disable the ROM when the address is matched.
I know this probably is a stupid idea, but I'm asking if this can work.
If not, what is the propper way to doing it?
Maybe I should use a multi input/cascated AND or NAND gates, but the diodes are easier for me to get.
Also, what value should I use for the resistor? (if it's not a completelly bad idea)
Thanks in advance.
The idea is to use diodes on the Address bus to set the address to be patched.
Them make a latch active wich have the data to be patched.
Probably I should disable the ROM when the address is matched.
Code:
Address Bus
A1 --->|--+
A2 ---|<--+
. |
. |Data Bus D0 ............D7
. | |_|_|_|_|_|_|_|
AN --->|--+--/\/\---|CE LATCH |
---------------
| | | | | | | |
Patched Data D0 ...........D7
| |...........|
GND...........Vcc
A1 --->|--+
A2 ---|<--+
. |
. |Data Bus D0 ............D7
. | |_|_|_|_|_|_|_|
AN --->|--+--/\/\---|CE LATCH |
---------------
| | | | | | | |
Patched Data D0 ...........D7
| |...........|
GND...........Vcc
I know this probably is a stupid idea, but I'm asking if this can work.
If not, what is the propper way to doing it?
Maybe I should use a multi input/cascated AND or NAND gates, but the diodes are easier for me to get.
Also, what value should I use for the resistor? (if it's not a completelly bad idea)
Thanks in advance.