wok-current diff linld/stuff/src/XMM.ASM @ rev 22632

linux: add CONFIG_SND_PCSP
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jan 13 11:52:56 2020 +0100 (2020-01-13)
parents 5b6c86ca3faa
children 3d19917d3a03
line diff
     1.1 --- a/linld/stuff/src/XMM.ASM	Sat Oct 19 10:25:12 2019 +0200
     1.2 +++ b/linld/stuff/src/XMM.ASM	Mon Jan 13 11:52:56 2020 +0100
     1.3 @@ -46,14 +46,17 @@
     1.4  		mov	si,offset xmm_handler
     1.5  		ifndef	NO386
     1.6  		cmp	[dword si],0
     1.7 -		else
     1.8 -		mov	cx,[word si]
     1.9 -		or	cx,[word si+2]
    1.10 -		endif
    1.11  		jne	@@gotit
    1.12 -
    1.13  		push	ax			; save cmd
    1.14                  mov     ax,4300h		; installation check in al
    1.15 +		else
    1.16 +		push	ax			; save cmd
    1.17 +		lodsw
    1.18 +		or	ax,[word si]
    1.19 +		jne	@@gotit
    1.20 +                mov     ah,43h			; installation check in al
    1.21 +		endif
    1.22 +
    1.23                  int     2fh
    1.24                  mov     bx,offset xmm_fail
    1.25                  push    ds
    1.26 @@ -63,11 +66,19 @@
    1.27                  mov     ax,4310h		; get driver address in es:bx
    1.28                  int     2fh
    1.29  @@err:
    1.30 +		ifndef	NO386
    1.31  		pop	ax			; restore cmd
    1.32  		mov	[si],bx
    1.33  		mov	[si+2],es
    1.34  @@gotit:
    1.35  		call	[dword si]		; far ptr [si]
    1.36 +		else
    1.37 +		mov	[si-2],bx
    1.38 +		mov	[si],es
    1.39 +@@gotit:
    1.40 +		pop	ax			; restore cmd
    1.41 +		call	[dword si-2]		; far ptr [si-2]
    1.42 +		endif
    1.43                  dec     ax			; Z=1=OK
    1.44  		pop	si
    1.45                  ret