I've been learning Go in Visual Studio Code and wasn't having any problems until I tried to create a mod file for the first time this morning. Now, whenever I t
I am trying to translate a code made in C into assembly (FASM) but I can't get it to work. The code tries to create an entry in the registry so that when the ma
I am new to programming with the AVX/AVX2 instructions and am trying to optimize the speed of my code. Following the older expectation that passing by reference
In the function outb(0x3D5, (uint8_t) (pos & 0xFF));, I am having trouble understanding the purpose of the bitwise operation. pos is a uint16_t variable. Wh
I want to know the way variables are initialized : #include <stdio.h> int main( void ) { int ghosts[3]; for(int i =0 ; i < 3 ; i++) printf(
Let's say I have x86-64 code that looks like this (though this question applies more generally to all code): mov rbx,7F0140E5247Dh jmp rbx Is it safe to overwr
I am trying to write a program that can determine if a number is perfect or not. The program reports the number 6 to be perfect, but for the number 28, which is
I have a program that can add two arrays of binary numbers I'm sorry, I'm not very good at asm I can draw the conclusion myself, but to understand how to conver
I am trying to get to grips with MASM32 and am confused by the following: I thought that brackets were used for indirection so if I have the a pre-defined vari
I want to use interrupts in inline asm but it is not letting me I think my app is this __asm__("movb %ah,9;" "movb %al,0x41;" "movb %bh,0x0;" "movw %cx,0x1;
how can i convert this assembly code using Dosbox to classic i8086 NASM code which can be compiled on Win? Program must run on Intel 8086. .model SMALL .stack 5
I'm a newbie in IDApro. I'd like to save the assembly code or IDA view-A(not a graph view) text through IDApro. I know the how to save using GUI, but there are
'assembly code' PUBLIC add_float add_float PROC push ebp mov ebp,esp push eax push ebx push ecx push edx
I have been researching and writing a bootloader. In order to switch to 32 bit mode I used this tutorial: https://www.youtube.com/watch?v=pXzortxPZR8&list=P
I wrote the following code based of off Confusion about different clobber description for arm inline assembly and it works fine: #include <
As far as I know, there is no instruction in SSE/AVX for loading an immediate. One workaround is loading a value to a normal register and movd, but compilers se
I am new to assembly, but could anyone teach me how to read 64 bit from console in 32 bit RISC-V? .eqv SYS_EXITO, 10 .eqv CON_PRTSTR, 4 .eqv CON_PRT
I used xinu and i want to use single step Interrupt (01H). I have two questions does TF flag equal 1 (TF==1) when xinu system initialize ? if no then how i can
---update--- I now have kind of a MMA function but the code still doesn't work. And i know that for example: Mul X28, X6(x11), X7(x12) Ld X29, X5
I'm learning assembly language but whenever I want to find an error in my code it becomes difficult.