Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

Why does "ldi r24, 0x74;" become "84 e7" (and "ldi r24, 0x70; " become "80 e7")

Why does "ldi r24, 0x74;" become "84 e7" (and "ldi r24, 0x70; " become "80 e7")

2011-12-23 by Cat C

Hello, and Merry Christmas or your preferred alternative.
I just happened to look at the LSS (and hex) files after I changed just one byte and indeed just one byte is changed in the files, but I expected 
"ldi r24, 0x70; " to become "70 e7" and "ldi r24, 0x74; " become "84 e7"
What's happening?
Thanks,
Cat 		 	   		  

[Non-text portions of this message have been removed]

RE: [AVR-Chat] Why does "ldi r24, 0x74;" become "84 e7" (and "ldi r24, 0x70; " become "80 e7") Got it, sorry.

2011-12-23 by Cat C

Never mind, I think I got it...For some reason, it looks like opcodes are somewhat... weird, ie. one 8 bit number is "spread" across 2 bytes with something mixed in there for good measure... :-)
All the best, anyway :-)
Cat

> To: avr-chat@yahoogroups.com
> From: catalin_cluj@hotmail.com
> Date: Fri, 23 Dec 2011 11:04:57 -0700
> Subject: [AVR-Chat] Why does "ldi r24, 0x74;" become "84 e7" (and "ldi r24, 0x70; " become "80 e7")
> 
> 
> Hello, and Merry Christmas or your preferred alternative.
> I just happened to look at the LSS (and hex) files after I changed just one byte and indeed just one byte is changed in the files, but I expected 
> "ldi r24, 0x70; " to become "70 e7" and "ldi r24, 0x74; " become "84 e7"
> What's happening?
> Thanks,
> Cat 		 	   		  
> 
> [Non-text portions of this message have been removed]
> 

 		 	   		  

[Non-text portions of this message have been removed]

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.