Difference between revisions of "83:ROMCalls:400C"

From WikiTI
Jump to: navigation, search
 
(Capitalized registers)
 
Line 8: Line 8:
  
 
=== Inputs ===
 
=== Inputs ===
* hl = dividend
+
* HL = dividend
* a = devisor
+
* A = devisor
  
 
=== Outputs ===
 
=== Outputs ===
* hl = quotient
+
* HL = quotient
* a = remainder
+
* A = remainder
* bc,de preserved
+
* BC, DE preserved
* f destroyed
+
* F destroyed
  
 
== Comments ==
 
== Comments ==
 
See also [[83:ROMCalls:4008|DivHLBy10]].
 
See also [[83:ROMCalls:4008|DivHLBy10]].

Latest revision as of 13:22, 13 April 2005

Synopsis

Official Name: DivHLByA

Call Address: 400C

Divides HL by A.

Inputs

  • HL = dividend
  • A = devisor

Outputs

  • HL = quotient
  • A = remainder
  • BC, DE preserved
  • F destroyed

Comments

See also DivHLBy10.