A83: Ld


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

A83: Ld




I use the following code. It seems like it's working,
but there's one thing that I'm not sure about:

  call _rclX
  call _convop1
  ex de,hl
  ld a,hl

  ...

  cp 1



You can see that I want to compare 1 to hl.

How can I do this?

ld a,hl     ;does not work
ld a,h      ;does not work
ld a,l      ;this seems to work, but I don't think it's the right way to do
it.


Thanx,
  __  __
 |  \/  |
 | \  / | __ _ _ __ ___
 | |\/| |/ _` | '__/ __|
 | |  | | (_| | | | (__
 |_|  |_|\__,_|_|  \___|



Follow-Ups: References: