01.08.2013 Views

A1 Introduction to ARM Architecture

A1 Introduction to ARM Architecture

A1 Introduction to ARM Architecture

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Load and S<strong>to</strong>re Instructions<br />

• Load(LDR) instruction은 memory에 저장되어 있는 8-bit byte, 16-bit<br />

halfword 혹은 32-bit word를 32-bit register로 복사온다. 이 때 byte나<br />

halfword를 사용하면 register의 내용이 자동으로 zero-extended 혹은 signextended가<br />

된다.<br />

• S<strong>to</strong>re(STR) instruction은 register에 저장된 8-bit byte, 16-bit halfword 혹은<br />

32-bit word를 memory에 복사한다.<br />

• Load/s<strong>to</strong>re instruction은 memory 주소로 base register와 offset을 사용한<br />

다. (참고: 아래 3가지 방법이 있음.)<br />

– offset: (base register 값 + offset)이 주소로 사용됨.<br />

– pre-indexed: (base register 값 + offset)이 주소로 사용된 후 이 주소 값이 base<br />

register에 저장됨.<br />

– post-indexed: base register 값이 주소로 사용된 후 offset이 base register 값에 더해<br />

짐.<br />

• Load multiple(LDM)/s<strong>to</strong>re multiple(STM) instruction은 block transfer를 수<br />

행한다.<br />

• Register 값과 memory 값을 swap하는 instruction이 있다. (참고: OS에서<br />

semaphore 구현을 위하여 a<strong>to</strong>mic 수행 instruction 필요.)<br />

<strong>A1</strong> <strong>Introduction</strong> <strong>to</strong> <strong>ARM</strong> <strong>Architecture</strong> <strong>A1</strong>-16

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!