| 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: 405
|
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: 405
|
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: 405
|
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: 405
|
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: 55881 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: 55881 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. 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: 405
|
Posted: 27 Nov 2011 11:27:21 pm Post subject: |
|
|
Thats okay Kerm.
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: 55881 Location: Earth, Sol, Milky Way
|
Posted: 27 Nov 2011 11:29:32 pm Post subject: |
|
|
| krazylegodrummer56 wrote: | Thats okay Kerm.
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: 405
|
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: 405
|
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?  |
|
| Back to top |
|
|
_player1537

Guru-in-Training

Joined: 25 Nov 2009 Posts: 2958
|
|
| Back to top |
|
|
krazylegodrummer56

Power User

Joined: 20 Nov 2011 Posts: 405
|
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  _________________ http://tanner.myserverathome.com
 |
|
| Back to top |
|
|
krazylegodrummer56

Power User

Joined: 20 Nov 2011 Posts: 405
|
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 |
|
|
|