blob: a52e712ccb1e17298c69fc29644ac88c47e25f9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
; (c) Copyright 2001-2008 Zilog, Inc.
;-------------------------------------------------------------------------
; Signed Integer Division
; Input:
; Operand1:
; hl : 24 bits (dividend x)
;
; Operand2:
; bc : 24 bits (divisor y)
;
; Output:
; Result: hl : 24 bits
;
; Registers Used:
; a, de
;-------------------------------------------------------------------------
.def __idivs
.assume adl=1
__idivs equ 00013Ch
|