[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CC65 problems



Hi
On my mind the linker operation is not OK
the commands are :
            cc hello.c
after you should have a program hello.o (object code)
so you type
            ln +B hello.o lib/samain.o lib/c.lib
and you have your BRUNable hello under prodos or shell
Warning the order samain.o and after c.lib is important
samain.o is the main for obtain an executable file under OS and not only
shell
good luck send email for any problem.
Jean Pierre

"Rich J." <aiiadict@hotmail.com> wrote in message
370265cd.0309010912.7316f2af@posting.google.com">news:370265cd.0309010912.7316f2af@posting.google.com...
> Hi,
>
> I typed in hello.c and text.s as mentioned in the INTRO.html file that
> is in the DOC folder from the CC65 installation (win32)
>
> I have a batch file setup:
>
> c:\cc65\bin\cl65 -t apple2 -O hello.c text.s
>
> I run the batch file and I get the following new files in the
> directory:
> text.o                  252
> hello2.o                445
> hello (no extension)  2,374
>
>
>
> I transfer these files to a DSK image for use on an emulator (using
> FISHWINGS).  I use the Applewin emulator.  I boot DOS 3.3 and try to
> BRUN the files.  none of the files will BRUN.  I BRUN them and they
> lock up the machine.
>
> I BLOAD them at $2000 using
> BLOAD FILE,A$2000
>
> I enter the monitor and list $2000-
> call-151
>
> 2000l
> 55 7A       EOR $7a,X
> 6e 61 09   ROR $0961
> 00 BRK
> 00 BRK
>
> This isn't the beginning of an executable program!  That is with the
> hello.O file.  The hello file with no extension that gets generated by
> compiling starts out with 00 08 (BRK, PHP). Once again, not the
> beginning of a machine language program as far as I've seen so far.
>
> They seem like very large files for saying "hello world" on the screen
> (listed as size (sectors?) 4 and 12 on the apple catalog screen.
>
> Can you see what I am doing wrong?  I cannot figure this out.  I have
> tried messing with the switches on the cl65 command line, and I have
> tried everything I can think of to get this to work.
>
> Also, the compiler seems to want all the source files and APPLE2.O and
> APPLE2.LIB files in the same directory of Cl65.  I tried making a
> batch file
> that would:
> set CC65_LIB=c:\cc65\lib
> set CC65_INC=c:\cc65\include
> but it still says that it cannot find APPLE2.O and APPLE2.LIB.
>
> I am trying to figure out how to point cl65 to look in the correct
> directory for LIB, O, and C (source) files, without having to specify
> them in the command line every time.
>
> The INTRO.html file tells you to run cl65 and gives you the command
> with switches, etc.  But it does not tell you WHERE (what directory)
> you are running it from.  Should I be in the BIN directory when I run
> it?  How do I point the compiler to look in the correct directory for
> APPLE2.LIB and APPLE2.O?  How do I point the compiler to look in the
> correct directory for my source file?
>
> THanks
> Rich