Table of Contents Previous topic Next topic
The Extension Interface->General Purpose Interface Calls->SetPortPins()
extern "C" LONG SetPortPins(LONG nExtensionState, BYTE nPortAddress, BYTE nPins, LONG bSimulating)
This is called when the simulator is writing to the port at sfr address nPortAddress and the extension should use the values of any pins that it is using as outputs from the microcontroller.
The extension should return one to force the simulator to completely update all windows. You might wish this to happen if, for instance, the extension switches memory banks.