Good day
I am trying to get the user to get the user to input a state so i can print it out. I am using nasm, linux, x86
section .bss ; you can change
user_input: resb 256 ;256 byte of memory is reserved and can be accessed through the name user_input
user_input_size equ $- user_input
section .data ;you cant change
output: db "Enter your print statement: "
output_size equ $- output
section .text ;assembly code
global _start
_start:
mov eax, 4
mov ebx, 1
mov ecx, output
mov edx, output_size
int 80
mov eax, 3
mov ebx, 0
mov ecx, user_input
mov edx, user_input_size
int 80
push ecx ; not sure about this
push edx ; not sure about this
mov eax, 4
mov ebx, 0
pop ecx
pop edx
int 80
mov eax, 1
mov ebx, 0
int 80
I am unable to enter anything. I am using an online compiler and it is showing the following;
.code.tio.s:25: error: instruction not supported in 64-bit mode
.code.tio.s:26: error: instruction not supported in 64-bit mode
.code.tio.s:30: error: instruction not supported in 64-bit mode
.code.tio.s:31: error: instruction not supported in 64-bit mode
ld: cannot find .obj.tio: No such file or directory
/srv/wrappers/assembly-nasm: line 6: ./.bin.tio: No such file or directory