Jump to content
  • Advertisement
Sign in to follow this  
KodeNerd

TI-83+ Assembly Compiling Error

This topic is 3586 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Whenever I go to compile my assembly program using TASM and DevPac8x I get the error:
File too large! Binary file may not be larger than bytes.

I checked the size of my assembly source files and it is about four kilobytes (mostly comments though) yet have no idea what could be the problem. I am new to assembly so this is probably just a stupid mistake on my part.

Share this post


Link to post
Share on other sites
Advertisement
Hi! :) A fellow 83+ programmer.

I would recommend that you head over to http://www.revsoft.org and visit the forums and get help there. I started that programming group with a friend of mine about 3 years ago and there are many intelligent programmers there that can help you in the future. I'm sure they wouldn't mind you joining the community as well.

First off to make sure you have everything you need...

In your project folder do you have the following:

TASM.EXE
Devpac83.com
TASM80.TAB
ion.inc (these are for libs and ion shell specific stuff)
mirage.inc (for libs and shell specific stuff again)
asm.bat

@echo off
echo ----- Assembling %1 for the TI-83 Plus...
echo #define TI83P >temp.z80
if exist %1.z80 type %1.z80 >>temp.z80
if exist %1.asm type %1.asm >>temp.z80
tasm -80 -i -b temp.z80 %1.bin
if errorlevel 1 goto ERRORS
devpac83 %1
copy %1.83p %1.8xp >nul
echo ----- Assembling %1 for the TI-83...
echo #define TI83 >temp.z80
if exist %1.z80 type %1.z80 >>temp.z80
if exist %1.asm type %1.asm >>temp.z80
tasm -80 -i -b temp.z80 %1.bin
if errorlevel 1 goto ERRORS
devpac83 %1
echo ----- Success! :)
echo TI-83 version is %1.83p
echo TI-83 Plus version is %1.8xp
goto DONE
:ERRORS
echo ----- There were errors. :(
:DONE
del temp.z80 >nul
del %1.bin >nul
del temp.lst>nul
pause



compile.bat

ASM yourprog




NOTE: Your program name (i.e. "yourprog") cannot exceed 8 characters in length otherwise you will get an error when attempting to compile your source.

Hope this helps! [smile]

Share this post


Link to post
Share on other sites
I am not using any Mirage or Ion stuff, just pure assembly for now.

I tested my compiler out already with a simple Hello World program so everything works fine other than the current program I am trying to compile.

Thanks for the link, I shall visit there sometime soon.

Share this post


Link to post
Share on other sites
Hey, jjanevski, don't forget us nice chaps at MaxCoderz! [wink]

The error message appears to be generated by DevPac8x. How large is the object file emitted by TASM? Are you outputting a raw binary from TASM? (I believe it defaults to Intel HEX object files).

TASM is generally a pretty bad Z80 assembler. Spasm (available from RevSoft) is a much better tool for 83+ development, as it is specifically designed for it. I'm also working on an assembler myself, but it's a bit more fiddly to use.

Good luck!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!