Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

I am learning assembly on Linux running on intel x64 I am using GAS and intel flavor, but I always get lost when trying to quickly get some details about instruction or confirm something like: ...
mx14slh's user avatar
  • 11
Best practices
1 vote
2 replies
105 views

My assembly program reads characters in a text file by loading them one by one in register 'al'. However I sometime need to use rax fully, and I think this causes a partial register stall. Now I think ...
Kun Xiang's user avatar
1 vote
1 answer
160 views

I am trying to compile latest version of the OpenSSL on Windows 10 machine (version 3.5.4). Prerequisites are: I ran x64 Native Tools Command Prompt for Visual Studio 2022 Community Edition I ...
Petr Lazecky's user avatar
  • 1,867
0 votes
0 answers
61 views

I'm trying to understand how NuGet selects and references package assets when a project targets a specific CPU architecture (x86 vs x64). My specific questions are: If my project platform target is ...
EMN's user avatar
  • 161
0 votes
0 answers
76 views

I'm writing a 64-bit Windows DLL that needs to locate, on the stack, the return address that belongs to the host EXE (the place in the EXE that called into my DLL). The EXE loads my DLL and eventually ...
upe's user avatar
  • 2,182
2 votes
2 answers
294 views

Been given the task to convert code from the 80's to 64 bit. Error given error: size of array "spare2" is too large This is line 76 of a header file Line 76 uchar spare2[1018-XVIEWS*...
Brian's user avatar
  • 369
8 votes
1 answer
236 views

I'm working on an application that uses shared memory sections between processes on Windows (for an IPC mechanism between processes, where one process generates code that is executed by another ...
kresh11's user avatar
  • 81
0 votes
0 answers
118 views

I've got this software based kernel mode driver (KMDF) and I've called MmcopyMemory like the following (see below). Essentially I would like to patch a user mode process in memory. The two passed ...
blogger13's user avatar
  • 305
1 vote
0 answers
166 views

I did change in Form's properties, it change the icon in the taskbar but not the execuable file. I went to Project -> Options -> Application -> Icons did create a icon using art generator, as ...
user834697's user avatar
5 votes
2 answers
216 views

I'm writing a C program and need to create a bitwise mask that could potentially fill a computer word (64 or 32 bits) with all 1s. I found a bug in my code but I can't make sense of it because when I ...
A Retha's user avatar
  • 53
1 vote
1 answer
161 views

I have a code in assembly x86_64 that gets the kernel32.dll base through accessing the PEB and bla bla bla, gets the GetProcAddress address, uses that for getting the LoadLibraryA function and then i ...
omar dans castro's user avatar
0 votes
0 answers
131 views

I am experiencing a weird bug in the function CopyAcceleratorTable when compiled for 64 bit (CopyAcceleratorTable). I have two accelerator tables (from two dlls) which I want to concatenate into a ...
pisoir's user avatar
  • 226
4 votes
0 answers
86 views

I am building assembly x64 functions, compiler microsoft ml64 which comes with VisualStudio. It comes that I can't do bitwise operation on 64 bit registers when I specify a value larger than 32 bit, ...
armagedescu's user avatar
  • 2,417
0 votes
0 answers
116 views

I built a Windows installer/bootstrapper, using Visual Studio 2022, for an x64 app that requires certain x64 prerequisites be installed along side. However the bootstrapper is unable to detect whether ...
Drowning_Ophelia's user avatar
0 votes
0 answers
52 views

By using 64-bit DLL (x64) for SQLite version from here and documentation from here i'm trying to use Sqlite in Fasm for of course quite reasonable reasons. When trying to sqlite3_open a new db file ...
Alexandr's user avatar
0 votes
0 answers
277 views

I have trained a DL model on matlab and exported it as an ONNX file, now I need to run it on a raspberry pi 4 model B with Raspberry Pi OS X64 bit (aarch64) and python 3.11.2, I have followed many ...
Ahmad Omar's user avatar
0 votes
0 answers
27 views

Writing a c compiler that generates MASM and uses ml64 to assemble and link. I read a lot about the x64 windows calling convention and it seemed that I did not have to add all the SEH plumbing, in ...
pm100's user avatar
  • 50.6k
3 votes
0 answers
374 views

When I learned about MMIO, I saw different sources, like this (X86 Address Space Controller?), and this video, that said that the thing which "controls" the physical address mappings to the ...
DelayedFree's user avatar
0 votes
1 answer
715 views

I'm facing an issue when trying to use FFmpeg in my .NET Framework 4.8 application (64-bit) with FFmpeg.AutoGen 7.0. When I try to call any FFmpeg method, such as ffmpeg.av_version_info() in the ...
auetic's user avatar
  • 31
1 vote
1 answer
151 views

In JavaScript there are two typed array constructors that can store rather large numbers: const longs = new BigInt64Array() const doubles = new Float64Array() They both represent arrays of 64-bit ...
user3163495's user avatar
  • 4,026
4 votes
2 answers
419 views

I want to portably work with 64-bit signed types in C. However - I know that int64_t is not guaranteed to be defined. I can use some preprocessor magic in my build system generation (e.g. CMake's ...
einpoklum's user avatar
  • 138k
1 vote
1 answer
187 views

TL;DR; Is it possible, under wine, to call a function in a Windows exe, by function pointer, from the Linux proxy library? I have a Windows x64 DLL called morag.dll containing a function foo. I also ...
Morag Hughson's user avatar
0 votes
0 answers
78 views

I'm compiling for the x86_64 architecture using Apple Clang (Xcode 14). In the following code: #include <iostream> #include <stdint.h> static void foo( long v ) { std::cout << v;...
JWWalker's user avatar
  • 22.8k
0 votes
0 answers
36 views

My application can run in 32 and 64 bit (.NET Any CPU) and uses a native SQLite DLL that lies in the x86 and x64 subdirectory. Now when installing the app, it is known whether the system is 32 or 64 ...
ygoe's user avatar
  • 20.7k
3 votes
3 answers
209 views

2038 is coming...I have to think date time in 64 bit! I'm trying to understand how to do this in C++, with chrono library, but I'm failing miserably so far. I will have to communicate a date time ...
Kite's user avatar
  • 429
0 votes
0 answers
40 views

I have a managed code DLL with target "Any CPU" that calls SQLite. I am calling this DLL either from an x64 application or in a x86 server. SQLite needs a native DLL SQLite.Interop.DLL ...
Bernd Morgeneyer's user avatar
0 votes
1 answer
189 views

Im trying to set a instrumentation callback on another process but it gives me 0xc000000d (STATUS_INVALID_PARAMETER) but if I set it on the current process then it succeeds. Does anyone know what I am ...
user24684540's user avatar
-1 votes
1 answer
187 views

I am trying to get the process instrumentation callback using NtQueryInformationProcess but it keeps returning STATUS_INVALID_INFO_CLASS. I know that this error means that the ProcessInformationClass ...
user24684540's user avatar
1 vote
2 answers
263 views

Our program is acting weird. Using Delphi 11, we are building a program where the target platform is 64 bit. Every setting we have checked would point to a 64 bit result. However, when we run the ...
justaguy2278's user avatar
1 vote
0 answers
108 views

I noticed, in a program written with Delphi 10.3.3, that it can happen that a LOCATE statement returns "false negatives". All LOCATE statements look at the FULL KEYof the record, sometimes ...
Yana Sathel's user avatar
1 vote
1 answer
95 views

I need to have several hundred functions written in assembler. They will be statically linked into an executable. I only want the functions that are actually referenced to be included in the ...
mealnor's user avatar
  • 127
0 votes
1 answer
73 views

I'm trying to compile and run a package on Windows 11 with MinGW-w64, but I'm getting the error message "[WinError 193] %1 is not a valid Win32 application" when I try to run the .dll ...
dannnny's user avatar
  • 177
1 vote
0 answers
113 views

I am trying to get some good codegen for a Rust binary in x64 but it seems very hard to get simd operations for exp. I have a simplified code example: https://godbolt.org/z/4MY34T1zj The code should ...
benjamin-lieser's user avatar
0 votes
0 answers
37 views

Is there any difference in behavior or performance of these two encodings of the mov r11, rsp operation? 49 89 E3 mov r11, rsp 4C 8B DC mov r11, rsp How should I break down these opcodes into ...
George Robinson's user avatar
2 votes
1 answer
94 views

when i sum two numbers like (1111 1111 1111 1111)h + (1111 1111 1111 1111)h it display the result is (2000 20000 2000 2000)h where the true result is (2222 2222 2222 2222)h ;the code .model small ....
Az4iz's user avatar
  • 21
1 vote
0 answers
140 views

I am using Embarcadero C++ Builder to create a file encryption project based on Argon2 and AES-256 with 500,000 iterations. I decided to develop everything in Python; the Python file, named AEScrypt, ...
Victor Melo's user avatar
1 vote
0 answers
102 views

I am writing x64 assembly code to invoke VirtualAllocEx win32 API (as part of process injection lab, so I am injecting into explorer.exe) and seeing unusual (to me) behavior. The documentation states ...
ab ab's user avatar
  • 11
0 votes
3 answers
361 views

I am trying to rework a code from another topic (HERE) and the answer from user Storax to suit my current needs. However, in the quoted example the values are in Boolean type (1 and 0) while in my ...
Val's user avatar
  • 11
1 vote
0 answers
50 views

comparing these two assembly instructions generated by compiler: 1. mov ebx, 1 cmp edi, ebx jl SHORT $LN3@main npad 7 $LL4@main: mov eax, edi cdq idiv ebx test edx, edx je ...
arsha_ex's user avatar
  • 128
1 vote
0 answers
46 views

I wrote an assembly code section .data text db "Hello, World!", 10 length equ $ - text section .text global _start _start: mov rax, 1 mov rdi, 1 mov rsi, text ...
BloxyBloxy's user avatar
4 votes
0 answers
101 views

Disclaimer: I'm familiar with IEEE 754 floating point numbers and know that they have signed zeroes and other special values. That is not the question. If you enjoy language lawyering, read on. We ...
Heinzi's user avatar
  • 173k
2 votes
0 answers
96 views

I'm pretty new to assembly and am experimenting with calling C standard library functions from my assembly code. I'm on 64-bit Windows 11, and use NASM syntax. I have three files which call putchar ...
resoinaut's user avatar
  • 113
1 vote
1 answer
64 views

I found that the ES selector field is 0x0800 but shouldn’t it be 0x0806 since it’s the 3rd index in the list CS, SS, DS, ES, FS, GS, LDTR, TR I got the selector list from Volume 3C: System Programming ...
Joe mama's user avatar
2 votes
2 answers
201 views

I'm a newbie to assembly and I tried to write an assembly program using NASM on Windows (x64) to extract and print the fractional part of a floating-point number. However, my program prints Floating ...
kavi castelo's user avatar
0 votes
1 answer
77 views

Is there any possibility to use RET function to go back from the conditional statement to the main function (_start) where it was called from and go on with the next instructions? Right now, it's just ...
RudyChemik's user avatar
-1 votes
1 answer
83 views

I'm trying to figure out why the instruction changes from add [eax], al to add [rax], al when changing the decoding mode from x86 to x64. The instruction bytes are 00 00 I think it might be because ...
user24684540's user avatar
-1 votes
1 answer
420 views

I wrote some code to compare the value of xmm10 and xmm6 using: comiss xmm10, xmm6 and then comisd xmm10, xmm6 The first one works, and the second one doesn't. I tried using subss xmm10, xmm6 followed ...
Angad Warhadpande's user avatar
1 vote
0 answers
69 views

bits 64 default rel section .data fmt db "%s", 0xd, 0xa, 0 err db "Correct usage: echo <string>" section .text extern printf extern ExitProcess global ...
Angad Warhadpande's user avatar
0 votes
1 answer
38 views

Why the output is in diffrent order than it is declared? Shouldnt the output be in this order? aaaa bbbb cccc Instead it is: I assume the issue is in assigning "bbb" value to the text ...
RudyChemik's user avatar
1 vote
1 answer
93 views

[x64] is there some generic algorithm using which I can determine relevant registers for the rex byte? I'm specifically interested in the calculation of REX for instructions with the VEX prefix (so ...
Goubermouche's user avatar

1
2 3 4 5
123