Questions tagged as 'assembly'

1
answer

How to execute inline assembly in a code with variables in C?

From an example of a book, I was able to run the following assembly code (AT & T) with the gas, which returns a message with the name of the processor: .section .data output: .asciz "The processor Vendor ID is '%s'\n" .section .bss ....
asked by 08.02.2015 / 00:46
2
answers

Why are you giving segmentation fault in my Assembly inline?

I'm trying to call the execve("bin/sh"...) function using assembly, however in the statement: mov %rsi,0x8(%rsi) I get a segmentation error. This is the 64bit version of the article code "smash the stack for fun and profit". voi...
asked by 08.04.2014 / 04:19
2
answers

What does this piece of cast code do?

code taken from Linux x86_64 execve Shellcode #include<stdio.h> #include<string.h> unsigned char code[] = \ "\x48\x89\xc6" // mov %rax,%rsi "\x48\x89\xf2" // mov %rsi,%rdx "\x49\...
asked by 21.06.2016 / 22:08
1
answer

What are the real problems for anyone working with assembly development? [closed]

I'm studying the architecture and implementation in MIPS, but since I'm not working at a low level, what I'm doing are basic exercises in any beginning of learning, I wonder what are the difficulties and real problems of an assembly developer? !...
asked by 28.08.2015 / 04:38
1
answer

Doubt to replace character in string assembly (MIPS)

I have to make a code in Assembly mips that asks for a phrase and if in the sentence it contains the character - is replaced with the character * . So far I've only been able to get to this code: .data buffer: .space 256 #...
asked by 13.12.2016 / 14:14
2
answers

How to identify the MVC version?

How can I identify the MVC version I'm using in my project?     
asked by 09.05.2017 / 01:55
1
answer

Is the Assembly code of a compiled program different from the one written?

I've compiled this Assembly code global _main extern _printf section .text _main: push message call _printf add esp, 4 ret message: db 'Hello, World!', 10, 0 When I went to give u dump in the assem...
asked by 28.11.2018 / 14:48
2
answers

Compile Linux-ready assembly on OSX

I'm trying to do a compiler study, so I have to compile an assembly of a language called howto with nasm. The intermediate code generated by the howto compiler is as follows: extern printf segment .text align 8 global main:function main: se...
asked by 22.07.2015 / 01:28
1
answer

Does every processor use the same set of instructions?

I was researching on machine language, but all I found on the Internet is very little and only theoretical so I wanted to know if it's possible for me to create a simple machine language program. What should I study to create a very simple machi...
asked by 24.01.2016 / 10:04
2
answers

Is it possible to multiply only with the &, |, + and - operators?

I have to create a program with assembly language K & S Model 2 that multiplies a number by another, the problem is that this language does not provide a multiplication operation. I thought of doing multiplications with additions, for exam...
asked by 21.09.2014 / 19:07