Questions tagged [irvine32]

A 32-bit MASM library and macros targeting the Win32 Console

Irvine32 is a library that was made available in Kip Irvine's book Assembly Language for x86 Processors. The book is regularly used in academia as a teaching tool.

The library is simple in design and is meant to take make certain low level tasks that students encounter easier to handle. The library is designed to be used in 32-Bit protected mode targeting Win32 console applications.

The library itself and the macros require MASM or MASM compatible assembler capable of generating 32-bit code.

There is a reference online that can be downloaded as .chm file (self-extracting exe: IrvineLibHelp.exe).

617 questions
14
votes
2 answers

Floating Point Program gives Invalid Result

RECENT EDIT I am trying to run this floating point Quadratic Equation program on x86 MASM. This code is found in the Kip Irvine x86 textbook and I want to see how it works visually. The following code is below: include irvine32.inc .DATA a REAL4…
gordon sung
  • 605
  • 2
  • 8
  • 27
7
votes
1 answer

What is the difference between ESP and EIP registers

What is the difference between ESP and EIP registers using the following examples? Explain what the code is doing. main PROC 0000 0020 call MySub 0000 0025 mov eax, ebx . . main ENDP MySub PROC 0000 0040 mov eax,…
jackson blackson
  • 311
  • 1
  • 3
  • 13
7
votes
3 answers

Assembly Language (x86): How to create a loop to calculate Fibonacci sequence

I am programming assembly language (x86) in MASM using Visual Studio 2013 Ultimate. I am trying to use an array to calculate a Fibonacci sequence for n elements using an array. In other words, I am trying to go to an array element, obtain the two…
jshapy8
  • 1,983
  • 7
  • 30
  • 60
6
votes
5 answers

LNK 2001 unresolved external symbol _mainCRTStartup MASM

I'm learning Assembly at my university, and we were given a CD with MASM 615 on it, and we're using the Irvine32 include library. Everything works fine with it on the school computer, but when I try to compile and run the same code on my home…
5
votes
1 answer

Running Assembly Code for Mac OS X

I'm currently in an assembly course and i have to run the code on Mac OS X and I'm lost on how i should run the code on Mac OS X Here's the code: ; Description: This program adds and subtracts 16‐bit integers. ; Revision Date: INCLUDE…
Tayvion Payton
  • 75
  • 1
  • 1
  • 9
5
votes
2 answers

How does ASM knows an arithmetic operation is signed or unsigned?

I am assembling using MASM 14.0, and i am confused with the output of the below code. TITLE Exercise 4 from chapter 4 ; Author : Saad Ahmed INCLUDE Irvine32.inc .code main PROC mov eax, 0 mov al, 255 add al, 1 call DumpRegs ; Display…
Saad
  • 915
  • 9
  • 19
4
votes
2 answers

Debugging ASM with Visual Studio - Register content will not display

I have been working on an assembly language project for a class and though I have finally been able to work through all problems in this code ( I believe ), I now can't seem to get the Register contents to display. Here is my code... include…
PSinbad
  • 55
  • 1
  • 11
4
votes
1 answer

How to see the memory occupied by initialised array vs uninitialised array

I'm currently learning assembly programming by following Kip Irvine's "Assembly Language for x86 Processor". In section 3.4.12, the author states: The .DATA? directive declares uninitialized data. When defining a large block of uninitialized…
Thor
  • 9,638
  • 15
  • 62
  • 137
4
votes
1 answer

Multiplication Table using Nested Loops

Assembly x86 MASM I have created the following code that will prints out a multiplication table that multiplies 1*1, 1*2, 1*3, ..., 1*10. I want to create a continuous table of 1*1, 1*2, 1*3, ..., 1*10, and another table of 2*1, 2*2, 2*3,...,2*10…
jackson blackson
  • 311
  • 1
  • 3
  • 13
4
votes
1 answer

Masking divide by 0 exception assembly masm

TITLE Unmasking an Exception (Exceptions.asm) ; This program shows how to mask (set) and unmask (clear) the divide by zero ; exception flag. INCLUDE Irvine32.inc .data ctrlWord WORD ? val1 DWORD 1 val2 REAL8 0.0 .code main PROC finit ;…
JimBob101
  • 173
  • 9
4
votes
1 answer

Where can the code be more efficient for checking if an input character is a vowel?

This assembly project reads the key presses and outputs them in a specific color. When a vowel is pressed it changes the color of the text until another vowel is pressed and does so until ESC is pressed. The colors are in a certain pattern which…
Patrick
  • 45
  • 6
4
votes
1 answer

Assembly: Array writing Issue

I have created the following program to read in 5 numbers, and then dumpreg to see what numbers were entered... INCLUDE Irvine32.inc .data count = 5 scores WORD count DUP(? ) prompt BYTE "Please type an integer score: ", 0 …
Bob
  • 1,344
  • 3
  • 29
  • 63
4
votes
1 answer

Assembly - Round floating point number to .001 precision toward -∞

I am trying to write all my floating point numbers to .001 precision toward -∞. I have set the RC field to 01 binary, but I am only able to print out the initial floating point number with the wanted precision and thereafter it disregards the…
imparante
  • 503
  • 9
  • 21
4
votes
1 answer

32 bit Assembly Language create an output file trouble

After a while of working with this program, it keeps stopping after it creates an output file. I am using Visual Basic 2010 and am still a beginner at this. The homework question is this: Description (Symmetric Encryption): Encoding Ask the user…
user1848703
  • 66
  • 2
  • 8
3
votes
0 answers

Syntax error for MASM instruction "mov edx, OFFSET name"

I've been searching the internet for a good while for this but none of them help me in my solution. What I'm trying to achieve is to read user input and display it starting from a prompt. For example, the prompt asks the user's age and the user…
Vince
  • 109
  • 2
  • 9
1
2 3
41 42