2705 views|3 replies

1

Posts

0

Resources
The OP
 

MCU newbie asks for help regarding data transfer instructions [Copy link]

Why is movx a,@ri followed by ((ri))→a and movx @ri,a followed by (a)→(ri)? (I really don’t know much

1623678502000..jpg (0 Bytes, downloads: 0)

1623678502000..jpg
This post is from 51mcu

Latest reply

sure   Details Published on 2021-10-6 13:57
 

7462

Posts

2

Resources
2
 

->You can think of it as the data transfer direction. ((ri))->a means putting the indirect address into a. The data transfer direction of the assembly format of an instruction system is the same. Either it flows from the second place to the left to the first place, which is usually the case with GNU assembly, or vice versa, which is usually the case with Intel assembly.

This post is from 51mcu
 
 
 

30

Posts

3

Resources
3
 

MOVX cannot use indirect addressing as the target address, so @Ri can only be the source address

This post is from 51mcu
 
 
 

7

Posts

0

Resources
4
 
kiverin posted on 2021-8-2 14:17 MOVX cannot use indirect addressing as the target address, so @Ri can only be the source address

sure

This post is from 51mcu
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list