yasm Questions
7
Solved
While running a program I've written in assembly, I get Illegal instruction error. Is there a way to know which instruction is causing the error, without debugging that is, because the machine I'm ...
3
Solved
Test platform is 32 bit Linux.
Basically, I know gcc can be used to generate both Intel and At&T style
assembly code, but it seems that you can not directly use nasm/tasm to compile
the Inte...
Ripen asked 23/12, 2013 at 6:12
2
For example if I have a variable named test declared like:
test db 0x01 ;suppose the address is 0x00000052
If I do something like:
mov rax, test ;rax = 0x00000052
mov rax, [test] ;rax = 0x01
...
2
While learning assembly language from a book there is a listing showing some basic operations:
segment .data
a dq 176
b dq 4097
segment .text
global _start
_start:
mov rax, [a] ; Move a into ra...
2
Solved
I have a function foo written in assembly and compiled with yasm and GCC on Linux (Ubuntu) 64-bit. It simply prints a message to stdout using puts(), here is how it looks:
bits 64
extern puts
glo...
2
Solved
I'm investigating a minimal opcode size x86-64 strlen implementation for my code golfing / binary executable that is not supposed to exceed some size (think of demoscene for simplicity).
General id...
1
Solved
1
Solved
I am trying to assemble the code below using yasm. I have put 'here' comments where yasm reports the error "error: invalid size for operand 2". Why is this error happening ?
segment .data
a db 25...
5
I got a strange problem. I tried to install x264. When run sudo ./configure --enable-shared,
it gave:
Found no assembler
Minimum version is yasm-0.7.0
If you really want to compile without asm, c...
2
Let's say I have the following main loop
.L2:
vmulps ymm1, ymm2, [rdi+rax]
vaddps ymm1, ymm1, [rsi+rax]
vmovaps [rdx+rax], ymm1
add rax, 32
jne .L2
The way I would time this is to put it in...
3
Solved
I am trying to write FizzBuzz in Assembly and I am seeing segmentation fault all the time. So far I have determined that it is not my printing routines (because I have removed their contents and th...
1
Solved
The GNU assembler gives an unexpected memory operand when assembling Intel syntax code.
I have reduced my bug to one single lonely line of code, and for the last three days I've tried anything to ...
Fredia asked 7/5, 2015 at 16:32
2
Solved
What are the sizes of tword, oword and yword operands, as used in the NASM/YASM manual? And on a related note, is there a trick or underlying idea to these names? Is there a way by which bigger wor...
1
Solved
I've got code assembling using yasm, and linking into my C++ program, but I can't set breakpoints in gdb on symbols from the assembly language file.
The command lines probably aren't terribly illu...
2
Solved
I've already searched a long time on stackoverflow and other make manuals, websites but cannot find any trailing whitespace or miss usage in make functions. Can you help me solve this warning messa...
4
Solved
Suppose I have the following declared:
section .bss
buffer resb 1
And these instructions follow in section .text:
mov al, 5 ; mov-immediate
mov [buffer], al ; store
mov bl, [buffer] ; load
mov ...
Stans asked 28/4, 2012 at 10:5
2
Solved
I want to compile and execute a very simple program in 64 bit.
section .text
global _start
_start:
mov rdx,len
mov rcx,msg
mov rbx,1
mov rax,4
int 0x80
mov rbx,0
mov rax,1
int 0x...
1
Solved
Linux Assembly Tutorial states:
there is one very important thing to remember: If you are planning to return from a procedure (with the RET instruction), don't jump to it! As in "never!" Doing t...
1
© 2022 - 2024 — McMap. All rights reserved.