Crossware

Table of Contents        Previous topic       Next topic       

Virtual Workshop Interface->General Purpose Interface Calls->SetPortPins()

extern "C" LONG SetPortPins(LONG nExtensionState, DWORD nPortAddress, DWORD nPins, LONG bSimulating)

This is called when the simulator is writing to the port at address nPortAddress and the extension should use the values of any pins that it is using as outputs from the peripheral.

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.