This commit is contained in:
Will Scullin 2020-11-15 18:27:35 -08:00
parent 231d7d8768
commit 14b8e13f79
No known key found for this signature in database
GPG Key ID: 9092A5C0A673416B

View File

@ -12,19 +12,19 @@ export default class Test65C02 implements PageHandler {
this.data = fs.readFileSync(path.join(__dirname, '65C02_extended_opcodes_test.bin')); this.data = fs.readFileSync(path.join(__dirname, '65C02_extended_opcodes_test.bin'));
} }
start = function() { start = () => {
return 0x00; return 0x00;
} }
end = function() { end = () => {
return 0xff; return 0xff;
} }
read = function(page: byte, off: byte) { read = (page: byte, off: byte) => {
return this.data[page << 8 | off]; return this.data[page << 8 | off];
} }
write = function(page: byte, off: byte, val: byte) { write = (page: byte, off: byte, val: byte) => {
this.data[page << 8 | off] = val; this.data[page << 8 | off] = val;
} }
} }