Permalink
Browse files

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

  • Loading branch information...
1 parent 3486dc1 commit 33ddb38a9c6b94ff42edad384e9ce251759c1118 @ggambetta committed Mar 22, 2014
Showing with 11,778 additions and 6 deletions.
  1. +8 −5 README.md
  2. +2 −1 codegen/mktables.c
  3. +1,136 −0 codegen/opcodes_decl.h
  4. +8,803 −0 codegen/opcodes_impl.c
  5. +1,829 −0 codegen/opcodes_table.h
View
@@ -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
@@ -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++;
}
}
Oops, something went wrong.

0 comments on commit 33ddb38

Please sign in to comment.