DORSETRIGS
Home

nasm (22 post)


posts by category not found!

Should using MOV instruction to set SS to 0x0000 cause fault #GP(0) in 64-bit mode?

The Great SS Segment Selector Debate Why MOV SS 0x0000 Causes a General Protection Fault in 64 bit Mode Understanding the Problem In 64 bit mode attempting to s

2 min read 06-10-2024 49
Should using MOV instruction to set SS to 0x0000 cause fault #GP(0) in 64-bit mode?
Should using MOV instruction to set SS to 0x0000 cause fault #GP(0) in 64-bit mode?

Read data from proc/sys/kernel/

Reading Kernel Parameters Unveiling the Secrets of proc sys kernel The proc filesystem in Linux provides a unique window into the inner workings of the kernel I

2 min read 06-10-2024 48
Read data from proc/sys/kernel/
Read data from proc/sys/kernel/

How can I convert from .asm to .obj to .exe?

Converting asm to obj to exe A Step by Step Guide Converting assembly language files asm into executable files exe involves a series of steps that include compi

3 min read 29-09-2024 44
How can I convert from .asm to .obj to .exe?
How can I convert from .asm to .obj to .exe?

ld return some error when link some object file with other

Understanding the Linker Error Troubleshooting Object File Linking Issues When working on a software project its common to compile code into object files and th

2 min read 28-09-2024 51
ld return some error when link some object file with other
ld return some error when link some object file with other

Using nasm the stack grows after passing a label without explicitly approaching the stack

Understanding Stack Growth in NASM Passing Labels and Implicit Stack Management When working with assembly language particularly with NASM Netwide Assembler a c

3 min read 28-09-2024 48
Using nasm the stack grows after passing a label without explicitly approaching the stack
Using nasm the stack grows after passing a label without explicitly approaching the stack

In x86_64 Linux NASM, is it possible to have multiple opcodes on one line?

Understanding Multiple Opcodes in x86 64 Linux NASM When working with assembly language in x86 64 Linux using NASM Netwide Assembler a common question arises Is

2 min read 26-09-2024 49
In x86_64 Linux NASM, is it possible to have multiple opcodes on one line?
In x86_64 Linux NASM, is it possible to have multiple opcodes on one line?

Can NASM be forced to generate mov with offset of 0?

Can NASM Be Forced to Generate MOV with Offset of 0 When programming in assembly especially when working with low level instructions one common question that ar

2 min read 22-09-2024 53
Can NASM be forced to generate mov with offset of 0?
Can NASM be forced to generate mov with offset of 0?

printf in assembly NASM x86 print only once of the array in the loop

Understanding printf in Assembly NASM x86 Printing an Array Element Once in a Loop Printing elements from an array in assembly language using NASM Netwide Assem

3 min read 21-09-2024 53
printf in assembly NASM x86 print only once of the array in the loop
printf in assembly NASM x86 print only once of the array in the loop

Linux Assembler bss data is overlapping?

Understanding Overlapping BSS Data in Linux Assembler When working with assembly language in Linux you may encounter various sections of a program including the

2 min read 16-09-2024 50
Linux Assembler bss data is overlapping?
Linux Assembler bss data is overlapping?

Is there an already implemented stack in x86 linux assembly?

Understanding the x86 Stack in Linux Assembly When diving into assembly programming especially on platforms like Linux with x86 architecture you might wonder ab

3 min read 02-09-2024 54
Is there an already implemented stack in x86 linux assembly?
Is there an already implemented stack in x86 linux assembly?

ld return some error when link some object file with other

Understanding Linker Errors Relocation Truncation in Assembly When linking your assembly code encountering relocation truncated to fit errors can be frustrating

2 min read 02-09-2024 51
ld return some error when link some object file with other
ld return some error when link some object file with other

x86 NASM Crash - Iterate over string

Debugging an x86 NASM Crash Iterating over a String This article will delve into a common problem faced by assembly language beginners a program crashing while

3 min read 01-09-2024 45
x86 NASM Crash - Iterate over string
x86 NASM Crash - Iterate over string

Weird push instruction encoding generated by NASM

The Mystery of NASMs Weird Push Instruction Encoding A Deep Dive Have you ever wondered why NASM sometimes uses the longer 32 bit encoding for the push instruct

2 min read 31-08-2024 51
Weird push instruction encoding generated by NASM
Weird push instruction encoding generated by NASM

How to get NASM to encode `push` with a sign-extended 16-bit immediate?

Diving into NASMs push Instruction Why 16 bit Immediate Encoding Remains Elusive When working with the NASM assembler you might encounter situations where you w

2 min read 31-08-2024 53
How to get NASM to encode `push` with a sign-extended 16-bit immediate?
How to get NASM to encode `push` with a sign-extended 16-bit immediate?

How to Fix IMUL and DIV Errors in Assembly Calculator Code?

Debugging IMUL and DIV Errors in Assembly Calculator Code A Comprehensive Guide This article will guide you through debugging common errors with the IMUL and DI

3 min read 31-08-2024 34
How to Fix IMUL and DIV Errors in Assembly Calculator Code?
How to Fix IMUL and DIV Errors in Assembly Calculator Code?

Compiling NASM Assembly

Compiling NASM Assembly on Windows with Visual Studio 2022 This article guides you through compiling NASM assembly code on Windows using Visual Studio 2022 We l

2 min read 30-08-2024 32
Compiling NASM Assembly
Compiling NASM Assembly

REX encoding for instructions with the VEX prefix

Understanding REX Encoding for VEX Prefixed Instructions The VEX prefix is a crucial part of modern x64 instruction encoding allowing for the use of extended re

3 min read 30-08-2024 48
REX encoding for instructions with the VEX prefix
REX encoding for instructions with the VEX prefix

Order in which instructions are printed/executed

Understanding Instruction Order in Assembly A Deep Dive When working with assembly code its crucial to understand the order in which instructions are executed T

2 min read 30-08-2024 40
Order in which instructions are printed/executed
Order in which instructions are printed/executed

In NASM labels next to each other in memory are printing both strings instead of first one

Debugging Hello World and Goodbye A NASM Bootloader String Printing Issue This article tackles a common problem encountered by beginners learning assembly langu

2 min read 29-08-2024 34
In NASM labels next to each other in memory are printing both strings instead of first one
In NASM labels next to each other in memory are printing both strings instead of first one

Unable to compile NASM without -no_pie on macOS

Solving Unable to Compile NASM without no pie on mac OS This article will explore the common error Unable to Compile NASM without no pie on mac OS and provide s

2 min read 29-08-2024 44
Unable to compile NASM without -no_pie on macOS
Unable to compile NASM without -no_pie on macOS

NASM ORG doesn't like SECTION

Understanding the Interplay of NASMs ORG and SECTION Directives NASM the Netwide Assembler is a powerful tool for creating assembly language programs However it

2 min read 29-08-2024 44
NASM ORG doesn't like SECTION
NASM ORG doesn't like SECTION

Create buffer on stack in x86_64 assembly to print number

Creating a Buffer on the Stack in x86 64 Assembly for Printing Numbers This article aims to provide a solution to the issue of printing numbers in x86 64 assemb

3 min read 27-08-2024 47
Create buffer on stack in x86_64 assembly to print number
Create buffer on stack in x86_64 assembly to print number