Category Archives: unix/linux

unix,linux related

NASM的LEA指令问题

buf db ‘loading ….’

lea bp,buf

会出现这样的错误:invalid combination of opcode and operands

Google一通,如下几个帖子有帮助:

1.官网的LEA解释:http://home.myfairpoint.net/fbkotler/nasmdocc.html#section-A.4.135


简单地说,nasm中简化了很多masm中的很多指令,比如说获取有效地址:mov ax,offset buffer等价于nasm中的mov

ax,buffer,在nasm源程序中,几乎都是标号,标号就是地址;所以,在nasm中lea的正确语法为:lea ax,[buffer]

2.
http://www.wming.com/a/articles/devlanguage/asm/2010/1229/74571.html


3.http://forum.nasm.us/index.php?topic=435.0

configure error “XML::Parser perl module is required for intltool

I got error during installing gedit:



configure error "XML::Parser
perl
module
is required
for intltool



How to solve:

1.Goolgle.

2.See what happened:

/usr/bin/perl -e "require XML::Parser"

3.Then you will got some errors and google for it.

4.I solved my problem by following steps:

(1) change to root
su –
(2) bring up CPAN tool
perl -e shell -MCPAN

(3)install module
install
XML::Parser




Page 5 of 8« First...34567...Last »