intel x86(little endian) 程序集中数组的单个双字如何存储为值 5?

问题描述

我目前是一名大学生,我的教授在录制讲座时放大了,所以我看不到他在写什么。我不确定例如“DWORD 5”将如何存储,例如从位置 2000 开始:

我在想

2000 年:00000101

2001 年:00000000

2002 年:00000000

2003 年:00000000

但我不确定是否可以。

2000 年:00000000

2001 年:00000000

2002 年:00000000

2003 年:00000101

如果有人能解释哪个是正确的,我将不胜感激。

解决方法

x86 是小端的,并且 "[a] little-endian system,stores the least-significant byte at the smallest address"

所以,第一个。