mirror of
https://github.com/whscullin/apple2js.git
synced 2024-01-12 14:14:38 +00:00
fix test
This commit is contained in:
parent
231d7d8768
commit
14b8e13f79
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user