embeded/8051
8051 idata와 data의 차이?
구차니
2017. 3. 27. 15:02
클래식이던 확장이던 IDATA와 DATA는 존재하는데
DATA와 IDATA의 차이에 대해서 keil 사이트에 설명이 모호한데
direct와 indirect의 차이로 설명이 된다. 근데.. 감이 안오는데....
IDATA
This memory is indirectly accessed using 8-bit addresses and is the on-chip RAM of the 8051.
DATA
This memory is directly accessed using 8-bit addresses and is the on-chip RAM of the 8051.
[링크 : http://www.keil.com/support/man/docs/c51/c51_le_memtypes.htm]
[링크 : http://www.keil.com/support/man/docs/c51/c51_le_data.htm] DATA
[링크 : http://www.keil.com/support/man/docs/c51/c51_le_idata.htm] IDATA
어라..? IDATA accessed with @R0 or @R1
레지스터에 값을 저장하고 그 값을 통해 간접 접근을 하는 거군?
[링크 : http://measure.feld.cvut.cz/.../A51___Keil_Macro_Assembler_and_Utilities.pdf]