Subversion Repositories Kolibri OS

Rev

Rev 2304 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2304 Rev 2387
Line 1256... Line 1256...
1256
;***************************************************************************
1256
;***************************************************************************
1257
align 4
1257
align 4
1258
transmit:
1258
transmit:
Line 1259... Line 1259...
1259
 
1259
 
1260
	cmp	dword [esp+8], MAX_ETH_FRAME_SIZE
1260
        cmp     dword [esp+8], MAX_ETH_FRAME_SIZE
Line 1261... Line 1261...
1261
	ja	.finish
1261
        ja      .error
1262
 
1262
 
Line 1263... Line 1263...
1263
	cmp	dword [esp+8], 60
1263
        cmp     dword [esp+8], 60
1264
	jb	.finish
1264
        jb      .error
1265
 
1265
 
Line 1284... Line 1284...
1284
	inc	[device.packets_tx]
1284
        inc     [device.packets_tx]
1285
	add	dword [device.bytes_tx], ecx
1285
        add     dword [device.bytes_tx], ecx
1286
	adc	dword [device.bytes_tx+4], 0
1286
        adc     dword [device.bytes_tx+4], 0
Line 1287... Line 1287...
1287
 
1287
 
-
 
1288
  .finish:
-
 
1289
        xor     eax, eax
Line -... Line 1290...
-
 
1290
        ret     8
-
 
1291
 
-
 
1292
  .error:
1288
  .finish:
1293
        stdcall KernelFree, [esp+4]
Line 1289... Line 1294...
1289
 
1294
        or      eax, -1