1
0
mirror of https://github.com/cahirwpz/libnix.git synced 2025-12-08 14:58:56 +00:00
Files
amiga-libnix2/sources/nix20/math/__udivsi3.c
Krystian Bacławski b1c9ff1a73 Devise a counterpart for libnix13.
From now on nix13 or nix20 will have to be provided explicitely to linker,
depending on which Kickstart your application should run on.
2016-10-08 22:42:48 +02:00

20 lines
331 B
C

#include "bases.h"
asm(
" .globl ___umodsi3;"
" .globl ___udivsi3;"
/* D1.L = D0.L % D1.L unsigned */
"___umodsi3: moveml sp@(4:W),d0/d1;"
" jbsr ___udivsi4;"
" movel d1,d0;"
" rts;"
/* D0.L = D0.L / D1.L unsigned */
"___udivsi3: moveml sp@(4:W),d0/d1;"
"___udivsi4: movel "A4(_UtilityBase)",a0;"
" jmp a0@(-156:W);"
);