Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<title>cc65 Library Overview
|
<title>cc65 Library Overview
|
||||||
<author><url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz">
|
<author><url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz">
|
||||||
<date>2014-04-12
|
<date>2018-02-28
|
||||||
|
|
||||||
<abstract>
|
<abstract>
|
||||||
An overview over the runtime and C libraries that come with the cc65 compiler,
|
An overview over the runtime and C libraries that come with the cc65 compiler,
|
||||||
@@ -43,7 +43,7 @@ Functions that are <em/not/ available:
|
|||||||
<itemize>
|
<itemize>
|
||||||
<item><tt>tmpfile/tmpnam</tt>
|
<item><tt>tmpfile/tmpnam</tt>
|
||||||
<p>
|
<p>
|
||||||
<item><tt>system</tt>
|
<item><tt>system</tt> (cc65 alternative <tt>exec</tt>)
|
||||||
<p>
|
<p>
|
||||||
<item>All functions that handle floating point numbers in some manner.
|
<item>All functions that handle floating point numbers in some manner.
|
||||||
<p>
|
<p>
|
||||||
@@ -172,10 +172,15 @@ portable. conio implementations exist for the following targets:
|
|||||||
<item>plus4 (or expanded c16/c116)
|
<item>plus4 (or expanded c16/c116)
|
||||||
<item>cbm510 (40 column video)
|
<item>cbm510 (40 column video)
|
||||||
<item>cbm610 (all CBM series-II computers with 80 column video)
|
<item>cbm610 (all CBM series-II computers with 80 column video)
|
||||||
|
<item>creativision
|
||||||
|
<item>gamate
|
||||||
<item>geos-apple
|
<item>geos-apple
|
||||||
<item>geos-cbm
|
<item>geos-cbm
|
||||||
<item>nes
|
<item>nes
|
||||||
|
<item>osic1p
|
||||||
|
<item>pce
|
||||||
<item>pet (all CBM PET systems except the 2001)
|
<item>pet (all CBM PET systems except the 2001)
|
||||||
|
<item>telestrat
|
||||||
<item>vic20
|
<item>vic20
|
||||||
</itemize>
|
</itemize>
|
||||||
|
|
||||||
@@ -204,6 +209,7 @@ the following targets:
|
|||||||
<item>atarixl
|
<item>atarixl
|
||||||
<item>c64
|
<item>c64
|
||||||
<item>c128
|
<item>c128
|
||||||
|
<item>cbm510
|
||||||
</itemize>
|
</itemize>
|
||||||
|
|
||||||
The available functions are declared in <tt/mouse.h/.
|
The available functions are declared in <tt/mouse.h/.
|
||||||
@@ -235,6 +241,3 @@ freely, subject to the following restrictions:
|
|||||||
</enum>
|
</enum>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
16
libsrc/pce/call.s
Normal file
16
libsrc/pce/call.s
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
;
|
||||||
|
; CC65 runtime: call function via pointer in ax
|
||||||
|
;
|
||||||
|
; 1998-08-06, Ullrich von Bassewitz
|
||||||
|
; 2018-02-28, Greg King
|
||||||
|
;
|
||||||
|
|
||||||
|
.export callax
|
||||||
|
.importzp ptr1
|
||||||
|
|
||||||
|
callax: sta ptr1
|
||||||
|
stx ptr1+1
|
||||||
|
|
||||||
|
; The PC-Engine puts the zero-page at $2000.
|
||||||
|
|
||||||
|
jmp (ptr1 + $2000) ; go there
|
||||||
14
libsrc/pce/callptr4.s
Normal file
14
libsrc/pce/callptr4.s
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
;
|
||||||
|
; CC65 runtime: call function via pointer in ptr4
|
||||||
|
;
|
||||||
|
; 2018-02-28, Greg King
|
||||||
|
;
|
||||||
|
|
||||||
|
.export callptr4
|
||||||
|
.importzp ptr4
|
||||||
|
|
||||||
|
callptr4:
|
||||||
|
|
||||||
|
; The PC-Engine puts the zero-page at $2000.
|
||||||
|
|
||||||
|
jmp (ptr4 + $2000)
|
||||||
Reference in New Issue
Block a user