Having trouble adding two numbers taken as input from the terminal in assembly
I’m taking in two numbers as strings in assembly, then I’m converting them to integers, adding them, converting the result to a string, then printing it to the terminal. The main issue I have is that I’ll be able to enter the two numbers, but after entering them no result is displayed.
Having trouble adding two numbers taken as input from the terminal in assembly
I’m taking in two numbers as strings in assembly, then I’m converting them to integers, adding them, converting the result to a string, then printing it to the terminal. The main issue I have is that I’ll be able to enter the two numbers, but after entering them no result is displayed.
Having trouble adding two numbers taken as input from the terminal in assembly
I’m taking in two numbers as strings in assembly, then I’m converting them to integers, adding them, converting the result to a string, then printing it to the terminal. The main issue I have is that I’ll be able to enter the two numbers, but after entering them no result is displayed.
Why is my sorted array incorrect in this program?
I trying to learn assembly language, so I tried to write a program for sorting a number of integers using bubble-sort.
What is the problem in this program? (x86_64 assembly)
I trying to learn assembly language, so I tried to write a program for sorting a number of integers using bubble-sort.
Working with big integers in assembly x86-64
Starting to learn assembly x86-64 and I’m writing a program that get an array of integers and does some calculations on it, the purpose isn’t relevant to the question, but the calculations include multiplications and divisions, the size and sign of the integers are not known, and the program should handle any case.
I Wonder what is the correct way to do it, should I extend the integers to the x64 size registers or should I work the EDX::EAX extenstions?
How to force clang assembler to emit the `rex.W` prefix?
When writing inline assembly, is there a way to force the use of the rex.W prefix?
How to force GNU assembler to emit the `rex.W` prefix?
When writing inline assembly, is there a way to force the use of the rex.W prefix?
Forcing amd64 rex.W prefix
When writing inline assembler, is there a way to force the use of the rex.W prefix?
Why doesn’t my code sort numbers greater than 128?
_start: mov rdx, len ; Store the number of elements in rdx (len – 1) dec rdx ; Subtract 1 to get the index of the last element mov rsi, 0 ; Store the starting index (0) in rsi lea rdi, [array] ; Load the address of the array into rdi call mergesort ; Call […]