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 ...
Perspicacious asked 27/4, 2012 at 16:11

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 ...
Scotopia asked 28/3, 2018 at 12:33

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...
Modulate asked 10/9, 2018 at 3:2

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...
Outlying asked 1/9, 2018 at 8:22

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...
Canoewood asked 15/4, 2018 at 10:10

1

Solved

I have a bunch of magic numbers that I would like to include in both a C program and an assembly file to be compiled by nasm or yasm. In plain C the file would look something a series of defines, ...
Astonishing asked 25/10, 2017 at 0:37

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...
Melisenda asked 17/11, 2017 at 12:22

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...
Cryolite asked 8/5, 2012 at 3:29

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...
Tyrannous asked 30/10, 2015 at 14:40

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...
Nader asked 5/2, 2015 at 0:16

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...
Covenanter asked 21/8, 2012 at 22:14

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...
Gutbucket asked 26/10, 2014 at 22:12

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...
Kami asked 23/7, 2014 at 8:1

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...
Cataplasia asked 22/10, 2012 at 18:10

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...
Greenhorn asked 23/3, 2012 at 23:22
1

© 2022 - 2024 — McMap. All rights reserved.