JSS Device ROMW4D4

This device simulates a Read Only Memory (ROM) with word size 4-bits and data bus connection 4-bits. Internally, data is stored in bytes (two 4-bit words are packed into a byte). When an address is read the memory will return data in the lower 4-bits of the Java long value. When written, only the lower 4-bits will be taken into consideration and stored according to the specified address. This type of memory is useful with 4-bit CPUs, such as the Intel 4004. It is similar to the MemoryW4D4 device, but does not allow data to be written under program control. It should be initialized from a HEX or BINARY file.

Options

Implementation

https://github.com/ComputingMongoose/JavaSystemSimulator/blob/main/src/jss/devices/memory/impl/ROMW4D4.java

Youtube