Relative Content

Tag Archive for assemblyx86

Assembler code which calculates scalar product of vectors

I’m new with assembler and trying to get how it works, i’ve got task to write a DotProduct function that calculates the scalar product of two
vectors of signed 16-bit integers (of the short int type). Vectors can be set as static
or dynamic arrays of the same length. The result of the function is a 32-bit
signed integer (type long). The function has the following header:

I can’t figure it out :( “Frame not in module. The current stack frame was not found in a loaded module. Source cannot be shown for this location.”

I just wrote this program in assembly (IA-32, MASM) and I am struggling to fix the issue that I am facing. The program compiles and I can enter my name and one singular value, then the program crashes and says “Frame not in module. The current stack frame was not found in a loaded module. Source cannot be shown for this location”. It also says “Exception thrown at 0x0019FFDC in Project.exe: 0xC0000005: Access violation executing location 0x0019FFDC” as the error. I have tried everything I can think of but I have no idea what to do.

I am new to assembly language and am curious why my program is not working how I want

I am a student and need help learning assembly language. I simply want to print out 3 the values that I entered to the console. The goal of the program is to get 3 positive integers, A, B and C, in descending order from the console. When I run the program and enter 20 for the first value, 10 for the second value, and 5 for the third value, the expectation is that those values will each be printed out. However, 20 is the only value that seems to be printed out.