📄 _divslong.asm
字号:
;--------------------------------------------------------; File Created by SDCC : FreeWare ANSI-C Compiler; Version 2.3.0 Thu Sep 20 10:57:11 2001;-------------------------------------------------------- .module _divslong ;--------------------------------------------------------; Public variables in this module;-------------------------------------------------------- .globl __divslong_PARM_2 .globl __divslong;--------------------------------------------------------; special function registers;--------------------------------------------------------;--------------------------------------------------------; special function bits ;--------------------------------------------------------;--------------------------------------------------------; internal ram data;-------------------------------------------------------- .area DSEG (DATA)__divslong_PARM_2:: .ds 4__divslong_sloc0_1_0:: .ds 4;--------------------------------------------------------; overlayable items in internal ram ;-------------------------------------------------------- .area OSEG (OVR,DATA);--------------------------------------------------------; indirectly addressable internal ram data;-------------------------------------------------------- .area ISEG (DATA);--------------------------------------------------------; bit data;-------------------------------------------------------- .area BSEG (BIT);--------------------------------------------------------; external ram data;-------------------------------------------------------- .area XSEG (XDATA);--------------------------------------------------------; global & static initialisations;-------------------------------------------------------- .area GSINIT (CODE) .area GSFINAL (CODE) .area GSINIT (CODE);--------------------------------------------------------; Home;-------------------------------------------------------- .area HOME (CODE) .area CSEG (CODE);--------------------------------------------------------; code;-------------------------------------------------------- .area CSEG (CODE);------------------------------------------------------------;Allocation info for local variables in function '_divslong';------------------------------------------------------------;b Allocated to in memory with name '__divslong_PARM_2';a Allocated to registers r2 r3 r4 r5 ;r Allocated to registers r2 r3 r4 r5 ;sloc0 Allocated to in memory with name '__divslong_sloc0_1_0'; _divslong.c 31; -----------------------------------------; function _divslong; -----------------------------------------__divslong: ar2 = 0x02 ar3 = 0x03 ar4 = 0x04 ar5 = 0x05 ar6 = 0x06 ar7 = 0x07 ar0 = 0x00 ar1 = 0x01; _divslong.c 0 mov r2,dpl mov r3,dph mov r4,b; _divslong.c 35; Peephole 105 removed redundant mov mov r5,a rlc a clr a rlc a; Peephole 105 removed redundant mov mov r6,a; Peephole 110 removed ljmp by inverse jump logic jz 00106$00113$: clr c clr a subb a,r2 mov __divslong_sloc0_1_0,a clr a subb a,r3 mov (__divslong_sloc0_1_0 + 1),a clr a subb a,r4 mov (__divslong_sloc0_1_0 + 2),a clr a subb a,r5 mov (__divslong_sloc0_1_0 + 3),a; Peephole 132 changed ljmp to sjmp sjmp 00107$00106$: mov __divslong_sloc0_1_0,r2 mov (__divslong_sloc0_1_0 + 1),r3 mov (__divslong_sloc0_1_0 + 2),r4 mov (__divslong_sloc0_1_0 + 3),r500107$: mov r2,__divslong_sloc0_1_0 mov r3,(__divslong_sloc0_1_0 + 1) mov r4,(__divslong_sloc0_1_0 + 2) mov r5,(__divslong_sloc0_1_0 + 3); _divslong.c 36 mov a,(__divslong_PARM_2 + 3) rlc a clr a rlc a; Peephole 105 removed redundant mov mov r7,a; Peephole 110 removed ljmp by inverse jump logic jz 00108$00114$: clr c clr a subb a,__divslong_PARM_2 mov __divslong_sloc0_1_0,a clr a subb a,(__divslong_PARM_2 + 1) mov (__divslong_sloc0_1_0 + 1),a clr a subb a,(__divslong_PARM_2 + 2) mov (__divslong_sloc0_1_0 + 2),a clr a subb a,(__divslong_PARM_2 + 3) mov (__divslong_sloc0_1_0 + 3),a; Peephole 132 changed ljmp to sjmp sjmp 00109$00108$: mov __divslong_sloc0_1_0,__divslong_PARM_2 mov (__divslong_sloc0_1_0 + 1),(__divslong_PARM_2 + 1) mov (__divslong_sloc0_1_0 + 2),(__divslong_PARM_2 + 2) mov (__divslong_sloc0_1_0 + 3),(__divslong_PARM_2 + 3)00109$: mov __divulong_PARM_2,__divslong_sloc0_1_0 mov (__divulong_PARM_2 + 1),(__divslong_sloc0_1_0 + 1) mov (__divulong_PARM_2 + 2),(__divslong_sloc0_1_0 + 2) mov (__divulong_PARM_2 + 3),(__divslong_sloc0_1_0 + 3) mov dpl,r2 mov dph,r3 mov b,r4 mov a,r5 push ar6 push ar7 lcall __divulong mov r2,dpl mov r3,dph mov r4,b mov r5,a pop ar7 pop ar6; _divslong.c 37 mov a,r7 xrl a,ar6; Peephole 110 removed ljmp by inverse jump logic jz 00102$00115$:; _divslong.c 38 clr c clr a subb a,r2 mov dpl,a clr a subb a,r3 mov dph,a clr a subb a,r4 mov b,a clr a subb a,r5; Peephole 132 changed ljmp to sjmp sjmp 00104$00102$:; _divslong.c 40 mov dpl,r2 mov dph,r3 mov b,r4 mov a,r500104$: ret .area CSEG (CODE)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -