|
[求助]请教浮点立即数的写法
嗯,没有,如果你知道整数和实数的转换方法,也可以预先将整数转成实数再直接传给程序的。就像这样: mov eax,3f800000h ; 这个实数是整数1 不过这样做必须手动转换,也麻烦,没有方法二好,代码多二句,但却不用自己手动转换。 |
|
[求助]请教浮点立即数的写法
; 方法一,定义全局浮点变量 .data _f REAL4 1.0 ; 直接使用浮点初始化全局变量 ; 方法二,临时转换 local _f:REAL4 mov _f,1 fild _f ; 将整数1转成浮点 fstp _f ; 将转换后的结果保存回_f变量 |
|
[求助]关于WM_COMMAND
CBN_SELENDOK idComboBox = (int) LOWORD(wParam); // identifier of combo box hwndComboBox = (HWND) lParam; // handle of combo box |
|
|
|
[求助]一个关于RadASM连接的问题
试试打开工程菜单->工程选项,将工程选项的第3项链接项参数中的最后一个“4”删掉(我的RadAsm是2.0.0.6版的,4代表着*.res文件的。不知你的版本是不是这个数字)。 |
|
[讨论]请问 EXE 的基址能通过程序修改么?
可以这么说,不过这样做有意义? |
|
[原创]Delphi之萝莉调教篇
为了论坛比较好管理贴子,将兄弟的两个主题贴合并了。 |
|
[原创]Delphi之萝莉调教篇
呵呵,不错,期待你的下篇。 |
|
[求助]这两个头文件从哪弄到的?
这两个文件都是以前的hume/冷雨飘心前辈自定义的文件。以前他的主页是有下载的。 mac.h文件我这里有,hh.h文件就没有了。不过hh.h文件只是一些include和includelib包含文件合集而已,要不要都无所谓了。你也可以自己定义一个。将常用的如kernel32.inc/kernel32.lib集合包含定义一个就行了。而mac.h文件则是一个常用的宏。 |
|
[求助]关于WIMasm32
局部变量是在整个函数里有效,但函数每处理一个消息局部变量的值都会变动,在WM_CREATE消息里取得的值在函数进入下一个消息时局部变量的值就会被更新。所以局部变量的值要在同一个消息段里处理,不能在再下一个消息段里处理。 |
|
[求助]关于WIMasm32
hSubMenu菜单句柄是在WM_CREATE消息中获取的,不是在WM_RBUTTONDWON消息中获取的,不同的消息之间传递数据必须使用全局变量,不能使用局部变量。如果你要使用局部变量,你必须在出一个消息段中操作全部指令,如你上面的可以将hSubMenu改成局部变量,但你必须在WM_RBUTTONDOWN消息中操作全部指令。 invoke GetSubMenu,hMenu,1 mov @hSubMenu,eax invoke GetCursorPos,addr @stPos invoke TrackPopupMenu,@hSubMenu,TPM_LEFTALIGN,@stPos.x,@stPos.y,NULL,hWnd,NULL |
|
[求助]关于相对基址加变址相对寻址方式有效地址的计算
我说的not是将正数转成负数再计算。 |
|
[求助]哪个哥哥帮我看看这段反汇编的代码啊?
jpo跳转条件是如果奇偶位为奇(PE标志位是0)则跳。上面那一句test ah,5是测试ah的奇偶位是否为奇还是偶,如果是奇数则PE位是0,如果是偶数,则PE位是1。 |
|
[求助]masm32写MDI图形界面,如何搞?
Iczelion的Win32教程的32章有多文档界面(MDI)的例子。 |
|
[讨论]请问 EXE 的基址能通过程序修改么?
修改exe的ImageBase如果exe有重定位的地方而没有重定位表是不能修改的,修改后会导致程序需要重定位的地方因为没有重定位而出错。 |
|
[求助]关于相对基址加变址相对寻址方式有效地址的计算
正整数计算要用正整数计算,负整数要用负整数计算。 50000+01223+00054-2 = 51275h 50000+01223+00054+ffffe = 51277 + fffffe = not 51277 = AED89 - ffffe = AED8B = not AED8B = 51275 |
|
[求助]非常简单的32位汇编问题
mov ecx,sizeof TBBUTTON mul ecx ;乘 add eax,offset stToolbar 上面一段的意思是取出TBBUTTON[eax*sizeof TBBUTTON]结构数组的某个按钮的TBBUTTON结构。 RtlMoveMemory函数是将来源地址的数据拷贝到目得地缓冲中。 VOID NTAPI RtlMoveMemory ( VOID UNALIGNED *Destination, // 到目得地 CONST VOID UNALIGNED *Source, // 来源 SIZE_T Length // 来源数据长度 ); |
|
[求助]非常简单的32位汇编问题
不学16位的汇编应该不影响学习32位的汇编,他们比较共通的就是指令的作用是差不多的。所以,不管你是学习16位汇编还是32位汇编,指令的功能都应该理解。 |
|
[求助]非常简单的32位汇编问题
看你的问题,可以看出你对汇编的逻辑计算指令不太熟悉,建议你先学习一下逻辑计算指令的运算方式和运算结果,当你掌握这些之后,上面的问题就不属于问题了。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值