@FunctionalInterface public interface AccessPointListener
The listener interface for access point events. The class
that is interested in processing access point events implements this
interface and the object created with that class is registered with one of
An access point is a specified CPU Memory read or write, or instruction execution point. When an access point is defined, it is associated with an implementation of this listener, providing a callback when the access point is hit.
The CPU Memory read and write methods of
API do not trigger
access points. Consequentially, they can be called within this listener
without causing recursive loops.
int accessPointHit(int accessPointType, int address, int value)
accessPointType- One of the
AccessPointTypeconstants, indicating the type of access point that was encountered.
address- The CPU Memory address where the access point was encountered.
PostWriteprovide the read value, the value to be written and the written value respectively. The remaining access point types use
-1to indicate no value.
PreWritehandlers can optionally return a substitute byte value in place of the value to be read, the read value and the value to be written respectively, in the lower 8 bits. Or, they can return
-1to indicate no modified behavior. The returned value of the remaining access point types is ignored.
Copyright © 2017 nintaco.com
Nintaco is free software; you can redistribute it and/or modify it under the terms of LGPLv2.1.