[docs]classStaticData(SimData):""" A simple SimData utility class to use when you have a SimData which should provide just a static set of bytes. To use, implement the following: :cvar name: The name of the symbol to provide. :cvar libname: The name of the library from which the symbol originally comes (currently unused). :cvar data: The bytes to provide """type=SymbolType.TYPE_OBJECTdata:bytes=NotImplemented
[docs]classStaticWord(SimData):""" A simple SimData utility class to use when you have a SimData which should provide just a static integer. To use, implement the following: :cvar name: The name of the symbol to provide. :cvar libname: The name of the library from which the symbol originally comes (currently unused). :cvar word: The value to provide :cvar wordsize: (optional) The size of the value in bytes, default the CPU wordsize """type=SymbolType.TYPE_OBJECTword:int=NotImplementedwordsize:int=None
[docs]classPointTo(SimData):""" A simple SimData utility class to use when you have a SimData which should provide just a pointer to some other symbol. To use, implement the following: :cvar name: The name of the symbol to provide. :cvar libname: The name of the library from which the symbol originally comes (currently unused). :cvar pointto_name: The name of the symbol to point to :cvar pointto_type: The type of the symbol to point to (usually ``SymbolType.TYPE_FUNCTION`` or ``SymbolType.TYPE_OBJECT``) :cvar addend: (optional) an integer to be added to the symbol's address before storage """pointto_name:str=NotImplementedpointto_type:SymbolType=NotImplementedtype:SymbolType=SymbolType.TYPE_OBJECTaddend:int=0