![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jul 2005
Posts: 3
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 591
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jul 2005
Posts: 3
Rep Power: 0
![]() |
No, i havent built a program, its TASM that closes... i ahvent even gotten around to making a proggie yet.
|
|
|
|
|
|
#4 |
|
Expert Programmer
Join Date: Sep 2004
Location: Ontario, Canada
Posts: 591
Rep Power: 5
![]() |
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 |
|
|
|
|
|
#5 |
|
Expert Programmer
|
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.
|
|
|
|
|
|
#6 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5
![]() |
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! |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Jul 2005
Posts: 3
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#9 |
|
Hobbyist Programmer
Join Date: Nov 2004
Location: 1691 miles East of L.A.
Posts: 159
Rep Power: 5
![]() |
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! |
|
|
|
|
|
#10 |
|
Professional Programmer
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4
![]() |
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...
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|