1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-24 11:31:31 +00:00
cc65 - a freeware C compiler for 6502 based systems
Go to file
Oliver Schmidt f488f7576c Applied fix contributed by Greg King.
The code
  void foo(void)
  {
    int i;
    long l = 1L * i;
  }
triggered an
  Internal compiler error:
  Code generation messed up: StackPtr is -4, should be -2

Greg King: "We are lucky that the bug is simple -- a missing "else".  The result is that the compiler thinks that it does the opposite of what it actually does:  It thinks that it pushes the non-constant expression onto the stack. It doesn't; so, cc65's stack pointer is wrong."
2013-10-08 23:04:41 +02:00
asminc Some formatting and style fixes. 2013-10-01 11:36:37 +02:00
cfg Lower the default Atari start adress from $2E00 to $2000. With 2013-10-04 01:04:06 +02:00
include add IOCB command codes to atari.h 2013-09-17 22:32:43 +02:00
libsrc small optimization 2013-10-04 12:41:08 +02:00
samples Made mousetest.c know that the CBM510 has a lightpen driver. 2013-09-09 17:09:33 -04:00
src Applied fix contributed by Greg King. 2013-10-08 23:04:41 +02:00
testcode add testprogram for _sys() function on Atari 2013-09-17 22:33:48 +02:00
util Removed (pretty inconsistently used) tab chars from source code base. 2013-05-09 13:57:12 +02:00
.gitignore Ignore only top level directories. 2013-05-04 18:04:13 +02:00
.travis.yml Added top level Makefile. 2013-05-04 23:01:07 +02:00
LICENSE Added "the usual suspects". 2013-03-21 22:23:38 +01:00
Makefile Renamed [un]install goals to [un]avail. 2013-05-15 11:59:51 +02:00
README Minor consistency improvement. 2013-03-30 17:19:54 +01:00

cc65 is a complete cross development package for 65(C)02 systems, including
a powerful macro assembler, a C compiler, linker, librarian and several
other tools.

cc65 has C and runtime library support for many of the old 6502 machines,
including

  - the following Commodore machines:
        VIC20
        C16/C116 and Plus/4
        C64
        C128
        CBM 510 (aka P500)
        the 600/700 family
        newer PET machines (not 2001).

  - the Apple ][+ and successors.

  - the Atari 8 bit machines.

  - GEOS for the C64 and C128.

  - the Nintendo Entertainment System (NES).

  - the Supervision console.

  - the Oric Atmos.

  - the Lynx console.

The libraries are fairly portable, so creating a version for other 6502s
shouldn't be too much work.