From 14b8e13f79c1a55b4f87a9f9b327fe84f54829ff Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Sun, 15 Nov 2020 18:27:35 -0800 Subject: [PATCH] fix test --- test/roms/65C02test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/roms/65C02test.ts b/test/roms/65C02test.ts index ecc6fcd..f552d31 100644 --- a/test/roms/65C02test.ts +++ b/test/roms/65C02test.ts @@ -12,19 +12,19 @@ export default class Test65C02 implements PageHandler { this.data = fs.readFileSync(path.join(__dirname, '65C02_extended_opcodes_test.bin')); } - start = function() { + start = () => { return 0x00; } - end = function() { + end = () => { return 0xff; } - read = function(page: byte, off: byte) { + read = (page: byte, off: byte) => { 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; } }