Answer the question
In order to leave comments, you need to log in
Why does the kernel crash when writing to an array?
Hello everyone, I have a problem. There is a code in the program:
field db '1', '2', '3', '4', '5', '6', '7', '8', '9'
move resb 1
_move:
mov edx, 1
mov ecx, move
mov ebx, 1
mov eax, 4
int 0x80
mov eax, move
mov ebx, field
add ebx, eax
call _clear
mov [ebx], byte 'X'
ret
Answer the question
In order to leave comments, you need to log in
I suspect the problem is that the input from the string is not a number, but an ASCII character
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question