sys_protocols: don't destroy esi input reg

git-svn-id: svn://kolibrios.org@7963 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
hidnplayr 2020-05-21 13:35:44 +00:00
parent 16d9933413
commit 31963d41b2

View File

@ -837,10 +837,10 @@ sys_protocols:
cmp bh, NET_DEVICES_MAX ; Check if device number exists cmp bh, NET_DEVICES_MAX ; Check if device number exists
jae .doesnt_exist jae .doesnt_exist
mov esi, ebx mov eax, ebx
and esi, 0x0000ff00 and eax, 0x0000ff00
shr esi, 6 ; now we have the device num * 4 in esi shr eax, 6 ; now we have the device num * 4 in eax
cmp [esi + net_device_list], 0 ; check if device is running cmp [eax + net_device_list], 0 ; check if device is running
je .doesnt_exist je .doesnt_exist
push .return ; return address (we will be using jumps instead of calls) push .return ; return address (we will be using jumps instead of calls)