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

From WikiTI
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:84PCE:Syscalls:By Name|cpHLDEBC]]
+
[[Category:84PCE:Syscalls:By Name|CpHLDEBC]]
[[Category:84PCE:Syscalls:By Address|021DA4 - cpHLDEBC]]
+
[[Category:84PCE:Syscalls:By Address|021DA4 - CpHLDEBC]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Hypothesized Official Name:''' cpHLDEBC
 
'''Hypothesized Official Name:''' cpHLDEBC
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

Latest revision as of 23:48, 25 May 2016

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