View Single Post
Old 6th May 2013, 04:04 AM
zilmar zilmar is offline
Core Team
Alpha Tester
Project Supporter
Join Date: Jun 2005
Posts: 988

Simple idea, the actual code is a lot more complicated.

The options are that I see:
  • Use SEH (which pj64 is doing)
  • Check address range on each read/write
  • have a function write table, where you pass the address in and execute the function in the list

the last one I had considered, since i am already looking up in essence on 4k memory address to check if an address is translated from virtual to physical.

Where at the moment I get a pointer, I write to it, if it is null then I generate an exception.

maybe if null .. then call the function.

Partly I considered this for be able to detect easier when writing to cfb.

Not sure of the performance issues. (causing an exception is very slow, with re compiler and advanced block linking, it does not happen that much).
Reply With Quote