Rev 5048 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5048 | Rev 5077 | ||
---|---|---|---|
Line 498... | Line 498... | ||
498 | include '../../proc32.inc' |
498 | include '../../proc32.inc' |
499 | include '../../peimport.inc' |
499 | include '../../peimport.inc' |
500 | include 'CODEC_H.INC' |
500 | include 'CODEC_H.INC' |
Line 501... | Line 501... | ||
501 | 501 | ||
502 | entry START |
- | |
Line 503... | Line 502... | ||
503 | section '.flat' readable writable executable |
502 | entry START |
504 | 503 | ||
505 | ;proc START stdcall, state:dword |
504 | ;proc START c, reason:dword, cmdline:dword |
506 | proc START c, state:dword, cmdline:dword |
505 | proc START |
507 | push ebx esi ; save used registers to be stdcall |
506 | push ebx esi ; save used registers to be stdcall |
508 | virtual at esp |
507 | virtual at esp |
509 | rd 2 ; saved registers |
508 | rd 2 ; saved registers |
510 | dd ? ; return address |
509 | dd ? ; return address |
511 | .reason dd ? ; DRV_ENTRY or DRV_EXIT |
510 | .reason dd ? ; DRV_ENTRY or DRV_EXIT |
512 | .cmdline dd ? ; normally NULL |
511 | .cmdline dd ? ; normally NULL |
513 | end virtual |
512 | end virtual |
514 | ; 1. Check the reason for the call, do nothing unless initializing. |
513 | ; 1. Check the reason for the call, do nothing unless initializing. |
Line 515... | Line 514... | ||
515 | ;cmp [.reason], DRV_ENTRY |
514 | cmp [.reason], DRV_ENTRY |
516 | ;jne .stop |
515 | jne .stop |
517 | 516 |