wok-6.x diff plop/stuff/unlzsa1.S @ rev 25560
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 25 18:09:10 2023 +0000 (17 months ago) |
parents | 7f7bd3c9775e |
children |
line diff
1.1 --- a/plop/stuff/unlzsa1.S Sun Feb 05 09:28:51 2023 +0000 1.2 +++ b/plop/stuff/unlzsa1.S Tue Apr 25 18:09:10 2023 +0000 1.3 @@ -29,6 +29,9 @@ 1.4 #ifdef PARANOIA 1.5 cld 1.6 #endif 1.7 +#ifdef FLAT16OUT 1.8 +#define RAW_FORMAT 1.9 +#endif 1.10 #ifndef RAW_FORMAT 1.11 # if defined(PARANOIA) && !defined(FLAT32) && !defined(FLAT16) 1.12 xorw %cx, %cx 1.13 @@ -64,7 +67,7 @@ 1.14 movsb // copy block 1.15 loop copylp // handle 64K case 1.16 # endif 1.17 - jmp lzsa1block 1.18 + jmp lzsa1block // end of block 1.19 lzsa1compressed: 1.20 jne lzsa1chunk // 64Kb block 1.21 # endif 1.22 @@ -104,13 +107,12 @@ 1.23 .byte 0x3C // mask lodsb with cmpb $0xAC, %al 1.24 lzsa1ShortOfs: 1.25 lodsb 1.26 -#ifdef RAW_FORMAT 1.27 - orw %ax, %ax 1.28 - jz lzsa1quit // bail if we hit EOD 1.29 -#endif 1.30 xchg AX, BX // %bx: match offset %ax: original token 1.31 movw $MATCH_RUN_LEN*256+MIN_MATCH_SIZE, %cx 1.32 call lzsa1len 1.33 +#ifdef RAW_FORMAT 1.34 + jcxz lzsa1quit // bail if we hit EOD 1.35 +#endif 1.36 #if !defined(FLAT32) && !defined(FLAT16OUT) 1.37 pushw %ds 1.38 pushw %si