I try to improve the firmware!
so i add a request (REQUEST_CPU_READ2)to the firmware
and write a new function named cpu_read2
if not call cpu_write_6502, cpu_read_6502 can read data。
like thie:
so i add a request (REQUEST_CPU_READ2)to the firmware
and write a new function named cpu_read2
Code:
cpu_read2(...)
{
cpu_write_6502(...);
cpu_read_6502(...);//this funtion will faild,can not read the data,why
}
{
cpu_write_6502(...);
cpu_read_6502(...);//this funtion will faild,can not read the data,why
}
if not call cpu_write_6502, cpu_read_6502 can read data。
like thie:
Code:
cpu_read2(...)
{
//cpu_write_6502(...);
cpu_read_6502(...);//it's ok
}
{
//cpu_write_6502(...);
cpu_read_6502(...);//it's ok
}