File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 22
22
// Updated to only use M1 cycles for opcode fetches and not for subsequent bytes.
23
23
// Also fixed M1 signal which never was asserted low.
24
24
//
25
+ // Revision 2 1/28/2023
26
+ // Updated decode_table_0xCB to fetch_byte rather than fetch_opcode so R does not increase
25
27
//
26
28
//------------------------------------------------------------------------
27
29
//
@@ -2198,7 +2200,8 @@ void decode_table_0xCB() {
2198
2200
2199
2201
2200
2202
if ( (prefix_dd==1) || (prefix_fd==1) ) {
2201
- cb_prefix_offset = Fetch_opcode();
2203
+ //cb_prefix_offset = Fetch_opcode();
2204
+ cb_prefix_offset = Fetch_byte();
2202
2205
opcode_byte = Fetch_opcode();
2203
2206
CB_opcode = opcode_byte;
2204
2207
}
Original file line number Diff line number Diff line change 18
18
// Revision 1 5/25/2022
19
19
// Initial revision
20
20
//
21
+ // Revision 2 9/1/2023
22
+ // Updated decode_table_0xCB to fetch_byte rather than fetch_opcode so R does not increase
21
23
//
22
24
//------------------------------------------------------------------------
23
25
//
@@ -1999,7 +2001,8 @@ void decode_table_0xCB() {
1999
2001
2000
2002
2001
2003
if ( (prefix_dd==1) || (prefix_fd==1) ) {
2002
- cb_prefix_offset = Fetch_opcode();
2004
+ //cb_prefix_offset = Fetch_opcode();
2005
+ cb_prefix_offset = Fetch_byte();
2003
2006
opcode_byte = Fetch_opcode();
2004
2007
CB_opcode = opcode_byte;
2005
2008
}
You can’t perform that action at this time.
0 commit comments