Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Assembly (http://www.programmingforums.org/forum20.html)
-   -   Assembler problems... Help? (http://www.programmingforums.org/showthread.php?t=4832)

Falkon114 Jul 9th, 2005 11:03 PM

Assembler problems... Help?
 
Ok, first off, im a new user here, so lets get that out of the way.
Recently i have decided to start learning various programming and computer languages, and i thought that i would start with assembly, then move on to PHP and Java.
So, ive been searching to and fro for good tutorials, and have come across some decent ones, but im plagued with a problem. Many, almost all of them, say i need to download TASM to start learning, because its a useful tool. So i have downloaded various versions of TASM various times, and they all do the same thi9ng: they open in DOS and then suddenly just exit... So basically, when i try to open it, a window of dos pops up long enough that i can see a bunch of writing, then closes, almost instantly. Can anyone help me solve this problem? Im running Windows XP home edition.

Benoit Jul 9th, 2005 11:28 PM

The program closes because it reaches the end of the code, you have to make the program pause or make it loop

Falkon114 Jul 9th, 2005 11:34 PM

No, i havent built a program, its TASM that closes... i ahvent even gotten around to making a proggie yet.

Benoit Jul 9th, 2005 11:37 PM

Oh, sorry I misread it

Did you try opening the command prompt first (go to run and type cmd) and running TASM from there?

thechristelegacy Jul 10th, 2005 12:22 AM

I believe that TASM is only the compiler. The use would be (from the command prompt) something like, "TASM.exe code.asm -o code.exe". That command prob doesn't work, but I'm sure it's something a long those lines.

DaWei Jul 10th, 2005 6:41 AM

TASM is an assembler, not a compiler. Actually, that's what the "asm" part of the name stands for. I recommend you get a more modern one, such as NASM or MASM. Most command line programs exit when they're done (so do GUI programs, but their "done" is usually when the user says "done"). Start command line programs from the command line interface and you'll be able to see their output even after they exit.

lostcauz Jul 10th, 2005 6:54 AM

As DaWei stated TASM==Turbo Assembler. I suggest you google for FASM, MASM or GoAsm. These are all excellent assemblers. Borland no longer supports TASM.

Falkon114 Jul 10th, 2005 10:33 PM

Oh. Ok. thanks for all the help, guys. I really appreciate it.
EDIT: ok, now i have a working MASM32 assembler, so can someone suggest a good website or something to get me started? Ive been searching google up and down, but nothing seems to be right... I dont mean to sound like i want my hand to be held, though it may sound like it. I just would like a good start on coding.

lostcauz Jul 11th, 2005 2:11 AM

Look in your masm32 directory and check the 'examples' and the 'icztutes' folders.

ivan Sep 20th, 2005 10:17 AM

If you haven't much programming experience, but you want to learn assembly, i suggest you to start with HLA ( high level assembly ). An excellent book is Art of Assembly that will help you very much. You can find it on Google or any else search engine...


All times are GMT -5. The time now is 4:26 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC