Online ZShell School (lesson #4)


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

Online ZShell School (lesson #4)



Hello,

  I am just learning Z80 assembler and I am wondering if the following code
from the Online ZShell School (lesson #4) is correct:

RRHL:    ; Rotate HL right (16 bit rotation)
  srl h
  rr l
  ret nc
  set 7,h
  ret

On the "rr l" line, can the carry flag be changed?  From the documentation
I have, it appears that it could.  Am I wrong?  If so, why?

BTW, I have only spent 2 1/2 hours studying the documents and I am almost
to lesson #5.

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!      |
|----------------------------------------------------|