Difference between revisions of "84PCE:Syscalls:021DA4"

From WikiTI
Jump to: navigation, search
Line 14: Line 14:
  
 
=== Outputs ===
 
=== Outputs ===
* IF((HL <= BC) && (HL <= DE)) - C flag set
+
* C flag set it (HL <= BC) && (HL <= DE)
* IF((HL > BC) && (HL > DE)) - C flag reset
+
* NC flag set if (HL > BC) && (HL > DE)
  
 
=== Destroys ===
 
=== Destroys ===
 
* None
 
* None

Revision as of 11:22, 26 May 2015

Synopsis

Hypothesized Official Name: cpHLDEBC

Syscall Address: 021DA4h

Compares the value in HL to both DE and BC.

Inputs

  • HL: value
  • DE: value to compare
  • BC: value to compare

Outputs

  • C flag set it (HL <= BC) && (HL <= DE)
  • NC flag set if (HL > BC) && (HL > DE)

Destroys

  • None