84PCE:Syscalls:020144: Difference between revisions

From WikiTI
Jump to navigationJump to search
Created page with "DivHLByA 020144 - DivHLByA == Synopsis == '''Hypothesized Official Name:''' DivHLByA '''Syscall Add..."
 
Updated inputs/outputs
Line 6: Line 6:
'''Syscall Address:''' 020144h
'''Syscall Address:''' 020144h


Divides HL by A.
Divides HL by A in 16-bit.


=== Inputs ===
=== Inputs ===
Probably HL = number. Not sure if HL is 16- or 24-bit.
* HL = 16-bit dividend
* A = 8-bit divisor


=== Outputs ===
=== Outputs ===
Probably HL/A.
* HL = HL/A
* A = remainder


=== Destroys ===
=== Destroys ===
* Unknown.
* None

Revision as of 02:44, 22 March 2015

Synopsis

Hypothesized Official Name: DivHLByA

Syscall Address: 020144h

Divides HL by A in 16-bit.

Inputs

  • HL = 16-bit dividend
  • A = 8-bit divisor

Outputs

  • HL = HL/A
  • A = remainder

Destroys

  • None