 | Discussion Forum |  |
|
|
L121 IMPROPER FIXUPNext Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Eckhard Doll Posted 25-Jan-2005 08:34 GMT Toolset C51 |  L121 IMPROPER FIXUP Eckhard Doll hello out there,
my problem is on understanding. I receive this error message from the linker.
*** ERROR L121: IMPROPER FIXUP
MODULE: .\obj\charleader.obj (CHARLEADER)
SEGMENT: PROG
OFFSET: 0172H
*** ERROR L121: IMPROPER FIXUP
MODULE: .\obj\charleader.obj (CHARLEADER)
SEGMENT: PROG
OFFSET: 0174H
manual explains, this may be caused by a call or jump to an unaccessible address. the correspondig code is like this (from the lst-file)
016D 1525 X06b4: scroll_it up,#EinScroll
016D E500 F 1526+1 mov a,cl_scroll
1527+1 if up
016F 04 1528+1 inc a
0170 B40400 F 1529+1 cjne a,#EinScroll,0
0173 4000 F 1530+1 jc +1
0175 E4 1531+1 clr a
1532+1 else
+1 jnz +2
+1 mov a,#EinScroll
+1 dec a
+1 endif
0176 F500 F 1537+1 mov cl_scroll,a
0178 8009 1538 sjmp X06ca
1539 ;
017A 1540 X06c1: scroll_it down,#EinScroll
017A E500 F 1541+1 mov a,cl_scroll
appreciate any hint... | | Read-Only Author Keil Reinhard Posted 25-Jan-2005 09:57 GMT Toolset C51 |  RE: L121 IMPROPER FIXUP Keil Reinhard 172 refers to this address:
0170 B40400 F 1529+1 cjne a,#EinScroll,0
^^-- this is 172.
You cannot reach location 0 with a rel jump when the instruction is not within +/-127 bytes.
See also: http://www.keil.com/support/docs/2157.htm | | Read-Only Author Eckhard Doll Posted 25-Jan-2005 10:12 GMT Toolset C51 |  RE: L121 IMPROPER FIXUP Eckhard Doll Yes, thank you! Found the same link a minute before I got your reply. Next instruction was
jc +1
... | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|