1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-25 02:29:52 +00:00
cc65/libsrc
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
..
apple2 Use MACHID to check for realtime clock. 2019-09-10 09:49:06 +02:00
atari atari5200: implement bgcolor() and textcolor() 2019-04-12 12:49:38 +02:00
atari2600 Add C support for Atari 2600 (VCS) 2017-01-13 21:12:22 +01:00
atari5200 atari5200: update docs for recent conio changes 2019-04-13 11:07:06 +02:00
atmos Added SER_ prefix 2018-11-26 22:14:31 +01:00
c16 Updated to use cbm_kernal.inc. Whitespace cleanups 2018-11-26 22:14:31 +01:00
c64 libsrc/*/kplot.s: Use cbm_kernal.inc symbols, not hardcoded addrs 2019-10-25 16:03:38 -04:00
c128 Merge https://github.com/cc65/cc65 2019-03-24 20:49:53 +01:00
cbm Remove trailings spaces from CBM-related asm files 2019-03-22 22:54:05 +01:00
cbm510 Merge https://github.com/cc65/cc65 2019-03-24 20:49:53 +01:00
cbm610 Merge https://github.com/cc65/cc65 2019-03-24 20:49:53 +01:00
common Update comments in rand.s 2019-10-09 17:09:05 +02:00
conio Further optimizations in common/conio. 2018-05-22 16:00:05 +02:00
creativision Removed IRQ support from joystick drivers. 2018-02-01 22:38:36 +01:00
cx16 Added VERA peek() and poke() to the cx16 library. 2019-10-24 05:15:42 -04:00
dbg Added "popptr1" which is of common use to save some bytes. 2018-05-20 15:30:18 +02:00
em Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
gamate Fix Gamate RVS 2019-10-04 10:22:25 +02:00
geos-apple directory structure changed from driver-centric to target-centric 2016-05-16 19:49:43 +02:00
geos-cbm moved to better folder location 2018-12-30 18:57:46 +01:00
geos-common Adjusted comments to match actual prototypes. 2018-11-06 11:13:23 +01:00
joystick Removed IRQ support from joystick drivers. 2018-02-01 22:38:36 +01:00
lynx remove bra 2019-10-18 11:15:54 -04:00
mouse Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
nes Moved the NES font into its own object module. 2018-08-29 12:13:58 -04:00
none crt0.s ("none" target): fix initialization of sp variable. 2018-01-11 13:15:19 +01:00
osic1p Removed redundant LDA 2019-10-15 09:38:23 -04:00
pce Fixed bugs; and, improved the efficiency of some pce library functions. 2018-08-30 11:48:46 +02:00
pet Remove trailings spaces from CBM-related asm files 2019-03-22 22:54:05 +01:00
plus4 libsrc/*/kplot.s: Use cbm_kernal.inc symbols, not hardcoded addrs 2019-10-25 16:03:38 -04:00
runtime Minor math optimizations 2019-02-28 19:48:29 +01:00
serial Changed multi-line C comments into another style. 2014-06-30 16:51:07 -04:00
sim6502 Rearranged paravirt function vector. 2019-05-30 00:10:17 +02:00
supervision Init is no longer in crt0.s 2019-10-09 17:01:02 +02:00
telestrat Cleaning 2019-07-31 18:07:28 +02:00
tgi Added '_' prefix to sin and cos. 2019-04-13 11:25:54 +02:00
vic20 libsrc/*/kplot.s: Use cbm_kernal.inc symbols, not hardcoded addrs 2019-10-25 16:03:38 -04:00
zlib zlib: Use correct (un)signedness of char in prototypes and functions. 2019-06-19 19:01:30 +02:00
Makefile Created a target and a library for the Commander X16 prototype computer. 2019-09-27 03:38:51 -04:00