Skip to content

Commit

Permalink
Github Markdown doesn't like our multiline tables
Browse files Browse the repository at this point in the history
So let's make them quoted text then so that they display correctly in README.MD
  • Loading branch information
leecher1337 authored Mar 27, 2022
1 parent 9c6b5e8 commit 5154cd7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ For a documented disassembly of the DOS HASP code, see the IDA DB of

Here is a table of some basic DOS HASP functions:


```
+--------------------+--------------------+----------------------------------+
| SERVICE | CALL | RETURN |
| BH=FUNC, BL=PORT | | |
Expand Down Expand Up @@ -183,6 +183,7 @@ Here is a table of some basic DOS HASP functions:
| | ES=BUFER SEG. | |
| | AX=BUFER OFFS. | |
+--------------------+--------------------+----------------------------------+
```

### The HASPDOS.SYS DOS device driver

Expand Down Expand Up @@ -427,23 +428,27 @@ calls to the underlying dongle. For this, just replace the original
HASPVDD.DLL driver with this one and set the following registry keys
in `HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HaspNt\Parameter`:

```
+--------------------+-----------+--------+
| Key Name | Type | Value |
+--------------------+-----------+--------+
| LegacyVDDInterface | REG_DWORD | 1 |
+--------------------+-----------+--------+
```

When enabled, you can see the calls being sent and received from and to the
dongle via [DebugView](https://docs.microsoft.com/en-us/sysinternals/downloads/debugview).
If you want to record the calls and check them later, you can set the
following key to log them into a binary logfile:

```
+--------------------+-----------+-----------------------------------------+
| Key Name | Type | Value |
+--------------------+-----------+-----------------------------------------+
| LogFile | REG_SZ | Full path and name of a file to log to. |
| | | i.e. C:\Temp\hasplog.dmp |
+--------------------+-----------+-----------------------------------------+
```

The logged calls can then be later dumped in human readable form by the
[dumplog](dumplog/) utility.
Expand Down Expand Up @@ -488,6 +493,7 @@ So you create a registry value `EmulateParams` with these 16 bytes under
set `LegacyVDDInterface`to 2 and if will start emulating it.
To end emulation, delete the keys.

```
+--------------------+-----------+------------------------------------------+
| Key Name | Type | Value |
+------------------- +-----------+------------------------------------------+
Expand All @@ -497,13 +503,14 @@ To end emulation, delete the keys.
+--------------------+-----------+------------------------------------------+
| LegacyVDDInterface | REG_DWORD | 2 |
+--------------------+-----------+------------------------------------------+

```

#### Summary of registry settings

These have to go into the following Registry path:
`HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\HaspNt\Parameter`

```
+--------------------+-----------+-------------------------------------------+
| Key Name | Type | Description |
+--------------------+-----------+-------------------------------------------+
Expand All @@ -528,6 +535,7 @@ These have to go into the following Registry path:
| | | exactly 16 bytes long (4 * 4) |
| | | Only applies to LegacyVDDInterface = 2 |
+--------------------+-----------+-------------------------------------------+
```

#### Build configurations notes

Expand Down Expand Up @@ -588,4 +596,4 @@ DOS applications.

## Contact

For questions, please use the Issue Tracker or other Github facilities.
For questions, please use the Issue Tracker or other Github facilities.

0 comments on commit 5154cd7

Please sign in to comment.