⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nrv2b_d16.s

📁 UPX 源代码
💻 S
字号:
/*;  n2b_d16.ash -- ucl_nrv2b_decompress_le16 in 16-bit assembly;;  This file is part of the UCL data compression library.;;  Copyright (C) 1996-2007 Markus Franz Xaver Johannes Oberhumer;  All Rights Reserved.;;  The UCL library is free software; you can redistribute it and/or;  modify it under the terms of the GNU General Public License as;  published by the Free Software Foundation; either version 2 of;  the License, or (at your option) any later version.;;  The UCL library is distributed in the hope that it will be useful,;  but WITHOUT ANY WARRANTY; without even the implied warranty of;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the;  GNU General Public License for more details.;;  You should have received a copy of the GNU General Public License;  along with the UCL library; see the file COPYING.;  If not, write to the Free Software Foundation, Inc.,;  59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.;;  Markus F.X.J. Oberhumer;  <markus@oberhumer.com>;  http://www.oberhumer.com/opensource/ucl/;; ------------- DECOMPRESSION -------------; Input; bx - 0x8000; cx - 0; si - source; di - dest; bp - -1*/#ifndef  COPY_MATCH# define COPY_MATCH     rep movsb#endifsection         NRV2B160literal_n2b:                movsbdecomp_start_n2b:                call    getbit_n2b                jcs     literal_n2b                inc     cxloop1_n2b:                call    getbit_cx_n2bsection         NRVDDONE                jcxz    decomp_done_n2bsection         NRVDRETU                jcxz    decomp_ret_n2bsection         NRVDECO1                jnbs    loop1_n2b                sub     cx, 3                jbs     axbp_n2b                mov     ah, cl                lodsb                not     ax                xchg    bp, axaxbp_n2b:                xor     cx, cx                call    getbit_cx_n2b                adc     cx, cx                jnz     copy_match_n2b                inc     cxloop2_n2b:                call    getbit_cx_n2b                jnbs    loop2_n2b                inc     cx                inc     cxcopy_match_n2b:section         NRVLED00                inc     cxsection         NRVGTD00                cmp     bp, -0xd00                adc     cx, 1section         NRVDECO2                lea     ax, [bp+di]                xchg    ax, si                COPY_MATCH                xchg    ax, si                jmps    decomp_start_n2bgetbit_cx_n2b:                call    getbit_n2b                adc     cx, cxgetbit_n2b:                add     bx, bx                jnz     decomp_ret_n2b                lodsw                adc     ax, ax                xchg    ax, bxdecomp_ret_n2b:                retdecomp_done_n2b:/*; =============; ============= 16-BIT CALLTRICK & JUMPTRICK; =============*/                cjt16   decomp_ret_n2b/* vim:set ts=4 et: */

⌨️ 快捷键说明

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