It is currently Fri Oct 20, 2017 4:40 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: CC65 Won't boot
PostPosted: Sat Feb 18, 2017 3:45 pm 
Offline

Joined: Mon Jan 30, 2017 5:20 pm
Posts: 294
Location: Colorado USA
I try to click on the cc65 icon, and i get a black window for a few seconds, and then it vanishes. I'm using a Windows 10 PC, does anyone know how I could fix this? Thanks!


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Sat Feb 18, 2017 3:48 pm 
Offline
Formerly 65024U

Joined: Sat Mar 27, 2010 12:57 pm
Posts: 2257
It's a command line tool?


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Sat Feb 18, 2017 3:50 pm 
Offline

Joined: Mon Jan 30, 2017 5:20 pm
Posts: 294
Location: Colorado USA
I don't know, it won't boot so I'm not able to see what the interface looks like.


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Sat Feb 18, 2017 4:16 pm 
Offline

Joined: Mon May 27, 2013 9:40 am
Posts: 351
It doesn't have a GUI. It's a command line tool. Open a console (Windows+R, type cmd, press ENTER) to use it. You can read the documentation on how to setup some required system variables.

_________________
http://www.mojontwins.com


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Sat Feb 18, 2017 4:30 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10064
Location: Rio de Janeiro - Brazil
Command line tools don't have a graphical interface, you have to call them through the command line, passing the necessary parameters for the program to do what it needs to. What we normally do in these cases is create a batch file (.BAT) in the same folder as the project containing all the commands necessary to run the compiler/assembler, so you can just double click that file every time you have to build.


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Sat Feb 18, 2017 4:31 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19110
Location: NE Indiana, USA (NTSC)
How many concepts in Before the basics are you familiar with, particularly under the "Command-line interface" heading?


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Sat Feb 18, 2017 5:37 pm 
Offline

Joined: Mon Jan 30, 2017 5:20 pm
Posts: 294
Location: Colorado USA
tepples wrote:
How many concepts in Before the basics are you familiar with, particularly under the "Command-line interface" heading?

I understand most of that stuff.


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Wed Feb 22, 2017 12:38 pm 
Offline

Joined: Mon Jan 30, 2017 5:20 pm
Posts: 294
Location: Colorado USA
Never mind, I was actually supposed to use CA65, And I think I've just about got it figured out. I'll reply if it doesn't work.


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Wed Feb 22, 2017 1:34 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1779
Location: DIGDUG
Also command line.

What example files / tutorial are you working from? Tepples perhaps?

Do you know how to set up a .cfg file for NROM size NES ROM, or how to include a header?

EDIT, also, ca65 doesn't (by itself) assemble to an executable. It assembles to an object file. And ld65 links the object file(s) to an executable (using a cfg file as a map). It is not the easiest for a newb, and please ask questions, you will have lots of them.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Wed Feb 22, 2017 5:37 pm 
Offline

Joined: Mon Jan 30, 2017 5:20 pm
Posts: 294
Location: Colorado USA
Okay, I was able to boot up the app, but I wasn't able load the file. I've tried moving the file into the same folder as the exe, I've tried giving it the directory, but I always got the same error, it couldn't open the file. Does it have something to do with the file type? I'm using a .asm file, will that not work? What type of file will work?


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Wed Feb 22, 2017 5:59 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19110
Location: NE Indiana, USA (NTSC)
What do you mean by "couldn't open the file"? Is there an error message? Do you just get a black window that appears and disappears?


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Wed Feb 22, 2017 7:28 pm 
Offline
User avatar

Joined: Fri May 08, 2015 7:17 pm
Posts: 1779
Location: DIGDUG
Let's try the lowest level experiment. Make a text file, in the same folder as ca65.exe with these contents...

Code:
.segment "CODE"

   lda #1
   sta $1


from the window explorer, click "File/Open Command Prompt"

type "ca65 filename.txt" (replace filename with actual filename, of course)

it should generate a .o file in the same directory. The file itself will look like gibberish, that's normal, this is just a simple test to confirm to you that it does work. If it generates a .o file, with no errors, this is a successful test.

If you get an error, print the entire error message here, so we know what you are talking about.

_________________
nesdoug.com -- blog/tutorial on programming for the NES


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Wed Feb 22, 2017 8:12 pm 
Offline

Joined: Mon Jan 30, 2017 5:20 pm
Posts: 294
Location: Colorado USA
Is the .o file a hexdump? What is it for?


Top
 Profile  
 
 Post subject: Re: CC65 Won't boot
PostPosted: Wed Feb 22, 2017 8:21 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19110
Location: NE Indiana, USA (NTSC)
Right now, it represents proof that your copy of the assembler is working. Once you get some actual code written, it represents the assembled object code corresponding to one of the source code files in your project, to be combined or "linked" with object code produced by assembling other source code files in order to form a ROM image.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 10 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group