Difference between revisions of "83:ROMCalls:4004"

From WikiTI
Jump to: navigation, search
m
m (added to math category)
Line 1: Line 1:
[[Category:83:ROMCalls:By_Name|Cphlde]][[Category:83:ROMCalls:By_Address|4004 - Cphlde]]
+
[[Category:83:ROMCalls:By_Name|Cphlde]][[Category:83:ROMCalls:By_Address|4004 - Cphlde]][[Category:83:ROMCalls:By_Name|Math|Cphlde]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Official Name:''' CP_HL_DE , _cphlde
 
'''Official Name:''' CP_HL_DE , _cphlde

Revision as of 07:52, 31 March 2005

Synopsis

Official Name: CP_HL_DE , _cphlde

Call Address: 4004h

Non destructive compare of HL and DE.

Inputs

  • hl
  • de

Outputs

  • carry-flag is set if (DE > HL)
  • zero-flag is set if (DE = HL)

Registers Destroyed

  • None.

Comments

  • Its code is:
 push  hl
 or    a
 sbc   hl,de
 pop   hl
 ret
  • It calls the address 010Fh on every known version of the TI-83 ROM.

Example