Java implementation of 6502 CPU core