Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.apple2 > #20959
| From | "Bill Buckels" <bbuckels@mts.net> |
|---|---|
| Newsgroups | comp.sys.apple2 |
| Subject | Re: How configure cc65 on a pc |
| Date | 2014-08-02 06:48 -0500 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <lrij78$ad9$1@speranza.aioe.org> (permalink) |
| References | <64fbdb09-51b2-4f8f-beb3-f56c49c51758@googlegroups.com> |
"Didier VALLET" <dv.vallet@gmail.com> wrote:
>Is there is a tutorial somethere or somebody who supplie a source code with
>batch files for me trying it.
I provide all the demos for my book completely configured for Windows and
complete with shortcut. That way you get to do the easy part and read the
book and follow along.
In the chapter on DHGR bitmapped Graphics and cc65, I provide build
instructions. Here is an excerpt from that chapter:
Building the Demo and Links
The cc65 main page is now at: http://cc65.github.io/cc65/
Existing users of cc65 may already know what to do with this if anything,
but for new users, build instructions are included below. For new cc65 users
other than Windows users most of this is may only be useful for reference.
Try posting a message on usenet in the comp.sys.apple2.programmer usenet
news group if you need additional help setting-up your cc65 working
environment on the OS that you have chosen, and if you have exhausted all
reasonable alternatives including the links from the cc65 main page and
googling for clues. But it is beyond the scope of this demo to provide
support for setting up a news reader or for help with OS's other than
Windows. All users can still email me for help if they have exhausted the
other resources that I have suggested and I will try to help on a best
effort basis.
bbuckels@mts.net
Make File
The Make File for this demo works with the MinGW make as well as other
makes.
PRG=dhishow
PRG2=dhishow2
$(PRG).PRG: $(PRG).c
cl65 -O -t apple2enh -C $(PRG).cfg $(PRG).c
del $(PRG).o
cl65 -D DHGR_SCREEN_ADDRESS=0x4000 -O -t apple2enh -C $(PRG2).cfg -o
$(PRG2) $(PRG).c
del $(PRG).o
Windows users will need to get a make if they don't have one. Cc65 doesn't
come with a make. Consider installing MinGW:
http://www.mingw.org/category/wiki/download
Or GNU Make:
http://gnuwin32.sourceforge.net/packages/make.htm
cc65 SnapShot
To build all this, Windows users can get the latest cc65 snapshot:
http://cc65.github.io/cc65/download/cc65-snapshot-win32.zip
And then create a path similar to the following (do not use spaces in the
path name):
C:\cc65_snap\PROGRAMS\DHGR\
And Windows users can set-up a batch-file similar to the following:
C:\cc65_snap\bin\cc65-env.cmd
@echo off
SET CROOT=C:\cc65_snap
SET PATH=%CROOT%\bin;%CROOT%\tools;%PATH%
SET CA65_INC=%CROOT%\asminc
SET CC65_INC=%CROOT%\include
SET LD65_CFG=%CROOT%\cfg
SET LD65_LIB=%CROOT%\lib
SET LD65_OBJ=%CROOT%\obj
And Windows users can then use the Windows shortcut provided in the DHISHOW
distribution at the following link:
http://www.appleoldies.ca/cc65/programs/dhgr/dhishow.zip
Unzip to: C:\cc65_snap\PROGRAMS\DHGR\ (as noted above) or similar. Edit
properties to suit and copy and re-use for other cc65 projects as required.
Linker Configuration Files
As shown in the MAKEFILE above, two linker configs are used with this demo.
They are both slightly modified versions of the standard cc65 linker configs
that come with the current snapshot and which are really only meant for a
starting point for some of us. For a full listing of these modified configs
download dhishow. It comes with source of course.
The linker config for the dhishow binary that loads at $4000 is the same as
apple2enh-system.cfg with a one line change:
MEMORY {
ZP: define = yes, start = $0080,size = $001A;
RAM: file = %O,start = $4000,size = $7F00 - __STACKSIZE__;
MOVE: file = %O,define = yes,start = $0000,size = $FFFF;
LC: define = yes,start = __LCADDR__,size = __LCSIZE__;
}
This leaves the screen memory at $2000 available and the memory below $2000
available, although neither area is reserved.
The linker config for the dhishow2 binary that loads at $0803 is the same as
apple2enh.cfg with the 4 byte header removed. That is the only change. This
header is not needed in CiderPress unless for DOS 3.3 BIN programs. I have
refrained from appending CiderPress file attribute preservation tags to
output filenames in my MAKEFILE to be inclusive of environments other than
Windows, but that's a better idea than a header.
Andy McFadden's CiderPress can be downloaded from the following link:
http://ciderpress.sourceforge.net/
Apple Commander can be downloaded from the following link:
http://applecommander.sourceforge.net/
Working Demos
Working demos of DHISHOW are available by separate download from the
following link:
http://www.appleoldies.ca/cc65/programs/dhgr/dhishowdemo.zip
They include an HDV Hard Drive Image for the AppleWin IIe Emulator which is
set-up to run at 1 MHZ, and a smaller 2mg Disk Image for the kegs32 IIgs
emulator which is set-up to run at 8 MHZ. Speed adjustments can be made to
these by using DELAY.TXT discussed earlier in this document.
Emulators
The AppleWin Emulator can be downloaded from the following link:
http://applewin.berlios.de/
The kegs32 emulator can be downloaded from the following link:
http://kegs.sourceforge.net/
GSport is available here:
http://gsport.sourceforge.net/
For Mac Users, AppleWin will run in Wine Bottler if you make the effort:
https://groups.google.com/d/topic/comp.sys.apple2/UxMmfJ-YJe4
As will CiderPress to some degree:
https://groups.google.com/d/topic/comp.sys.apple2/0GfsM4PgqMY
But further discussion of all of this and especially the use of emulators,
especially for OS's other than Windows is beyond the scope of this document
and this demo.
Back to comp.sys.apple2 | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How configure cc65 on a pc Didier VALLET <dv.vallet@gmail.com> - 2014-08-01 22:51 -0700
Re: How configure cc65 on a pc "Bill Buckels" <bbuckels@mts.net> - 2014-08-02 06:48 -0500
Re: How configure cc65 on a pc "Bill Buckels" <bbuckels@mts.net> - 2014-08-02 08:22 -0500
Re: How configure cc65 on a pc Steve Nickolas <usotsuki@buric.co> - 2014-08-02 15:53 +0000
Re: How configure cc65 on a pc "Bill Buckels" <bbuckels@mts.net> - 2014-08-02 19:50 -0500
Re: How configure cc65 on a pc Steve Nickolas <usotsuki@buric.co> - 2014-08-03 02:27 +0000
Re: How configure cc65 on a pc "Bill Buckels" <bbuckels@mts.net> - 2014-08-03 08:42 -0500
Re: How configure cc65 on a pc Steve Nickolas <usotsuki@buric.co> - 2014-08-03 13:51 +0000
Re: How configure cc65 on a pc "Bill Buckels" <bbuckels@mts.net> - 2014-08-03 16:20 -0500
Re: How configure cc65 on a pc STYNX <Jonas.Groenhagen@gmx.de> - 2014-08-02 08:11 -0700
Re: How configure cc65 on a pc "Bill Buckels" <bbuckels@mts.net> - 2014-08-02 19:37 -0500
csiph-web