The MASM Forum

Miscellaneous => Irvine Book Questions. => Topic started by: Shahmeerm on September 20, 2013, 10:47:54 PM

Title: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: Shahmeerm on September 20, 2013, 10:47:54 PM
Here is my code , please tell me where i am going wrong  .....


<code>
TITLE Reversing a String          (RevStr.asm)

; This program reverses a string.


INCLUDE Irvine32.inc

.data
aName BYTE "Abraham Lincoln",0
nameSize = ($ - aName) - 1

.code
main PROC


   mov ecx,nameSize
   mov esi,0

L1:   movzx eax,aName[esi]   ; get character
   push eax   ; push on stack
   inc esi
   Loop L1


   mov ecx,nameSize
   mov esi,0

L2:   pop eax   ; get character
   mov aName[esi],al   ; store in string
   inc esi
   Loop L2


   mov edx,OFFSET aName
   call Writestring
   call Crlf

   exit
main ENDP
END main
<\code>


When I try to compile , nothing happens ... Why is it so ???
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: jj2007 on September 20, 2013, 11:01:20 PM
Quote from: Shahmeerm on September 20, 2013, 10:47:54 PM
When I try to compile , nothing happens ... Why is it so ???

Really nothing? No little message saying "undefined symbol : Writestring"?

Try WriteString. And welcome to the forum :icon14:
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: Shahmeerm on September 20, 2013, 11:11:59 PM
Thanx JJ ..
Nd yes , "Really Nothing" ..
when i click on Project >> Assemble

Nothing Happens , just a single Label on status bar changed to "Press F12 to repeat " .. :-(

and for your concern , i am running masm32 on windows XP ( VM ware Player ) ..
Example Codes from MASM32 assemble properly and Run proprely ... So why not My code ???


Waiting eagerly for my solution .. :-(
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: jj2007 on September 20, 2013, 11:16:33 PM
Which IDE? Works fine here... (Win7-32, RichMasm)

Did you install the Masm32 package (steps (http://www.webalice.it/jj2006/Masm32_Tips_Tricks_and_Traps.htm))? Then you could try Project/Console build all in \Masm32\qeditor.exe

And don't forget the uppercase S in WriteString ;-)
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: Shahmeerm on September 20, 2013, 11:26:54 PM
Actually , I have Windows 8 pro 64-bit ....
Nd I thought , that i cld'nt find anyhting for win8 .. So i decided to go with windows XP ..

nd No , I did'nt follow "Steps" , i just download MASM32 pkg , installed it and then tried to Run my codes , which was not compilimg BTW ..  8)

And Plz Just tell me what i have to do , to run my code flawlessly ... Either on windows 8 or XP , i am done with DOS , i need some GoodLooking Editor .... MASM32 is awsome  , but it's not working for me ... :-(
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: qWord on September 20, 2013, 11:38:10 PM
You can use the MASM32 package directly on x64 systems - a VM is only needed for 16bit code.
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: GoneFishing on September 20, 2013, 11:39:49 PM
Quote from: Shahmeerm on September 20, 2013, 11:26:54 PM
And Plz Just tell me what i have to do , to run my code flawlessly ...
Step 1:
launch qeditor.exe
Step 2:
menu Code -> Create New Console Application
Step 3:
follow the steps in dialogs that will appear: choose folder for your new application (or create a new one), choose a name for your source, open created asm file
Step 4:
menu Project -> Makeit.bat
Step 5:
menu Project -> Run Program
Step 6:
enjoy  :biggrin:
and from here you may start making some changes to the source , saving it and recompiling
Have fun!
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: jj2007 on September 20, 2013, 11:41:59 PM
Quote from: Shahmeerm on September 20, 2013, 11:11:59 PM
Example Codes from MASM32 assemble properly and Run proprely

So your Masm32 installation is OK. Check if Irvine32.inc is in its proper place... often it's just a path problem, but I can't understand why your IDE doesn't dump some error messages on you ::)

I've tested it with my own Irvine32Mb.inc, and your code runs just fine.

include \masm32\MasmBasic\MasmBasic.inc                  ; download (http://www.masm32.com/board/index.php?topic=94.0)
include \masm32\MasmBasic\IrvineMb\Irvine32Mb.inc        ; needed to build Irvine's (many but not all) 32-bit examples
TITLE Reversing a String          (RevStr.asm)

; This program reverses a string.

; INCLUDE Irvine32.inc <<< disabled

.data
aName BYTE "Abraham Lincoln",0
...
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: GoneFishing on September 20, 2013, 11:48:26 PM
Please, read this (http://masm32.com/board/index.php?topic=2357.0) thread

Quote from: jj2007 on September 20, 2013, 11:41:59 PM
but I can't understand why your IDE doesn't dump some error messages on you ::)

seems like he didn't save those lines to a file or saved on another drive
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: Shahmeerm on September 21, 2013, 12:01:15 AM
Love You all  ( JJ and Vertgo ) ....  :greenclp:
You saved my back , guys ... :-)

I dnt knw how to thanku ... Bcoz i just compiled and assembled my code with the help of u ... :-)
God Bless You .... I will never forget this help ... :-)
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: Gunther on September 21, 2013, 12:36:03 AM
Hi Shahmeerm,

welcome to the forum and go forward.

Gunther
Title: Re: NEED HELP ... How can i include IRVINE32 to work properly ...
Post by: dedndave on September 21, 2013, 01:33:22 AM
Kip didn't put "OPTION CaseMap:None" in the header
so - the names aren't case sensitive
personally, i would add it   :P