Questions tagged as 'x86'

1
answer

How to manipulate the FPU stack in the x86 assembly using the NASM and functions in c?

I'm trying to do this operation (y = 0.299 * red + 0.587 * green + 0.114 * blue) in assembly mode protected nasm integrating c with assembly in windows, however regardless of the input values the result is always 0. p> extern printf ;a função...
asked by 22.05.2015 / 21:47
1
answer

Assign value to a variable in assembly 8086

I have the variable: simbolo db "0 $" and I also have the following function: read_keyboard: mov ah, 1 int 21h ret What is a simple interrupt that reads from the screen, and saves what was read in AH . My problem is: how do...
asked by 03.12.2016 / 06:34
0
answers

String Concatenation in Assembly x86

I have to implement a function that concatenates a String3 pointed to by ptr3 to strings pointed to by ptr1 and ptr2. I do the main() in C, and the functions in Assembly x86. When executing, output is 123 and it should be 12345...
asked by 04.11.2017 / 00:52
0
answers

Error and Warning when changing platform from AnyCPU to x64

I had a problem, which, when trying to capture 64-bit processes on x86 platform, an exception error occured. I was able to solve it by creating a 64-bit and 32-bit application. I got all the dlls, anyway, everything perfect ... right? Wrong. The...
asked by 12.07.2016 / 21:55
0
answers

Insert values from 0 to 15 on keyboard fasas x86 assembly

Good. I have to do a program in assembly that le a keyboard number which is to choose a color in video mode. From 0 to 9 I know it's like this: mov ah, 40h ;Pedir um valor mov bx, 1 mov cx, 44 mov dx, pergunta int 21h mov ah...
asked by 31.03.2015 / 18:27
1
answer

Representation of assembly instructions [duplicate]

How to interpret an Assembly statement with its hexadecimal value in a memory address? 8B 4C 24 04 CORRESPONDS TO THIS - > MOV ECX,DWORD PTR SS:[ESP+4] But if you only had the hexadecimal values how would you get to thi...
asked by 11.10.2015 / 01:48
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

Error in compiling kernel in ubuntu

I'm trying to compile kernel 3.2.91 on Ubuntu and when I run the make command this error occurs: scripts/Makefile.build:305: recipe for target 'arch/x86/kvm/vmx.o' failed make[2]: *** [arch/x86/kvm/vmx.o] Error 1 scripts/Makefile.build:441: re...
asked by 19.08.2017 / 05:10
0
answers

Why can I restore old ESP value

Well I have here an issue that involves assembly and C. The variable format has more than 4 bytes, but I can still push of it without casting and returning the old ESP value after pushing. How is it possible? ASM segment .d...
asked by 24.03.2016 / 16:47