1
0
mirror of https://github.com/ggambetta/libz80.git synced 2025-04-18 18:44:02 +03:00

Bugfix in trim(). Added pre-generated files. h/t gamemanj@hotmail.co.uk

This commit is contained in:
Gabriel Gambetta 2014-03-22 20:45:32 +01:00
parent 3486dc1abe
commit 33ddb38a9c
5 changed files with 11778 additions and 6 deletions

View File

@ -1,9 +1,9 @@
libz80 - Z80 emulation library
===============================
*© Gabriel Gambetta (gabriel.gambetta@gmail.com) 2000 - 2013*
*© Gabriel Gambetta (gabriel.gambetta@gmail.com) 2000 - 2014*
*Version 2.1.0*
*Version 2.1.1*
Building and Installing
-----------------------
@ -12,14 +12,17 @@ The Makefile creates `libz80.so`, which together with `z80.h` make up the binary
package. `make install` installs these files in `/usr/lib` and `/usr/include`
respectively.
Emulation code itself is generated by the `codegen` folder. `mktables.spec`
Emulation code itself is generated by the `codegen` directory. `mktables.spec`
includes a specification of the opcodes, using regular expressions to express
similar opcodes in a compact way. Binary representation of the opcodes is listed
in `opcodes.lst`. This makes tweaking the 'processor' relatively easy, as it
isn't done manually.
The tests folder includes a simple test framework and a few tests to ensure the
current behavior of the processor.
Pre-generated files are included - these are `opcodes_decl.h`, `opcodes_table.h`
and `opcodes_impl.c` in the `codegen` directory.
The `tests` directory includes a simple test framework and a few tests to ensure
the current behavior of the processor.
Authors
-------

View File

@ -105,10 +105,11 @@ void fixName (char* opc, char* name)
/** Removes trailing CR and LF. */
void trim (char* s)
{
while (*s++)
while (*s)
{
if ((*s == 0x0D) || (*s == 0x0A))
*s = 0;
s++;
}
}

1136
codegen/opcodes_decl.h Normal file

File diff suppressed because it is too large Load Diff

8803
codegen/opcodes_impl.c Normal file

File diff suppressed because it is too large Load Diff

1829
codegen/opcodes_table.h Normal file

File diff suppressed because it is too large Load Diff