Questions tagged [assembly]
Use this for code written in any assembly language. Assembly-language questions also need a tag to indicate the target processor's instruction set architecture (ISA).
351 questions
2votes
1answer
179views
Solution to the N Queens Puzzle in the PicoBlaze assembly language
You can see it live here: ...
4votes
1answer
147views
The Permutations Algorithm using BubbleSort and stack in PicoBlaze assembly language - attempt #2
So, this is improved code from my previous attempt to implement the permutations algorithm in PicoBlaze assembly language. You can see it live here: ...
5votes
2answers
105views
Compare two files in 16-bit DOS assembly
The task is to do a byte-by-byte comparison and print whether the files are equal or not. Code: ...
4votes
1answer
256views
The permutations algorithm in PicoBlaze assembly language
You can see it live here: ...
7votes
3answers
793views
Optimizing Masked Bit Shifts of Gray Code with AND Operation and Parity Count
I am trying to determine the parity of the result of a complex calculation involving two uint64_t variables, value_a and ...
5votes
2answers
174views
A PicoBlaze assembly program that converts binary numbers to octal
You can see it live here. ...
3votes
1answer
108views
Computing the factorial of a number in ARM assembly
I'm new to ARM assembly, and I want to improve myself. Here is code that I wrote. It computes and returns the factorial of the integer passed in r0. Any suggestion ...
5votes
1answer
91views
Re-implementing head in x86-64 assembly targeting linux
I'm pretty new to x64 programming and tried to recreate parts of head for study (targeting linux). Are there any stylistic issues? The head function uses a buffer ...
5votes
2answers
215views
Hand-written IUnknown::Release in Assembly Language - Code injection
I've written the following code in assembly, which I then convert to machine opcodes and inject into a process with VirtualAlloc at runtime. This allows me to ...
1vote
1answer
54views
An example of a bootloader that changes color in a loop in assembly x86
In short, this bootloader code loads sectors from the disk into memory, sets the video mode and prints a message on the screen. After that, it goes into an infinite loop, keeping the system running. <...
6votes
1answer
604views
x86 assembly program to compute some random function
As a way to refresh my knowledge on assembly, I tried to compile the below C program to x86 assembly by hand. ...
4votes
1answer
164views
Find minimum element plus index between 8 zmm registers
I want to find the first minimal element and its index of a 64 element long array with the avx512 instuction set. The code works and is in the context of a function that is faster than the equivalent ...
2votes
1answer
54views
Simple GAS assembly program to print out all of the command line arguments provided to it
Although I've used assembly quite a bit for some simply things, I feel like I've never properly learnt how to write it idiomatically, by which I mean: which variables to use where, how best to ...
2votes
1answer
70views
Solving the N Queens Puzzle in AEC using stack
N Queens Puzzle is a puzzle which asks you to place N chess queens on an NxN chess board so that no two queens are attacking each other. Two queens are attacking each other if they are on the same row,...
2votes
1answer
47views