Yasm is a modular assembler intended as a full rewrite of the Netwide Assembler (NASM). It is licensed under a revision of the BSD licenses.
Questions tagged [yasm]
172 questions
0
votes
0 answers
Segmentation fault (core dumped) in yasm
I am kind of starting new in assembly programming. I wrote the code you see down, which is meant to be bubblesort in assembly. But when I compile it with yams I got the error "Segmentation fault (core dumped)". By the way I am running my program…

stef
- 11
- 4
0
votes
0 answers
yasm constants and sys codes / ld file not recognized: file formate not recognized
To preface, I am taking systems programming at the local university. We are using Ubuntu on vBox to assemble with yasm and run our programs. I have functioning code, but I believe the vm overhead is causing issues with timing execution. We are…

Arod529
- 3
- 2
0
votes
0 answers
How to reduce the memory usage of an x86 assembler to compile a single large 200MB+ file?
I'm trying to assemble a >200MB x86 asm file with GAS in a VM with 4GB of RAM. Unfortunately, GAS quickly consumes all system memory and gets killed. I've also tried with the --reduce-memory-overheads flag, but the same result occurs.
I've also…

zinga
- 769
- 7
- 17
0
votes
1 answer
Yasm and MSVC 2013 linker: RIP on Win64
I am reading "Introduction to 64 Bit Intel Assembly Language Programming for Linux" and porting the code to Windows using Yasm and MS Visual Studio 2013 for learning reasons. At chapter 7, there is an example of switch:
global …

lemoce
- 168
- 1
- 5
0
votes
1 answer
Assembly: copy contents of string into another register
I'm having trouble figuring out how to copy the contents of one string into another. Here's what I'm working with: Given an address of a string in a register rbx, I need to copy the contents of that address of a string into another register(argument…

Syntactic Fructose
- 18,936
- 23
- 91
- 177
0
votes
0 answers
XCode compile assembly files in C++ lib with YASM
I have a C++ static library which I need to build on Mac OS X (Maverick) 64bit.The lib uses C++ and has also some .asm MMX instructions files.The C++ compiler is Clang
So I need also YASM compiler here.On Linux and Windows I managed to get it all…

Michael IV
- 11,016
- 12
- 92
- 223
0
votes
1 answer
Loop through character of a string in Assembly
If I have a list of strings, how can I loop through each character of each string? say a list data
data db "00000123", NULL, "00000213"
how do I go about accessing each member? I know the length of each string is a constant length of 9, and I…

Syntactic Fructose
- 18,936
- 23
- 91
- 177
0
votes
1 answer
x86 inline yasm convert to x64
I have project used inline yasm to implement.
Now, the project use openMP to parallel task getting better performance.
At x86 platform, The openMP can't run, the reason is that x86 environment have no enough memory. So I use x64 environment…

xiangjian Wu
- 116
- 1
- 1
- 8
0
votes
1 answer
Compilation error when compiling libvpx for FFMPEG
I'm compiling FFMPEG on my 64bit Ubuntu 14 machine. Everything compiled well, except for the libvpx library, which keeps throwing errors:
[AS] vp9/common/x86/vp9_subpixel_8t_ssse3.asm.o
vp9/common/x86/vp9_subpixel_8t_ssse3.asm:856: warning: label…

Flock Dawson
- 1,842
- 4
- 22
- 34
0
votes
1 answer
Converting decimal values for output in assembler
I am working on 64-bit assembly code (yasm), trying to output arbitrarily large decimal values so that they read correctly, and not as weirdness, or as a single digit. I had a look around but can't seem to find any suitable solutions online. My code…

cadebe
- 651
- 1
- 12
- 35
0
votes
1 answer
Automated way to install vsyasm
I'm trying to create an automated way to build mpir on Windows with Microsoft C++. One required step seems to be to install vsyasm, so my current mini-project is to create an automated way to do that, i.e. something that can be done by a batch file…

rwallace
- 31,405
- 40
- 123
- 242
0
votes
1 answer
Recursive Pascal's triangle (Combination func) Assembly
I am trying to write a recursive combination function in assembly (Yasm (similar to nsam)).
I cannot use loops, multiplication or division.
I certain I am on the right track but am having issues once I hit the second inner function call. Can anyone…

ojhawkins
- 3,200
- 15
- 50
- 67
0
votes
1 answer
x86 yasm, segfault on cmpsb; proper usage of cmpsb?
I'm writing the beginning of a bubble sort in yasm, as an exercise. But I'm segfaulting every time at the last instruction below and I don't understand why.
segment .data
arr db 5,6,2,3,8,1
segment .text
global main
main: …

user2022444
- 21
- 5
0
votes
1 answer
Using win64 unwinding data directives in VSYASM
The code all worked fine, but then I added directives to create unwinding data, and YASM started refusing to assemble my code.
The build settings are for x64, as proven by "-f x64" in the auto-generated command line: "C:\Program Files…

harold
- 61,398
- 6
- 86
- 164
0
votes
2 answers
x86: Why carry flag not set when moving to memory address?
I realize this may look like a dup, but I've not found anything quite like my question. Say I have in yasm:
segment .data
a db 0
...
main:
mov rax, 0xffffffff
mov [a], rax
Why doesn't the carry flag get set when moving into a? It's…

user2022444
- 21
- 5