mainnew.esm

来自「开放源码的编译器open watcom 1.6.0版的源代码」· ESM 代码 · 共 2,406 行 · 第 1/5 页

ESM
2,406
字号
    jne         L$78 
    call        far ptr PrintStats_ 
L$78:
    call        far ptr MsgFini_ 
    call        near ptr L$100 
    mov         al,byte ptr ss:L$330 
    xor         ah,ah 
    mov         word ptr -8[bp],ax 
    mov         ax,word ptr -8[bp] 
    lea         sp,-6[bp] 
    pop         di 
    pop         si 
    pop         dx 
    pop         bp 
    dec         bp 
    retf        
L$79:
    push        bp 
    mov         bp,sp 
    mov         ax,0eH 
    call        far ptr __STK 
    push        bx 
    push        cx 
    push        dx 
    push        si 
    push        di 
    sub         sp,0 
    mov         ax,7d0H 
    call        far ptr PrintfUsage_ 
    mov         ax,1 
    jmp         far ptr exit_ 
trademark_:
    inc         bp 
    push        bp 
    mov         bp,sp 
    mov         ax,1aH 
    call        far ptr __STK 
    push        bx 
    push        cx 
    push        dx 
    push        si 
    push        di 
    sub         sp,2 
    mov         word ptr -0cH[bp],0 
    cmp         byte ptr ss:L$325,0 
    jne         L$82 
L$80:
    mov         bx,word ptr -0cH[bp] 
    shl         bx,1 
    shl         bx,1 
    mov         cx,word ptr ss:L$345[bx] 
    mov         bx,word ptr ss:L$346[bx] 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$81 
    cmp         cx,dx 
    je          L$82 
L$81:
    mov         bx,word ptr -0cH[bp] 
    inc         word ptr -0cH[bp] 
    shl         bx,1 
    shl         bx,1 
    push        word ptr ss:L$346[bx] 
    push        word ptr ss:L$345[bx] 
    mov         ax,cs 
    mov         dx,offset L$39 
    push        ax 
    push        dx 
    call        far ptr printf_ 
    add         sp,8 
    jmp         L$80 
L$82:
    lea         sp,-0aH[bp] 
    pop         di 
    pop         si 
    pop         dx 
    pop         cx 
    pop         bx 
    pop         bp 
    dec         bp 
    retf        
L$83:
    push        bp 
    mov         bp,sp 
    mov         ax,0eH 
    call        far ptr __STK 
    push        bx 
    push        cx 
    push        dx 
    push        si 
    push        di 
    sub         sp,0 
    mov         cx,word ptr ss:L$334 
    mov         bx,word ptr ss:L$335 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$84 
    cmp         cx,dx 
    je          L$85 
L$84:
    mov         bx,word ptr ss:L$334 
    mov         dx,word ptr ss:L$335 
    mov         ax,bx 
    call        far ptr AsmFree_ 
L$85:
    mov         cx,word ptr ss:L$336 
    mov         bx,word ptr ss:L$337 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$86 
    cmp         cx,dx 
    je          L$87 
L$86:
    mov         bx,word ptr ss:L$336 
    mov         dx,word ptr ss:L$337 
    mov         ax,bx 
    call        far ptr AsmFree_ 
L$87:
    mov         cx,word ptr ss:L$338 
    mov         bx,word ptr ss:L$339 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$88 
    cmp         cx,dx 
    je          L$89 
L$88:
    mov         bx,word ptr ss:L$338 
    mov         dx,word ptr ss:L$339 
    mov         ax,bx 
    call        far ptr AsmFree_ 
L$89:
    mov         cx,word ptr ss:L$342 
    mov         bx,word ptr ss:L$343 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$90 
    cmp         cx,dx 
    je          L$91 
L$90:
    mov         bx,word ptr ss:L$342 
    mov         dx,word ptr ss:L$343 
    mov         ax,bx 
    call        far ptr AsmFree_ 
L$91:
    mov         cx,word ptr ss:L$340 
    mov         bx,word ptr ss:L$341 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$92 
    cmp         cx,dx 
    je          L$93 
L$92:
    mov         bx,word ptr ss:L$340 
    mov         dx,word ptr ss:L$341 
    mov         ax,bx 
    call        far ptr AsmFree_ 
L$93:
    lea         sp,-0aH[bp] 
    pop         di 
    pop         si 
    pop         dx 
    pop         cx 
    pop         bx 
    pop         bp 
    ret         
L$94:
    push        bp 
    mov         bp,sp 
    mov         ax,0eH 
    call        far ptr __STK 
    push        bx 
    push        cx 
    push        dx 
    push        si 
    push        di 
    sub         sp,0 
    mov         bx,word ptr ss:L$348 
    mov         dx,word ptr ss:L$349 
    mov         ax,bx 
    call        far ptr AsmFree_ 
    mov         bx,word ptr ss:L$350 
    mov         dx,word ptr ss:L$351 
    mov         ax,bx 
    call        far ptr AsmFree_ 
    mov         bx,word ptr ss:L$352 
    mov         dx,word ptr ss:L$353 
    mov         ax,bx 
    call        far ptr AsmFree_ 
    lea         sp,-0aH[bp] 
    pop         di 
    pop         si 
    pop         dx 
    pop         cx 
    pop         bx 
    pop         bp 
    ret         
L$95:
    push        bp 
    mov         bp,sp 
    mov         ax,10H 
    call        far ptr __STK 
    push        bx 
    push        cx 
    push        dx 
    push        si 
    push        di 
    sub         sp,2 
    call        far ptr MemInit_ 
    mov         word ptr -0cH[bp],0 
L$96:
    cmp         word ptr -0cH[bp],2 
    jle         L$98 
    jmp         L$99 
L$97:
    mov         ax,word ptr -0cH[bp] 
    inc         word ptr -0cH[bp] 
    jmp         L$96 
L$98:
    mov         bx,word ptr -0cH[bp] 
    shl         bx,1 
    shl         bx,1 
    mov         word ptr ss:_AsmFiles[bx],0 
    mov         word ptr ss:L$347[bx],0 
    mov         bx,word ptr -0cH[bp] 
    shl         bx,1 
    shl         bx,1 
    mov         word ptr ss:L$348[bx],0 
    mov         word ptr ss:L$349[bx],0 
    jmp         L$97 
L$99:
    call        far ptr ObjRecInit_ 
    call        far ptr GenMSOmfInit_ 
    lea         sp,-0aH[bp] 
    pop         di 
    pop         si 
    pop         dx 
    pop         cx 
    pop         bx 
    pop         bp 
    ret         
L$100:
    push        bp 
    mov         bp,sp 
    mov         ax,0eH 
    call        far ptr __STK 
    push        bx 
    push        cx 
    push        dx 
    push        si 
    push        di 
    sub         sp,0 
    call        near ptr L$94 
    call        near ptr L$83 
    call        far ptr GenMSOmfFini_ 
    call        far ptr AsmShutDown_ 
    call        far ptr MemFini_ 
    lea         sp,-0aH[bp] 
    pop         di 
    pop         si 
    pop         dx 
    pop         cx 
    pop         bx 
    pop         bp 
    ret         
L$101:
    push        bp 
    mov         bp,sp 
    mov         ax,14H 
    call        far ptr __STK 
    push        bx 
    push        cx 
    push        dx 
    push        si 
    push        di 
    sub         sp,0 
    mov         cx,cs 
    mov         dx,offset L$45 
    mov         si,dx 
    mov         bx,word ptr ss:L$348 
    mov         dx,word ptr ss:L$349 
    mov         ax,bx 
    mov         bx,si 
    call        far ptr fopen_ 
    mov         cx,ax 
    mov         bx,dx 
    mov         word ptr ss:_AsmFiles,cx 
    mov         word ptr ss:L$347,bx 
    mov         bx,word ptr ss:_AsmFiles 
    mov         dx,word ptr ss:L$347 
    xor         si,si 
    xor         cx,cx 
    cmp         dx,cx 
    jne         L$102 
    cmp         bx,si 
    jne         L$102 
    push        word ptr ss:L$349 
    push        word ptr ss:L$348 
    mov         ax,1 
    push        ax 
    call        far ptr Fatal_ 
    add         sp,6 
L$102:
    mov         bx,word ptr ss:L$352 
    mov         dx,word ptr ss:L$353 
    mov         ax,bx 
    call        far ptr ObjWriteOpen_ 
    mov         bx,dx 
    mov         word ptr ss:L$354,ax 
    mov         word ptr ss:L$355,bx 
    mov         cx,word ptr ss:L$354 
    mov         bx,word ptr ss:L$355 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$103 
    cmp         cx,dx 
    jne         L$103 
    push        word ptr ss:L$353 
    push        word ptr ss:L$352 
    mov         ax,1 
    push        ax 
    call        far ptr Fatal_ 
    add         sp,6 
L$103:
    mov         byte ptr ss:_pobjState,2 
    call        far ptr DelErrFile_ 
    lea         sp,-0aH[bp] 
    pop         di 
    pop         si 
    pop         dx 
    pop         cx 
    pop         bx 
    pop         bp 
    ret         
L$104:
    push        bp 
    mov         bp,sp 
    push        ax 
    mov         ax,3a8H 
    call        far ptr __STK 
    pop         ax 
    push        cx 
    push        si 
    push        di 
    sub         sp,38eH 
    mov         word ptr -2cH[bp],ax 
    mov         word ptr -2aH[bp],dx 
    mov         word ptr -8[bp],bx 
    cmp         word ptr -8[bp],0 
    je          L$105 
    jmp         near ptr L$112 
L$105:
    mov         cx,word ptr -2cH[bp] 
    mov         bx,word ptr -2aH[bp] 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$106 
    cmp         cx,dx 
    jne         L$106 
    mov         cx,ss 
    lea         ax,-7cH[bp] 
    mov         dx,ax 
    mov         ax,43fH 
    mov         bx,dx 
    call        far ptr MsgGet_ 
    mov         dx,ss 
    lea         cx,-7cH[bp] 
    push        dx 
    push        cx 
    mov         ax,1 
    push        ax 
    call        far ptr Fatal_ 
    add         sp,6 
L$106:
    mov         cx,word ptr ss:L$348 
    mov         bx,word ptr ss:L$349 
    xor         dx,dx 
    xor         ax,ax 
    cmp         bx,ax 
    jne         L$107 
    cmp         cx,dx 
    je          L$108 
L$107:
    mov         ax,5 
    push        ax 
    call        far ptr Fatal_ 
    add         sp,2 
L$108:
    mov         dx,ss 
    lea         bx,-24H[bp] 
    push        dx 
    push        bx 
    mov         dx,ss 
    lea         bx,-20H[bp] 
    push        dx 
    push        bx 
    mov         dx,ss 
    lea         bx,-28H[bp] 
    push        dx 
    push        bx 
    mov         dx,ss 
    lea         bx,-18H[bp] 
    push        dx 
    push        bx 
    mov         cx,ss 
    lea         dx,-288H[bp] 
    mov         si,dx 
    mov         bx,word ptr -2cH[bp] 
    mov         dx,word ptr -2aH[bp] 
    mov         ax,bx 
    mov         bx,si 
    call        far ptr _splitpath2_ 
    lds         bx,dword ptr -24H[bp] 
    cmp         byte ptr [bx],0 
    jne         L$109 
    mov         word ptr -22H[bp],cs 
    mov         word ptr -24H[bp],offset L$38 
L$109:
    mov         dx,word ptr -24H[bp] 
    mov         ax,word ptr -22H[bp] 
    push        ax 
    push        dx 
    mov         dx,word ptr -20H[bp] 
    mov         ax,word ptr -1eH[bp] 
    push        ax 
    push        dx 
    mov         dx,word ptr -28H[bp] 
    mov         ax,word ptr -26H[bp] 
    push        ax 
    push        dx 
    mov         si,word ptr -18H[bp] 
    mov         cx,word ptr -16H[bp] 
    mov         dx,ss 
    lea         ax,-180H[bp] 
    mov         bx,ax 
    mov         ax,bx 
    mov         bx,si 
    call        far ptr _makepath_ 
    mov         dx,ss 
    lea         bx,-180H[bp] 
    mov         cx,bx 
    mov         ax,cx 
    call        far ptr strlen_ 
    inc         ax 
    call        far ptr AsmAlloc_ 
    mov         si,ax 
    mov         cx,dx 
    mov         word ptr ss:L$348,si 
    mov         word ptr ss:L$349,cx 
    mov         cx,ss 
    lea         dx,-180H[bp] 
    mov         si,dx 
    mov         bx,word ptr ss:L$348 
    mov         dx,word ptr ss:L$349 
    mov         ax,bx 
    mov         bx,si 
    call        far ptr strcpy_ 
    mov         dx,word ptr ss:L$352 
    mov         ax,word ptr ss:L$353 
    xor         cx,cx 
    xor         bx,bx 
    cmp         ax,bx 
    jne         L$110 
    cmp         dx,cx 
    jne         L$110 
    mov         word ptr -22H[bp],cs 
    mov         word ptr -24H[bp],offset L$37 
    mov         dx,word ptr -24H[bp] 
    mov         ax,word ptr -22H[bp] 
    push        ax 
    push        dx 
    mov         dx,word ptr -20H[bp] 
    mov         ax,word ptr -1eH[bp] 
    push        ax 
    push        dx 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?