]> git.sur5r.net Git - cc65/log
cc65
9 years agoupdated docs
mrdudz [Sun, 18 Oct 2015 21:57:58 +0000 (23:57 +0200)]
updated docs

9 years agomove variables into INITBSS
mrdudz [Thu, 15 Oct 2015 13:11:05 +0000 (15:11 +0200)]
move variables into INITBSS

9 years agoMerge remote-tracking branch 'upstream/master' into soft80
mrdudz [Thu, 15 Oct 2015 13:07:44 +0000 (15:07 +0200)]
Merge remote-tracking branch 'upstream/master' into soft80

9 years agoAdjusted current working directory initialization on Apple and Atari.
Oliver Schmidt [Wed, 14 Oct 2015 22:15:38 +0000 (00:15 +0200)]
Adjusted current working directory initialization on Apple and Atari.

Moving __cwd from BSS into INITBSS does of course ;-) not only impact the CBM targets but all targets with disk I/O support.

Note: Code using `__cwd-1` may trigger an ld65 range error because __cwd may end up at the very begining of a segment. As far as I see this is an ld65 bug which I'm not try to fix - at least here.

9 years agoChanged run location of INIT segment.
Oliver Schmidt [Wed, 14 Oct 2015 20:52:09 +0000 (22:52 +0200)]
Changed run location of INIT segment.

So far the INIT segment was run from the later heap+stack. Now the INIT segment is run from the later BSS. The background is that so far the INIT segment was pretty small (from $80 to $180 bytes). But upcoming changes will increase the INIT segment in certain scenarios up to ~ $1000 bytes. So programs with very limited heap+stack might just not been able to move the INIT segment to its run location. But moving the INIT segment to the later BSS allows it to occupy the later BSS+heap+stack.

In order to allow that the constructors are _NOT_ allowed anymore to access the BSS. Rather they must use the DATA segment or the new INITBSS segment. The latter isn't cleared at any point so the constructors may use it to expose values to the main program. However they must make sure to always write the values as they are not pre-initialized.

9 years agoremove deleted function from comment
mrdudz [Wed, 14 Oct 2015 15:52:14 +0000 (17:52 +0200)]
remove deleted function from comment

9 years agosome comments
mrdudz [Wed, 14 Oct 2015 15:50:44 +0000 (17:50 +0200)]
some comments

9 years agofix bordercolor in test
mrdudz [Wed, 14 Oct 2015 15:34:29 +0000 (17:34 +0200)]
fix bordercolor in test

9 years agoremove soft80_bordercolor override
mrdudz [Wed, 14 Oct 2015 15:33:58 +0000 (17:33 +0200)]
remove soft80_bordercolor override

9 years agosplit regular color.s into color.s and bordercolor.s
mrdudz [Wed, 14 Oct 2015 15:25:35 +0000 (17:25 +0200)]
split regular color.s into color.s and bordercolor.s

9 years agoupdate conio test
mrdudz [Wed, 14 Oct 2015 15:24:42 +0000 (17:24 +0200)]
update conio test

9 years agouse 'soft80_internal_cellcolor' for the current cell color, and CHARCOLOR for the...
mrdudz [Wed, 14 Oct 2015 15:24:16 +0000 (17:24 +0200)]
use 'soft80_internal_cellcolor' for the current cell color, and CHARCOLOR for the actual textcolor

9 years agoAccording to the contributor the VGA data is accessed only by the constructor.
Oliver Schmidt [Wed, 14 Oct 2015 09:50:54 +0000 (11:50 +0200)]
According to the contributor the VGA data is accessed only by the constructor.

9 years agoMerge pull request #215 from greg-king5/c64-init
Oliver Schmidt [Wed, 14 Oct 2015 08:43:11 +0000 (10:43 +0200)]
Merge pull request #215 from greg-king5/c64-init

Save space by using the apple2 target's INIT overlay scheme on the c64 target.

9 years agoupdated conio test
mrdudz [Tue, 13 Oct 2015 02:14:23 +0000 (04:14 +0200)]
updated conio test

9 years agoanother size optimization, make bgcolor() much more robust
mrdudz [Tue, 13 Oct 2015 02:14:04 +0000 (04:14 +0200)]
another size optimization, make bgcolor() much more robust

9 years agomove some stuff to init segment, saves roughly 1480 bytes :)
mrdudz [Mon, 12 Oct 2015 21:39:47 +0000 (23:39 +0200)]
move some stuff to init segment, saves roughly 1480 bytes :)

9 years agoremove chline/cvline dupes
mrdudz [Mon, 12 Oct 2015 19:23:27 +0000 (21:23 +0200)]
remove chline/cvline dupes

9 years agoMerge remote-tracking branch 'upstream/master' into soft80
mrdudz [Mon, 12 Oct 2015 19:13:32 +0000 (21:13 +0200)]
Merge remote-tracking branch 'upstream/master' into soft80

9 years agoAllow to override chars used for horizontal and vertical lines.
Oliver Schmidt [Mon, 12 Oct 2015 19:04:06 +0000 (21:04 +0200)]
Allow to override chars used for horizontal and vertical lines.

9 years agoexport mouse driver related symbols
mrdudz [Mon, 12 Oct 2015 19:02:48 +0000 (21:02 +0200)]
export mouse driver related symbols

9 years agoincrease conio constructor priority
mrdudz [Mon, 12 Oct 2015 18:46:53 +0000 (20:46 +0200)]
increase conio constructor priority

9 years agoMerge remote-tracking branch 'upstream/master' into soft80
mrdudz [Mon, 12 Oct 2015 18:43:19 +0000 (20:43 +0200)]
Merge remote-tracking branch 'upstream/master' into soft80

9 years agostyle issues
mrdudz [Mon, 12 Oct 2015 18:38:06 +0000 (20:38 +0200)]
style issues

9 years agoAllow to override mouse sprite location data.
Oliver Schmidt [Mon, 12 Oct 2015 18:18:13 +0000 (20:18 +0200)]
Allow to override mouse sprite location data.

9 years agosome renaming, preparing plot table names
mrdudz [Mon, 12 Oct 2015 17:57:33 +0000 (19:57 +0200)]
some renaming, preparing plot table names

9 years agoinverted result for checkchar, saving some bytes and cycles
mrdudz [Mon, 12 Oct 2015 17:03:50 +0000 (19:03 +0200)]
inverted result for checkchar, saving some bytes and cycles

9 years agooptimize charcode conversion, shorter and faster now :)
mrdudz [Mon, 12 Oct 2015 16:53:55 +0000 (18:53 +0200)]
optimize charcode conversion, shorter and faster now :)

9 years agoremove some commented out code
mrdudz [Mon, 12 Oct 2015 16:09:50 +0000 (18:09 +0200)]
remove some commented out code

9 years agosome code shuffling to get rid of long branches
mrdudz [Mon, 12 Oct 2015 16:01:48 +0000 (18:01 +0200)]
some code shuffling to get rid of long branches

9 years agosize optimization
mrdudz [Mon, 12 Oct 2015 15:12:44 +0000 (17:12 +0200)]
size optimization

9 years agocheck for space bottom up, which is faster for the average case
mrdudz [Mon, 12 Oct 2015 14:15:40 +0000 (16:15 +0200)]
check for space bottom up, which is faster for the average case

9 years agofix some style issues
mrdudz [Mon, 12 Oct 2015 13:54:08 +0000 (15:54 +0200)]
fix some style issues

9 years agomaintain lsb of cursor x position internally, saves some bytes and some cycles too :)
mrdudz [Mon, 12 Oct 2015 13:44:41 +0000 (15:44 +0200)]
maintain lsb of cursor x position internally, saves some bytes and some cycles too :)

9 years agomoved bordercolor function into a seperate file
mrdudz [Mon, 12 Oct 2015 13:18:36 +0000 (15:18 +0200)]
moved bordercolor function into a seperate file

9 years agomove internal text/bgcolor variables into the file that also contains the init code...
mrdudz [Mon, 12 Oct 2015 13:04:55 +0000 (15:04 +0200)]
move internal text/bgcolor variables into the file that also contains the init code for them. also rename them to avoid namespace pollution

9 years agoadded some more comments and -headers
mrdudz [Mon, 12 Oct 2015 12:40:12 +0000 (14:40 +0200)]
added some more comments and -headers

9 years agomove charset to seperate file again, added comments on charset layout
mrdudz [Sun, 11 Oct 2015 15:13:28 +0000 (17:13 +0200)]
move charset to seperate file again, added comments on charset layout

9 years agoprint a space for 0x0a and 0x0d in the char matrix
mrdudz [Sun, 11 Oct 2015 15:07:48 +0000 (17:07 +0200)]
print a space for 0x0a and 0x0d in the char matrix

9 years agoFixed stupid adressing mode bug.
Oliver Schmidt [Sat, 10 Oct 2015 09:15:43 +0000 (11:15 +0200)]
Fixed stupid adressing mode bug.

Thanks Greg for pointing out :-)

9 years agoupdated conio test
mrdudz [Fri, 9 Oct 2015 21:39:55 +0000 (23:39 +0200)]
updated conio test

9 years agorewrote color voodoo
mrdudz [Fri, 9 Oct 2015 21:39:37 +0000 (23:39 +0200)]
rewrote color voodoo

9 years agoMinor style adjustment.
Oliver Schmidt [Fri, 9 Oct 2015 20:18:51 +0000 (22:18 +0200)]
Minor style adjustment.

9 years agoConsistently place constructors (and their exclusive subroutines) in "INIT".
Oliver Schmidt [Fri, 9 Oct 2015 19:44:20 +0000 (21:44 +0200)]
Consistently place constructors (and their exclusive subroutines) in "INIT".

9 years agoKeep low level VIC sprite stuff out of user code.
Oliver Schmidt [Fri, 9 Oct 2015 16:33:35 +0000 (18:33 +0200)]
Keep low level VIC sprite stuff out of user code.

9 years agoExplained why two variables were moved out of the BSS segment. 215/head
Greg King [Fri, 9 Oct 2015 16:00:41 +0000 (12:00 -0400)]
Explained why two variables were moved out of the BSS segment.

9 years agoAccording to the contributor the prio wasn't intentionally set.
Oliver Schmidt [Fri, 9 Oct 2015 11:42:25 +0000 (13:42 +0200)]
According to the contributor the prio wasn't intentionally set.

9 years agouse default prio for the constructor
mrdudz [Fri, 9 Oct 2015 11:40:10 +0000 (13:40 +0200)]
use default prio for the constructor

9 years agosome cleanup/rework
mrdudz [Fri, 9 Oct 2015 11:34:23 +0000 (13:34 +0200)]
some cleanup/rework

9 years agosome more rework, second attempt on fixing the color issues. added ifdefs to disable...
mrdudz [Thu, 8 Oct 2015 18:43:25 +0000 (20:43 +0200)]
some more rework, second attempt on fixing the color issues. added ifdefs to disable the color voodoo alltogether for debugging purposes.

9 years agoReduced c64-overlay.cfg's size by factoring out a different common expression.
Greg King [Thu, 8 Oct 2015 10:11:37 +0000 (06:11 -0400)]
Reduced c64-overlay.cfg's size by factoring out a different common expression.

9 years agoRestored the old C-stack initiation code.
Greg King [Thu, 8 Oct 2015 09:05:48 +0000 (05:05 -0400)]
Restored the old C-stack initiation code.

I had forgotten that the stack must be put below the CBM overlays.

9 years agoReduced the size of the moveinit subroutine.
Greg King [Wed, 7 Oct 2015 18:56:14 +0000 (14:56 -0400)]
Reduced the size of the moveinit subroutine.

Made other changes that were recommended by Oliver.
* Changed its name from move_init to moveinit.
* Used self-modifying code in the subroutine.
* The INIT segment doesn't need to be optional (it's used by the start-up file).

9 years agoattempted fix for the color problem noticed by oliver
mrdudz [Tue, 6 Oct 2015 18:18:40 +0000 (20:18 +0200)]
attempted fix for the color problem noticed by oliver

9 years agooptimized clrscr for size
mrdudz [Tue, 6 Oct 2015 17:33:43 +0000 (19:33 +0200)]
optimized clrscr for size

9 years agoFixed bogus formatting of recent contribution.
Oliver Schmidt [Mon, 5 Oct 2015 14:28:16 +0000 (16:28 +0200)]
Fixed bogus formatting of recent contribution.

I wasn't in the mood for discussion ;-)

9 years agoMerge pull request #217 from clbr/master
Oliver Schmidt [Mon, 5 Oct 2015 14:24:53 +0000 (16:24 +0200)]
Merge pull request #217 from clbr/master

Some nes documentation updates, joypad defines

9 years agones: Expose and document all joypad keys 217/head
Lauri Kasanen [Mon, 5 Oct 2015 14:19:36 +0000 (17:19 +0300)]
nes: Expose and document all joypad keys

9 years agones: Document whether waitvblank waits for the start or end of vblank
Lauri Kasanen [Mon, 5 Oct 2015 14:18:53 +0000 (17:18 +0300)]
nes: Document whether waitvblank waits for the start or end of vblank

9 years agoAdapted, to the c64 target, the INIT-segment overlay scheme from the apple2 targets.
Greg King [Mon, 5 Oct 2015 09:47:43 +0000 (05:47 -0400)]
Adapted, to the c64 target, the INIT-segment overlay scheme from the apple2 targets.

When a program starts running, INIT is moved from one place to another place.  Then, INIT's code is executed; and, the first place is re-used for variables.  After the INIT code has finished, the second place can be re-used by the heap and the C stack.  That means that initiation code and data won't waste any RAM space after they stop being needed.

9 years agofix clrscr so it doesnt wipe sprite pointers
mrdudz [Thu, 1 Oct 2015 15:16:02 +0000 (17:16 +0200)]
fix clrscr so it doesnt wipe sprite pointers

9 years agoSCREEN->screensize
mrdudz [Thu, 1 Oct 2015 13:03:11 +0000 (15:03 +0200)]
SCREEN->screensize

9 years agoMerge pull request #214 from greg-king5/cbm-exec
Oliver Schmidt [Wed, 30 Sep 2015 18:52:31 +0000 (20:52 +0200)]
Merge pull request #214 from greg-king5/cbm-exec

Make the CBM exec() work in gigantic programs.

9 years agoMade the Commodore version of exec() work in programs that are so big that they load... 214/head
Greg King [Mon, 28 Sep 2015 15:27:39 +0000 (11:27 -0400)]
Made the Commodore version of exec() work in programs that are so big that they load into all of BASIC RAM.

The function won't cause an "out of memory" error.

9 years agoadded input test
mrdudz [Mon, 28 Sep 2015 15:12:33 +0000 (17:12 +0200)]
added input test

9 years agofixed kplot
mrdudz [Mon, 28 Sep 2015 15:12:20 +0000 (17:12 +0200)]
fixed kplot

9 years agosome cleanup, checked usage of __bgcolor and __textcolor
mrdudz [Mon, 28 Sep 2015 14:10:11 +0000 (16:10 +0200)]
some cleanup, checked usage of __bgcolor and __textcolor

9 years agodont use seperate file for charset data
mrdudz [Mon, 28 Sep 2015 13:57:16 +0000 (15:57 +0200)]
dont use seperate file for charset data

9 years agofix conio test to work on vic20 screen
mrdudz [Mon, 28 Sep 2015 13:29:14 +0000 (15:29 +0200)]
fix conio test to work on vic20 screen

9 years agoadded extra check for graphical chars
mrdudz [Mon, 28 Sep 2015 13:10:57 +0000 (15:10 +0200)]
added extra check for graphical chars

9 years agoremoved duplicate copy of charset and shift it at init time, saves 1k
mrdudz [Sun, 27 Sep 2015 17:34:43 +0000 (19:34 +0200)]
removed duplicate copy of charset and shift it at init time, saves 1k

9 years agoprepend soft80_ to some more internally used functions
mrdudz [Sun, 27 Sep 2015 17:10:06 +0000 (19:10 +0200)]
prepend soft80_ to some more internally used functions

9 years agoinclude bitmap and vram row tables directly rather than generating them (saves space)
mrdudz [Sun, 27 Sep 2015 16:49:30 +0000 (18:49 +0200)]
include bitmap and vram row tables directly rather than generating them (saves space)

9 years agofix initial text- and background colors
mrdudz [Sun, 27 Sep 2015 16:36:53 +0000 (18:36 +0200)]
fix initial text- and background colors

9 years agoinitial commit of soft80 implementation
mrdudz [Sun, 27 Sep 2015 16:12:25 +0000 (18:12 +0200)]
initial commit of soft80 implementation

9 years agoMerge pull request #211 from greg-king5/errno-helpers
Oliver Schmidt [Fri, 25 Sep 2015 20:13:11 +0000 (22:13 +0200)]
Merge pull request #211 from greg-king5/errno-helpers

Move errno helper functions into separately linkable files.

9 years agoMoved two errno helper functions into separate files. 211/head
Greg King [Fri, 25 Sep 2015 18:06:58 +0000 (14:06 -0400)]
Moved two errno helper functions into separate files.

Only the function that actually is needed will be linked.  It is very useful for targets that do not have file-system I/O.

9 years agoMerge pull request #210 from greg-king5/archiver
Oliver Schmidt [Fri, 25 Sep 2015 14:21:47 +0000 (16:21 +0200)]
Merge pull request #210 from greg-king5/archiver

Make an ar65 warning show both object files' names.

9 years agoFixed a warning message. 210/head
Greg King [Fri, 25 Sep 2015 06:31:17 +0000 (02:31 -0400)]
Fixed a warning message.

9 years agoUpdate README.md
Oliver Schmidt [Thu, 24 Sep 2015 08:16:46 +0000 (10:16 +0200)]
Update README.md

9 years agoUpdate README.md
Oliver Schmidt [Thu, 24 Sep 2015 08:14:30 +0000 (10:14 +0200)]
Update README.md

9 years agoUse title case.
Oliver Schmidt [Thu, 24 Sep 2015 08:06:24 +0000 (10:06 +0200)]
Use title case.

9 years agoMerge pull request #177 from mrdudz/pcenginetarget
Oliver Schmidt [Thu, 24 Sep 2015 07:58:28 +0000 (09:58 +0200)]
Merge pull request #177 from mrdudz/pcenginetarget

new target: PC Engine (TurboGrafx16)

9 years agouse 'plot' instead of 'PLOT' 177/head
mrdudz [Sun, 20 Sep 2015 10:18:41 +0000 (12:18 +0200)]
use 'plot' instead of 'PLOT'

9 years agoadded interruptor support
mrdudz [Sat, 19 Sep 2015 13:55:43 +0000 (15:55 +0200)]
added interruptor support

9 years agofixed more flaws found by greg :)
mrdudz [Sat, 19 Sep 2015 13:37:39 +0000 (15:37 +0200)]
fixed more flaws found by greg :)

9 years agoMerge pull request #208 from greg-king5/big-jump
Oliver Schmidt [Fri, 11 Sep 2015 19:06:50 +0000 (21:06 +0200)]
Merge pull request #208 from greg-king5/big-jump

Improve the longjmp() and setjmp() functions.

9 years agoMerge pull request #207 from greg-king5/random-seed
Oliver Schmidt [Fri, 11 Sep 2015 19:02:40 +0000 (21:02 +0200)]
Merge pull request #207 from greg-king5/random-seed

Fix the CBM random-seed generators.

9 years agoImproved longjmp() and setjmp(). 208/head
Greg King [Fri, 11 Sep 2015 18:18:22 +0000 (14:18 -0400)]
Improved longjmp() and setjmp().

9 years agoFixed the random-seed generators for the Commodore targets. 207/head
Greg King [Fri, 11 Sep 2015 14:03:07 +0000 (10:03 -0400)]
Fixed the random-seed generators for the Commodore targets.

They use a byte from the time counter; but, it is stored in big-endian order.

9 years agofixed VDC register assignments
mrdudz [Mon, 7 Sep 2015 10:55:36 +0000 (12:55 +0200)]
fixed VDC register assignments

9 years agoMerge pull request #205 from greg-king5/typo
Oliver Schmidt [Sun, 6 Sep 2015 19:35:32 +0000 (21:35 +0200)]
Merge pull request #205 from greg-king5/typo

Fix " til " typos.

9 years agoFixed the " til " typos. 205/head
Greg King [Sun, 6 Sep 2015 16:23:58 +0000 (12:23 -0400)]
Fixed the " til " typos.

9 years agofix gregs complaints :)
mrdudz [Fri, 4 Sep 2015 12:14:17 +0000 (14:14 +0200)]
fix gregs complaints :)

9 years agoMerge remote-tracking branch 'upstream/master' into pcenginetarget
mrdudz [Fri, 4 Sep 2015 11:40:52 +0000 (13:40 +0200)]
Merge remote-tracking branch 'upstream/master' into pcenginetarget

9 years agoupdated
mrdudz [Fri, 4 Sep 2015 11:38:17 +0000 (13:38 +0200)]
updated

9 years agofixed style issues
mrdudz [Thu, 3 Sep 2015 11:09:18 +0000 (13:09 +0200)]
fixed style issues

9 years agoMerge pull request #203 from greg-king5/multi-comments
Oliver Schmidt [Mon, 31 Aug 2015 15:36:02 +0000 (17:36 +0200)]
Merge pull request #203 from greg-king5/multi-comments

Change multi-line C comments in files that were missed by a previous pull request.

9 years agoMerge pull request #202 from greg-king5/argv-null
Oliver Schmidt [Mon, 31 Aug 2015 15:34:28 +0000 (17:34 +0200)]
Merge pull request #202 from greg-king5/argv-null

Fix the preparation of tool command lines.

9 years agoChanged multi-line C comments in files that I missed in commit 0390c34e88e9512b81ce35... 203/head
Greg King [Sun, 30 Aug 2015 12:43:54 +0000 (08:43 -0400)]
Changed multi-line C comments in files that I missed in commit 0390c34e88e9512b81ce35a9ba36d137d1c80c44.