2 ; Ullrich von Bassewitz, 2009-11-04
4 ; CC65 library: 32by16 => 16 signed division
7 .export _cc65_idiv32by16r16
8 .import idiv32by16r16, incsp4
10 .include "zeropage.inc"
13 ;---------------------------------------------------------------------------
16 .proc _cc65_idiv32by16r16
20 ; Copy from stack to zeropage. This assumes ptr1 and ptr2 are adjacent.