[TI ASM] TASM 3.2 Compiling Error

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
User avatar
nepmarauder
Regular Member
Posts: 119
Joined: Thu 14 Apr, 2005 7:02 pm
Location: Ann Arbor, MI
Contact:

[TI ASM] TASM 3.2 Compiling Error

Post by nepmarauder »

After working with TIPower and cz80 for sometime, I have decided to fill in the blanks, and learn the finer points of assembly. I set up TASM and tested it with the helloworld.z80 program from Learn Assembly in 28 Days. Every time I get the error: No END directive before EOF. I looked up the error in the 28 Days tutorial and related some knowledge from C++ compiling by placing a newline after .end and by placing two .ends at the end of the program. Unfortunately, it still won't compile. Any ideas?
Image
IT'S GREAT TO BE A MICHIGAN WOLVERINE!
magicdanw
New Member
Posts: 30
Joined: Mon 16 Jul, 2007 7:02 am

Post by magicdanw »

Did you try doing a period before the first end, but not the second?

.end
end

I've seen it in source files, and they compile fine on my computer.
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

Yeah, magicdanw, is right. That will work.
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

You only need ".end". The second line, "end", is just to ensure that you have a newline character at the end of the source file (otherwise TASM complains).

As long as you have a newline after ".end" you should be fine. :)
User avatar
nepmarauder
Regular Member
Posts: 119
Joined: Thu 14 Apr, 2005 7:02 pm
Location: Ann Arbor, MI
Contact:

Post by nepmarauder »

After adding in the newline and fixing my b_call errors, it compiled perfectly. Thanks a lot guys. Once again, MaxCoderz saves the day.
Image
IT'S GREAT TO BE A MICHIGAN WOLVERINE!
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Post by driesguldolf »

TASM has a lot more of these "inconveniences", as an alternate assembler I would suggest benryves's assembler called Brass.
Just edit your batch file you use to make your programs and change "tasm {parameter list}" into "brass %1.z80" and happines greetz you :mrgreen: [link]

Don't worry, your TASM source files will compile correctly under brass without any further modifications
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

*cough* I would actually recommend SPASM as a substitute to Brass and TASM. One reason is because of an already powerful assembler, and the second reason is because it is getting improved every day, and you can even suggest your own improvements. *cough*
User avatar
driesguldolf
Extreme Poster
Posts: 395
Joined: Thu 17 May, 2007 4:49 pm
Location: $4080
Contact:

Post by driesguldolf »

HAHA xD :mrgreen: well, ok there are 2 alternatives to TASM, choose whatever you want, I chose for Brass as it's made by benryves (home to MaxCoderz and a personal Hero of mine ;)
*stabs Halifax in the back* ^^
Liazon
Calc Guru
Posts: 962
Joined: Thu 27 Oct, 2005 8:28 pm

Post by Liazon »

Halifax wrote:*cough* I would actually recommend SPASM as a substitute to Brass and TASM. One reason is because of an already powerful assembler, and the second reason is because it is getting improved every day, and you can even suggest your own improvements. *cough*
although he should probably release improvements faster, not to mention finish Zelda faster ^^
Image Image Image
User avatar
Halifax
Sir Posts-A-Lot
Posts: 225
Joined: Mon 01 Jan, 2007 10:39 am
Location: Pennsylvania, US

Post by Halifax »

His improvements are available on the bleeding edge Liazon ;)

You can build your own SPASM 2 from the SVN
Post Reply