Z80 instruction set bug found!


[Prev][Next][Index][Thread]

Z80 instruction set bug found!



Hello,

  For those who are learning ASM (just like me) I found a bug in the Z80
instruction set (the one written by Johnathan Bowen, modified by Robert
Taylor).  Look at LDIR.  The # sign (referenced at the bottom of the
document) means BC=BC-1, DE=DE+1 (NOT DE=DE-1).  If it weren't this way,
the OShell-82 "Graphbuf Test 1" program would have a serious problem...the
calculator would crash.

Signed,
Thomas J. Hruska

|----------------------------------------------------|
|             Shining Light Productions              |
|      "Meeting the needs of fellow programmers"     |
|                                                    |
|   C/C++ programs                                   |
|   QBasic programs                                  |
|   JavaScript                                       |
|   TI-Basic                                         |
|   HTML                                             |
|                                                    |
| Search for our web site at                         |
| www.geocities.com/SiliconValley/Heights/8504/      |
|                                                    |
| We use a dynamic web server for most of our        |
| documents!!!                                       |
| Soon to go to a full JavaScript 1.1 web site!      |
|----------------------------------------------------|