我在組裝的第一次嘗試。我跳過的HelloWorld,並決定只言歸正傳,做一個CRC32Checksum:L聲明函數
現在我很迷茫哈哈..
我嘗試:
format PE console ;Format PE OUT GUI 4.0
entry main
include 'macro/import32.inc'
section '.idata' import data readable ;Import Section.
library msvcrt,'msvcrt.dll'
import msvcrt, printf, 'printf',\
exit,'exit', getchar, 'getchar'
section '.data' data readable writeable ;Constants/Static Section.
InitialValue dd 0
section '.code' code readable executable
main:
jmp CRC32Checksum ;I want to change this to a call [CRC32Checksum]..
call [getchar]
mov eax, 0
ret 0
CRC32Checksum:
push ebx
mov ebp, esp
mov eax, InitialValue
NOT eax
pop ebx
ret
如何調用我的CRC32Checksum?我是否在正確的軌道上?我如何在程序集中聲明函數?
我想用參數聲明函數。 – Brandon