Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 10th, 2005, 12:03 AM   #1
Falkon114
Newbie
 
Join Date: Jul 2005
Posts: 3
Rep Power: 0 Falkon114 is on a distinguished road
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.
Falkon114 is offline   Reply With Quote
Old Jul 10th, 2005, 12:28 AM   #2
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 591
Rep Power: 5 Benoit is on a distinguished road
The program closes because it reaches the end of the code, you have to make the program pause or make it loop
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old Jul 10th, 2005, 12:34 AM   #3
Falkon114
Newbie
 
Join Date: Jul 2005
Posts: 3
Rep Power: 0 Falkon114 is on a distinguished road
No, i havent built a program, its TASM that closes... i ahvent even gotten around to making a proggie yet.
Falkon114 is offline   Reply With Quote
Old Jul 10th, 2005, 12:37 AM   #4
Benoit
Expert Programmer
 
Benoit's Avatar
 
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 591
Rep Power: 5 Benoit is on a distinguished road
Oh, sorry I misread it

Did you try opening the command prompt first (go to run and type cmd) and running TASM from there?
__________________
Johnny was a chemist's son but Johnny is no more, for what Johnny thought was H2O was H2SO4
Benoit is offline   Reply With Quote
Old Jul 10th, 2005, 1:22 AM   #5
thechristelegacy
Expert Programmer
 
thechristelegacy's Avatar
 
Join Date: Jul 2004
Location: Somerset, Pa
Posts: 708
Rep Power: 5 thechristelegacy is on a distinguished road
Send a message via AIM to thechristelegacy Send a message via MSN to thechristelegacy
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.
thechristelegacy is offline   Reply With Quote
Old Jul 10th, 2005, 7:41 AM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 10th, 2005, 7:54 AM   #7
lostcauz
Hobbyist Programmer
 
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5 lostcauz is on a distinguished road
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.
__________________
-- lostcauz

Stepped in what?...
Behind whose barn?...
I didn't even know they had a cow!
lostcauz is offline   Reply With Quote
Old Jul 10th, 2005, 11:33 PM   #8
Falkon114
Newbie
 
Join Date: Jul 2005
Posts: 3
Rep Power: 0 Falkon114 is on a distinguished road
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.

Last edited by Falkon114; Jul 10th, 2005 at 11:45 PM.
Falkon114 is offline   Reply With Quote
Old Jul 11th, 2005, 3:11 AM   #9
lostcauz
Hobbyist Programmer
 
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5 lostcauz is on a distinguished road
Look in your masm32 directory and check the 'examples' and the 'icztutes' folders.
__________________
-- lostcauz

Stepped in what?...
Behind whose barn?...
I didn't even know they had a cow!
lostcauz is offline   Reply With Quote
Old Sep 20th, 2005, 11:17 AM   #10
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
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...
ivan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:15 PM.

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