GoAsm requires square brackets for writing to, and reading from, memory

来源:互联网 发布:树莓派3 查看网络 编辑:程序博客网 时间:2024/06/07 21:18
MOV EBX,wParam ;这样写在gaosm里不对
 is completely outlawed, unless wParam is a defined word. In order to get the offset in GoAsm you must use MOV EBX,ADDR wParam
or if you prefer
MOV EBX,OFFSET wParam
which means the same thing

 In order to address memory in GoAsm you must use MOV EBX,[wParam]



这样做,相比其他会编,更清楚明白

原创粉丝点击