Questions tagged as 'nasm'

0
answers

Segmentation Fault in Assembly

I'm new to assembly and I have a problem here in a college problem. section .data SYS_EXIT_PROGRAM equ 1 SYS_STANDARD_OUTPUT equ 1 SYS_STANDARD_INPUT equ 2 SYS_READ_FILE equ 3 SYS_WRITE_FILE equ 4...
asked by 16.05.2017 / 22:40
1
answer

Return difference between major and minor array values in Assembly

I'm trying to make a code in assembly with arq. x86 using NASM. In this code I should return the difference between the highest value and lowest value of an array, as below. However, while rolling it is returning 14 for the example below a...
asked by 17.06.2018 / 21:52
0
answers

What is that file created by the nasm when I "compile" it?

I compiled an assembly code in the nasm using "nasm.exe -f win64 program.asm -o program.o" and got more doubts than anything else. My intention in doing this simple program is to take a pure code, assembly, and make it executable and so pass...
asked by 07.12.2018 / 15:55
1
answer

Product of nasm matrices

I have to make an algorithm that multiplies an array A by an array B and places the result in a third array. The arrays are square, of the same size and will be passed by reference by another C program. The problem is that the errors only app...
asked by 06.06.2016 / 21:53
0
answers

Convert string into ascii code, in nasm

I'm trying to make a program that converts a string entered by the user into a string with the corresponding ascii codes. But when I run the program the following error appears:    Floating point exception Also when debugging in gdb I...
asked by 30.11.2018 / 20:35
1
answer

Optimizing codes with VC ++ and NASM / MASM

Good evening. I often use NASM in VC ++ on x86 and am learning how to use MASM in x64. Is there any way to specify where each argument goes and the return of an assembly function in such a way that the compiler manages to leave the data there...
asked by 12.07.2017 / 03:18