]> git.sur5r.net Git - cc65/log
cc65
6 years agoMerge pull request #494 from jedeoric/master
Oliver Schmidt [Wed, 27 Sep 2017 07:52:19 +0000 (09:52 +0200)]
Merge pull request #494 from jedeoric/master

[telestrat] Adding some vars, adding getcwd management, changing ZP address and ZP length

6 years agoremove FILENAME_MAX 494/head
jede [Mon, 25 Sep 2017 19:47:05 +0000 (21:47 +0200)]
remove FILENAME_MAX

6 years agoFixing buffer overflow with cwd command (FILENAME_MAX must be at 50 +1 bytes)
jede [Mon, 25 Sep 2017 19:39:57 +0000 (21:39 +0200)]
Fixing buffer overflow with cwd command (FILENAME_MAX must be at 50 +1 bytes)

6 years agocorrecting missing _
jede [Sun, 24 Sep 2017 18:07:02 +0000 (20:07 +0200)]
correcting missing _

6 years agoFixing bug for cwd
jede [Sun, 24 Sep 2017 18:04:50 +0000 (20:04 +0200)]
Fixing bug for cwd

6 years agoInitcwd is now working for telestrat
jede [Sun, 24 Sep 2017 17:23:44 +0000 (19:23 +0200)]
Initcwd is now working for telestrat

6 years agoAdding XVARS primitive
jede [Sun, 24 Sep 2017 17:22:43 +0000 (19:22 +0200)]
Adding XVARS primitive

6 years agoCorrecting missing return line :/
jede [Sun, 24 Sep 2017 09:57:52 +0000 (11:57 +0200)]
Correcting missing return line :/

6 years agocorrecting some return lines
jede [Sun, 24 Sep 2017 09:56:55 +0000 (11:56 +0200)]
correcting some return lines

6 years agoAdd some bytes in ZP block in order to able to link with o65 files
jede [Sun, 24 Sep 2017 09:55:37 +0000 (11:55 +0200)]
Add some bytes in ZP block in order to able to link with o65 files

6 years agoadding some vars
jede [Sun, 24 Sep 2017 09:46:52 +0000 (11:46 +0200)]
adding some vars

6 years agoMerge pull request #487 from polluks/patch-1
greg-king5 [Thu, 14 Sep 2017 16:08:10 +0000 (12:08 -0400)]
Merge pull request #487 from polluks/patch-1

Fixed address in CBM 510 document.

6 years agoFixed address 487/head
Stefan [Wed, 13 Sep 2017 21:51:07 +0000 (23:51 +0200)]
Fixed address

See cbm510.cfg

6 years agoconio.h: include 'creativision.h' when compiling for this target.
Christian Groessler [Tue, 12 Sep 2017 19:57:16 +0000 (21:57 +0200)]
conio.h: include 'creativision.h' when compiling for this target.

6 years agoMade <conio.h> include <atari5200.h> when we compile for the Atari 5200 console.
Greg King [Sun, 10 Sep 2017 16:27:57 +0000 (12:27 -0400)]
Made <conio.h> include <atari5200.h> when we compile for the Atari 5200 console.

atari5200.lib has some conio functions.

6 years agoMerge pull request #482 from greg-king5/pet-kbrepeat
Oliver Schmidt [Wed, 6 Sep 2017 07:19:04 +0000 (09:19 +0200)]
Merge pull request #482 from greg-king5/pet-kbrepeat

Make the CBM Pet kbrepeat() work on both 40-/80-column machines.

6 years agoRemoved an unwanted button mask table from a VIC-20 joystick driver.
Greg King [Tue, 5 Sep 2017 20:56:20 +0000 (16:56 -0400)]
Removed an unwanted button mask table from a VIC-20 joystick driver.

It had put the jump table at the wrong place.  Programs crashed as soon as they tried to initiate the driver.

6 years agoMade the CBM Pet kbrepeat() work on both 40-column and 80-column machines. 482/head
Greg King [Tue, 5 Sep 2017 07:40:34 +0000 (03:40 -0400)]
Made the CBM Pet kbrepeat() work on both 40-column and 80-column machines.

Put the kbrepeat() description in an alphabetical position in the function document.

6 years agoAdded JOY_FIRE.
Oliver Schmidt [Mon, 4 Sep 2017 07:41:19 +0000 (09:41 +0200)]
Added JOY_FIRE.

According to https://en.wikipedia.org/wiki/Atari_8-bit_computer_peripherals it seems appropriate to add a JOY_FIRE definition for the ATARI.

6 years agoMerge pull request #480 from phs/phs/docs-typo
Oliver Schmidt [Mon, 4 Sep 2017 07:15:36 +0000 (09:15 +0200)]
Merge pull request #480 from phs/phs/docs-typo

At most 256 bytes will be reserved

6 years agoReserve space in examples with .res 480/head
Phil Smith [Sun, 3 Sep 2017 02:25:49 +0000 (19:25 -0700)]
Reserve space in examples with .res

6 years agoAt most 256 bytes will be reserved
Phil Smith [Sat, 2 Sep 2017 06:11:54 +0000 (23:11 -0700)]
At most 256 bytes will be reserved

6 years agoRemoved dysfunctional kbrepeatdelay() and kbrepeatrate().
Oliver Schmidt [Wed, 30 Aug 2017 14:37:31 +0000 (16:37 +0200)]
Removed dysfunctional kbrepeatdelay() and kbrepeatrate().

As discussed in https://github.com/cc65/cc65/pull/452 after my premature merge the two functions in question don't work as expected.

Additionally I adjusted several style deviations in the pull request in question.

6 years agoFixed missing name and semicolon in two device structs.
Greg King [Wed, 23 Aug 2017 05:46:57 +0000 (01:46 -0400)]
Fixed missing name and semicolon in two device structs.

6 years agoAdjusted to recent driver interface change.
Oliver Schmidt [Sun, 20 Aug 2017 14:39:07 +0000 (16:39 +0200)]
Adjusted to recent driver interface change.

Please note that this change is absolutely untested!

Apart from the recent driver interface change:
- vic20-stdjoy.s was "slightly broken" because it didn't clear x on return from joy_read.
- vic20-ptvjoy.s was "heavily broken" because it returned a totally different set of bits of the first joystick.

6 years agoMinor style adjustment.
Oliver Schmidt [Sun, 20 Aug 2017 12:53:40 +0000 (14:53 +0200)]
Minor style adjustment.

6 years agoAdjusted to recent driver interface change.
Oliver Schmidt [Sun, 20 Aug 2017 12:25:02 +0000 (14:25 +0200)]
Adjusted to recent driver interface change.

Please note that this change is absolutely untested!

6 years agoMerge pull request #452 from mrdudz/kbrepeat
Oliver Schmidt [Sun, 20 Aug 2017 12:15:37 +0000 (14:15 +0200)]
Merge pull request #452 from mrdudz/kbrepeat

kbrepeatdelay and kbrepeatrate for cbm targets

6 years agoAdjusted to recent driver interface change.
Oliver Schmidt [Sun, 20 Aug 2017 09:49:02 +0000 (11:49 +0200)]
Adjusted to recent driver interface change.

The change is inspired by the code of the standard joystick driver. It is however absolutely untested.

Note: Sites like http://raster.atariportal.cz/english.htm state that there needs to be a delay when reading joysticks via the MultiJoy adapter. There's no such delay in the driver. But I don't dare to decide to add it.

6 years agoadd note on fastcall 452/head
mrdudz [Sat, 19 Aug 2017 17:16:31 +0000 (19:16 +0200)]
add note on fastcall

6 years agouse fastcall
mrdudz [Sat, 19 Aug 2017 17:14:24 +0000 (19:14 +0200)]
use fastcall

6 years agoRemoved joy_masks array.
Oliver Schmidt [Sat, 19 Aug 2017 17:11:28 +0000 (19:11 +0200)]
Removed joy_masks array.

So far the joy_masks array allowed several joystick drivers for a single target to each have different joy_read return values. However this meant that every call to joy_read implied an additional joy_masks lookup to post-process the return value.

Given that almost all targets only come with a single joystick driver this seems an inappropriate overhead. Therefore now the target header files contain constants matching the return value of the joy_read of the joystick driver(s) on that target.

If there indeed are several joystick drivers for a single target they must agree on a common return value for joy_read. In some cases this was alredy the case as there's a "natural" return value for joy_read. However a few joystick drivers need to be adjusted. This may cause some overhead inside the driver. But that is for sure smaller than the overhead introduced by the joy_masks lookup before.

!!! ToDo !!!

The following three joystick drivers become broken with this commit and need to be adjusted:
- atrmj8.s
- c64-numpad.s
- vic20-stdjoy.s

6 years agoMerge branch 'master' into kbrepeat
Bob Andrews [Sun, 6 Aug 2017 18:22:52 +0000 (20:22 +0200)]
Merge branch 'master' into kbrepeat

6 years agoresolve conflict
mrdudz [Sun, 6 Aug 2017 18:20:22 +0000 (20:20 +0200)]
resolve conflict

6 years agoadded documentation for the kbrepeat... functions
mrdudz [Sun, 6 Aug 2017 18:15:35 +0000 (20:15 +0200)]
added documentation for the kbrepeat... functions

6 years agoadded prototypes and proposed constants
mrdudz [Sun, 6 Aug 2017 16:09:40 +0000 (18:09 +0200)]
added prototypes and proposed constants

6 years agoMerge pull request #473 from groessler/something_to_pull
Oliver Schmidt [Wed, 2 Aug 2017 22:46:22 +0000 (00:46 +0200)]
Merge pull request #473 from groessler/something_to_pull

atari5200.inc: fix formatting

6 years agoatari5200.inc: fix formatting 473/head
Christian Groessler [Wed, 2 Aug 2017 21:56:52 +0000 (23:56 +0200)]
atari5200.inc: fix formatting

6 years agoRemoved undesirable empty lines.
Oliver Schmidt [Mon, 31 Jul 2017 11:50:27 +0000 (13:50 +0200)]
Removed undesirable empty lines.

6 years agoMerge pull request #472 from gungwald/master
Oliver Schmidt [Mon, 31 Jul 2017 11:46:20 +0000 (13:46 +0200)]
Merge pull request #472 from gungwald/master

Added doc for file types and aux types

6 years agoMade corrections according to review comments 472/head
Bill Chatfield [Sun, 30 Jul 2017 23:51:23 +0000 (19:51 -0400)]
Made corrections according to review comments

6 years agoMade corrections according to review comments
Bill Chatfield [Sun, 30 Jul 2017 23:49:20 +0000 (19:49 -0400)]
Made corrections according to review comments

6 years agoAdded documentation for setting the file type for fopen.
Bill Chatfield [Sat, 29 Jul 2017 05:25:07 +0000 (01:25 -0400)]
Added documentation for setting the file type for fopen.

6 years agoDocumented _filetype and _auxtype
Bill Chatfield [Fri, 28 Jul 2017 21:44:13 +0000 (17:44 -0400)]
Documented _filetype and _auxtype

6 years agoRemoved 'fire'.
Oliver Schmidt [Fri, 28 Jul 2017 17:19:11 +0000 (19:19 +0200)]
Removed 'fire'.

6 years agoMerge pull request #467 from pmjdebruijn/joy
Oliver Schmidt [Fri, 28 Jul 2017 17:17:50 +0000 (19:17 +0200)]
Merge pull request #467 from pmjdebruijn/joy

joy: refactor generic joy_masks array indices and macros

6 years agoMerge pull request #471 from gungwald/master
Oliver Schmidt [Fri, 28 Jul 2017 16:22:24 +0000 (18:22 +0200)]
Merge pull request #471 from gungwald/master

Added ProDOS file types and auxiliary types

6 years agoCorrected comment formatting 471/head
Bill Chatfield [Fri, 28 Jul 2017 16:16:55 +0000 (12:16 -0400)]
Corrected comment formatting

6 years agoAdded Variables section comment per convention
Bill Chatfield [Fri, 28 Jul 2017 16:12:18 +0000 (12:12 -0400)]
Added Variables section comment per convention

6 years agoMoved file type variables to apple2_filetype.h
Bill Chatfield [Fri, 28 Jul 2017 16:09:58 +0000 (12:09 -0400)]
Moved file type variables to apple2_filetype.h

6 years agoCorrected copyright and moved file type globals
Bill Chatfield [Fri, 28 Jul 2017 16:01:57 +0000 (12:01 -0400)]
Corrected copyright and moved file type globals

The file type globals., _filetype and _auxtype, were moved from apple2.h to this file.

6 years agoRolled back changes to exclude vim swap files
Bill Chatfield [Fri, 28 Jul 2017 15:29:11 +0000 (11:29 -0400)]
Rolled back changes to exclude vim swap files

Only files generated by the tools in the project are to be ignored

6 years agoFinished adding all types and comments
Bill Chatfield [Thu, 27 Jul 2017 18:44:02 +0000 (14:44 -0400)]
Finished adding all types and comments

6 years agoAdded ProDOS file type definitions
Bill Chatfield [Wed, 26 Jul 2017 15:15:49 +0000 (11:15 -0400)]
Added ProDOS file type definitions

6 years agojoy: refactor generic joy_masks array indices and macros 467/head
Pascal de Bruijn [Sat, 22 Jul 2017 13:49:34 +0000 (15:49 +0200)]
joy: refactor generic joy_masks array indices and macros

6 years agoMerge pull request #468 from pmjdebruijn/samples
Oliver Schmidt [Sun, 23 Jul 2017 00:09:20 +0000 (02:09 +0200)]
Merge pull request #468 from pmjdebruijn/samples

make changes

6 years agoMerge pull request #462 from pmjdebruijn/pragma-message
Oliver Schmidt [Sat, 22 Jul 2017 14:54:23 +0000 (16:54 +0200)]
Merge pull request #462 from pmjdebruijn/pragma-message

pragma: add minimalist message pragma implementation

6 years agomake: change uppercase prefix var 468/head
Pascal de Bruijn [Sat, 22 Jul 2017 14:38:50 +0000 (16:38 +0200)]
make: change uppercase prefix var

6 years agosamples: install to subdirectory
Pascal de Bruijn [Sat, 22 Jul 2017 14:33:42 +0000 (16:33 +0200)]
samples: install to subdirectory

6 years agopragma: add minimalist message pragma documentation 462/head
Pascal de Bruijn [Thu, 20 Jul 2017 16:13:39 +0000 (18:13 +0200)]
pragma: add minimalist message pragma documentation

documents 6e93c1ba7332c55eb2067d7be6d20050912ef27d

6 years agoMerge pull request #464 from pmjdebruijn/joy
Oliver Schmidt [Fri, 21 Jul 2017 14:18:26 +0000 (16:18 +0200)]
Merge pull request #464 from pmjdebruijn/joy

expand nes/pce joystick defines

6 years agopce: add system specific joy_masks array indices and macros 464/head
Pascal de Bruijn [Wed, 19 Jul 2017 16:29:35 +0000 (18:29 +0200)]
pce: add system specific joy_masks array indices and macros

6 years agones: add system specific joy_masks array indices and macros
Pascal de Bruijn [Wed, 19 Jul 2017 16:14:44 +0000 (18:14 +0200)]
nes: add system specific joy_masks array indices and macros

6 years agones: remove semiredundant KEY_ defines
Pascal de Bruijn [Wed, 19 Jul 2017 16:02:13 +0000 (18:02 +0200)]
nes: remove semiredundant KEY_ defines

There are already JOY_ defines for most of these, and this should
be expanded upon instead.

6 years agopragma: add minimalist message pragma implementation
Pascal de Bruijn [Tue, 18 Jul 2017 16:12:19 +0000 (18:12 +0200)]
pragma: add minimalist message pragma implementation

for example:

#pragma message ("in a bottle")

results in:

hello.c(207): Note: in a bottle

6 years agoMerge pull request #453 from mrdudz/waitvsync 460/head
Oliver Schmidt [Tue, 18 Jul 2017 13:38:27 +0000 (15:38 +0200)]
Merge pull request #453 from mrdudz/waitvsync

waitvblank for cbm targets

6 years agowait for line 0 instead of last line 453/head
mrdudz [Mon, 17 Jul 2017 23:06:20 +0000 (01:06 +0200)]
wait for line 0 instead of last line

6 years agoadd headers/fix formatting
mrdudz [Mon, 17 Jul 2017 23:04:53 +0000 (01:04 +0200)]
add headers/fix formatting

6 years agodo banking
mrdudz [Mon, 17 Jul 2017 22:41:54 +0000 (00:41 +0200)]
do banking

6 years agooops
mrdudz [Mon, 17 Jul 2017 22:01:15 +0000 (00:01 +0200)]
oops

6 years agoimplement waitvsync for plus4/c16
mrdudz [Mon, 17 Jul 2017 21:55:18 +0000 (23:55 +0200)]
implement waitvsync for plus4/c16

6 years agoadded prototype to cbm.h
mrdudz [Mon, 17 Jul 2017 21:43:08 +0000 (23:43 +0200)]
added prototype to cbm.h

6 years agofix sgml
mrdudz [Mon, 17 Jul 2017 21:31:01 +0000 (23:31 +0200)]
fix sgml

6 years agorename all waitvblank() to waitvsync()
mrdudz [Mon, 17 Jul 2017 21:15:05 +0000 (23:15 +0200)]
rename all waitvblank() to waitvsync()

6 years agoMerged pull request #459 from "pmjdebruijn/pragma".
greg-king5 [Mon, 17 Jul 2017 19:52:16 +0000 (15:52 -0400)]
Merged pull request #459 from "pmjdebruijn/pragma".

pragma: bring pragma_t enum in line with Pragmas struct

6 years agopragma: bring pragma_t enum in line with Pragmas struct 459/head
Pascal de Bruijn [Mon, 17 Jul 2017 17:43:11 +0000 (19:43 +0200)]
pragma: bring pragma_t enum in line with Pragmas struct

fixes an inconsequential inconsistency, might prevent some
confusion in the future.

6 years agoMade DOS 3.3 IRQ statement more general.
Oliver Schmidt [Fri, 30 Jun 2017 07:50:28 +0000 (09:50 +0200)]
Made DOS 3.3 IRQ statement more general.

I recently came across that the question if a driver is compatible with DOS 3.3 isn't about the fact if it actually uses IRQs but if it potentially could use IRQs as the driver kernel pulls in the IRQ handler anyway. This is especially suboptimal in the scenario of statically linked drivers where it is concpetually totally clear at link time they use IRQs or not. Apart from that it might make sense to be able to define on a per-target basis if _any_ of the drivers of a certain class uses IRQs. If that isn't the cases the driver kernel for that driver class for that target could omit IRQ handling too. I'm aware that Uz imagined drivers being loaded which weren't known when the program was linked - but I don't see this.

6 years agoMerge pull request #457 from pfusik/const-arrays
Oliver Schmidt [Fri, 30 Jun 2017 07:28:40 +0000 (09:28 +0200)]
Merge pull request #457 from pfusik/const-arrays

Make some arrays const.

6 years agoMerge pull request #456 from greg-king5/make-dep
Oliver Schmidt [Fri, 30 Jun 2017 07:25:10 +0000 (09:25 +0200)]
Merge pull request #456 from greg-king5/make-dep

Add a makefile dependency for the libraries' "extra" files.

6 years agoFix coding style. 457/head
Piotr Fusik [Fri, 30 Jun 2017 05:35:21 +0000 (07:35 +0200)]
Fix coding style.

6 years agoAdded the extra dependency file's directory as an order-only prerequisite. 456/head
Greg King [Thu, 29 Jun 2017 17:34:10 +0000 (13:34 -0400)]
Added the extra dependency file's directory as an order-only prerequisite.

The extra dependency files are put into different places than the extra object files' location.  Therefore, the rule must pre-make two directories.

6 years agoMake some arrays const.
Piotr Fusik [Wed, 28 Jun 2017 18:43:31 +0000 (20:43 +0200)]
Make some arrays const.

6 years agoAdded a makefile dependency for the libraries' "extra" files.
Greg King [Wed, 28 Jun 2017 09:51:46 +0000 (05:51 -0400)]
Added a makefile dependency for the libraries' "extra" files.

Some of the files in "libsrc/*/extra/" include other library files.  But, the "lib/*.o" files weren't rebuilt when those other files changed.

The new dependency rules must be "bootstrapped".  You must force a rebuild of all of the extra library object files (it will create the dependency files).  Use these commands:

rm lib/*.o
make lib

6 years agoMerge pull request #455 from greg-king5/osic1p-code
Oliver Schmidt [Mon, 26 Jun 2017 12:28:55 +0000 (14:28 +0200)]
Merge pull request #455 from greg-king5/osic1p-code

Add functions that make it easier to write portable programs for OSI computers.

6 years agoAdded two functions that make it easier to write portable programs for Ohio Scientifi... 455/head
Greg King [Mon, 26 Jun 2017 06:34:23 +0000 (02:34 -0400)]
Added two functions that make it easier to write portable programs for Ohio Scientific computers.

6 years agouse BIT so akku wont get trashed at least in 40 cols mode
mrdudz [Wed, 21 Jun 2017 22:19:39 +0000 (00:19 +0200)]
use BIT so akku wont get trashed at least in 40 cols mode

6 years agofixed zp locations provided by polluks :)
mrdudz [Wed, 21 Jun 2017 22:04:42 +0000 (00:04 +0200)]
fixed zp locations provided by polluks :)

6 years agodont trash akku if possible, use VDC register when in 80column mode
mrdudz [Wed, 21 Jun 2017 21:18:00 +0000 (23:18 +0200)]
dont trash akku if possible, use VDC register when in 80column mode

6 years agoMerge pull request #454 from greg-king5/dup-segment
Oliver Schmidt [Sat, 17 Jun 2017 09:25:10 +0000 (11:25 +0200)]
Merge pull request #454 from greg-king5/dup-segment

Stop cc65 from putting redundant .segment directives into its output file.

6 years agoStopped cc65 from putting redundant .segment directives into its Assembly output. 454/head
Greg King [Sat, 17 Jun 2017 01:53:50 +0000 (21:53 -0400)]
Stopped cc65 from putting redundant .segment directives into its Assembly output.

6 years agofixed some stuff, compiles again :)
mrdudz [Sat, 17 Jun 2017 00:37:34 +0000 (02:37 +0200)]
fixed some stuff, compiles again :)

6 years agofixed code a bit so it compiles again :)
mrdudz [Sat, 17 Jun 2017 00:26:54 +0000 (02:26 +0200)]
fixed code a bit so it compiles again :)

6 years agoMerge pull request #450 from greg-king5/gotoxy-label
Oliver Schmidt [Fri, 16 Jun 2017 07:20:29 +0000 (09:20 +0200)]
Merge pull request #450 from greg-king5/gotoxy-label

Add a missing label to some conio cursor movement functions.

6 years agoAdded a missing label to some conio cursor movement functions. 450/head
Greg King [Thu, 15 Jun 2017 20:44:46 +0000 (16:44 -0400)]
Added a missing label to some conio cursor movement functions.

It had prevented other functions, e.g. cputs(), from being linked into a program.

6 years agoMerge pull request #446 from clbr/lz4
Oliver Schmidt [Sat, 10 Jun 2017 21:23:12 +0000 (23:23 +0200)]
Merge pull request #446 from clbr/lz4

Add LZ4 decompression support

6 years agoSmall lz4 optimizations 446/head
Lauri Kasanen [Fri, 9 Jun 2017 13:57:47 +0000 (16:57 +0300)]
Small lz4 optimizations

6 years agoAdd lz4 doc
Lauri Kasanen [Fri, 9 Jun 2017 07:54:50 +0000 (10:54 +0300)]
Add lz4 doc

6 years agoMention the optimizations in a comment
Lauri Kasanen [Fri, 9 Jun 2017 07:42:24 +0000 (10:42 +0300)]
Mention the optimizations in a comment

6 years agoUse hex immediates
Lauri Kasanen [Fri, 9 Jun 2017 07:40:17 +0000 (10:40 +0300)]
Use hex immediates

6 years agoRemove _ from internal vars
Lauri Kasanen [Fri, 9 Jun 2017 07:37:50 +0000 (10:37 +0300)]
Remove _ from internal vars