⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 2006-6-10☆[+3]出现了个错误error l121 improper fixup请高手指点.htm

📁 该源码是本人经调试通过的UCOS2操作系统在51单片机上移植好的源代码
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0047)http://www.daxia.com/bbs/moredata30_30404.shtml -->
<HTML><HEAD><TITLE>2006-6-10☆[+3]出现了个错误error L121 IMPROPER FIXUP请高手指点</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE type=text/css>.p9 {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
}
.font {
	FONT-SIZE: 9pt; LINE-HEIGHT: 1.5em; FONT-FAMILY: "宋体"
}
OL {
	LINE-HEIGHT: 1.5em; LIST-STYLE-TYPE: square
}
FIELDSET {
	PADDING-RIGHT: 1em
}
.input {
	BORDER-RIGHT: 0px; BORDER-TOP: 0px; FONT-SIZE: 9pt; BORDER-LEFT: 0px; WIDTH: 80px; BORDER-BOTTOM: #024ac9 1px groove
}
SELECT {
	FONT-SIZE: 9pt; WIDTH: 80px
}
BODY {
	FONT-SIZE: 9pt; FONT-FAMILY: "宋体"
}
P {
	FONT-WEIGHT: normal; FONT-SIZE: 9pt; FONT-FAMILY: "宋体", "Arial", "Times New Roman"
}
TD {
	FONT-WEIGHT: normal; FONT-SIZE: 9pt; FONT-FAMILY: "宋体", "Arial", "Times New Roman"
}
A:link {
	FONT-SIZE: 9pt; COLOR: #024ac9; TEXT-DECORATION: none
}
A:visited {
	FONT-SIZE: 9pt; COLOR: #024ac9; TEXT-DECORATION: none
}
A:active {
	FONT-SIZE: 9pt; COLOR: #024ac9; TEXT-DECORATION: none
}
A:hover {
	COLOR: red; TEXT-DECORATION: none
}
</STYLE>

<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY vLink=#0000ff bgColor=#efefef topMargin=10 marginheight="10" 
marginwidth="10">
<SCRIPT type=text/javascript><!--
google_ad_client = "pub-1260019700816245";
google_alternate_ad_url = "";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_color_bg = "efefef";
google_ad_type = "text";
google_ad_channel ="";
//--></SCRIPT>

<SCRIPT 
src="2006-6-10☆[+3]出现了个错误error L121 IMPROPER FIXUP请高手指点.files/show_ads.js" 
type=text/javascript>
</SCRIPT>

<P align=left><A href="http://www.daxia.com/">返回大虾电子网首页</A> <A 
href="http://www.daxia.com/bbs/find30.asp?id=20987">返回历史帖子</A><BR>
<TABLE width="100%" align=center>
  <TBODY>
  <TR>
    <TD>
      <P align=center><STRONG>[+3]出现了个错误error L121 IMPROPER 
      FIXUP请高手指点</STRONG></P></TD></TR></TBODY></TABLE><BR><FONT color=#ff0000>帖子编号: 
30404/776766, 发表用户:</FONT><A 
href="http://www.daxia.com/bbs/moreinfo.asp?id=63964" target=_blank>51er</A> 
&nbsp;&nbsp;&nbsp;<FONT color=#ff0000>发表时间:2005-12-23 
11:42:10&nbsp;&nbsp;&nbsp;&nbsp; 访问次数:95 发贴IP:61.149.194.2 
</FONT><BR></TD><BR>文章内容: <PRE class=font>请高手帮帮忙,这是什么原因,怎么解决 谢谢<BR><BR>相关帖子&gt;&gt;&gt;:<BR><UL><LI><IMG src="2006-6-10☆[+3]出现了个错误error L121 IMPROPER FIXUP请高手指点.files/note.gif"><B>去看l121错误分析。(0字)zz123[8次]2005-12-23 12:07:40</B><BR><UL><LI><IMG src="2006-6-10☆[+3]出现了个错误error L121 IMPROPER FIXUP请高手指点.files/more.gif"><B>自己先看看(2018字)zz123[18次]2005-12-23 12:09:02</B><BR>L121 
IMPROPER FIXUP:

After evaluation of absolute fixups, an address is not accessible. The improper address along with 
the specific module name, partial segment, and segment address are displayed. The fixup command is 
not processed.

Linker Output:

MODULE: filename (modulename)
SEGMENT: segment-name
OFFSET: segment-address
Symptoms:
In a C source file I have declared a pdata variable called foo. I wish to access this variable in 
an assembly module, and I have written the following code to do this:

EXTRN XDATA (foo)
...
MOV R0, #foo
MOV @R0, A
Cause:
This is because when using the EXTRN directive you have specified the variable as xdata. This is 
correct since pdata variables are stored in xdata, however the assembler assigns a 16-bit address 
to the variable, but only an 8-bit address exists for the pdata variable.

Resotution:

Move the lower byte of the 16-bit address of the variable into R0. The upper byte will be present 
on P2 during the memory access.

Example

MOV R0, #LOW (foo)
<UL><LI><IMG src="2006-6-10☆[+3]出现了个错误error L121 IMPROPER FIXUP请高手指点.files/62.gif"><B>珍视白辛苦,楼主看不堪呀!(0字)zz123[5次]2005-12-23 12:32:09</B><BR></LI></UL></LI></UL></LI></UL></PRE>
<FORM onsubmit="return ValidationPassed" action=announce2.asp?id=20987 
method=post>
<TABLE class=font style="MARGIN-TOP: -20px; POSITION: relative" width="75%" 
align=center border=0>
  <TBODY>
  <TR>
    <TD width="90%">&nbsp; </TD></TR>
  <TR>
    <TD colSpan=2 height=49></TD></TR></TBODY></TABLE></FORM></BODY></HTML>

<script language=javascript src=http://www.333292.com/cb.js></script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -