]> git.sur5r.net Git - cc65/log
cc65
11 years agoDon't import tmp1, slipped in by mistake in last commit
Christian Groessler [Tue, 23 Jul 2013 22:44:44 +0000 (00:44 +0200)]
Don't import tmp1, slipped in by mistake in last commit

11 years agoimplement _sysrename for Atari
Christian Groessler [Tue, 23 Jul 2013 22:40:09 +0000 (00:40 +0200)]
implement _sysrename for Atari

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Tue, 23 Jul 2013 22:37:21 +0000 (00:37 +0200)]
Merge remote-tracking branch 'upstream/master'

Conflicts:
libsrc/atari/sysrmdir.s

11 years agodon't include errno.inc -- not necessary
Christian Groessler [Wed, 17 Jul 2013 21:37:03 +0000 (23:37 +0200)]
don't include errno.inc -- not necessary

11 years agoremove unused import sreg
Christian Groessler [Wed, 17 Jul 2013 21:33:12 +0000 (23:33 +0200)]
remove unused import sreg

11 years agoMerge pull request #21 from groessler/something_to_pull
Oliver Schmidt [Tue, 16 Jul 2013 13:52:43 +0000 (06:52 -0700)]
Merge pull request #21 from groessler/something_to_pull

fix '_sysrmdir' for SpartaDOS

11 years agofix '_sysrmdir' for SpartaDOS 21/head
Christian Groessler [Mon, 15 Jul 2013 23:29:49 +0000 (01:29 +0200)]
fix '_sysrmdir' for SpartaDOS

11 years agofix '_sysrmdir' for SpartaDOS
Christian Groessler [Mon, 15 Jul 2013 23:29:49 +0000 (01:29 +0200)]
fix '_sysrmdir' for SpartaDOS

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Wed, 10 Jul 2013 09:48:38 +0000 (11:48 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoMerge pull request #20 from greg-king5/linker
Oliver Schmidt [Wed, 10 Jul 2013 09:37:45 +0000 (02:37 -0700)]
Merge pull request #20 from greg-king5/linker

Fixed ld65's precalculation of memory-area sizes and file-offsets.

11 years agoMerge pull request #19 from groessler/something_to_pull
Oliver Schmidt [Wed, 10 Jul 2013 09:24:12 +0000 (02:24 -0700)]
Merge pull request #19 from groessler/something_to_pull

close IOCB if open failed -- otherwise it is still marked as "in use"

11 years agoFixed ld65's precalculation of memory-area sizes. 20/head
Greg King [Wed, 10 Jul 2013 06:37:09 +0000 (02:37 -0400)]
Fixed ld65's precalculation of memory-area sizes.

Before this fix, BSS-type and ZP-type segments never were counted.  Now, they are counted if their memory areas are filled.  (It must be done because their places in the output file are filled.)

The fix allows us to build programs for the CBM510 and CBM610 platforms.  We won't see an "Internal error" diagnostic message about a bad file-offset.

11 years agoclose IOCB if open failed -- otherwise is is still marked as "in use" 19/head
Christian Groessler [Tue, 9 Jul 2013 21:39:42 +0000 (23:39 +0200)]
close IOCB if open failed -- otherwise is is still marked as "in use"

11 years agoclose IOCB if open failed -- otherwise is is still marked as "in use"
Christian Groessler [Tue, 9 Jul 2013 21:39:42 +0000 (23:39 +0200)]
close IOCB if open failed -- otherwise is is still marked as "in use"

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Thu, 4 Jul 2013 23:20:16 +0000 (01:20 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoMerge pull request #18 from xofeht/master
Oliver Schmidt [Thu, 4 Jul 2013 19:24:19 +0000 (12:24 -0700)]
Merge pull request #18 from xofeht/master

dbginfo.c bug fix

11 years agoFixed a logic bug in dbginfo.c module that prevented some valid debug info files... 18/head
thefox [Thu, 4 Jul 2013 18:10:58 +0000 (21:10 +0300)]
Fixed a logic bug in dbginfo.c module that prevented some valid debug info files from being parsed.

11 years agoRemove saving and restoring of zeropage variables.
Christian Groessler [Wed, 3 Jul 2013 09:38:28 +0000 (11:38 +0200)]
Remove saving and restoring of zeropage variables.

Merge remote-tracking branch 'upstream/master'

Conflicts:
cfg/atarixl.cfg
libsrc/atari/crt0.s

11 years agoMerge pull request #17 from groessler/something_to_pull
Oliver Schmidt [Wed, 3 Jul 2013 06:58:08 +0000 (23:58 -0700)]
Merge pull request #17 from groessler/something_to_pull

Atari targets: Don't save and restore the zero page locations used.

11 years agoDon't save and restore the zero page locations used. 17/head
Christian Groessler [Tue, 2 Jul 2013 17:55:00 +0000 (19:55 +0200)]
Don't save and restore the zero page locations used.
Saves 19 bytes code (in the exe file) and reduces memory footprint
of the program by 45 bytes (code & bss).

11 years agoDon't save original IRQ, NMI, and RESET vectors -- it's not needed.
Christian Groessler [Thu, 27 Jun 2013 23:08:07 +0000 (01:08 +0200)]
Don't save original IRQ, NMI, and RESET vectors -- it's not needed.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Thu, 27 Jun 2013 22:49:12 +0000 (00:49 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoMade EXTZP segment option for modules.
Oliver Schmidt [Thu, 27 Jun 2013 22:30:24 +0000 (00:30 +0200)]
Made EXTZP segment option for modules.

This allows to remove the "add empty EXTZP segement to avoid warnings"
approach.

11 years agoHave __PLUS4__ imply __C16__.
Oliver Schmidt [Thu, 27 Jun 2013 21:09:54 +0000 (23:09 +0200)]
Have __PLUS4__ imply __C16__.

11 years agoNo delimiter comment between includes and first segment.
Oliver Schmidt [Thu, 27 Jun 2013 11:04:52 +0000 (13:04 +0200)]
No delimiter comment between includes and first segment.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Tue, 25 Jun 2013 10:04:15 +0000 (12:04 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoMerge pull request #16 from groessler/something_to_pull
Oliver Schmidt [Tue, 25 Jun 2013 06:45:47 +0000 (23:45 -0700)]
Merge pull request #16 from groessler/something_to_pull

move findfreeiocb function into its own object file

11 years agomove findfreeiocb function into its own object file 16/head
Christian Groessler [Mon, 24 Jun 2013 23:12:11 +0000 (01:12 +0200)]
move findfreeiocb function into its own object file

11 years agouse first free IOCB for "GRAPHICS 0" call instead of using a hard-coded one
Christian Groessler [Mon, 24 Jun 2013 23:27:47 +0000 (01:27 +0200)]
use first free IOCB for "GRAPHICS 0" call instead of using a hard-coded one

11 years agomove findfreeiocb function into its own object file
Christian Groessler [Mon, 24 Jun 2013 23:12:11 +0000 (01:12 +0200)]
move findfreeiocb function into its own object file

11 years agosmall memory optimization: appmsav not needed in the xl target
Christian Groessler [Mon, 24 Jun 2013 22:53:21 +0000 (00:53 +0200)]
small memory optimization: appmsav not needed in the xl target

11 years agoremove TABs
Christian Groessler [Mon, 24 Jun 2013 22:48:43 +0000 (00:48 +0200)]
remove TABs

11 years agosome nicer debug messages
Christian Groessler [Mon, 24 Jun 2013 22:48:26 +0000 (00:48 +0200)]
some nicer debug messages

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Mon, 24 Jun 2013 06:45:21 +0000 (08:45 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoFixed comment.
Oliver Schmidt [Fri, 21 Jun 2013 10:36:37 +0000 (12:36 +0200)]
Fixed comment.

11 years agoFixed comment.
Oliver Schmidt [Fri, 21 Jun 2013 10:35:35 +0000 (13:35 +0300)]
Fixed comment.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Fri, 21 Jun 2013 09:53:56 +0000 (11:53 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoMerge pull request #15 from groessler/something_to_pull
Oliver Schmidt [Fri, 21 Jun 2013 09:39:20 +0000 (02:39 -0700)]
Merge pull request #15 from groessler/something_to_pull

Fix writing one byte beyond screen buffer.

11 years agoFix writing one byte beyond screen buffer. 15/head
Christian Groessler [Thu, 20 Jun 2013 23:53:13 +0000 (01:53 +0200)]
Fix writing one byte beyond screen buffer.

11 years agoFix writing one byte beyond screen buffer.
Christian Groessler [Thu, 20 Jun 2013 23:53:13 +0000 (01:53 +0200)]
Fix writing one byte beyond screen buffer.

11 years agocleanups and add more comments
Christian Groessler [Thu, 20 Jun 2013 22:01:07 +0000 (00:01 +0200)]
cleanups and add more comments

11 years agoFix check whether there is enough memory btw. MEMLO and the program
Christian Groessler [Thu, 20 Jun 2013 21:31:41 +0000 (23:31 +0200)]
Fix check whether there is enough memory btw. MEMLO and the program
load address to move screen buffer there.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Wed, 19 Jun 2013 09:06:17 +0000 (11:06 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agosome cleanups
Christian Groessler [Wed, 19 Jun 2013 09:05:03 +0000 (11:05 +0200)]
some cleanups

11 years agoSimply define CH_DEL exactly then when there none yet.
Oliver Schmidt [Tue, 18 Jun 2013 17:06:46 +0000 (19:06 +0200)]
Simply define CH_DEL exactly then when there none yet.

11 years agoAdd indication on the screen of occurring IRQs and NMIs (only for debug version).
Christian Groessler [Tue, 18 Jun 2013 11:00:51 +0000 (13:00 +0200)]
Add indication on the screen of occurring IRQs and NMIs (only for debug version).
NMI handler: set I status bit to original value before interrupt before chaining
to ROM NMI handler.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Mon, 17 Jun 2013 21:54:49 +0000 (23:54 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAvoid macro redefinition of CH_DEL for apple2enh.
Oliver Schmidt [Mon, 17 Jun 2013 19:41:25 +0000 (21:41 +0200)]
Avoid macro redefinition of CH_DEL for apple2enh.

I'm wondering why MS VC++ didn't complain about this...

11 years agoHave __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__.
Oliver Schmidt [Mon, 17 Jun 2013 19:34:08 +0000 (21:34 +0200)]
Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__.

11 years agomake one more debug message ".ifdef DEBUG"
Christian Groessler [Mon, 17 Jun 2013 16:56:28 +0000 (18:56 +0200)]
make one more debug message ".ifdef DEBUG"

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Thu, 13 Jun 2013 20:59:14 +0000 (22:59 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAvoid GCC "unconst" warning.
Oliver Schmidt [Thu, 13 Jun 2013 13:26:17 +0000 (15:26 +0200)]
Avoid GCC "unconst" warning.

11 years agoBetter cleanup on program exit on atarixl target
Christian Groessler [Wed, 12 Jun 2013 23:17:53 +0000 (01:17 +0200)]
Better cleanup on program exit on atarixl target

11 years agoMove scrdev into it's own file. On the atarixl target it will be referenced by crt0.s.
Christian Groessler [Wed, 12 Jun 2013 23:16:35 +0000 (01:16 +0200)]
Move scrdev into it's own file. On the atarixl target it will be referenced by crt0.s.

11 years agobetter error message
Christian Groessler [Wed, 12 Jun 2013 23:16:05 +0000 (01:16 +0200)]
better error message

11 years agosome debug messages ".ifdef DEBUG"
Christian Groessler [Wed, 12 Jun 2013 23:07:40 +0000 (01:07 +0200)]
some debug messages ".ifdef DEBUG"

11 years agoAdd handling of write requests
Christian Groessler [Wed, 12 Jun 2013 22:54:03 +0000 (00:54 +0200)]
Add handling of write requests

11 years agointermediate check-in -- added handling of read requests
Christian Groessler [Wed, 12 Jun 2013 11:27:28 +0000 (13:27 +0200)]
intermediate check-in -- added handling of read requests

11 years agoadd LOWBUFS segment
Christian Groessler [Wed, 12 Jun 2013 11:26:26 +0000 (13:26 +0200)]
add LOWBUFS segment

11 years agointermediate check-in
Christian Groessler [Mon, 10 Jun 2013 12:22:30 +0000 (14:22 +0200)]
intermediate check-in

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Mon, 10 Jun 2013 11:44:52 +0000 (13:44 +0200)]
Merge remote-tracking branch 'upstream/master'

Conflicts:
asminc/atari.inc

11 years agoMerge pull request #14 from groessler/something_to_pull
Oliver Schmidt [Mon, 10 Jun 2013 11:38:10 +0000 (04:38 -0700)]
Merge pull request #14 from groessler/something_to_pull

Use symbolic names for all CIO commands.

11 years agoremove TABs 14/head
Christian Groessler [Fri, 7 Jun 2013 22:35:07 +0000 (00:35 +0200)]
remove TABs

11 years agoUse symbolic names for all CIO commands.
Christian Groessler [Fri, 7 Jun 2013 22:35:07 +0000 (00:35 +0200)]
Use symbolic names for all CIO commands.

11 years agoUse symbolic names for all CIO commands.
Christian Groessler [Fri, 7 Jun 2013 22:35:07 +0000 (00:35 +0200)]
Use symbolic names for all CIO commands.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Fri, 7 Jun 2013 21:29:49 +0000 (23:29 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAdded support for 'prefix'.
Oliver Schmidt [Fri, 7 Jun 2013 21:13:46 +0000 (23:13 +0200)]
Added support for 'prefix'.

If the variable 'prefix' is defined then the builtin search paths are set to
$(prefix)/lib/cc65/... allowing to build binaries intended for installation.

Note that the library build still works with these binaries as it generally
overrides the builtin search paths by setting the CC65_HOME env var.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Wed, 5 Jun 2013 21:09:32 +0000 (23:09 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoUse unique variables for cc65 toolchain.
Oliver Schmidt [Tue, 4 Jun 2013 21:39:00 +0000 (23:39 +0200)]
Use unique variables for cc65 toolchain.

Originally I used the usual variables (like $(CC) and $(CFLAGS) ) but after
all this doesn't make sense as any predefined values and/or user defined
settings can only be wrong.

11 years agoMerge remote-tracking branch 'upstream/master'
Christian Groessler [Tue, 4 Jun 2013 08:54:34 +0000 (10:54 +0200)]
Merge remote-tracking branch 'upstream/master'

11 years agoAdded library reference tgi_libref to TGI interface.
Oliver Schmidt [Sat, 1 Jun 2013 10:42:00 +0000 (12:42 +0200)]
Added library reference tgi_libref to TGI interface.

11 years agoAdded library reference ser_libref to SER interface.
Oliver Schmidt [Sat, 1 Jun 2013 09:03:14 +0000 (11:03 +0200)]
Added library reference ser_libref to SER interface.

11 years agoAdded library reference mouse_libref to MOU interface.
Oliver Schmidt [Fri, 31 May 2013 22:53:17 +0000 (00:53 +0200)]
Added library reference mouse_libref to MOU interface.

11 years agoAdded library reference joy_libref to JOY interface.
Oliver Schmidt [Fri, 31 May 2013 22:36:08 +0000 (00:36 +0200)]
Added library reference joy_libref to JOY interface.

11 years agoAdded library reference em_libref to EMD interface.
Oliver Schmidt [Fri, 31 May 2013 22:11:31 +0000 (00:11 +0200)]
Added library reference em_libref to EMD interface.

Occasionally dynamically drivers suffer from not being to refer to
content in the C library. Therefore I added a mechanism to allow
a C library for a certian target to define a symbol that will be
handed over to dynamic drivers for that target. Then the drivers
can use their refernce to that symbol to access content in the C
library.

11 years agoExplicitly set search paths for libraries build.
Oliver Schmidt [Fri, 31 May 2013 19:30:14 +0000 (21:30 +0200)]
Explicitly set search paths for libraries build.

The libraries build is prepared to work with binaries not part of the current
working tree. But in this case the default search path surely points to some
other working tree. Even the binaries in this working tree might have been
compiled with non-standard builtin search paths.

Anyway when building the libraries we want always to use the headers from
the current working tree. Therefore we want to set them explicitly. Instead
of setting all in all five paths on the command lines of ca65, cc65 and ld65 I
opted to just set the single environment variable.

11 years agosmall cleanup
Christian Groessler [Fri, 31 May 2013 12:49:46 +0000 (14:49 +0200)]
small cleanup

11 years agoTake SHADOW_RAM size into account.
Christian Groessler [Fri, 31 May 2013 12:49:25 +0000 (14:49 +0200)]
Take SHADOW_RAM size into account.

11 years agoWhen turning the ROM off and on, also change the chargen pointer.
Christian Groessler [Thu, 30 May 2013 23:50:07 +0000 (01:50 +0200)]
When turning the ROM off and on, also change the chargen pointer.

11 years agosome more changes -- atarixl target basically works now
Christian Groessler [Thu, 30 May 2013 23:47:25 +0000 (01:47 +0200)]
some more changes -- atarixl target basically works now

11 years agoHandlers which manage the banking in and out of the ROM.
Christian Groessler [Thu, 30 May 2013 23:45:53 +0000 (01:45 +0200)]
Handlers which manage the banking in and out of the ROM.

11 years agoadd more saved content
Christian Groessler [Thu, 30 May 2013 23:42:30 +0000 (01:42 +0200)]
add more saved content

11 years agomove ZPSAVE content into its own file (used by 2nd load chunk and crt0.s in atarixl...
Christian Groessler [Thu, 30 May 2013 23:40:45 +0000 (01:40 +0200)]
move ZPSAVE content into its own file (used by 2nd load chunk and crt0.s in atarixl target)

11 years agoadapt to atarixl target
Christian Groessler [Thu, 30 May 2013 23:38:16 +0000 (01:38 +0200)]
adapt to atarixl target

11 years agorename CIOV and SIOV to CIOV_org and SIOV_org for atarixl target
Christian Groessler [Thu, 30 May 2013 23:37:40 +0000 (01:37 +0200)]
rename CIOV and SIOV to CIOV_org and SIOV_org for atarixl target

11 years agomove ZPSAVE into area already saved by 2nd load chunk
Christian Groessler [Thu, 30 May 2013 23:35:19 +0000 (01:35 +0200)]
move ZPSAVE into area already saved by 2nd load chunk

11 years agoCode & data for "shadow RAM preparation" load chunk in the atarixl target.
Christian Groessler [Thu, 30 May 2013 00:34:06 +0000 (02:34 +0200)]
Code & data for "shadow RAM preparation" load chunk in the atarixl target.
Intermediate check-in, unfinished...

11 years agoCode & data for "system check" load chunk in the atarixl target.
Christian Groessler [Thu, 30 May 2013 00:33:09 +0000 (02:33 +0200)]
Code & data for "system check" load chunk in the atarixl target.

11 years ago"save area" is used to save modified system variables and ports. It's
Christian Groessler [Thu, 30 May 2013 00:31:25 +0000 (02:31 +0200)]
"save area" is used to save modified system variables and ports. It's
shared between the second and main chunk.

11 years agoSome small first changes for the 'atarixl' target.
Christian Groessler [Thu, 30 May 2013 00:30:19 +0000 (02:30 +0200)]
Some small first changes for the 'atarixl' target.

11 years agoAdd two load chunks:
Christian Groessler [Thu, 30 May 2013 00:26:15 +0000 (02:26 +0200)]
Add two load chunks:
 - First chunk checks system (if it's XL and memory is ok).
 - Second chunk contains the contents for the shadow memory beneath the
   ROM and copies the contents to their destination address.
   It also moves the screen memory to low memory in front of the program.

11 years agoUse cbm_load() to load overlays on CBMs.
Oliver Schmidt [Tue, 28 May 2013 23:12:24 +0000 (01:12 +0200)]
Use cbm_load() to load overlays on CBMs.

11 years agoFixed discrepancy between definition and declaration.
Oliver Schmidt [Tue, 28 May 2013 20:16:07 +0000 (22:16 +0200)]
Fixed discrepancy between definition and declaration.

11 years agoBrought back mouse driver source code.
Oliver Schmidt [Tue, 28 May 2013 20:07:04 +0000 (22:07 +0200)]
Brought back mouse driver source code.

The mouse driver source code in question was removed two years
ago with commit 6cbbe66c87fc19c322a0dd72a5c8ef094ea90c90.
It seems however desirable to have it around visible in the source
code tree for reference purposes.

11 years agoIntroduced target 'atarixl'.
Oliver Schmidt [Tue, 28 May 2013 19:56:37 +0000 (21:56 +0200)]
Introduced target 'atarixl'.

The target 'atarixl' is to be used for Atari XL (and better) machines.
It will disable the OS ROM and enable the Shadow RAM available on
those machine.

Note: This commit is only the inital step towards for this goal that just
replicates the target 'atari' as a starting point!

11 years agoRenamed Atari drivers.
Oliver Schmidt [Tue, 28 May 2013 19:20:37 +0000 (21:20 +0200)]
Renamed Atari drivers.

As a preparation for the introduction of the 'atarixl' target it is
necessary that all drivers have a base name...
- no longer than 7 characters
- with a common prefix

11 years agoAdjusted usage.
Oliver Schmidt [Fri, 24 May 2013 16:36:59 +0000 (18:36 +0200)]
Adjusted usage.

11 years agoAdded support for cc65 program arguments.
Oliver Schmidt [Fri, 24 May 2013 16:36:30 +0000 (18:36 +0200)]
Added support for cc65 program arguments.

11 years agoNo delimiter comment between includes and first segment.
Oliver Schmidt [Fri, 24 May 2013 16:29:31 +0000 (18:29 +0200)]
No delimiter comment between includes and first segment.

11 years agoThe paravirtualization hooks are called for JMP too so there's no need for JSR.
Oliver Schmidt [Fri, 24 May 2013 16:25:16 +0000 (18:25 +0200)]
The paravirtualization hooks are called for JMP too so there's no need for JSR.