mirror of
https://github.com/pskupinski/65816.js.git
synced 2024-06-05 22:29:30 +00:00
added JMP absolute
This commit is contained in:
parent
a5d690e9cb
commit
952b6ba840
11
cpu.js
11
cpu.js
|
@ -74,7 +74,7 @@ function CPU_65816() {
|
|||
0x9e : STZ_absolute_indexed_x,
|
||||
0x74 : STZ_direct_page_indexed_x, 0x9b : TXY,
|
||||
0xbb : TYX, 0xaa : TAX, 0xa8 : TAY, 0x8a : TXA,
|
||||
0x98 : TYA };
|
||||
0x98 : TYA, 0x4c : JMP_absolute };
|
||||
}
|
||||
|
||||
var MMU = {
|
||||
|
@ -114,6 +114,15 @@ var MMU = {
|
|||
}
|
||||
};
|
||||
|
||||
var JMP_absolute = {
|
||||
bytes_required:function() {
|
||||
return 3;
|
||||
},
|
||||
execute:function(cpu, bytes) {
|
||||
cpu.r.pc = (bytes[1]<<8)|bytes[0];
|
||||
}
|
||||
};
|
||||
|
||||
var TYA = {
|
||||
bytes_required:function() {
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user