wok-tiny diff x86test/stuff/unlzma.S @ rev 173

Fix ctorrent-dnh & tfttest
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 14 09:04:04 2021 +0000 (2021-07-14)
parents 8da769e5f6c3
children
line diff
     1.1 --- a/x86test/stuff/unlzma.S	Sat May 08 17:23:19 2021 +0000
     1.2 +++ b/x86test/stuff/unlzma.S	Wed Jul 14 09:04:04 2021 +0000
     1.3 @@ -18,7 +18,7 @@
     1.4   * Compression with : lzma e src dst -eos -pb2 -lp0 -lc3
     1.5   */
     1.6  
     1.7 -#define PROP_PB 0
     1.8 +#define PROP_PB 2
     1.9  #define PROP_LP 0
    1.10  #define PROP_LC 3
    1.11  #define PROPS (PROP_LC+(PROP_LP*9)+(PROP_PB*45))
    1.12 @@ -107,6 +107,7 @@
    1.13   
    1.14  	mov	$ws1, CX
    1.15  #ifdef ONLY8086
    1.16 +	.arch	i8086
    1.17  	movw	$2048/2, %ax
    1.18  lzd1:
    1.19  	pushw	%ax
    1.20 @@ -213,9 +214,13 @@
    1.21  	add	BX, DX
    1.22  #endif
    1.23  
    1.24 +#if PROP_LC == 0 && PROP_LP == 0
    1.25 +	mov	$1846, AX
    1.26 +#else
    1.27  	movb	$3, %ah
    1.28  	mul	BX		// dx = 3*bh
    1.29  	add	$1846, AX
    1.30 +#endif
    1.31  
    1.32  //       int symbol = 1;
    1.33