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
....
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...
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? !...
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 #...
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...
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...
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...
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...