Memory 关于Y86汇编代码内存存储的困惑

Memory 关于Y86汇编代码内存存储的困惑,memory,y86,Memory,Y86,我一直在使用一个在线编译器,但我不知道为什么内存被分割成这样 结果是: 00a8 000000 1D 00ac 01000000 当00a8时,应将整个十六进制值保持为0000011d .pos 0 irmovl $1, %eax # int i = 1 irmovl $1, %ebx # int j = 0 irmovl $0, %ecx # int ans = 0 irmovl $139, %esp # set bas of array i

我一直在使用一个在线编译器,但我不知道为什么内存被分割成这样

结果是:

00a8 000000 1D

00ac 01000000

当00a8时,应将整个十六进制值保持为0000011d

.pos 0
    irmovl $1, %eax   # int i = 1
    irmovl $1, %ebx   # int j = 0
    irmovl $0, %ecx   # int ans = 0
    irmovl $139, %esp # set bas of array
    irmovl $1, %ebp
    
    
initloop:
    
    
    addl %ebp, %ecx # ans = ans + j
    irmovl $1, %edi # set esi to one to increment
    addl %edi, %eax
    
    rrmovl %ebp, %ebx
    irmovl $1, %edi # set esi to one to increment
    subl %edi, %ebx
    
    rrmovl %eax, %esi
    subl %eax, %ebx
    jge initloop
    
    rmmovl %ecx, (%esp) # arr[i] = ans
    
    irmovl $0, %eax # make (i)eax 0 after i == j
    #irmovl $0, %ecx # make (ans)ecx 0 after i == j
    
    irmovl $4, %edi     # get ready to compute next addr in arr
    addl   %edi, %esp
    
    irmovl $1, %edi # set esp to one to increment
    addl %edi, %ebp
    
    rrmovl %ebp, %ebx
    
    irmovl $10, %edi
    subl %ebp, %edi
    jge initloop
    
.pos 0x100
arr:
谁能运行这个并告诉我内存是否匹配

Changes to memory:
0x008c: 0x00000000  0x00000001
0x0090: 0x00000000  0x00000005
0x0094: 0x00000000  0x0000000e
0x0098: 0x00000000  0x0000001e
0x009c: 0x00000000  0x00000037
0x00a0: 0x00000000  0x0000005b
0x00a4: 0x00000000  0x0000008c
0x00a8: 0x00000000  0x000000cc
0x00ac: 0x00000000  0x0000011d
0x00b0: 0x00000000  0x00000181