ユーザーが入力した文字列を取得して配列または構造内に配置するだけですが、エラーが発生し続けます
無効な実効アドレス
これは何を意味するのでしょうか?
コード
section .data
fName db 'Enter your first name: '
fNameLen equ $-fName
lName db 'Enter your last name: '
lNameLen equ $-lName
numberOfStruct equ 50
structSize equ 25
firstName equ 0
lastName equ 10
section .bss
person resb numberOfStruct*structSize
section .text
global _start
_start:
mov esi, 0
input_start:
mov eax, 4
mov ebx, 1
mov ecx, fName
mov edx, fNameLen
int 80h
mov eax, 3
mov ebx, 0
lea ecx, [person+structSize*esi+firstName] ;This is where the error appears
mov edx, 15
int 80h
mov eax, 4
mov ebx, 1
mov ecx, lName
mov edx, lNameLen
int 80h
mov eax, 3
mov ebx, 0
lea ecx, [person+structSize*esi+lastName] ;This is where the error appears
mov edx, 10
int 80h
inc esi
cmp esi,10
jl input_start
exit:
mov eax, 1
mov ebx, 0
int 80h
私はそれを完全に間違っていましたか?