Questions tagged [yasm]

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.

172 questions
0
votes
3 answers

Trouble building YASM/NASM Hello World

I'm trying to build hello.asm into a Windows executable, but when I use the suggested commands for assembling, linking, and compiling the code, I get errors. Whether I'm using Strawberry Perl's GCC or MinGW's GCC, both give errors for the same…
mcandre
  • 22,868
  • 20
  • 88
  • 147
-1
votes
1 answer

difference between brackets/no brackets nasm/yasm x86_64

i am learning x86_64 assembly code on yasm and nasm, and i came across with these expressions, and i cant figure out what is happening here, could someone explains me it please?, lets take these snippet as an example: section .data word db "Hello,…
Rablidad
  • 55
  • 2
  • 8
-1
votes
1 answer

Linking assembly files not working on macOS

I am currently studying X86_Intel 64-bit assembly and I want to run my assembly code on macOS. I have my code compiling and linking correctly on an Ubuntu VM using: yasm -f elf64 -g dwarf2 -l div.lst div.asm ld -o div div.o However, when I use…
-1
votes
1 answer

Getting relocation R_x86_64_32 error when compiling assembly file. Works on one VM, not on another

The full error the console is handing back to me is below. I'm using Lubuntu on VirtualBox and VMware (tried both). For some reason it works on my laptop but not on my desktop. After trying to find out more myself through many message forums it…
Nick Graeff
  • 89
  • 1
  • 7
-1
votes
1 answer

Initializing a struct in yasm x86 assembly

I'm trying to initialize a WIN32_FIND_DATA structure in which to store info about files found with FindFirstFile and FindNextFile windows functions. The problem is that i can't figure out how to initialize a stuct in yasm. Here's my code: struc…
Wee Bey
  • 1
  • 2
-2
votes
1 answer

Understanding x86 64bit ror, shl

I'm having trouble understanding what exactly ror and shl do in assembly. I see the definitions, e.g. ror: rotates bits to the right and back into high-order bit on the left. but what does that mean? I just can't wrap my head around it. like if mov…
Syntactic Fructose
  • 18,936
  • 23
  • 91
  • 177
-2
votes
3 answers

FizzBuzz in assembly - segmentation fault

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 the problem persists) and the error hides somewhere in…
kacpr
  • 440
  • 1
  • 8
  • 28
1 2 3
11
12