Replacing a 2364 ROM with a 2764 EPROM requires an adapter. You can use a 2364 to 27128 adapter to be able to switch between two different ROMs (ex: cbm original and a floppy speeder kernal).

 

2364 to 2764 adapter

2364to2764

 

2364 to 27128 adapter

2364 to 27128

R1 = 4.7k ohm
J1 = Switch