]> git.sur5r.net Git - cc65/log
cc65
6 years agoRename more stuff from "overlay" to "replace".
Laubzega [Thu, 6 Sep 2018 07:18:39 +0000 (00:18 -0700)]
Rename more stuff from "overlay" to "replace".

6 years agoSegment OVERLAY renamed to REPLACE. Bugfix for read-only segments. Formatting.
Laubzega [Tue, 4 Sep 2018 07:34:28 +0000 (00:34 -0700)]
Segment OVERLAY renamed to REPLACE. Bugfix for read-only segments. Formatting.

6 years agoFix for multiple overlay segments.
Laubzega [Sun, 26 Aug 2018 03:21:12 +0000 (20:21 -0700)]
Fix for multiple overlay segments.

6 years agoAdd segment type "overlay". 739/head
Laubzega [Sat, 25 Aug 2018 17:18:23 +0000 (10:18 -0700)]
Add segment type "overlay".

6 years agoMade cc65's "Illegal escaped character" diagnostic show which code was escaped.
Greg King [Tue, 21 Aug 2018 12:55:49 +0000 (08:55 -0400)]
Made cc65's "Illegal escaped character" diagnostic show which code was escaped.

6 years agoUpdate crt0.s
Stefan [Tue, 21 Aug 2018 07:06:59 +0000 (09:06 +0200)]
Update crt0.s

6 years agoCMOS optimisation 3rd
Stefan [Mon, 20 Aug 2018 21:56:16 +0000 (21:56 +0000)]
CMOS optimisation 3rd

"The decimal flag D is cleared" [...]
http://shu.emuunlim.com/download/pcedocs/pce_cpu.html

6 years agoRemoved the compiler's recovery code for illegal escaped characters.
Greg King [Mon, 20 Aug 2018 21:51:22 +0000 (17:51 -0400)]
Removed the compiler's recovery code for illegal escaped characters.

It caused the error cascade that it was supposed to prevent.

6 years agoUpdate irq.s
Stefan [Mon, 20 Aug 2018 14:55:36 +0000 (16:55 +0200)]
Update irq.s

6 years agoCMOS optimisation
Stefan [Mon, 20 Aug 2018 14:45:52 +0000 (16:45 +0200)]
CMOS optimisation

The Lynx CPU always cleared the flag.

6 years agoseek test: Test some additional error cases.
Patrick Pelletier [Mon, 20 Aug 2018 17:53:35 +0000 (10:53 -0700)]
seek test: Test some additional error cases.

6 years agoseek test: remove trailing newline from filename
Patrick Pelletier [Mon, 20 Aug 2018 17:10:10 +0000 (10:10 -0700)]
seek test: remove trailing newline from filename

Looks like no one ever tried this?  fopen was returning EINVAL because
fgets was leaving a trailing newline at the end of the filename.
(Which is what fgets is documented to do.)

6 years agolseek: Return EINVAL if new position is less than 0 or greater than 2^24 - 1.
Patrick Pelletier [Mon, 20 Aug 2018 15:45:40 +0000 (08:45 -0700)]
lseek: Return EINVAL if new position is less than 0 or greater than 2^24 - 1.

Also, implemented @greg-king5's suggestion to save a byte on error paths.

6 years agolseek: Implement additional feedback from PR #723.
Patrick Pelletier [Mon, 20 Aug 2018 07:56:01 +0000 (00:56 -0700)]
lseek: Implement additional feedback from PR #723.

* Check CPU_ISET_65SC02 rather than APPLE2ENH.
* Set sreg and sreg+1 to $FF on error, to return -1 as a long.

6 years agolseek: use STZ for APPLE2ENH
Patrick Pelletier [Mon, 20 Aug 2018 07:10:51 +0000 (00:10 -0700)]
lseek: use STZ for APPLE2ENH

(As suggested in pull request.)

6 years agoFix ftell() on Apple II to return the correct value.
Patrick Pelletier [Sun, 19 Aug 2018 23:04:42 +0000 (16:04 -0700)]
Fix ftell() on Apple II to return the correct value.

Fixes this issue:
https://github.com/cc65/cc65/issues/722

ftell() returns the value returned by lseek(), and lseek() for the
Apple II wasn't returning a value.

6 years agoAdded more source-code improvements to the conio test program.
Greg King [Mon, 20 Aug 2018 18:42:41 +0000 (14:42 -0400)]
Added more source-code improvements to the conio test program.

Also, made the f6/f5 function keys change the border color instead of the background color.

6 years agoImproved CONIO test in several ways.
Oliver Schmidt [Sun, 19 Aug 2018 22:29:29 +0000 (00:29 +0200)]
Improved CONIO test in several ways.

- Use more consistent source code style.
- Don't presume that CH_F... constants are present.
- Allow to quit the program via 'Enter'.

6 years agoImplemented line wrap.
Oliver Schmidt [Sun, 19 Aug 2018 22:22:45 +0000 (00:22 +0200)]
Implemented line wrap.

According to https://github.com/cc65/wiki/wiki/Direct-console-IO it is undefined what happens when the end of the sceen is reached. But it is _not_ undefined what happens when the end of the line is reached. So implement the usual thing - which was easy enough to do after all.

6 years agoMade Apple II CONIO more flexible.
Oliver Schmidt [Sun, 19 Aug 2018 21:40:50 +0000 (23:40 +0200)]
Made Apple II CONIO more flexible.

Originally the Apple II had a 64 char set and used the upper two bits to control inverse and blinking. The Apple //e brought then an alternate char set without blinking but more individual chars. However, it does _not_ contain 128 chars and use the upper bit to control inverse as one would assume. Rather it contains more than 128 chars - the MouseText chars. And because Apple wanted to provide as much backward compatibility as possible with the original char set, the alternate char set has a rather weird layout for chars > 128 with the inverse lowercase chars _not_ at (normal lowercase char + 128).

So far the Apple II CONIO implementation mapped chars 128-255 to chars 0-127 (with the exception of \r and \n). It made use of alternate chars > 128 transparently for the user via reverse(1). The user didn't have direct access to the MouseText chars, they were only used interally for things like chline() and cvline().

Now the mapping of chars 128-255 to 0-127 is removed. Using chars > 128 gives the user direct access to the "raw" alternate chars > 128. This especially give the use direct access to the MouseText chars. But this clashes with the exsisting (and still desirable) revers(1) logic. Combining reverse(1) with chars > 128 just doesn't result in anything usable!

What motivated this change? When I worked on the VT100 line drawing support for Telnet65 on the Apple //e (not using CONIO at all) I finally understood how MouseText is intended to be used to draw arbitrary grids with just three chars: A special "L" type char, the underscore and a vertical bar at the left side of the char box. I notice that with those chars it is possible to follow the CONIO approach to boxes and grids: Combining chline()/cvline() with special CH_... char constants for edges and intersections.

But in order to actually do so I needed to be able to define CH_... constants that when fed into the ordinary cputc() pipeline end up as MouseText chars. The obvious approach was to allow chars > 128 to directly access MouseText chars :-)

Now that the native CONIO box/grid approach works I deleted the Apple //e proprietary textframe() function that I added as replacement quite some years ago.

Again: Please note that chline()/cvline() and the CH... constants don't work with reverse(1)!

6 years agoFixed the system banking in the cbm510 and the cbm610 targets' versions of clock_gett...
Greg King [Sun, 19 Aug 2018 21:12:54 +0000 (17:12 -0400)]
Fixed the system banking in the cbm510 and the cbm610 targets' versions of clock_gettime() and clock_settime().

Their library function calls must run in the execution bank.

6 years agoWDM support (#721)
Stefan [Sun, 19 Aug 2018 14:29:25 +0000 (16:29 +0200)]
WDM support (#721)

WDM support

6 years agoOptimize for size.
Oliver Schmidt [Sun, 19 Aug 2018 12:35:30 +0000 (14:35 +0200)]
Optimize for size.

6 years agoFixed Visual C++ build (and some style adjustments).
Oliver Schmidt [Sat, 18 Aug 2018 22:01:40 +0000 (00:01 +0200)]
Fixed Visual C++ build (and some style adjustments).

6 years agoAdded dummy clock_settime() for the Atari.
Oliver Schmidt [Fri, 17 Aug 2018 23:36:56 +0000 (01:36 +0200)]
Added dummy clock_settime() for the Atari.

Allow to build ip65/date65.

6 years agoExpress assumption about struct timespec.
Oliver Schmidt [Fri, 17 Aug 2018 23:28:30 +0000 (01:28 +0200)]
Express assumption about struct timespec.

We basically cast a struct timespec pointer to a time_t pointer when we pass the clock_settime() paramter to localtime(). Explicitly express that in the source code.

6 years agoAdded clock_settime() for some CBMs.
Oliver Schmidt [Fri, 17 Aug 2018 23:13:02 +0000 (01:13 +0200)]
Added clock_settime() for some CBMs.

The CIA TOD only stores the time but not the date. Therefore the date set by clock_settime() ist just stored inside the C library for retrieval via clock_gettime().

The "very special" handling of 12AM/PM is based on https://groups.google.com/d/msg/comp.sys.cbm/ysVYSX4AMbc/vHrXCWEhCOUJ saying:

==========

24hr: Wr => Rd => Nx
--------------------
  0 : 92 => 12 => 01   <= Switch from 00 to 01 (24-hour notation)
  1 : 01 => 01 => 02
  2 : 02 => 02 => 03
 11 : 11 => 11 => 92
 12 : 12 => 92 => 81   <= Switch from 12 to 13 (24-hour notation)
 13 : 81 => 81 => 82
 14 : 82 => 82 => 83
 23 : 91 => 91 => 12

1. column ("24hr"): hour to be tested (decimal)
2. column ("Wr"):   hour written to TOD register (BCD)
3. column ("Rd"):   hour read from TOD register (BCD) immediately after writing the value in column 2 to see the conversion between AM/PM, if any
4. column ("Nx"):   next hour (BCD) after the hour switch

==========

Thanks Paul!

6 years agoFixed 12 AM/PM handling.
Oliver Schmidt [Fri, 17 Aug 2018 22:13:38 +0000 (00:13 +0200)]
Fixed 12 AM/PM handling.

Midnight is 12 AM and noon is 12 PM (see https://en.wikipedia.org/wiki/12-hour_clock). Therefore we need to subtract 12 hours in exactly those two hours.

6 years agoUse non-POSIX values for S_IREAD and S_IWRITE.
Patrick Pelletier [Fri, 17 Aug 2018 20:39:15 +0000 (13:39 -0700)]
Use non-POSIX values for S_IREAD and S_IWRITE.

(As requested in the PR.)

6 years agoDon't pass mode argument to open() from _fopen().
Patrick Pelletier [Fri, 17 Aug 2018 20:24:08 +0000 (13:24 -0700)]
Don't pass mode argument to open() from _fopen().

It isn't necessary, since paravirt.c has a default if the mode isn't
pushed onto the stack.

6 years agosim65: Use mode_t for OMode.
Patrick Pelletier [Fri, 17 Aug 2018 20:17:38 +0000 (13:17 -0700)]
sim65: Use mode_t for OMode.

6 years agosim65: Blindly guessing to get Travis build to pass.
Patrick Pelletier [Fri, 17 Aug 2018 19:09:20 +0000 (12:09 -0700)]
sim65: Blindly guessing to get Travis build to pass.

6 years agosim65: Build was failing on Windows, too.
Patrick Pelletier [Fri, 17 Aug 2018 18:53:19 +0000 (11:53 -0700)]
sim65: Build was failing on Windows, too.

Microsoft loves putting underscores in front of everything!

6 years agosim65: S_IREAD and S_IWRITE are nonstandard.
Patrick Pelletier [Fri, 17 Aug 2018 18:20:34 +0000 (11:20 -0700)]
sim65: S_IREAD and S_IWRITE are nonstandard.

The Linux build was failing with:

sim65/paravirt.c: In function ‘PVOpen’:
sim65/paravirt.c:217:18: error: ‘S_IREAD’ undeclared (first use in this function)
         OMode |= S_IREAD;
                  ^
sim65/paravirt.c:217:18: note: each undeclared identifier is reported only once for each function it appears in
sim65/paravirt.c:220:18: error: ‘S_IWRITE’ undeclared (first use in this function)
         OMode |= S_IWRITE;
                  ^
make[1]: *** [../wrk/sim65/paravirt.o] Error 1

6 years agosim65: If mode argument is omitted, use a reasonable default.
Patrick Pelletier [Fri, 17 Aug 2018 17:50:16 +0000 (10:50 -0700)]
sim65: If mode argument is omitted, use a reasonable default.

6 years agoAllow "mode" argument to open() to be passed from 6502 code.
Patrick Pelletier [Fri, 17 Aug 2018 17:43:14 +0000 (10:43 -0700)]
Allow "mode" argument to open() to be passed from 6502 code.

Implements this suggestion:
https://github.com/cc65/cc65/pull/719#issuecomment-413809096

6 years agoFix permissions for files created by sim65.
Patrick Pelletier [Fri, 17 Aug 2018 06:39:31 +0000 (23:39 -0700)]
Fix permissions for files created by sim65.

Files created by my programs running under sim65 had really weird permissions:
--w-r--r-x  1 ppelleti  staff  19 Aug 16 23:22 json.test.print.tmp

So, for example, my program running under sim65 was not able to read
the file it had just written.

This is because the third argument to open (mode) was not being
specified in paravirt.c, so it was just picking up random crud off the
stack to use as the mode.

I added a mode of 0666, and now my program runs correctly.

6 years agoFixed the generation of the opcode byte when BRK is given an operand, in 65816 CPU...
Greg King [Fri, 17 Aug 2018 03:51:04 +0000 (23:51 -0400)]
Fixed the generation of the opcode byte when BRK is given an operand, in 65816 CPU mode.

The bug was created by commit 7e8bb7b700572a50ed4f1e87ebeea4fd35177459.

6 years agoAdded clock_getres() / clock_settime() for the Apple II.
Oliver Schmidt [Wed, 15 Aug 2018 19:34:35 +0000 (21:34 +0200)]
Added clock_getres() / clock_settime() for the Apple II.

The situation on the Apple II is rather special: There are several types of RTCs. It's not desirable to have specific code for all of them. As the OS supports file timestamps RTC owners usually use OS drivers for their RTC. Those drivers read the RTC and write the result in a "date/time location" in RAM. The OS reads the date/time from the RAM location. If there's no RTC the RAM location keeps containing zeros. The OS uses those zeros as timestamps and the files show up in a directory as "<NO DATE>".

There's no common interface to set RTCs so if an RTC _IS_ present there's just nothing to do. However, if there's _NO_ RTC present the user might very well be interest to "manually" set the RAM location in order to have timestamps. But he surely doesn't want to manually set the RAM location over an over again. Rather he wants to set it just once after booting the OS.

From that perspective it makes most sense to not set both the date and the time but rather only set the date and have the time just stay zero. Then files show up in a directory as "DD-MON-YY  0:00".

So clock_settime() checks if the current time equals 0:00. If it does _NOT_ then an RTC is supposed to be active and clock_settime() fails with ERANGE. Otherwise clock_settime() ignores sets the date - and completely ignores the time provided as parameter.

clock_getres() too checks if the current time equals 0:00. If it does _NOT_ then an RTC is supposed to be active and clock_getres() returns a time resolution of one minute. Otherwise clock_getres() presumes that the only one who sets the RAM location is clock_settime() and therefore returns a time resolution of one day.

6 years agoMinor style fix.
Oliver Schmidt [Wed, 15 Aug 2018 17:40:56 +0000 (19:40 +0200)]
Minor style fix.

6 years agoAdded clock_getres() for CBMs.
Oliver Schmidt [Wed, 15 Aug 2018 17:40:27 +0000 (19:40 +0200)]
Added clock_getres() for CBMs.

All CBMs have a clock (CIA TOD) resolution of 1/10 second.

6 years agoReplaced _systime with clock_gettime.
Oliver Schmidt [Wed, 15 Aug 2018 13:59:11 +0000 (15:59 +0200)]
Replaced _systime with clock_gettime.

We want to add the capability to not only get the time but also set the time, but there's no "setter" for the "getter" time().

The first ones that come into mind are gettimeofday() and settimeofday(). However, they take a struct timezone argument that doesn't make sense - even the man pages says "The use of the timezone structure is obsolete; the tz argument should normally be specified as NULL." And POSIX says "Applications should use the clock_gettime() function instead of the obsolescent gettimeofday() function."

The ...timeofday() functions work with microseconds while the clock_...time() functions work with nanoseconds. Given that we expect our targets to support only 1/10 of seconds the microseconds look preferable at first sight. However, already microseconds require the cc65 data type 'long' so it's not such a relevant difference to nanoseconds. Additionally clock_getres() seems useful.

In order to avoid code duplication clock_gettime() takes over the role of the actual time getter from _systime(). So time() now calls clock_gettime() instead of _systime().

For some reason beyond my understanding _systime() was mentioned in time.h. _systime() worked exactly like e.g. _sysremove() and those _sys...() functions are all considered internal. The only reason I could see would be a performance gain of bypassing the time() wrapper. However, all known _systime() implementations internally called mktime(). And mktime() is implemented in C using an iterative algorithm so I really can't see what would be left to gain here. From that perspective I decided to just remove _systime().

6 years agoRemoved stray /t char.
Oliver Schmidt [Tue, 14 Aug 2018 14:00:09 +0000 (16:00 +0200)]
Removed stray /t char.

6 years agoFixed typo.
Oliver Schmidt [Tue, 14 Aug 2018 13:54:57 +0000 (15:54 +0200)]
Fixed typo.

6 years agoAdded CHKOUT and CLRCHN
Olli Savia [Tue, 14 Aug 2018 18:09:03 +0000 (21:09 +0300)]
Added CHKOUT and CLRCHN

6 years agoMerge pull request #712 from ppelleti/fix-bit
greg-king5 [Sat, 11 Aug 2018 05:48:11 +0000 (01:48 -0400)]
Merge pull request #712 from ppelleti/fix-bit

sim65: Fix "$2C: BIT abs" to access the correct address.

6 years agosim65: Fix "$2C: BIT abs" to access the correct address. 712/head
Patrick Pelletier [Fri, 10 Aug 2018 19:58:48 +0000 (12:58 -0700)]
sim65: Fix "$2C: BIT abs" to access the correct address.

Bug is documented here:
http://forum.6502.org/viewtopic.php?f=2&t=5242

6 years ago"Inverted" time_t value handling.
Oliver Schmidt [Thu, 2 Aug 2018 15:12:12 +0000 (17:12 +0200)]
"Inverted" time_t value handling.

So far time_t values were interpreted as local time values. However, usually time_t values are to be interpreted as "seconds since 1 Jan 1970 in UTC". Therefore all logic handling time_t values has to be changed.

- So far gmtime() called localtime() with an adjusted time_t, now localtime() calls gmtime() with an adjusted time_t.
- mktime() has to do "the opposite" of localtime(), to keep it that way mktime() does now the inverse adjustment made by localtime().
- All currently present time() implementations internally call mktime() so they don't require individual adjustments.

6 years agoIncreased consistency.
Oliver Schmidt [Thu, 2 Aug 2018 13:45:57 +0000 (15:45 +0200)]
Increased consistency.

The test program works as-is only if the timezone isn't set (to something different than UTC). However, using localtime() instead of gmtime() makes it at least consistent in that the original time (given to mktime()) is identical to the time retrieved.

6 years agoAdded code to make the 65816's MVN and MVP instructions handle both immediate (bank...
Greg King [Sun, 29 Jul 2018 07:50:02 +0000 (03:50 -0400)]
Added code to make the 65816's MVN and MVP instructions handle both immediate (bank) and far-address operands.

6 years agoFixed some code, to adapt to register-use changes caused by pull request #652.
Greg King [Fri, 27 Jul 2018 13:07:40 +0000 (09:07 -0400)]
Fixed some code, to adapt to register-use changes caused by pull request #652.

6 years agoSome minor cleanups.
Oliver Schmidt [Thu, 26 Jul 2018 12:35:26 +0000 (14:35 +0200)]
Some minor cleanups.

6 years agoFixed regression introduced by https://github.com/cc65/cc65/pull/652.
Oliver Schmidt [Thu, 26 Jul 2018 12:31:17 +0000 (14:31 +0200)]
Fixed regression introduced by https://github.com/cc65/cc65/pull/652.

6 years agoUpdated comment.
Oliver Schmidt [Thu, 26 Jul 2018 11:09:21 +0000 (13:09 +0200)]
Updated comment.

6 years agoQuick fix for missing _div() adaptation after 95223be.
IrgendwerA8 [Wed, 25 Jul 2018 20:38:29 +0000 (22:38 +0200)]
Quick fix for missing _div() adaptation after 95223be.

6 years agoAdded test for mktime() and gmtime().
Oliver Schmidt [Tue, 24 Jul 2018 01:25:49 +0000 (03:25 +0200)]
Added test for mktime() and gmtime().

A recent regression makes gmtime()/localtime() fail. So it's obviously desirable to have a test for that code.

6 years agoFixed the order in which the 65816's block-move instructions' operands are written...
Greg King [Fri, 15 Jun 2018 15:01:14 +0000 (11:01 -0400)]
Fixed the order in which the 65816's block-move instructions' operands are written and assembled.

The source bank number is written first; but, assembled second.
The destination bank is written second; but, assembled first.

6 years agoMerge pull request #695 from ops/cbmkernal_imports
Oliver Schmidt [Wed, 4 Jul 2018 21:47:33 +0000 (23:47 +0200)]
Merge pull request #695 from ops/cbmkernal_imports

CBM: Add imports for standard kernal entries

6 years agoAdded a blank line between .include statements and .import/.export statements 695/head
Olli Savia [Wed, 4 Jul 2018 14:40:28 +0000 (17:40 +0300)]
Added a blank line between .include statements and .import/.export statements

6 years agoRemoved .import for std kernal entries. Added .include "cbm.inc"
Olli Savia [Tue, 3 Jul 2018 19:47:42 +0000 (22:47 +0300)]
Removed .import for std kernal entries. Added .include "cbm.inc"

6 years agoAdded .import for std kernal entries
Olli Savia [Tue, 3 Jul 2018 19:44:59 +0000 (22:44 +0300)]
Added .import for std kernal entries

6 years agoMerge pull request #693 from ops/cbmkernal_stage3
Oliver Schmidt [Mon, 2 Jul 2018 08:39:57 +0000 (10:39 +0200)]
Merge pull request #693 from ops/cbmkernal_stage3

cbm_kernal enhancements

6 years agoMoved C128 specific definitions to cbm_kernal.inc 693/head
Olli Savia [Sun, 1 Jul 2018 06:58:39 +0000 (09:58 +0300)]
Moved C128 specific definitions to cbm_kernal.inc

6 years agoUse common include file cbm_kernal.inc
Olli Savia [Sun, 1 Jul 2018 06:56:37 +0000 (09:56 +0300)]
Use common include file cbm_kernal.inc

6 years agoUpdated comment
Olli Savia [Sun, 1 Jul 2018 06:54:39 +0000 (09:54 +0300)]
Updated comment

6 years agoMerge pull request #692 from ops/cbmkernal_stage2
Oliver Schmidt [Sat, 30 Jun 2018 20:26:04 +0000 (22:26 +0200)]
Merge pull request #692 from ops/cbmkernal_stage2

Update library to use cbm_kernal.inc for kernal entry points

6 years agoTAB to space conversion 692/head
Olli Savia [Sat, 30 Jun 2018 13:25:43 +0000 (16:25 +0300)]
TAB to space conversion

6 years agoRemoved RAMTAS
Olli Savia [Fri, 29 Jun 2018 19:59:53 +0000 (22:59 +0300)]
Removed RAMTAS

6 years agoCommon include file is now cbm_kernal.inc
Olli Savia [Fri, 29 Jun 2018 19:58:16 +0000 (22:58 +0300)]
Common include file is now cbm_kernal.inc

6 years agoMerge remote-tracking branch 'upstream/master' into cbmkernal_stage2
Olli Savia [Fri, 29 Jun 2018 19:50:02 +0000 (22:50 +0300)]
Merge remote-tracking branch 'upstream/master' into cbmkernal_stage2

6 years agoMerge pull request #688 from ops/cbmkernalasm
Oliver Schmidt [Fri, 29 Jun 2018 16:59:48 +0000 (18:59 +0200)]
Merge pull request #688 from ops/cbmkernalasm

RFC: Common kernal inc file for Commodore targets

6 years agocbmkernal.inc -> cbm_kernal.inc 688/head
Olli Savia [Fri, 29 Jun 2018 13:14:00 +0000 (16:14 +0300)]
cbmkernal.inc -> cbm_kernal.inc

6 years agoUse common include file cbmkernal.inc
Olli Savia [Wed, 27 Jun 2018 18:39:24 +0000 (21:39 +0300)]
Use common include file cbmkernal.inc

6 years agoMerge pull request #682 from shinra-jp/da65-synclines
Oliver Schmidt [Tue, 26 Jun 2018 08:26:15 +0000 (10:26 +0200)]
Merge pull request #682 from shinra-jp/da65-synclines

Support for preprocessing info file via cpp or m4.

6 years agoStyle fix 682/head
AIDA Shinra [Mon, 25 Jun 2018 14:50:46 +0000 (23:50 +0900)]
Style fix

6 years agoMerge remote-tracking branch 'origin' into da65-synclines
AIDA Shinra [Mon, 25 Jun 2018 14:38:43 +0000 (23:38 +0900)]
Merge remote-tracking branch 'origin' into da65-synclines

6 years agoTAB to space conversion
Olli Savia [Fri, 22 Jun 2018 08:29:03 +0000 (11:29 +0300)]
TAB to space conversion

6 years agoRESTOR and VECTOR moved under own ifdef/endif block
Olli Savia [Fri, 22 Jun 2018 08:21:00 +0000 (11:21 +0300)]
RESTOR and VECTOR moved under own ifdef/endif block

6 years agoMerge pull request #687 from polluks/patch-12
Oliver Schmidt [Thu, 21 Jun 2018 20:37:29 +0000 (22:37 +0200)]
Merge pull request #687 from polluks/patch-12

Smaller driver code

6 years agoRemoved unused label 687/head
Stefan [Thu, 21 Jun 2018 20:30:14 +0000 (20:30 +0000)]
Removed unused label

6 years agoAdded asminc/cbmkernal.inc
Olli Savia [Thu, 21 Jun 2018 15:32:38 +0000 (18:32 +0300)]
Added asminc/cbmkernal.inc

6 years agoMade LINE plot single-point lines correctly.
greg-king5 [Thu, 21 Jun 2018 12:18:53 +0000 (08:18 -0400)]
Made LINE plot single-point lines correctly.

6 years agoSmaller driver code
Stefan [Thu, 21 Jun 2018 00:25:33 +0000 (00:25 +0000)]
Smaller driver code

6 years agoMerge branch 'da65-synclines' of github:shinra-jp/cc65 into da65-synclines
AIDA Shinra [Wed, 13 Jun 2018 17:04:06 +0000 (02:04 +0900)]
Merge branch 'da65-synclines' of github:shinra-jp/cc65 into da65-synclines

6 years agoFollowed the discussions in the Pull request #682.
AIDA Shinra [Mon, 11 Jun 2018 17:06:01 +0000 (02:06 +0900)]
Followed the discussions in the Pull request #682.

* Fixed a misspelling
* Fixed styles
* Added sample codes

6 years agoSupport for preprocessing info file via cpp or m4.
AIDA Shinra [Sun, 10 Jun 2018 16:53:35 +0000 (01:53 +0900)]
Support for preprocessing info file via cpp or m4.

6 years agoMerge pull request #681 from shinra-jp/voperand
Oliver Schmidt [Wed, 13 Jun 2018 12:41:24 +0000 (14:41 +0200)]
Merge pull request #681 from shinra-jp/voperand

Support for "inline parameters" of subroutines

6 years agoStyle and alignment fixes. 681/head
AIDA Shinra [Wed, 13 Jun 2018 12:24:34 +0000 (21:24 +0900)]
Style and alignment fixes.

6 years agoChanged the wording of the doc/da65.sgml.
AIDA Shinra [Tue, 12 Jun 2018 16:23:01 +0000 (01:23 +0900)]
Changed the wording of the doc/da65.sgml.

6 years agoFollowed the discussions in the Pull request #682.
AIDA Shinra [Mon, 11 Jun 2018 17:06:01 +0000 (02:06 +0900)]
Followed the discussions in the Pull request #682.

* Fixed a misspelling
* Fixed styles
* Added sample codes

6 years agoFollowed discussions in the Pull reequest #681.
AIDA Shinra [Mon, 11 Jun 2018 15:18:11 +0000 (00:18 +0900)]
Followed discussions in the Pull reequest #681.
In particular, renamed "virtual operands" to "inline parameters".

6 years agoSupport for preprocessing info file via cpp or m4.
AIDA Shinra [Sun, 10 Jun 2018 16:53:35 +0000 (01:53 +0900)]
Support for preprocessing info file via cpp or m4.

6 years agoSupport --print-target-path with spaces.
Oliver Schmidt [Sun, 10 Jun 2018 16:12:09 +0000 (18:12 +0200)]
Support --print-target-path with spaces.

Don't try this at home ;-))

6 years agoSupport for "virtual operands" of subroutines like this:
AIDA Shinra [Sun, 10 Jun 2018 09:09:11 +0000 (18:09 +0900)]
Support for "virtual operands" of subroutines like this:

jsr SomeProc
.byte $00, $01 ; argument to SomeProc
; return here from SomeProc
bit $3F

6 years agoAllow spaces in path names.
Oliver Schmidt [Fri, 8 Jun 2018 17:16:18 +0000 (19:16 +0200)]
Allow spaces in path names.

The Microsoft C Library needs to have spawnvp() parameters with spaces quoted manually. We do this only if actually necessary to limit issues with parameters already containing double quotes.

6 years agoUse --print-target-path only as last resort.
Oliver Schmidt [Fri, 8 Jun 2018 16:58:36 +0000 (18:58 +0200)]
Use --print-target-path only as last resort.

--print-target-path may return a path with (escaped) spaces. We'll use that path with $(wildcard ...), that's fine. But then we use the outcome with $(foreach ...) and there things fail badly and there's nothing to do about it.

Therefore we a) try to avoid --print-target-path in the first place and b) explicitly bail out if we end up with spaces.

6 years agoEscape spaces in target path.
Oliver Schmidt [Thu, 7 Jun 2018 15:10:33 +0000 (17:10 +0200)]
Escape spaces in target path.

cc65 escapes spaces in paths it writes to dependency files (see WriteEscaped() in cc65/input.c). Given that the output of OptPrintTargetPath() is supposed to be used in Makefiles in pretty much the same way it is appropriate to escape spaces here too.

6 years agoMerge pull request #673 from bengdahl/master
Oliver Schmidt [Thu, 7 Jun 2018 15:01:42 +0000 (17:01 +0200)]
Merge pull request #673 from bengdahl/master

Fix `make` failing in parent directories containing spaces

6 years agoMerge pull request #676 from Fabrizio-Caruso/master
Oliver Schmidt [Wed, 6 Jun 2018 19:37:13 +0000 (21:37 +0200)]
Merge pull request #676 from Fabrizio-Caruso/master

Fix joystick for the Supervision target

6 years agospaces instead of tab 676/head
Fabrizio Caruso [Wed, 6 Jun 2018 19:18:47 +0000 (21:18 +0200)]
spaces instead of tab