Skip to content

Commit

Permalink
Updated to v2.1.0 with support for changed plugin interface of CSpect…
Browse files Browse the repository at this point in the history
… 2.15.1.
  • Loading branch information
maziac committed Dec 11, 2021
1 parent ff9ff5b commit 10042e7
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.1.0
- Updated reference to CSpect 2.15.1. (increased major number as CSpect increased major number).

## 2.0.1
- Updated reference to CSpect 2.14.8.

Expand Down
2 changes: 1 addition & 1 deletion DeZogPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Plugin">
<HintPath>..\CSpect2_14_08\Plugin.dll</HintPath>
<HintPath>..\CSpect2_15_01\Plugin.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
28 changes: 25 additions & 3 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public void Tick()

/**
* Writes a TX byte (_value).
* The bytes are collected until enough (length) data has been received.
* If no client is connected nothing happens, the byte is not cached.
* Unused.
*/
public bool Write(eAccess _type, int _port, byte _value)
{
Expand All @@ -82,13 +81,36 @@ public bool Write(eAccess _type, int _port, byte _value)

/**
* Reads the state or reads a byte from the receive fifo.
* _isvalid is set to true if the returned value could be provided.
* _isvalid is set to true if the returned value could be provided.
* Unused.
*/
public byte Read(eAccess _type, int _port, out bool _isvalid)
{
_isvalid = false;
return 0;
}


/**
* Called whenever a key is pressed.
* @param _id The key id.
* @returns true if the plugin handled the key.
*/
public bool KeyPressed(int _id)
{
// Not used
return false;
}


/**
* Called when the machine is reset.
*/
public void Reset()
{
// Not used
}

}
}

Expand Down
2 changes: 1 addition & 1 deletion Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
// and "{Major}.{Minor}.{Build}.*" will update just the revision.

[assembly: AssemblyVersion("2.0.1.*")]
[assembly: AssemblyVersion("2.1.0.*")]

// The following attributes are used to specify the signing key for the assembly,
// if desired. See the Mono documentation for more information about signing.
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DeZog will connect to this socket when a debug session is started.

# Functionality

The plugin supports DZRP v1.0.0. With the following functionality:
The plugin supports DZRP v2.0.0. With the following functionality:
- Continue/StepInto/StepOver/StepOut
- Get memory content
- Get register content
Expand Down

0 comments on commit 10042e7

Please sign in to comment.