1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 23:29:39 +00:00
Commit Graph

8254 Commits

Author SHA1 Message Date
Oliver Schmidt
d5c804f851 Expanded Sim65 zero page. 2019-11-26 22:18:12 +01:00
Greg King
f75657d7e2 Added <cx16.h> to the function reference document. 2019-11-20 12:11:47 -05:00
Stefan
d1fd7ffc59 Update status.s 2019-11-20 12:54:47 +01:00
Stefan
9d4d00737e Update slow.s 2019-11-20 12:54:47 +01:00
Stefan
eeefd10f8f Update revers.s 2019-11-20 12:54:47 +01:00
Stefan
2c34723a97 Update isfast.s 2019-11-20 12:54:47 +01:00
Stefan
df752ff7a5 Update fast.s 2019-11-20 12:54:47 +01:00
Stefan
3f360fe3ee Update cputc.s 2019-11-20 12:54:47 +01:00
Stefan
06c98952fc Update conio.s 2019-11-20 12:54:47 +01:00
Stefan
4497998944 Update color.s 2019-11-20 12:54:47 +01:00
Stefan
c9d2c10cbd Update vic20.sgml 2019-11-20 12:54:47 +01:00
Stefan
a56b176749 Update plus4.sgml 2019-11-20 12:54:47 +01:00
Stefan
ea16316e33 Update pce.sgml 2019-11-20 12:54:47 +01:00
Stefan
7361aa9959 Update nes.sgml 2019-11-20 12:54:47 +01:00
Stefan
c08f1e4bfd Update funcref.sgml 2019-11-20 12:54:47 +01:00
Stefan
63ab22f97f Update cx16.sgml 2019-11-20 12:54:47 +01:00
Stefan
49ebac7ac1 Update cbm510.sgml 2019-11-20 12:54:47 +01:00
Stefan
94892231bc Update c64.sgml 2019-11-20 12:54:47 +01:00
Stefan
9bf2bf308a Update c128.sgml 2019-11-20 12:54:47 +01:00
Stefan
9ab614d764 Update c16.sgml 2019-11-20 12:54:47 +01:00
Stefan
d9a6fbac48 Fixed C16 #978 2019-11-20 12:54:47 +01:00
mc78
db971d8a65 Removed unnecessary #include <cc65.h> from convert.c
Adjusted block comments to predominant style
2019-11-19 14:08:00 +01:00
mc78
1dee2360fa added additional empty line after header guard in cc65.h to conform to other headers 2019-11-19 14:08:00 +01:00
mc78
8d2617110f Removed additional exit constants definitions from cc65.h to stdlih.h. Guarded the definitions by #ifdef. Removed cc65.h includes from abort and assert implementations. 2019-11-19 14:08:00 +01:00
mc78
a139c4057c Removed CC65_ prefixes from exit statements in abort and assert code as well from definition 2019-11-19 14:08:00 +01:00
mc78
16a66f19e1 Replaced enum in cc65.h by defines. added comment that cc65 exit constants should not redefine 0 and 1 as they are reserved for exit_success and exit_failure 2019-11-19 14:08:00 +01:00
mc78
694dd9240f Added comment to debugger exit with error 2019-11-19 14:08:00 +01:00
mc78
3daecfb3dd Added enum for cc65 exit codes. replaced stdlib exit code names constants in libsrc with cc65 exit code named constants 2019-11-19 14:08:00 +01:00
mc78
7bae9038cf Replaced plain 0's and 1's in exit statements with EXIT_SUCCESS or EXIT_FAILURE 2019-11-19 14:08:00 +01:00
bbbradsmith
c9355734f5 make linker generated export warning conistent with the import warning 2019-11-18 21:50:44 +01:00
bbbradsmith
788fbcc9c8 Fix silent crash failure on warning from linker command line define import size mismatch 2019-11-18 21:50:44 +01:00
Greg King
5da525e0ea Added a standard mouse driver to the cx16 library. 2019-11-16 14:51:24 -05:00
Greg King
d78133e1f0 Updated cx16 to match the Commander X16 ROMs and emulator, release 34. 2019-11-16 13:11:40 -05:00
Greg King
4dda5d2173 Changed a "See also" link in the abort() and assert() descriptions from raise() to signal().
Programmers might want to use signal() to catch the SIGABRT that's sent by abort() and assert().
2019-11-12 11:57:38 -05:00
Stefan
659d1729eb Fixed exit code #974 2019-11-12 08:05:25 -05:00
Greg King
ac4866c027 Made assert() send SIGABRT when an assertion fails.
A signal handler can catch it, and do anything needed to make stderr work.
2019-11-10 12:46:01 -05:00
Stefan
7f7db01e25 Fixed typos 2019-11-10 03:21:43 -05:00
Piotr Fusik
d38417b347 Optimize sign extension. 2019-11-07 21:45:19 +01:00
Piotr Fusik
985371433b Swap the positive/negative paths to save a branch. 2019-11-07 21:45:19 +01:00
Piotr Fusik
421c3f2b4f Don't set carry when already set. 2019-11-07 21:45:19 +01:00
Piotr Fusik
2bec637637 Optimize a negation in signed division. 2019-11-07 21:45:19 +01:00
Richard Halkyard
0d21a2b5a4 Reformat comments to style guide rules 2019-11-02 11:21:50 +01:00
Fabrizio Caruso
2bd798fa13 Optimizations 2019-10-30 18:00:27 -04:00
Fabrizio Caruso
78d660da55 kbhit checks KBEDG and getc resets KBEDG 2019-10-30 18:00:27 -04:00
Fabrizio Caruso
43f24afe29 stz 2019-10-30 18:00:27 -04:00
Fabrizio Caruso
609f63ac74 Second tentative fix 2019-10-30 18:00:27 -04:00
Curt J. Sampson
1d39863a60 vic20/cputc: Fix incorrect CRAM_PTR at startup when using conio
To do this we add a constructor call to UPDCRAMPTR, which is the ROM
routine that fixes up CRAM_PTR to match the screen location pointed to
by SCREEN_PTR.

This adds two additional bytes to programs using cputc() or other
routines that call it. These are in theory recoverable, but the VIC-20
does not yet free space used by constructors after the constructors
have been called.

Thanks to <greg.king5@verizon.net> (GitHub: greg-king5) for
investigating the difference in the VIC-20 KERNAL from the C64 and
proposing this solution to the problem.[1]

[1]: https://github.com/cc65/cc65/issues/946#issuecomment-538502820
2019-10-25 16:03:38 -04:00
Curt J. Sampson
128991d868 libsrc/*/kplot.s: Use cbm_kernal.inc symbols, not hardcoded addrs
On C64, VIC-20 and Plus/4, the conio library PLOT routine uses direct
calls into the Kernal, including the Kernal PLOT routine that we're
replacing. These were previously hardcoded addresses; we change these
to use the symbols for those routines defined in cbm_kernal.inc. (This
changes no functionality.)

To do this, we need to import cbm_kernal.inc in a namespace so we
don't have a collision between the PLOT that we're defining and the
Kernal definition.

We also add a UPDCRAMPTR symbol (used by kplot for VIC-20 and C64) to
the direct entry kernal routines in in cbm_kernal.inc, and expand the
comments describing what the "direct entry" Kernal routines are.

<greg.king5@verizon.net> (GitHub: greg-king5) came up with this idea
and did initial testing of it.

This has been tested on VICE xvic, x64 and xplus4 emulators with a
program that does a cputs() call (github.com/0cjs/vic20cc65) to
confirm that it works the same way after as it did before.
2019-10-25 16:03:38 -04:00
Greg King
9fa90e2265 Added VERA peek() and poke() to the cx16 library.
They simplify C programs' direct access to VERA's internal address space.
2019-10-24 05:15:42 -04:00
Fabrizio Caruso
1074d35a15 remove bra 2019-10-18 11:15:54 -04:00