83Plus:BCALLs:400C

From WikiTI
Revision as of 14:59, 7 April 2005 by Woozle (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Synopsis

Official Name: CpHLDE

BCALL Address: 400C

Compares HL and DE.

Inputs

  • HL: operand 1
  • DE: operand 2

Outputs

  • Z set if DE=HL
  • C set if DE>HL

Registers Destroyed

  • none

Comments

Simple enough to implement if speed is important

Example

ld hl,3
ld de,4
B_CALL CpHLDE  ;should return nz and c
ld de,3
B_CALL CpHLDE  ;should return z and nc