I extended fxTerm to be able to be able to receive requests from the serial port and send back data at a requested address. What I found gives me pretty good confidence that the Casio fx-CG50 has an 8 MiB RAM chip (or at-least mine does) and that all the address lines are wired up correctly such that it's possible to access that memory. By access I mean that literally. I don't mean that it's safe to access in your program because some of it is used by the OS.
What I did was run this command:
Code:
I then split the file up in half and verified that the first half and the second half match for the most part. Of course it's not going to be exactly the same because the screen changes but it was very close.
Now the question is how much of that memory do we get to use? I don't have that answer yet. It would be nice to be able to get it from a system call like we can for both the primary and secondary VRAM buffers but unfortunately the best we can do might be disassembling the OS and seeing what is not used. Of course the problem with that approach is the add-in would only work on one version of the OS.
What I did was run this command:
Code:
python3 memory-dump-host.py /dev/ttyACM0 0x8C000000 16777216 16mb_ram_dump.bin
I then split the file up in half and verified that the first half and the second half match for the most part. Of course it's not going to be exactly the same because the screen changes but it was very close.
Now the question is how much of that memory do we get to use? I don't have that answer yet. It would be nice to be able to get it from a system call like we can for both the primary and secondary VRAM buffers but unfortunately the best we can do might be disassembling the OS and seeing what is not used. Of course the problem with that approach is the add-in would only work on one version of the OS.