]> git.sur5r.net Git - cc65/log
cc65
8 years agoFixed BSS properties.
Oliver Schmidt [Sun, 13 Mar 2016 21:13:41 +0000 (22:13 +0100)]
Fixed BSS properties.

The cassette boot file header references __BSS_RUN__ so BSS must be the first bss type segment (and for sure isn't optional).

8 years agoUse AX paradigm.
Oliver Schmidt [Sun, 13 Mar 2016 20:23:45 +0000 (21:23 +0100)]
Use AX paradigm.

8 years agoCleaned up C64 linker configs.
Oliver Schmidt [Sun, 13 Mar 2016 13:32:07 +0000 (14:32 +0100)]
Cleaned up C64 linker configs.

The BSS segment and the ONCE segment share the same start address. So they need to be placed in two different memory areas.

So far BSS was placed in the MAIN memory area and ONCE was placed in an additional memory area. Both memory areas were written to the output file. They just "happened" to be loadable and runnable at a stretch.

Now ONCE is placed in the MAIN memory area and BSS is placed in an additional memory area. Only MAIN is written to the output file. It becomes more obvious that BSS is "just" defined to share memory with ONCE.

8 years agoDon't presume the stack size to be a multiple of pages.
Oliver Schmidt [Thu, 10 Mar 2016 09:07:09 +0000 (10:07 +0100)]
Don't presume the stack size to be a multiple of pages.

8 years agoMerge pull request #274 from bbbradsmith/doc-cc65-intern
Oliver Schmidt [Tue, 8 Mar 2016 20:50:18 +0000 (21:50 +0100)]
Merge pull request #274 from bbbradsmith/doc-cc65-intern

New documentation: cc65-intern.sgml

8 years agoUse AX paradigm for stack initalization.
Oliver Schmidt [Mon, 7 Mar 2016 00:44:19 +0000 (01:44 +0100)]
Use AX paradigm for stack initalization.

8 years agoRenamed RAM to MAIN for all disk based targets.
Oliver Schmidt [Mon, 7 Mar 2016 00:28:55 +0000 (01:28 +0100)]
Renamed RAM to MAIN for all disk based targets.

The name RAM doesn't make much sense in general for a memeory area because i.e. the zero page is for sure RAM but is not part of the memory area named RAM.

For disk based targets it makes sense to put the disk file more into focus and here MAIN means the main part of the file - in contrast to some header.

Only for ROM based targets the name RAM is kept as it makes sense to focus on the difference between RAM and ROM.

8 years agoRenamed INITBSS to INIT and INIT to ONCE.
Oliver Schmidt [Sun, 6 Mar 2016 20:26:22 +0000 (21:26 +0100)]
Renamed INITBSS to INIT and INIT to ONCE.

The way we want to use the INITBSS segment - and especially the fact that it won't have the type bss on all ROM based targets - means that the name INITBSS is misleading. After all INIT is the best name from my perspective as it serves several purposes and therefore needs a rather generic name.

Unfortunately this means that the current INIT segment needs to be renamed too. Looking for a short (ideally 4 letter) name I came up with ONCE as it contains all code (and data) accessed only once during initialization.

8 years agoMerge pull request #269 from jbrandwood/squarebracket
Oliver Schmidt [Thu, 3 Mar 2016 08:07:21 +0000 (09:07 +0100)]
Merge pull request #269 from jbrandwood/squarebracket

New ".feature" to use brackets instead of parens for 6502 indirect addressing.

8 years agocc65-intern update minor change notes from greg-king5 274/head
Brad Smith [Thu, 3 Mar 2016 02:01:46 +0000 (21:01 -0500)]
cc65-intern update minor change notes from greg-king5

8 years agoMerge remote-tracking branch 'refs/remotes/cc65/master' into doc-cc65-intern
Brad Smith [Thu, 3 Mar 2016 02:01:04 +0000 (21:01 -0500)]
Merge remote-tracking branch 'refs/remotes/cc65/master' into doc-cc65-intern

8 years agocc65-intern adjusting mailing address
Brad Smith [Wed, 2 Mar 2016 07:03:23 +0000 (02:03 -0500)]
cc65-intern adjusting mailing address

8 years agocc65-intern sgml fixes
Brad Smith [Wed, 2 Mar 2016 06:58:44 +0000 (01:58 -0500)]
cc65-intern sgml fixes

8 years agoMerge pull request #273 from mrdudz/emddocs
Oliver Schmidt [Sun, 28 Feb 2016 20:53:46 +0000 (21:53 +0100)]
Merge pull request #273 from mrdudz/emddocs

updated docs with recently added extended memory drivers

8 years agofixed copypaste errors 273/head
mrdudz [Sun, 28 Feb 2016 20:39:49 +0000 (21:39 +0100)]
fixed copypaste errors

8 years agoupdated docs with recently added extended memory drivers
mrdudz [Sun, 28 Feb 2016 19:12:28 +0000 (20:12 +0100)]
updated docs with recently added extended memory drivers

8 years agoLoad INITBSS segment from disk.
Oliver Schmidt [Sun, 28 Feb 2016 18:29:37 +0000 (19:29 +0100)]
Load INITBSS segment from disk.

Conceptually the INITBSS segment is not initialized in any way. Therefore it makes sense to not load it from disk. However the INIT segment has to be loaded from disk and therefore moved to its run location above the INITBSS segment. The necessary move routine increases runtime RAM usage :-(

Therefore we now "unnecessarily" load the INITBSS segment from disk too meaning that the INIT segment is loaded at its run location. Therefore there's no need for the move routine anymore.

After all we trade disk space for (runtime) RAM space - an easy decision ;-)

Notes:

- The code allowing to re-run a program without re-load present so far could not have worked as far as I can see as it only avoided to re-run the move routine but still tried to re-run the code in the INIT segment that was clobbered by zeroing the BSS. Therefore I removed the code in question altogether. I'm personally not into this "dirty re-run" but if someone wants to add an actually working solution I won't block that.

- INITBSS is intentionally not just merged with the DATA segment as ROM-based targets can't reuse the INIT segment for the BSS and therefore have no reason to place the INIT segment above INITBSS.

- Because ROM-based targets don't copy INITBSS from the ROM (like it is done with the DATA segment) all users of INITBSS _MUST_NOT_ presume INITBSS to be initialized with zeros!

8 years agoMerge pull request #238 from mrdudz/gamate
Bob Andrews [Sat, 27 Feb 2016 17:44:26 +0000 (18:44 +0100)]
Merge pull request #238 from mrdudz/gamate

Bit Corporation 'Gamate' support

8 years agoMerge pull request #241 from blackystardust/c128-function-ram-emd
Bob Andrews [Sat, 27 Feb 2016 17:08:55 +0000 (18:08 +0100)]
Merge pull request #241 from blackystardust/c128-function-ram-emd

C128 function ram emd

8 years agoMerge pull request #271 from silverdr/blackystardust_pr_post_review
Oliver Schmidt [Fri, 26 Feb 2016 23:55:11 +0000 (00:55 +0100)]
Merge pull request #271 from silverdr/blackystardust_pr_post_review

Blackystardust pr post review

8 years agoMerge branch 'blackystardust_pr_post_review' of github.com:silverdr/cc65 into blackys... 271/head
Patrycjusz R. Łogiewa [Fri, 26 Feb 2016 22:56:22 +0000 (23:56 +0100)]
Merge branch 'blackystardust_pr_post_review' of github.com:silverdr/cc65 into blackystardust_pr_post_review

8 years agoblackystardust pull request with post-review changes
silverdr [Fri, 26 Feb 2016 22:51:37 +0000 (23:51 +0100)]
blackystardust pull request with post-review changes

8 years agoblackystardust pull request with post-review changes
Patrycjusz R. Łogiewa [Fri, 26 Feb 2016 22:51:37 +0000 (23:51 +0100)]
blackystardust pull request with post-review changes

8 years agoMerge pull request #1 from cc65/master
silverdr [Fri, 26 Feb 2016 22:42:50 +0000 (23:42 +0100)]
Merge pull request #1 from cc65/master

sync

8 years agorevise note on prototypes/K&R conventions
Brad Smith [Fri, 26 Feb 2016 22:33:46 +0000 (17:33 -0500)]
revise note on prototypes/K&R conventions

8 years agodraft of cc65-intern document
Brad Smith [Fri, 26 Feb 2016 22:11:11 +0000 (17:11 -0500)]
draft of cc65-intern document

8 years agoAdd indirect JMP examples and fix typos in the documentation. 269/head
John Brandwood [Fri, 26 Feb 2016 16:10:11 +0000 (08:10 -0800)]
Add indirect JMP examples and fix typos in the documentation.

8 years agoAdd optional feature to use brackets instead of parens for 6502 indirect addressing.
John Brandwood [Thu, 25 Feb 2016 20:40:31 +0000 (12:40 -0800)]
Add optional feature to use brackets instead of parens for 6502 indirect addressing.

8 years agoMinor fix
Oliver Schmidt [Thu, 21 Jan 2016 19:51:17 +0000 (20:51 +0100)]
Minor fix

8 years agoAdded Watara.
Oliver Schmidt [Thu, 21 Jan 2016 19:49:21 +0000 (20:49 +0100)]
Added Watara.

8 years agoFixed #258.
Oliver Schmidt [Sat, 16 Jan 2016 21:41:14 +0000 (22:41 +0100)]
Fixed #258.

8 years agoMerge pull request #257 from greg-king5/actor-lineinfo
Oliver Schmidt [Sat, 16 Jan 2016 12:39:11 +0000 (13:39 +0100)]
Merge pull request #257 from greg-king5/actor-lineinfo

Make ca65's CONDES-type pseudo-instructions save line numbers correctly.

8 years agoFixed how ca65's CONDES-type pseudo-instructions save line numbers (for error messages). 257/head
Greg King [Fri, 15 Jan 2016 22:18:09 +0000 (17:18 -0500)]
Fixed how ca65's CONDES-type pseudo-instructions save line numbers (for error messages).

8 years agoMerge pull request #256 from polluks/master
Oliver Schmidt [Tue, 5 Jan 2016 20:13:12 +0000 (21:13 +0100)]
Merge pull request #256 from polluks/master

Changed stdout to stderr to separate sim65's output streams. Suggeste…

8 years agoChanged stdout to stderr to separate sim65's output streams. Suggested doc edit. 256/head
polluks [Tue, 5 Jan 2016 16:45:18 +0000 (17:45 +0100)]
Changed stdout to stderr to separate sim65's output streams. Suggested doc edit.

8 years agoMerge pull request #255 from polluks/master
Oliver Schmidt [Tue, 5 Jan 2016 16:26:31 +0000 (17:26 +0100)]
Merge pull request #255 from polluks/master

Some missing docu.

8 years agoUpdated index. 255/head
polluks [Tue, 5 Jan 2016 14:57:18 +0000 (15:57 +0100)]
Updated index.

8 years agoAdded sim65 documentation.
polluks [Tue, 5 Jan 2016 14:45:51 +0000 (15:45 +0100)]
Added sim65 documentation.

8 years agoFixed typos.
polluks [Tue, 5 Jan 2016 14:38:05 +0000 (15:38 +0100)]
Fixed typos.

8 years agoMerge pull request #254 from greg-king5/offset-pointer
Oliver Schmidt [Sat, 2 Jan 2016 12:55:42 +0000 (13:55 +0100)]
Merge pull request #254 from greg-king5/offset-pointer

Fix an unbalanced C stack that happens when a pointer is added to a 32-bit offset.

8 years agoAdded a cc65 regression test for pointer and offset addition operations. 254/head
Greg King [Fri, 1 Jan 2016 16:39:55 +0000 (11:39 -0500)]
Added a cc65 regression test for pointer and offset addition operations.

8 years agoFixed the cc65 code that handled an addition of a pointer to a 32-bit offset.
Greg King [Thu, 31 Dec 2015 22:41:48 +0000 (17:41 -0500)]
Fixed the cc65 code that handled an addition of a pointer to a 32-bit offset.

It didn't demote the offset to int because it looked at the pointer (instead of the offset) which already was 16 bits.

8 years agoMerge pull request #253 from greg-king5/pointer-compares
Oliver Schmidt [Tue, 29 Dec 2015 11:11:33 +0000 (12:11 +0100)]
Merge pull request #253 from greg-king5/pointer-compares

Make cc65 accept comparisons between pointers with different qualifiers.

8 years agoMade cc65 accept comparisons between pointers with different qualifiers (similarly... 253/head
Greg King [Tue, 29 Dec 2015 09:18:17 +0000 (04:18 -0500)]
Made cc65 accept comparisons between pointers with different qualifiers (similarly to subtractions between pointers).

8 years agoMerge pull request #249 from polluks/master
Oliver Schmidt [Sun, 27 Dec 2015 12:40:20 +0000 (13:40 +0100)]
Merge pull request #249 from polluks/master

My first PR

8 years agoAdded chrcvt documentation 249/head
polluks [Sun, 27 Dec 2015 01:09:12 +0000 (02:09 +0100)]
Added chrcvt documentation

8 years agoAmiga support #192
polluks [Sun, 27 Dec 2015 00:26:28 +0000 (01:26 +0100)]
Amiga support #192

8 years agotweaked soft env 238/head
mrdudz [Thu, 24 Dec 2015 23:59:22 +0000 (00:59 +0100)]
tweaked soft env

8 years agoUpdate package index (as recommended by Travis CI).
Oliver Schmidt [Wed, 16 Dec 2015 11:24:47 +0000 (12:24 +0100)]
Update package index (as recommended by Travis CI).

8 years agoMerge pull request #248 from greg-king5/nes-registers
Oliver Schmidt [Wed, 16 Dec 2015 09:40:41 +0000 (10:40 +0100)]
Merge pull request #248 from greg-king5/nes-registers

Remove a const qualifier from <nes.h>.

8 years agoPrograms need to reset NES input controllers by writing to them. 248/head
Greg King [Tue, 15 Dec 2015 16:26:04 +0000 (11:26 -0500)]
Programs need to reset NES input controllers by writing to them.

8 years agoMerge pull request #247 from clbr/master
Oliver Schmidt [Tue, 15 Dec 2015 15:01:54 +0000 (16:01 +0100)]
Merge pull request #247 from clbr/master

nes: Fix reading the second controller

8 years agones: Fix reading the second controller 247/head
Lauri Kasanen [Mon, 14 Dec 2015 17:23:27 +0000 (19:23 +0200)]
nes: Fix reading the second controller

See
http://wiki.nesdev.com/w/index.php/Controller_port_registers

8 years agoMerge pull request #246 from greg-king5/shift-signed-char
Oliver Schmidt [Mon, 14 Dec 2015 17:25:57 +0000 (18:25 +0100)]
Merge pull request #246 from greg-king5/shift-signed-char

Fix a signed char right-shift compiler optimization.

8 years agoAdded another op-code to the test pattern for a right-shift optimizer in cc65. 246/head
Greg King [Mon, 14 Dec 2015 16:50:43 +0000 (11:50 -0500)]
Added another op-code to the test pattern for a right-shift optimizer in cc65.

8 years agoAdded a regression test program for the changes in the right-shift optimizer.
Greg King [Mon, 14 Dec 2015 16:46:30 +0000 (11:46 -0500)]
Added a regression test program for the changes in the right-shift optimizer.

8 years agoExtended a signed char shift optimization, to handle shifts that are longer than...
Greg King [Sun, 13 Dec 2015 22:10:31 +0000 (17:10 -0500)]
Extended a signed char shift optimization, to handle shifts that are longer than 4 bits.

8 years agoFixed a signed char shift optimization so that it won't be used on signed int also.
Greg King [Sun, 13 Dec 2015 12:17:41 +0000 (07:17 -0500)]
Fixed a signed char shift optimization so that it won't be used on signed int also.

(It would lose significant bits from the high byte.)

8 years agoFixed soft80 shutdown.
Oliver Schmidt [Wed, 2 Dec 2015 20:34:08 +0000 (21:34 +0100)]
Fixed soft80 shutdown.

A call to $FDA3 cannot be used because it re-enables the BASIC ROM. If a large program (such as Contiki's webbrowser80) has destructor code or data "behind" that ROM, then the program might crash when it tries to quit gracefully. Changing that code to set CIA2_PRA works well enough.

8 years agoMerge pull request #240 from blackystardust/fix-c128-ram-rts
Oliver Schmidt [Wed, 2 Dec 2015 09:40:06 +0000 (10:40 +0100)]
Merge pull request #240 from blackystardust/fix-c128-ram-rts

Fixed the c128 bank 1 emd.

8 years agoRenamed MMU_CFG_INT_FROM -> MMU_CFG_IFROM and MMU_CFG_EXT_FROM -> MMU_CFG_EFROM 241/head
Marco van den Heuvel [Wed, 2 Dec 2015 08:30:30 +0000 (00:30 -0800)]
Renamed MMU_CFG_INT_FROM -> MMU_CFG_IFROM and MMU_CFG_EXT_FROM -> MMU_CFG_EFROM

8 years agooptimized the sei/cli pairing a bit. 240/head
Marco van den Heuvel [Wed, 2 Dec 2015 08:21:55 +0000 (00:21 -0800)]
optimized the sei/cli pairing a bit.

8 years agooptimized the sei/cli pairing a bit for internal function ram emd as well.
Marco van den Heuvel [Wed, 2 Dec 2015 08:17:29 +0000 (00:17 -0800)]
optimized the sei/cli pairing a bit for internal function ram emd as well.

8 years agooptimized the sei/cli pairing a bit.
Marco van den Heuvel [Wed, 2 Dec 2015 08:14:56 +0000 (00:14 -0800)]
optimized the sei/cli pairing a bit.

8 years agofixup conio.c some more. also includes merge of upstream/master because git is retarded.
mrdudz [Tue, 1 Dec 2015 23:13:32 +0000 (00:13 +0100)]
fixup conio.c some more. also includes merge of upstream/master because git is retarded.

8 years agoMade conio program compatible with joystick-only target(s).
Oliver Schmidt [Tue, 1 Dec 2015 22:06:51 +0000 (23:06 +0100)]
Made conio program compatible with joystick-only target(s).

8 years agofix comments
mrdudz [Tue, 1 Dec 2015 15:55:02 +0000 (16:55 +0100)]
fix comments

8 years agofix grammar
mrdudz [Tue, 1 Dec 2015 15:38:00 +0000 (16:38 +0100)]
fix grammar

8 years agoMerge pull request #237 from blackystardust/master
Oliver Schmidt [Tue, 1 Dec 2015 15:18:31 +0000 (16:18 +0100)]
Merge pull request #237 from blackystardust/master

Added a menu to em-test.c and a struct that holds the available emd's…

8 years agoFinished adding c128 internal/external function ram emd's.
Marco van den Heuvel [Tue, 1 Dec 2015 04:14:45 +0000 (20:14 -0800)]
Finished adding c128 internal/external function ram emd's.

8 years agofix hello.c
mrdudz [Mon, 30 Nov 2015 18:48:10 +0000 (19:48 +0100)]
fix hello.c

8 years agonaive music test
mrdudz [Mon, 30 Nov 2015 18:16:28 +0000 (19:16 +0100)]
naive music test

8 years agoFixed emd driver names for atari-xl and apple2e. 237/head
Marco van den Heuvel [Mon, 30 Nov 2015 18:15:28 +0000 (10:15 -0800)]
Fixed emd driver names for atari-xl and apple2e.

8 years agoStarted on making c128 function ram emd's.
Marco van den Heuvel [Mon, 30 Nov 2015 17:53:30 +0000 (09:53 -0800)]
Started on making c128 function ram emd's.

8 years agoadded black line :)
mrdudz [Mon, 30 Nov 2015 17:49:52 +0000 (18:49 +0100)]
added black line :)

8 years agofixed stuff according to Olivers review
mrdudz [Mon, 30 Nov 2015 17:44:04 +0000 (18:44 +0100)]
fixed stuff according to Olivers review

8 years agoFixed the c128 ram (bank 1) emd.
Marco van den Heuvel [Mon, 30 Nov 2015 07:04:23 +0000 (23:04 -0800)]
Fixed the c128 ram (bank 1) emd.

8 years agofix typo
mrdudz [Sun, 29 Nov 2015 21:00:59 +0000 (22:00 +0100)]
fix typo

8 years agofix docs
mrdudz [Sun, 29 Nov 2015 20:15:28 +0000 (21:15 +0100)]
fix docs

8 years agodont use that silly buffer
mrdudz [Sun, 29 Nov 2015 20:15:10 +0000 (21:15 +0100)]
dont use that silly buffer

8 years agoRemoved an 'rts'.
Marco van den Heuvel [Sun, 29 Nov 2015 19:35:25 +0000 (11:35 -0800)]
Removed an 'rts'.

8 years agomore cleanup
mrdudz [Sun, 29 Nov 2015 19:04:10 +0000 (20:04 +0100)]
more cleanup

8 years agoChanged according to suggestions.
Marco van den Heuvel [Sun, 29 Nov 2015 18:50:22 +0000 (10:50 -0800)]
Changed according to suggestions.

8 years agomoved cart header into seperate file, moved nmi stub into several file, tweaked linke...
mrdudz [Sun, 29 Nov 2015 15:01:36 +0000 (16:01 +0100)]
moved cart header into seperate file, moved nmi stub into several file, tweaked linker config

8 years agoAdded a menu to em-test.c and a struct that holds the available emd's, this way the...
Marco van den Heuvel [Sun, 29 Nov 2015 06:06:32 +0000 (22:06 -0800)]
Added a menu to em-test.c and a struct that holds the available emd's, this way the user that wants to test an emd can use the menu to select which one to test.

8 years agoupdated
mrdudz [Sun, 29 Nov 2015 00:24:01 +0000 (01:24 +0100)]
updated

8 years agoconio and most other stuff working now
mrdudz [Sun, 29 Nov 2015 00:14:59 +0000 (01:14 +0100)]
conio and most other stuff working now

8 years agoMerge pull request #236 from fo-fo/master
Oliver Schmidt [Thu, 26 Nov 2015 19:19:14 +0000 (20:19 +0100)]
Merge pull request #236 from fo-fo/master

Escaping of spaces in ca65 dependency files

8 years agoImplemented escaping of spaces in ca65 dependency files. Largely based on input.c... 236/head
f [Thu, 26 Nov 2015 17:00:47 +0000 (19:00 +0200)]
Implemented escaping of spaces in ca65 dependency files. Largely based on input.c from cc65 (WriteEscaped was copied verbatim).

9 years agoMerge pull request #233 from mrdudz/soft80shutdown
Oliver Schmidt [Mon, 23 Nov 2015 09:24:03 +0000 (10:24 +0100)]
Merge pull request #233 from mrdudz/soft80shutdown

reset screen editor at shutdown

9 years agoreset screen editor at shutdown 233/head
mrdudz [Sun, 22 Nov 2015 18:20:58 +0000 (19:20 +0100)]
reset screen editor at shutdown

9 years agosome more fiddling
mrdudz [Sun, 22 Nov 2015 18:02:47 +0000 (19:02 +0100)]
some more fiddling

9 years agoMerge pull request #232 from greg-king5/arg-count
Oliver Schmidt [Tue, 17 Nov 2015 20:23:30 +0000 (21:23 +0100)]
Merge pull request #232 from greg-king5/arg-count

Fix ca65's ".paramcount" Assembly-code read-only variable.

9 years agoFixed the ca65 Assembly-code variable ".paramcount". 232/head
Greg King [Tue, 17 Nov 2015 19:11:30 +0000 (14:11 -0500)]
Fixed the ca65 Assembly-code variable ".paramcount".

Fixed how it's described in the ca65 document.

9 years agoinitial import of the gamate stuff
mrdudz [Sat, 14 Nov 2015 12:15:29 +0000 (13:15 +0100)]
initial import of the gamate stuff

9 years agoMerge pull request #229 from greg-king5/nes-registers
Oliver Schmidt [Thu, 12 Nov 2015 12:20:45 +0000 (13:20 +0100)]
Merge pull request #229 from greg-king5/nes-registers

Update the <nes.h> include file.

9 years agoAdded C declarations of the NES's I/O registers to <nes.h>. 229/head
Greg King [Thu, 12 Nov 2015 10:40:47 +0000 (05:40 -0500)]
Added C declarations of the NES's I/O registers to <nes.h>.

9 years agoMerge pull request #227 from mrdudz/soft80syms
Oliver Schmidt [Sat, 7 Nov 2015 12:37:46 +0000 (13:37 +0100)]
Merge pull request #227 from mrdudz/soft80syms

remove unneeded exports

9 years agoremove unneeded exports 227/head
mrdudz [Sat, 7 Nov 2015 10:45:38 +0000 (11:45 +0100)]
remove unneeded exports

9 years agoMerge pull request #226 from greg-king5/pce-memset
Oliver Schmidt [Sat, 7 Nov 2015 10:37:36 +0000 (11:37 +0100)]
Merge pull request #226 from greg-king5/pce-memset

Add a PC-Engine version of memset().