강의

멘토링

커뮤니티

Inflearn Community Q&A

No author

This post's author information has been deleted.

[MMORPG Game Development with C++ and Unreal Series] Part 1: Introduction to C++ Programming

Variables and registers

mov rax, [a] 질문

Written on

·

239

1

변수와 레지스터 강의, 17분 19초

mov rax, [a]를 했을때, rax에 0x44333333332211이 들어가는지 모르겠습니다.

복사할 크기를 지정하지 않았고, rax가 8바이트이기 때문에, a 주소부터 8바이트만큼의 값을 복사하면

rax는 1122223333333344가 나와야하는거 아닌가요? 왜 역순인지 이해가 안가요...

C++

Answer 1

0

Rookiss님의 프로필 이미지
Rookiss
Instructor

데이터를 저장할 때 뒤집어서 저장하는 방식과 그렇지 않은 방식이 있습니다.
(리틀 엔디안 vs 빅 엔디안)

서로 장단점이 갈려 일부 머신은 전자를, 일부 머신은 후자를 선택합니다.

No author

This post's author information has been deleted.

Ask a question