Difference between revisions of "84PCE:Syscalls:020140"

From WikiTI
Jump to: navigation, search
(Created page with "DivHLBy10 020140 - DivHLBy10 == Synopsis == '''Hypothesized Official Name:''' DivHLBy10 '''Syscall...")
 
(Updated inputs/outputs)
Line 6: Line 6:
 
'''Syscall Address:''' 020140h
 
'''Syscall Address:''' 020140h
  
Divides HL by 10.
+
Divides HL by 10 in 16-bit.
  
 
=== Inputs ===
 
=== Inputs ===
Probably HL = number. Not sure if HL is 16- or 24-bit.
+
* HL = 16-bit dividend.
  
 
=== Outputs ===
 
=== Outputs ===
Probably HL/10.
+
* HL = HL/10
 +
* A = remainder
  
 
=== Destroys ===
 
=== Destroys ===
* Unknown.
+
* None

Revision as of 18:41, 21 March 2015

Synopsis

Hypothesized Official Name: DivHLBy10

Syscall Address: 020140h

Divides HL by 10 in 16-bit.

Inputs

  • HL = 16-bit dividend.

Outputs

  • HL = HL/10
  • A = remainder

Destroys

  • None