CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 125 users online: 9 members, 87 guests and 29 bots.
Members: 16aroth6, Carlos, lboe, Link, ruler501, tifreak8x.
Bots: Alexa (1), VoilaBot (1), Spinn3r (1), MSN/Bing (2), Magpie Crawler (3), VoilaBot (2), Googlebot (17), MSN/Bing (2).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page Previous  1, 2, 3, 4, 5  Next
» View previous topic :: View next topic  
Author Message
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 27 Nov 2011 06:18:11 pm    Post subject:

krazylegodrummer56 wrote:
Thanks Kerm now i can go and and start learning ASM.

Using the notepad++ portable, what do you have to save the document as?

You would save it as a plain text file with a .asm or .z80 extension in the asm/source/ folder of the SDK.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 06:43:25 pm    Post subject:

how would you test it?
_________________
Projects: Learn how to program in Prizm C
First C program!
Tic-Tac-Toe: Get it HERE!




Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 27 Nov 2011 07:15:24 pm    Post subject:

If you're using the DCS SDK without the GUI, you need to run "compile.bat <name of your ASM file without the extension>" in a command prompt. With the GUI, you click on Open file, browse to your source file, and wait for it to assemble. Then you can send the .8xp in the exec folder to your calculator or an emulator.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 07:37:42 pm    Post subject:

which GUI and the compile.bat <asm file> dosen't work.
_________________
Projects: Learn how to program in Prizm C
First C program!
Tic-Tac-Toe: Get it HERE!




Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 27 Nov 2011 07:41:14 pm    Post subject:

What isn't working with the batch file? Is it encountering errors in your code while it's assembling? If so, you can copy and paste the output of compile.bat here (if it isn't too long). If you're unable to get compile.bat to run, make sure you are chdir'd into the asm directory of the SDK, and that the argument you're passing to compile.bat doesn't have a file extension on it. Also, I was referring to my GUI, from earlier in this topic.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 10:44:51 pm    Post subject:

oh okay and is it the command prompt built into the computer or some other program?
_________________
Projects: Learn how to program in Prizm C
First C program!
Tic-Tac-Toe: Get it HERE!




Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 27 Nov 2011 10:54:30 pm    Post subject:

It is the same command prompt you get by pressing Win-R and typing "cmd" and pressing enter.
_________________
CALCnet Tournament-38%


deviantArt
Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 10:57:57 pm    Post subject:

thanks heres what I get

C:\Users\Krazy>compile.bat helloWorld
'compile.bat' is not recognized as an internal or external command, operable program or batch file.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55763
Location: Earth, Sol, Milky Way

Posted: 27 Nov 2011 11:10:08 pm    Post subject:

You can save it as something.asm or something.z80, then use the Doors CS SDK to assemble it.
_________________


Back to top
souvik1997


Guru-in-Training


Joined: 19 Apr 2010
Posts: 2870

Posted: 27 Nov 2011 11:11:03 pm    Post subject:

krazylegodrummer56 wrote:
thanks heres what I get

C:\Users\Krazy>compile.bat helloWorld
'compile.bat' is not recognized as an internal or external command, operable program or batch file.

Did you cd to the asm directory of the SDK?
_________________
CALCnet Tournament-38%


deviantArt
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55763
Location: Earth, Sol, Milky Way

Posted: 27 Nov 2011 11:16:41 pm    Post subject:

Um, I need to remember to make sure that I'm on the last page of a topic before I respond. Sad Sorry about that. You clearly didn't use the cd command to get to the /asm/ directory of the SDK, which is why I was trying to get you to use the "Open command prompt here" trick on the /asm/ folder a few pages ago.
_________________


Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 11:27:21 pm    Post subject:

Thats okay Kerm. Very Happy

And what do you mean "cd to the asm directory of the SDK" Souvik?
_________________
Projects: Learn how to program in Prizm C
First C program!
Tic-Tac-Toe: Get it HERE!




Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55763
Location: Earth, Sol, Milky Way

Posted: 27 Nov 2011 11:29:32 pm    Post subject:

krazylegodrummer56 wrote:
Thats okay Kerm. Very Happy

And what do you mean "cd to the asm directory of the SDK" Souvik?
The following three commands for navigating in the command prompt should help:

dir = List the contents of the current directory
cd <folder> = Switch to a child folder of this folder
cd .. = Switch the the parent folder of this folder

For example, if you are in C:\Users\Krazy\ and you want to get to C:\Users\Krazy\Documents\SDK\ASM, you could do:

cd Documents
cd SDK
cd ASM
_________________


Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 11:40:24 pm    Post subject:

still get this underneath it

'compile.bat' is not recognized as an internal or external command, operable program or batch file.
_________________
Projects: Learn how to program in Prizm C
First C program!
Tic-Tac-Toe: Get it HERE!




Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2958

Posted: 27 Nov 2011 11:48:28 pm    Post subject:

Run "dir /s" and pastebin the output (to copy stuff from the terminal, right click and say "mark", then click and drag what you want and right click again, it should be ready to paste somewhere).
_________________
http://tanner.myserverathome.com
Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 11:50:14 pm    Post subject:

_player1537 wrote:
Run "dir /s" and pastebin the output (to copy stuff from the terminal, right click and say "mark", then click and drag what you want and right click again, it should be ready to paste somewhere).


where do I do this? Question
Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2958

Posted: 27 Nov 2011 11:50:54 pm    Post subject:

In the same directory/folder that you just typed "compile.bat".
_________________
http://tanner.myserverathome.com
Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 27 Nov 2011 11:56:10 pm    Post subject:

here is the output

C:\Users\Krazy\Documents\MyTiData\Downloads\DCS\dcs\stuff\asm\source>dir /s
Volume in drive C is HP
Volume Serial Number is F427-CD21

Directory of C:\Users\Krazy\Documents\MyTiData\Downloads\DCS\dcs\stuff\asm\sourc
e

11/27/2011 03:26 PM <DIR> .
11/27/2011 03:26 PM <DIR> ..
11/11/2010 10:32 PM 8,473 docde7.asm
11/27/2011 03:00 PM 178 helloWorld.asm
11/11/2010 10:32 PM 15,196 mt3.asm
3 File(s) 23,847 bytes

Total Files Listed:
3 File(s) 23,847 bytes
2 Dir(s) 567,231,131,648 bytes free
Back to top
_player1537


Guru-in-Training


Joined: 25 Nov 2009
Posts: 2958

Posted: 27 Nov 2011 11:57:07 pm    Post subject:

Aha, run "cd .." and then "compile.bat helloWorld", and then check your asm/exec/ directory Smile
_________________
http://tanner.myserverathome.com
Back to top
krazylegodrummer56


Power User


Joined: 20 Nov 2011
Posts: 404

Posted: 28 Nov 2011 12:00:29 am    Post subject:

like this

C:\Users\Kyle\Documents\MyTiData\Downloads\DCS\dcs\stuff\asm\source>cd compile.b
at helloWorld
The system cannot find the path specified.

C:\Users\Kyle\Documents\MyTiData\Downloads\DCS\dcs\stuff\asm\source>cd
C:\Users\Kyle\Documents\MyTiData\Downloads\DCS\dcs\stuff\asm\source

C:\Users\Kyle\Documents\MyTiData\Downloads\DCS\dcs\stuff\asm\source>compile.bat
helloWorld
'compile.bat' is not recognized as an internal or external command,
operable program or batch file.
_________________
Projects: Learn how to program in Prizm C
First C program!
Tic-Tac-Toe: Get it HERE!




Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3, 4, 5  Next
» View previous topic :: View next topic  
Page 3 of 5 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.040122 seconds.