Author |
Message |
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 06 Sep 2003 10:43:17 am Post subject: |
|
|
okay, I was starting to learn ASM but when I tried to compile a prog with everything in the right spot, something goes wrong:
Inalid Switch - "tasm.bin"-
Inalid Switch - "tasm.lst"-
any help anyone, I really need to learn so I can make Castlevania.... |
|
Back to top |
|
|
Tyraniek
Member
Joined: 07 Jun 2003 Posts: 133
|
Posted: 06 Sep 2003 01:54:31 pm Post subject: |
|
|
It is certainly your asm.bat file which is wrong. Here is mine :
Code: @echo off
echo ----- Assembling program %1 for the TI-83+...
tasm -80 -i -b %1.z80 %1.bin
if errorlevel 1 goto ERRORS
echo .
echo ----- Conversion en format hexadecimal...
echo ObjHex Converter Version 1.2
echo Copyright (C) 2000 Jeff Chai
objhex %1.bin > %1.hex
del %1.bin
echo .
echo .
echo . .-----.
echo . .'_/_l_\_`.
echo . /ee::8[O]::3\ Task acomplished
echo . _l-----------l_ with success !
echo . :::l l R2D2-=- l l:::
echo . :::l l -=-==== l l::: The File
echo . :::\ l ::::l()ll /::: %1.hex
echo . ::::l l ....l()ll l:::: has been created !
echo . l l_________l l
echo . l l\_______/l l
echo . / \ / \ / \
echo . `---' `---' `---'
echo .
goto DONE
:ERRORS
echo ----- Errors have been found !
:DONE
echo ----- End
pause
Then, you write another bat file, which you call start.bat and which looks like this :
Code: asm prgm
That's all. It will call asm.bat to compile the file prgm.z80.
I hope this will help you. |
|
Back to top |
|
|
Flash Umpa Loompa
Member
Joined: 31 Aug 2003 Posts: 110
|
Posted: 07 Sep 2003 12:54:14 pm Post subject: |
|
|
lol... nice asm.bat i cant seem to get mine to work either, so ill use that |
|
Back to top |
|
|
Adm.Wiggin aka Tianon
Know-It-All
Joined: 02 Jun 2003 Posts: 1874
|
Posted: 08 Sep 2003 04:11:49 pm Post subject: |
|
|
i just use the Cirrus SDK asm.bat... it has a REAL GUI and it can do many different things...
wont work on XP though... |
|
Back to top |
|
|
Tyraniek
Member
Joined: 07 Jun 2003 Posts: 133
|
Posted: 09 Sep 2003 12:15:19 am Post subject: |
|
|
"wont work on XP though"
Argh ! :-/
And does it work on Cometh ? :-D (you know, the new version of Windows but for 64bits processors :-)))))) |
|
Back to top |
|
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 13 Sep 2003 09:34:23 am Post subject: |
|
|
Thanks. I'm going to learn and then start making Castlevania.... muhahahaha.... |
|
Back to top |
|
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 15 Sep 2003 02:53:26 pm Post subject: |
|
|
UH OH! Still doesn't work, there must be another prolem...
C:\>asm hello
==== Now assembling hello.z80 for the TI-83 Plus ====
TASM Z80 Assembler. Version 3.0.1 June, 1994.
Copyright © 1985-1994 by Speech Technology Incorporate
tasm: source file open error on ti83plus.inc
==== Errors!!! ====
==== Done ==== |
|
Back to top |
|
|
sgm
Calc Guru
Joined: 04 Sep 2003 Posts: 1265
|
Posted: 15 Sep 2003 05:31:20 pm Post subject: |
|
|
Any files you want to include must be in the same folder as TASM.EXE. I'm not sure if you can specify an explicit path with #include (I tried it a long time ago and I don't remember it working). |
|
Back to top |
|
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 16 Sep 2003 02:36:44 pm Post subject: |
|
|
Thanks, I'll see if it works now. |
|
Back to top |
|
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 16 Sep 2003 02:41:41 pm Post subject: |
|
|
still doesn't work:
C:\>asm hello
==== Now assembling hello.z80 for the TI-83 Plus ====
TASM Z80 Assembler. Version 3.0.1 June, 1994.
Copyright © 1985-1994 by Speech Technology Incorporated
tasm: source file open error on ti83plus.inc
==== Errors!!! ====
==== Done ====
C:\>asm/tasm/asm hello
==== Now assembling /tasm/asm.z80 for the TI-83 Plus ====
TASM Z80 Assembler. Version 3.0.1 June, 1994.
Copyright © 1985-1994 by Speech Technology Incorporated
tasm: object file open error on
==== Errors!!! ====
Invalid switch - "tasm".
Invalid switch - "tasm".
==== Done ==== |
|
Back to top |
|
|
sgm
Calc Guru
Joined: 04 Sep 2003 Posts: 1265
|
Posted: 16 Sep 2003 03:25:44 pm Post subject: |
|
|
1. Where have you put all your files?
2. What does your ASM.BAT file look like?
3. How DOS-literate are you? |
|
Back to top |
|
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 20 Sep 2003 01:59:40 pm Post subject: |
|
|
All my files, I have a ASM directory, inside the directory I have a tams folder, source folder, and hex folder. TASM folder has all the files that came with the zip file, including, tasm.exe, ti83plus.inc, start.bat, asm.bat, and a bunch of other files. Source and hex have hello.z80 which I typed, I also got pissed and made copies of the tasm files and put them in the ASM directory... DOS literate, I know the basics, dir, tracert, edit, etc. |
|
Back to top |
|
|
Flash Umpa Loompa
Member
Joined: 31 Aug 2003 Posts: 110
|
Posted: 21 Sep 2003 10:53:07 am Post subject: |
|
|
this is the exact same reason i quit trying to learn asm... i should write somthing somewhere that tells me to come back here every once in a while |
|
Back to top |
|
|
Darth Android DragonOS Dev Team
Bandwidth Hog
Joined: 31 May 2003 Posts: 2104
|
Posted: 21 Sep 2003 08:26:46 pm Post subject: |
|
|
i have one that works ver similar to yours and IT WORKS JUST FINE!
here is how it looks:
Asm folder:
Hex folder
Source folder
TASM folder
Hex folder:
where to look for your compiled hex files
Source folder:
where you put the program to be compiled
TASM folder:
objhex.exe
asm.bat
ti83plus.inc
ion.inc
tasm80.tab
**note that i have not been able to get anything to compile if the Asm folder was NOT located directly on the c:\ drive (c:\asm\)
asm.bat:
@echo off
echo ==== Now assembling %1.z80 for the TI-83 Plus ====
tasm -80 -i -b c:\asm\source\%1.z80 %1.bin
if errorlevel 1 goto ERRORS
echo ==== Converting to hex format ====
echo AsmPrgm> c:\asm\hex\%1.hex
objhex %1.bin >> c:\asm\hex\%1.hex
echo ==== Conversion finished. Hex version saved as %1.hex ====
goto DONE
:ERRORS
echo ==== Errors!!! ====
:DONE
del %1.bin > NUL
del c:\asm\source\%1.lst > NUL
echo ==== Done ==== |
|
Back to top |
|
|
Flash Umpa Loompa
Member
Joined: 31 Aug 2003 Posts: 110
|
Posted: 22 Sep 2003 05:24:35 pm Post subject: |
|
|
i wish i had time to test this right now... but ill try that C:\asm thing, thats probably whats wrong... although i feel like i tried that before... hmmmm?
*copy and pastes to notebook* |
|
Back to top |
|
|
Darth Android DragonOS Dev Team
Bandwidth Hog
Joined: 31 May 2003 Posts: 2104
|
Posted: 23 Sep 2003 12:18:49 pm Post subject: |
|
|
well, it worked for my one prgm, "hello world!". good luck. if ive ever had errors returned they were always coding errors... |
|
Back to top |
|
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 23 Sep 2003 05:08:06 pm Post subject: |
|
|
still doesn't work for me, can I see your code and a copy of your ti83plus.inc file? |
|
Back to top |
|
|
Neostar
Member
Joined: 27 Jun 2003 Posts: 105
|
Posted: 24 Sep 2003 04:51:55 pm Post subject: |
|
|
still doesn't work... help please... |
|
Back to top |
|
|
Flash Umpa Loompa
Member
Joined: 31 Aug 2003 Posts: 110
|
Posted: 24 Sep 2003 06:27:34 pm Post subject: |
|
|
i cant get it to work either... i blame windows!
windows me my arse... it never works for "me" nor anyoneelse. windows should be put in a hole |
|
Back to top |
|
|
Darth Android DragonOS Dev Team
Bandwidth Hog
Joined: 31 May 2003 Posts: 2104
|
Posted: 25 Sep 2003 01:00:30 pm Post subject: |
|
|
arg, im not at my comp right now, but ill see if i can get you my include file and some other files you would need. btw im running win 98. |
|
Back to top |
|
|
|