I want to learn how to write assembly for windows and then assemble them into exe files for personal use! I want to know any resources that I can use ...
I want to learn how to write assembly for windows and then assemble them into exe files for personal use! I want to know any resources that I can use ...
These are MOV instructions opcodes for this question from the Intel® 64 and IA-32 Architectures Software Developer Manuals C7 /0 id MOV r/m32, imm32 ...
I am a beginner at amd64 x86_64 assembly. I am trying to allocate a static region of memory and then use it. I try to move a pointer to the memory i ...
I am writing in x86-64 NASM assembly and I wrote a function to close a window using X11 on Ubuntu via WSL I keep getting this error: my code looks ...
I am attempting to write a simple OS from scrath, but I have stumbled into a problem. I wrote a simple procedure that runs through a string and prints ...
I have recently studied the IA32e paging, and though I know how that works, when I came across a real example, I can't understand what the value in ea ...
I have a following problem: I have a low-latency application running on core 0, and a regular application running on core 1. I want to make sure that ...
Trying to code the following transformation in SIMD C++, any ideas ? Code is from https://github.com/soedinglab/hh-suite/blob/master/src/hhutil-inl.h ...
Looking for this code: #include <stdint.h> extern struct __attribute__((packed)) { uint8_t size; uint8_t pad; uint16_t sec_num; ...
i have a special case where i need to push arguments onto the stack one at a time and then call a function which takes a callable as an argument and p ...
I'm working on a program that needs to make a 32 bit process invoke a syscall. I wish to keep my program architecture independent, but the target will ...
I wonder what input operand "m"(var) and output operand "=m"(var) in asm do: I ran into the 2 lines above here, in a SPMC queue. And what are the ...
Recently came across the M/o/Vfuscator A complete single-instruction C compiler which compiles programs into "mov" instructions, and only "mov" in ...
I really like std::byte as a distinct type that implements the concept of byte as specified in the C++ language definition. What I don't like is the f ...
Consider this C++ code: GCC with -fwrapv correctly realizes that subtracting 1 from b can eliminate the special case, and it generates this code fo ...
In the Computer Systems From A Programmer's Perspective book there is the following assembly code for a loop: The abstract CPU used for modeling pr ...
I am on the Apple M1 arm64 chip arm64. I am trying to install the PHP 8.2 module for Apache, e.g. LoadModule php8_module /opt/homebrew/Cellar/php/ ...
AMD's mwaitx instruction allows you to wait for an address to change, but it has a limited duration. There's no way to tell if it woke up because the ...
The thing is that I cannot force gnu as interpret jmp as short or near, it constantly interprets it as far. For instance, the following code causes s ...
So I'm dealing with these Assembly codes: With the address of %rsp = 0x7FFFFFFFDE88 before calling foo After calling the function foo, a new eleme ...