This commit is contained in:
redcode
2018-11-04 10:55:14 +01:00
parent 3d9a1063f9
commit 72e24b26e9
2 changed files with 11 additions and 11 deletions

14
README
View File

@@ -27,17 +27,17 @@ Building
There is also an Xcode project in "development/Xcode" with several targets:
dynamic
Z80 (dynamic)
Shared library.
dynamic-module
Z80 (dynamic module)
Shared library with a generic module ABI to be used in modular multi-machine
emulators.
static
Z80 (static)
Static library.
static-module
Z80 (static module)
Static library with a generic CPU emulator ABI to be used in monolithic
multi-machine emulators.
@@ -80,8 +80,8 @@ Code configuration
#include "Z80.h" instead of <emulation/CPU/Z80.h>.
Use in Non-Free / Proprietary Software
======================================
Use in Proprietary Software
===========================
This library is released under the terms of the GNU General Public License v3,
but I can license it for non-free projects if you contact me.
but I can license it for non-free/propietary projects if you contact me.

View File

@@ -58,7 +58,7 @@ Name | Description
This structure contains the state of the emulated CPU and callback pointers necessary to interconnect the emulator with external logic. There is no constructor function, so, before using an object of this type, some of its members must be initialized, in particular the following: `context`, `read`, `write`, `in`, `out`, `int_data` and `halt`.
Descriptions of each member follow:
Member descriptions:
<br>
```C
zusize cycles;
@@ -154,7 +154,7 @@ Callback: Called when the CPU needs to write 8 bits to an I/O port.
zuint32 (* int_data)(void *context);
```
**Description**
Callback: Called when the CPU starts executing a maskable interrupt and the interrupt mode is 0. This callback must return the bytes of the instruction that the CPU would read from the data bus in this case.
Callback: Called when the CPU needs to read one instruction from the data bus to service a maskable interrupt (`INT`) in mode 0.
**Parameters**
`context` → The value of the member `context`.
**Returns**
@@ -229,5 +229,5 @@ This is equivalent to a change in the `INT` line of a real Z80.
<br>
## Use in Non-Free / Proprietary Software
This library is released under the terms of the [GNU General Public License v3](https://www.gnu.org/copyleft/gpl.html), but I can license it for non-free projects if you contact [me](mailto:contact@zxe.io?subject=Z80%20non-free%20licensing).
## Use in Proprietary Software
This library is released under the terms of the [GNU General Public License v3](https://www.gnu.org/copyleft/gpl.html), but I can license it for non-free/propietary projects if you contact [me](mailto:contact@zxe.io?subject=Z80%20non-free%20licensing).