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

From WikiTI
Jump to: navigation, search
Line 1: Line 1:
 
[[Category:84PCE:Syscalls:By Name|DivHLByA]]
 
[[Category:84PCE:Syscalls:By Name|DivHLByA]]
[[Category:84PCE:Syscalls:By Address|021D90 - DivHLByA]]
+
[[Category:84PCE:Syscalls:By Address|020144 - DivHLByA]]
 
== Synopsis ==
 
== Synopsis ==
 
'''Hypothesized Official Name:''' DivHLByA_s
 
'''Hypothesized Official Name:''' DivHLByA_s
Line 6: Line 6:
 
'''Syscall Address:''' 021D90h
 
'''Syscall Address:''' 021D90h
  
Divides HL by A in 24-bit.
+
Divides HL by A in 16-bit.
  
 
=== Inputs ===
 
=== Inputs ===
* HL = 24-bit dividend
+
* HL = 16-bit dividend
 
* A = 8-bit divisor
 
* A = 8-bit divisor
  

Revision as of 16:51, 4 May 2015

Synopsis

Hypothesized Official Name: DivHLByA_s

Syscall Address: 021D90h

Divides HL by A in 16-bit.

Inputs

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

Outputs

  • HL = HL/A
  • A = remainder

Destroys

  • None