I have following piece of code: typedef struct { int x; int y; int z; int w; } s32x4; s32x4 f() { s32x4 v; v.x
This is the code I wrote trying to implement the c partition function in mips. There seems to be an error because the program doesn't work, yet I can't find whe
Recently I ran into a crash while the following statement is getting executed static const float kDefaultTolerance = DoubleToFloat(0.25); where DoubleToFloat
In a separate C program, I have passed 4 parameters to an x86 ASM program. dividend divisor Quotient pointer Remainder pointer dividend = 0xA divisor = 0x3 Whic
I am writing a program in assembly that changes the background color from clicks on the keyboard but I can't seem to make it work, anyone know
I'm experiencing 2 problems: the "you win" screen does not show up the pacman has a trail. IDEAL p286 MODEL small STACK 100h DATASEG pacman db " _ __ _
I am new to using MIPS and I can't find how to open a file that I saved. I saved a .asm file under my downloads folder but when I try to open a file in MARS and
Here is a simple function #include <stdio.h> int foo() { int a = 3; int b = 4; int c = 5; return a * b * c; } int main() { int a = f
I started learning Z80 recently, but I'm struggling with flags. I want to get the range of register "B" in Z80 assembly. This is the problem that I faced. Regis
/* jump to reset vector. esp := 0 */ int main(int argc, char **argv) { PRINT("reset\n"); _eflags = 0; // interrupt disabled __asm__ __volatile__ ("\
I'm writing a program for mathematical research. Assembly language is used for speed. Data is represented as managed records with operator overloads. Some data
I've had a couple of courses that touched on ARMv8 assembly, but both teachers described LDUR/STUR instructions a different way and now I've become pretty lost.
what does the following line mean. is it taking the 4 bytes (16 bits) of whatever bit pattern is at $a3 and storing it to $t0? lw $t0, 4($a3) # extract ch
(This question refers specifically to x86/x86_64) I'm working on an application that needs to insert a small block of instructions at specific points within ano
Specifically is: mov %eax, %ds Slower than mov %eax, %ebx Or are they the same speed. I've researched online, but have been unable to find a definitive an
I am trying to use the write syscall in order to reproduce the putchar function behavior which prints a single character. My code is as follows, asm_putchar:
my prof posted this as one of the answers to a homework problem. Can anyone break this down for me? I don't understand what he is doing with CON1 - CON4 and wha
I'm trying to find the minimum value of a list using assembly language. I'm trying to use -1 to compare all the other values to. my current code is data_items:
I'm trying to find the minimum value of a list using assembly language. I'm trying to use -1 to compare all the other values to. my current code is data_items:
I am new to assembly language. Please help me how to find the higher bits after these instruction MOV AX,08H MOV BX, 07H ADD AX,BX I know a little bit shiftin