我无法使用base + displacement方法访问16位数组元素。
以下是代码:
.section .data
t1:
.int 10, 15, 25
.section .text
.globl _start
_start:
movl $t1, %ecx
movl (%ecx), %edx # this gets 10 in edx
movl 2(%ecx), %ebx # this does not get 15 in ebx
movl $1, %eax
int $0x80
如何访问t1 [1 ...]元素。