2 ; Ullrich von Bassewitz, 2009-11-04
4 ; CC65 library: 32by16 => 16 unsigned division
7 .export _cc65_udiv32by16r16
8 .import udiv32by16r16m, incsp4
10 .include "zeropage.inc"
13 ;---------------------------------------------------------------------------
16 .proc _cc65_udiv32by16r16
19 stx ptr3+1 ; Store rhs
21 ; Copy from stack to zeropage. This assumes ptr1 and ptr2 are adjacent.
36 @L2: jmp udiv32by16r16m