83:ROMCalls:400C: Difference between revisions

From WikiTI
Jump to navigationJump to search
Kalimero (talk | contribs)
No edit summary
 
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 21: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.