MOVHI instruction, error in arch manual??

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the architecture manual the instruction MOVHI is listed in the index. It is intended to put an immediate value in the high part of the destination register.

But there's another "MOVHI" instruction: move value to register if condition is true, and if the condition to test is "HI" (higher), the syntax is the same as for the other instruction.

When simulating in IAR EW it is the second operation that occur. So the question is, what would the syntax be if you want to move an immediate to the high part of the register??

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Can the assembler tell the difference by the size of the immediate (8 bit vs 16 bit)?

Letting the smoke out since 1978

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The syntax is probably MOVH as listed in the technical reference. I will email Atmel support about it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I believe this was fixed in the latest arch document revision, was it?

-sma

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The revision of the document on the Atmel website is 11/07 and the MOVHI instruction is there..