Questions tagged as 'assembly'

1
answer

result of subtraction of numbers from 32 to 64

I'm learning to program in assembly and I have a problem that is as follows: I have a result of a subtraction in 32-bit number, and it has to return a 64-bit number. Note: I am using a 32-bit linux vm     
asked by 19.10.2017 / 23:03
1
answer

Capture mouse click Mars

There is some syscall or other mechanism that can capture the mouse click through the Mars mips simulator.     
asked by 04.08.2017 / 15:17
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
1
answer

How do I receive input from the user?

.data StringOriginal: .asciiz "Frase Introduzida:\n" #ex_msg_og StringFinal: .asciiz "\nFrase Encriptada:\n" String: .asciiz "Hello World" .text Main: la $v1,String #load addr of string into $v0 la $t1,($v1) #copy addr in...
asked by 15.06.2017 / 22:37
1
answer

I would like to understand how to configure ports (port, ddr, pin) using the avr assembler atmega328p

Example I was testing, configuring outbound ports and inbound ports to be able to perform a sum, but they are not working: ldi r21, 0x0a ldi r22, 0x0b out PINB, r16 out DDRB, r16 out PORTB, r17 add r21, r22 mov r17, r21     
asked by 27.02.2017 / 21:24
1
answer

FASM - Create and execute batch file

In Assembly (using FASM assembler), I would like to create a .bat file and then run it. I can create the file normally using the functions contained in msvcrt.dll. I close the file and try to run using system, but nothing happens (not even an...
asked by 20.10.2016 / 02:33
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
0
answers

Decision Structure in Assembly

I am programming in Assembly and here comes an error. To summarize, I have to make a structure to check two real values and then go to the rest of the program. Well, that was the idea. To illustrate, I'll leave a print with you: In s...
asked by 25.11.2014 / 04:54
1
answer

Understand C ++ / Assembly code

I am studying a Node, and in this process I decided to help in the study to migrate a system in c / c ++ to node, however I am not familiar with c / c ++ and I have a code snippet that I can not understand very well he does, could you help me?...
asked by 03.09.2016 / 05:13
1
answer

How to isolate bits in Assembly

I have a 32-bit word: 00000001001010100100000000100000 How can I isolate the first 6 most significant bits [31-26] and store it in a register? Is there any "recipe" to isolate a range of bits? How can I isolate a range of bits from a w...
asked by 13.10.2018 / 03:02