Questions tagged as 'assembly'

1
answer

Use methods of a project written in C ++ in C # (In the same Solution)

Hello, I need to use methods written in C ++ in a project written in C #, inside .NET (both) and that are contained in the same solution (as shown in the image below) ItriedtocompiletheprojectsandaddtheC++projectreference(whichwascreatedi...
asked by 29.05.2017 / 04:00
1
answer

Segmentation fault when switching system call the "int" to "syscall" in x86 assembly linux

When I change the system call from int $0x80 to syscall or sysenter in this code: mov $4, %rax mov $1, %rbx mov $String1, %rcx mov $16, %rdx int $0x80 The program ends in segmentation fault. In GDB i...
asked by 03.02.2017 / 03:22
1
answer

Questions Assembly mips

Could someone explain me how to use And, Andi, Or, Ori, Nor in Assembly mips? I would like to do something like this: se (num1 > 0) e (num2 > 0) entao se (num1 <= 10) e (num2 <= 10) entao cont <- num1 + num2 se...
asked by 19.01.2017 / 17:20
1
answer

Recorder LR with zero value in IRQ Interruption handler

Interrupt vector configuration: interruption vector: b RESET_HANDLER .org 0x08 b SVC_HANDLER .org 0x18 b IRQ_HANDLER In the first line of the IRQ_HANDLER routine, the value of register LR (seen...
asked by 20.12.2014 / 03:38
1
answer

How to extract hexadecimal code from an executable compiled with nasm?

I have an executable, created in Assembly language and compiled with NASM. Is there a way to get the value, in hexadecimal, of the bytes produced by the compiler, so that I can use them in a disassembler (ie discover the generated OP codes)?...
asked by 08.05.2014 / 08:24
0
answers

Transfer values greater than 65536 for variable DD error - Assembly 8086

I'm having a hard time assigning values greater than 65536 (16 bits), in my code example I assign the value of 86400 (one-day value) to a variable with DD declaration (32-bit architecture), and the following error is displayed when trying to com...
asked by 12.12.2018 / 17:12
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
0
answers

What does a numeral prior to an operand in the parentheses mean?

I'm studying assembly, and I found codes to work with TFT / LCD displays, and did not find information about a specific instruction, it moves multiples of a long string from the data recorders to the address recorder, however the recorder addres...
asked by 17.10.2018 / 05:17
0
answers

printf and sacnf on asembly on linux, shared lib, -fPIC

I'm trying to make a task work, but even the example I'm not able to run, the code is as follows: section .data SYS_exit equ 60 EXIT_SUCCESS equ 0 yourage db "How old are you: ",0 willbe db "You will be %d years old in ten yea...
asked by 22.06.2018 / 01:57
0
answers

Error printing string in ARM Assembly

Hello I'm doing a job at ARM Assembly using the Unicamp simulator and I have a problem. I need to make a simple list with the Insert, Remove, and Print options. I am able to insert items (name and price of a product), however I am doing tests fo...
asked by 17.06.2018 / 01:20