Skip to main content

All Questions

Tagged with
0 votes
2 answers
39 views

Masm: Reading video memory directly in ax=12h 640*480 16 color vga mode

I already have a function for writing the dot(cx, dx) directly in video memory and its work. Now I’m trying to write a function to read the color of given coordinate and return its color to al(from 0 ...
user27789527's user avatar
0 votes
1 answer
33 views

Masm: Writing directly in video memory in ax=12h, int 10h 640*480 16 color vga mode

This is my function of print a dot(cx, dx) using video memory. After calculate the offset di, I don't know how to change the color of the dot, so I ask gpt. Gpt gives me this way but it only shows ...
user27789527's user avatar
1 vote
1 answer
75 views

Visual Studio 2022 MASM32 linking problem

Please, help me with linking and compilation of 2 simple files. I tried changing extension of MyProcedure.asm to inc, decorating and undecorating of the name MyProcedure (masm started requesting ...
Joanna's user avatar
  • 174
1 vote
1 answer
75 views

MASM Assembly Program Outputs Incorrect Value When Reading and Parsing File with Irvine32 Library

I'm working on an assembly language program using MASM and the Irvine32 library for a class project. The program is supposed to: Prompt the user for the name of a text file containing temperature ...
rezivor's user avatar
  • 121
-1 votes
0 answers
28 views

Reading two 20-digit numbers in MASM32

I want to read two 20-digit numbers in assembly and load them to 2 different memory buffers declared in data segment, what is the best approach? I can't convert it to binary, numbers should be ...
jack_vil's user avatar
2 votes
1 answer
200 views

Assembly Program for Pascal's Triangle Prints Garbled Output Beyond Row 4

I'm developing an Assembly program using the Irvine32 library to print Pascal's Triangle based on user input (ranging from 1 to 13 rows). While the program correctly displays the first few rows, ...
rezivor's user avatar
  • 121
0 votes
0 answers
46 views

Issues with array size outputting garbage values in assembly

I am using x86 assembly MASM to compute first 41 fibonacci numbers. I initially had an array set to size 41, with 0's. This causes correct output for first 10ish values, with remaining indices being ...
newGuy77's user avatar
2 votes
0 answers
71 views

Problem making a quote appear in the memory windows in Visual Studio

.386 .model flat .data quote byte "Machines do feel",0 message byte SIZEOF quote DUP(0),0 .code start proc mov esi,0 mov ecx,SIZEOF quote LP: mov al, quote[esi] ;get a ...
Human .01's user avatar
2 votes
0 answers
86 views

Any performance benefits of using ALIGN 16 to align functions to a 16-Byte boundary in assembly?

I'm curious whether aligning performance-critical assembly functions to a 16-byte boundary is truly beneficial, or if it's just a micro-optimization that can be safely ignored nowadays? For example, ...
vengy's user avatar
  • 2,205
1 vote
0 answers
48 views

Trying to understand what is incorrrect in the following assembly code [duplicate]

I am hoping someone can lead me on the right path with understanding initializing multiple objects from a single structure in x86-64 and also shed some light on what it is I'm not understanding. Below ...
SubscriptionSubber141's user avatar
0 votes
1 answer
89 views

The console output is not displayed when calling from Irvine, but it returns a value to 'c', which can then be printed on the console

main.c #include <stdio.h> #ifdef __cplusplus extern "C" { #endif // Declare the assembly function extern int add_func(int a, int b); #ifdef __cplusplus } #endif int main() ...
rajpoot mhm's user avatar
1 vote
1 answer
77 views

Failed to compile the exact assembly listing generated by the compiler

My environment is x86 Native Tools for VS 2022. The situation might be different in other platforms like x86-64 and ARM. I am trying to compile the assembly listings generated by the compiler with ...
Limina102's user avatar
  • 1,087
1 vote
1 answer
64 views

Why is the incorrect character not showing up?

So I am making a typing game, where the word drops down the screen and the user has to type the word before it reaches the bottom of the screen. My code has where if the user types the correct ...
Keithan's user avatar
  • 33
1 vote
2 answers
100 views

I am attempting to print out a list of prime numbers, but nothing is printing out, what is wrong / what could I change in my code?

I have written an assembly program where my goal is to print out prime numbers the amount of times that the user enters. The user only has to enter one number, say, 15, and the first 15 prime numbers ...
Kneemo's user avatar
  • 11
0 votes
0 answers
42 views

How to Print Strings in an Array Assembly TASM

I have an array, fruitNames db "Apple$", "Mango$", "Orange$", "Kiwi$", "Watermelon$". I want to print every fruit name and display them using loops. ...
SkyZon.'s user avatar
  • 25

15 30 50 per page
1
2 3 4 5
74