ARM Technical Support Knowledge Articles

LJMP INSTRUCTIONS IN INLINE ASSEMBLER CORRUPTED

Applies to: C51 C Compiler

Answer


Information in this article applies to:


SYMPTOMS

I have written some inline assembler in my C code than includes an LJMP to an absolute location:

#pragma asm
  LJMP 0x8023
#pragma endasm

This compiles, assembles and links fine, and checking the generated SRC file indicates the LJMP was correctly inserted. However, when I load my program into dScope the LJMP has a different address!

CAUSE

This is caused by a bug in the A51 assembler.

RESOLUTION

You require version 5.54 of the A51 assembler or better. See the attached files section below to get this updated file.

When you receive the updated file, use PKZIP or WinZIP to extract A51.EXE and replace the old file in your C51\BIN directory. Then, rebuild your project.

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2005-05-28 22:37:42

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential