Class AbstractMemory

  • All Implemented Interfaces:
    Memory, Plugin

    public abstract class AbstractMemory
    extends java.lang.Object
    implements Memory
    Implements fundamental functionality useful for most of the memory plugins.
    • Field Detail

      • pluginID

        protected final long pluginID
        Plugin ID assigned by emuStudio
      • applicationApi

        protected final ApplicationApi applicationApi
        emuStudio API.
      • settings

        protected final PluginSettings settings
        Memory custom settings.
    • Constructor Detail

      • AbstractMemory

        public AbstractMemory​(long pluginID,
                              ApplicationApi applicationApi,
                              PluginSettings settings)
        Creates new instance.
        pluginID - plugin ID
        applicationApi - emuStudio API
        settings - plugin custom settings
    • Method Detail

      • getProgramLocation

        public int getProgramLocation()
        Get program location in memory.
        Specified by:
        getProgramLocation in interface Memory
        program memory location
      • setProgramLocation

        public void setProgramLocation​(int programLocation)
        Set program location in memory. It should be called after successful compilation, if the compiler has loaded the program in the memory. Program location will be then used by CPU and emuStudio to know where it can start emulating the program.
        Specified by:
        setProgramLocation in interface Memory
        programLocation - program location in memory
      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: Plugin
        Get run-time title of this plugin.

        The title is a matter of change during runtime - for example there might be a device which might be used many times but it is called differently for each instance.

        Specified by:
        getTitle in interface Plugin
        run-time title of the plugin
      • reset

        public void reset()
        No-operation. Should be overridden if needed.
        Specified by:
        reset in interface Plugin