chickadee » sixtyfive-oh-two » make-processor

make-processor #!key memory registersprocedure

Returns a record structure representing a single 6502 processor. memory should be an u8vector that is used as RAM, usually of length 65546. registers should be an 7 element u8vector, where the elements hold the values of the registers, according to the following table:

IndexRegister
0A
1X
2Y
3P
4S
5PC (low byte)
6PC (high byte)