export _idiv _idiv: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov bx,6[bp] cwd idiv bx pop si pop di pop bp ret !BCC_EOS ! Register BX used in function idiv export _idivu _idivu: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov bx,6[bp] call idiv_u pop si pop di pop bp ret !BCC_EOS ! Register BX used in function idivu export _imod _imod: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov bx,6[bp] call imod pop si pop di pop bp ret !BCC_EOS ! Register BX used in function imod export _imodu _imodu: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov bx,6[bp] call imodu pop si pop di pop bp ret !BCC_EOS ! Register BX used in function imodu export _imul _imul: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov cx,6[bp] imul cx pop si pop di pop bp ret !BCC_EOS export _imulu _imulu: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov cx,6[bp] imul cx pop si pop di pop bp ret !BCC_EOS export _isl _isl: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov cx,6[bp] shl ax,cl pop si pop di pop bp ret !BCC_EOS export _isr _isr: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov cx,6[bp] sar ax,cl pop si pop di pop bp ret !BCC_EOS export _isru _isru: !BCC_EOS !BCC_EOS push bp mov bp,sp push di push si mov ax,4[bp] mov cx,6[bp] shr ax,cl pop si pop di pop bp ret !BCC_EOS export _main _main: push bp mov bp,sp push di push si mov ax,*2 push ax mov ax,*1 push ax call _idiv add sp,*4 !BCC_EOS mov ax,*4 push ax mov ax,*3 push ax call _idivu add sp,*4 !BCC_EOS mov ax,*6 push ax mov ax,*5 push ax call _imod add sp,*4 !BCC_EOS mov ax,*8 push ax mov ax,*7 push ax call _imodu add sp,*4 !BCC_EOS mov ax,*$A push ax mov ax,*9 push ax call _imul add sp,*4 !BCC_EOS mov ax,*$B push ax mov ax,*$A push ax call _imulu add sp,*4 !BCC_EOS mov ax,*$D push ax mov ax,*$C push ax call _isl add sp,*4 !BCC_EOS mov ax,*$F push ax mov ax,*$E push ax call _isr add sp,*4 !BCC_EOS mov ax,*$11 push ax mov ax,*$10 push ax call _isru add sp,*4 !BCC_EOS pop si pop di pop bp ret .data .bss ! 0 errors detected