+ -
当前位置:首页 → 问答吧 → 请问minicom要怎么设置啊???

请问minicom要怎么设置啊???

时间:2010-10-21

来源:互联网

//以下是全部代码,需要解释的那行用红色标出了
#define ORIG_ADDRESS $0x7e504610
.global shcode
.global shcode_end
shcode:
// first our arbitrary code; here it just increases the counter
jmp afterbuf
nop
nop
buf:
.byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
afterbuf:
call getip
getip:
pop %eax
incq (buf-getip)( %eax)
//jump back to SMM
mov ORIG_ADDRESS, %eax
jmp *(%eax)
shcode_end:

调试时候报的错误是 shcode.S:15: Error: suffix or operands invalid for `inc';
但是当我把incq改为inc时 又报了如下的错误:shcode.S:15: Error: no instruction mnemonic suffix given and no register operands; can't size instruction
谢谢大家了!

作者: yangxuserene   发布时间: 2010-10-21