<descrip>
<tag/Function/Return the largest block that is available on the heap.
<tag/Header/<tt/<ref id="stdlib.h" name="stdlib.h">/
-<tag/Declaration/<tt/size_t __fastcall__ _heapmaxavail (void);/
+<tag/Declaration/<tt/size_t _heapmaxavail (void);/
<tag/Description/The function returns the size of the largest block that may
be allocated from the heap using <tt/<ref id="malloc" name="malloc">/.
<tag/Availability/cc65
<descrip>
<tag/Function/Commit changes into extended memory.
<tag/Header/<tt/<ref id="em.h" name="em.h">/
-<tag/Declaration/<tt/void __fastcall__ em_commit (void);/
+<tag/Declaration/<tt/void em_commit (void);/
<tag/Description/Commit changes in the memory window to extended storage. If
the contents of the memory window have been changed, these changes may be lost
if <tt/<ref id="em_map" name="em_map">/, <tt/<ref id="em_use" name="em_use">/,
<descrip>
<tag/Function/Return the number of available extended memory pages.
<tag/Header/<tt/<ref id="em.h" name="em.h">/
-<tag/Declaration/<tt/unsigned __fastcall__ em_pagecount (void);/
+<tag/Declaration/<tt/unsigned em_pagecount (void);/
<tag/Description/The function returns the size of the extended memory supported
by the driver in 256 byte pages.
<tag/Limits/<itemize>
<descrip>
<tag/Function/Uninstall an already loaded extended memory driver.
<tag/Header/<tt/<ref id="em.h" name="em.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ em_install (void);/
+<tag/Declaration/<tt/unsigned char em_uninstall (void);/
<tag/Description/The function uninstalls an already loaded extended memory
driver but doesn't remove it from memory.
<tag/Limits/<itemize>
name="em_load_driver">/, <tt/<ref id="em_unload" name="em_unload">/
should be used instead of <tt/em_uninstall/ so the driver is also removed
from memory.
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
</itemize>
<tag/Availability/cc65
<tag/See also/
<descrip>
<tag/Function/Unload an extended memory driver.
<tag/Header/<tt/<ref id="em.h" name="em.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ em_unload (void);/
+<tag/Declaration/<tt/unsigned char em_unload (void);/
<tag/Description/The function unloads a loaded extended memory driver and
frees all memory allocated for the driver.
<tag/Limits/<itemize>
<descrip>
<tag/Function/Return the number of joysticks supported by the current driver.
<tag/Header/<tt/<ref id="joystick.h" name="joystick.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ joy_count (void);/
+<tag/Declaration/<tt/unsigned char joy_count (void);/
<tag/Description/The function returns a the number of joysticks supported
by the current joystick driver.
<tag/Limits/<itemize>
name="joy_load_driver"> before calling this function.
<item>The function returns the number of joysticks supported by the driver.
There's no way to check for the number of actually connected joysticks.
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
</itemize>
<tag/Availability/cc65
<tag/See also/
<descrip>
<tag/Function/Uninstall the current joystick driver.
<tag/Header/<tt/<ref id="joystick.h" name="joystick.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ joy_uninstall (void);/
+<tag/Declaration/<tt/unsigned char joy_uninstall (void);/
<tag/Description/The function uninstalls the currently installed joystick
driver. It does not remove the driver from memory. The function returns an
error code, which is <tt/JOY_ERR_OK/ if the driver was successfully uninstalled.
<tag/Limits/<itemize>
<item>A joystick driver must be installed using <ref id="joy_install"
name="joy_install"> before calling this function.
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
</itemize>
<tag/Availability/cc65
<tag/See also/
<descrip>
<tag/Function/Uninstall, then unload the current joystick driver.
<tag/Header/<tt/<ref id="joystick.h" name="joystick.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ joy_unload (void);/
+<tag/Declaration/<tt/unsigned char joy_unload (void);/
<tag/Description/The function uninstalls the currently installed joystick
driver and removes it from memory. An error code is returned, which is
<tt/JOY_ERR_OK/ if the driver was successfully uninstalled.
<tag/Limits/<itemize>
<item>A joystick driver must be loaded using <ref id="joy_load_driver"
name="joy_load_driver"> before calling this function.
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
</itemize>
<tag/Availability/cc65
<tag/See also/
<descrip>
<tag/Function/Return a bit mask encoding the state of the mouse buttons.
<tag/Header/<tt/<ref id="mouse.h" name="mouse.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ mouse_buttons (void);/
+<tag/Declaration/<tt/unsigned char mouse_buttons (void);/
<tag/Description/The function returns a bit mask that encodes the state of the
mouse buttons. You may use the <tt/MOUSE_BTN_XXX/ flags to decode the function
return value.
-<tag/Limits/<itemize>
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
-</itemize>
<tag/Availability/cc65
<tag/See also/
<ref id="mouse_info" name="mouse_info">,
<descrip>
<tag/Function/Hide the mouse pointer.
<tag/Header/<tt/<ref id="mouse.h" name="mouse.h">/
-<tag/Declaration/<tt/void __fastcall__ mouse_hide (void);/
+<tag/Declaration/<tt/void mouse_hide (void);/
<tag/Description/The function hides the mouse pointer. It manages a counter
that is shared between <tt/<ref id="mouse_show" name="mouse_show">/ and
<tt/mouse_hide/ so that every call call to <tt/mouse_hide/ must be followed by
a call to <tt/<ref id="mouse_show" name="mouse_show">/ to make the mouse cursor
visible.
-<tag/Limits/<itemize>
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
-</itemize>
<tag/Availability/cc65
<tag/See also/
<ref id="mouse_show" name="mouse_show">
<descrip>
<tag/Function/Show the mouse pointer.
<tag/Header/<tt/<ref id="mouse.h" name="mouse.h">/
-<tag/Declaration/<tt/void __fastcall__ mouse_show (void);/
+<tag/Declaration/<tt/void mouse_show (void);/
<tag/Description/The function shows the mouse pointer. It manages a counter
that is shared between <tt/<ref id="mouse_hide" name="mouse_hide">/ and
<tt/mouse_show/. The mouse cursor is visible if there was one more call to
<tt/mouse_show/ than to <tt/<ref id="mouse_hide" name="mouse_hide">/.
-<tag/Limits/<itemize>
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
-</itemize>
<tag/Availability/cc65
<tag/See also/
<ref id="mouse_hide" name="mouse_hide">
<descrip>
<tag/Function/Uninstall an already loaded mouse driver.
<tag/Header/<tt/<ref id="mouse.h" name="mouse.h">/
-<tag/Declaration/<tt/unsigned char __fastcall__ mouse_install (void);/
+<tag/Declaration/<tt/unsigned char mouse_uninstall (void);/
<tag/Description/The function uninstalls an already loaded mouse driver but
don't removes it from memory.
<tag/Limits/<itemize>
name="mouse_load_driver">/, <tt/<ref id="mouse_unload" name="mouse_unload">/
should be used instead of <tt/mouse_uninstall/ so the driver is also removed
from memory.
-<item>The function is only available as fastcall function, so it may only be
-used in presence of a prototype.
</itemize>
<tag/Availability/cc65
<tag/See also/
<descrip>
<tag/Function/Uninstall the currently loaded driver but do not unload it.
<tag/Header/<tt/<ref id="serial.h" name="serial.h">/
-<tag/Declaration/<tt/void __fastcall__ ser_uninstall (void);/
+<tag/Declaration/<tt/void ser_uninstall (void);/
<tag/Description/Uninstall the currently loaded driver but do not unload it.
-<tag/Limits/<itemize>
-<item>The function is only available as fastcall function, so it may only
-be used in presence of a prototype.
-</itemize>
<tag/Availability/cc65
<tag/See also/Other serial functions.
<tag/Example/None.
.include "atmos.inc"
; ------------------------------------------------------------------------
-; void __fastcall__ clrscr (void);
+; void clrscr (void);
.proc _clrscr
;
; Ullrich von Bassewitz, 2002-12-03
;
-; unsigned char __fastcall__ get_tv (void);
+; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;
rts
.endproc
-
-
;
; Ullrich von Bassewitz, 2002-12-03
;
-; unsigned char __fastcall__ get_tv (void);
+; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;
rts
.endproc
-
-
;
; Ullrich von Bassewitz, 03.06.1999
;
-; unsigned char __fastcall__ cbm_acptr (void);
+; unsigned char cbm_acptr (void);
;
.export _cbm_acptr
jsr ACPTR
ldx #0
rts
-
-
;
; Ullrich von Bassewitz, 03.06.1999
;
-; unsigned char __fastcall__ cbm_k_basin (void);
+; unsigned char cbm_k_basin (void);
;
.export _cbm_k_basin
;
; Ullrich von Bassewitz, 03.06.1999
;
-; void __fastcall__ cbm_clall (void);
+; void cbm_clall (void);
;
.export _cbm_clall
_cbm_clall = CLALL
-
-
;
; Ullrich von Bassewitz, 03.06.1999
;
-; void __fastcall__ cbm_k_clrch (void);
+; void cbm_k_clrch (void);
;
.export _cbm_k_clrch
.import CLRCH
_cbm_k_clrch = CLRCH
-
;
; Ullrich von Bassewitz, 03.06.1999
;
-; unsigned __fastcall__ cbm_iobase (void);
+; unsigned cbm_iobase (void);
;
.export _cbm_iobase
tax
pla
rts
-
-
;
; Ullrich von Bassewitz, 03.06.1999
;
-; unsigned char __fastcall__ cbm_k_open (void);
+; unsigned char cbm_k_open (void);
;
.export _cbm_k_open
;
; Ullrich von Bassewitz, 03.06.1999
;
-; unsigned char __fastcall__ cbm_k_readst (void);
+; unsigned char cbm_k_readst (void);
;
.export _cbm_k_readst
;
; Ullrich von Bassewitz, 03.06.1999
;
-; void __fastcall__ cbm_unlsn (void);
+; void cbm_unlsn (void);
;
.export _cbm_unlsn
_cbm_unlsn = UNLSN
-
-
-
-
-
;
; Ullrich von Bassewitz, 03.06.1999
;
-; void __fastcall__ cbm_untlk (void);
+; void cbm_untlk (void);
;
.export _cbm_untlk
_cbm_untlk = UNTLK
-
-
.include "extzp.inc"
; ------------------------------------------------------------------------
-; void __fastcall__ clrscr (void);
+; void clrscr (void);
.proc _clrscr
;
; Stefan Haubenthal, 2009-08-02
;
-; unsigned char __fastcall__ get_tv (void);
+; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;
;
; Return the size of the largest free block on the heap.
;
-; size_t __fastcall__ _heapmaxavail (void);
+; size_t _heapmaxavail (void);
;
;
@L3: lda ptr2
ldx ptr2+1
rts
-
;
; Return the amount of free memory on the heap.
;
-; size_t __fastcall__ _heapmemavail (void);
+; size_t _heapmemavail (void);
;
;
lda ptr2
rts
-
-
-
rts
;----------------------------------------------------------------------------
-; unsigned char __fastcall__ em_uninstall (void);
+; unsigned char em_uninstall (void);
; /* Uninstall the currently loaded driver and return an error code.
; * Note: This call does not free allocated memory.
; */
tax
rts ; Return zero
-
;
; Ullrich von Bassewitz, 2002-12-01
;
-; void __fastcall__ em_commit (void);
+; void em_commit (void);
; /* Commit changes in the memory window to extended storage. If the contents
; * of the memory window have been changed, these changes may be lost if
; * em_map, em_copyfrom or em_copyto are called without calling em_commit
.include "em-kernel.inc"
_em_commit = emd_commit ; Use driver entry
-
-
;
; Ullrich von Bassewitz, 2002-11-29
;
-; unsigned char __fastcall__ em_unload (void);
+; unsigned char em_unload (void);
; /* Unload the currently loaded driver. */
tax ; X = 0
lda #EM_ERR_NO_DRIVER
rts
-
rts
;----------------------------------------------------------------------------
-; unsigned char __fastcall__ joy_uninstall (void);
+; unsigned char joy_uninstall (void);
; /* Uninstall the currently loaded driver. Note: This call does not free
; * allocated memory.
; */
tax ; Return zero
rts
-
;
; Ullrich von Bassewitz, 2002-12-20
;
-; unsigned char __fastcall__ joy_count (void);
+; unsigned char joy_count (void);
; /* Return the number of joysticks supported by the driver */
;
.include "joy-kernel.inc"
_joy_count = joy_count ; Use driver entry
-
-
;
; Ullrich von Bassewitz, 2002-11-29
;
-; unsigned char __fastcall__ joy_unload (void);
+; unsigned char joy_unload (void);
; /* Unload the currently loaded driver. */
pla ; Remove pushed junk
lda #JOY_ERR_NO_DRIVER
rts
-
-
rts
;----------------------------------------------------------------------------
-; unsigned char __fastcall__ mouse_uninstall (void);
+; unsigned char mouse_uninstall (void);
; /* Uninstall the currently loaded driver. Returns an error code. */
_mouse_uninstall:
tax
rts ; Return zero
-
-
;
; Ullrich von Bassewitz, 2003-12-30
;
-; unsigned char __fastcall__ mouse_buttons (void);
+; unsigned char mouse_buttons (void);
; /* Return a bit mask encoding the states of the mouse buttons. Use the
; * MOUSE_BTN_XXX flags to decode a specific button.
; */
.include "mouse-kernel.inc"
_mouse_buttons = mouse_buttons ; Call driver directly
-
-
;
; Ullrich von Bassewitz, 2003-12-30
;
-; void __fastcall__ mouse_hide (void);
+; void mouse_hide (void);
; /* Hide the mouse. The function manages a counter and may be called more than
; * once. For each call to mouse_hide there must be a call to mouse_show to make
; * the mouse visible again.
rts
.endproc
-
-
;
; Ullrich von Bassewitz, 2003-12-30
;
-; void __fastcall__ mouse_show (void);
+; void mouse_show (void);
; /* Show the mouse. See mouse_hide for more information. */
;
@L1: rts
.endproc
-
-
;
; Ullrich von Bassewitz, 2004-03-21
;
-; unsigned char __fastcall__ mouse_unload (void);
+; unsigned char mouse_unload (void);
; /* Uninstall, then unload the currently loaded driver. */
pla ; Remove pushed junk
lda #<MOUSE_ERR_NO_DRIVER
rts
-
;
; Stefan Haubenthal, 2007-01-21
;
-; unsigned char __fastcall__ get_tv (void);
+; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;
; Written by Groepaz/Hitmen <groepaz@gmx.net>
; Cleanup by Ullrich von Bassewitz <uz@cc65.org>
;
-; void __fastcall__ waitvblank(void);
+; void waitvblank(void);
;
.export _waitvblank
rts
.endproc
-
-
;
; Ullrich von Bassewitz, 2004-10-26
;
-; unsigned char __fastcall__ get_tv (void);
+; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;
rts
.endproc
-
-
;
; Ullrich von Bassewitz, 2002-12-03
;
-; unsigned char __fastcall__ get_tv (void);
+; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;
rts
.endproc
-
-
rts
;----------------------------------------------------------------------------
-; unsigned char __fastcall__ ser_uninstall (void);
+; unsigned char ser_uninstall (void);
; /* Uninstall the currently loaded driver and return an error code.
; * Note: This call does not free allocated memory.
; */
tax
rts ; Return zero
-
;
; Ullrich von Bassewitz, 2003-08-22
;
-; unsigned char __fastcall__ ser_close (void);
+; unsigned char ser_close (void);
; /* "Close" the port. Clear buffers and and disable interrupts. */
.include "ser-kernel.inc"
_ser_close = ser_close
-
-
;
; Ullrich von Bassewitz, 2003-04-15
;
-; unsigned char __fastcall__ ser_unload (void);
+; unsigned char ser_unload (void);
; /* Unload the currently loaded driver. */
pla ; Remove pushed junk
lda #<SER_ERR_NO_DRIVER
rts
-
rts
;----------------------------------------------------------------------------
-; void __fastcall__ tgi_uninstall (void);
+; void tgi_uninstall (void);
; /* Uninstall the currently loaded driver but do not unload it. Will call
; * tgi_done if necessary.
; */
sta _tgi_error
rts
-
-
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; void __fastcall__ tgi_clear (void);
+; void tgi_clear (void);
; /* Clear the drawpage */
.include "tgi-kernel.inc"
_tgi_clear = tgi_clear ; Call the driver
-
-
-
-
-
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; void __fastcall__ tgi_done (void);
+; void tgi_done (void);
; /* End graphics mode, switch back to text mode. Will NOT unload the driver! */
.include "tgi-kernel.inc"
@L1: rts
.endproc
-
;
; Ullrich von Bassewitz, 2011-05-01
;
-; unsigned __fastcall__ tgi_getaspectratio (void);
+; unsigned tgi_getaspectratio (void);
; /* Returns the aspect ratio for the loaded driver. The aspect ratio is an
; * 8.8 fixed point value.
; */
rts
.endproc
-
;
; Ullrich von Bassewitz, 22.06.2002
;
-; unsigned char __fastcall__ tgi_getcolor (void);
+; unsigned char tgi_getcolor (void);
; /* Return the current drawing color */
;
; Ullrich von Bassewitz, 22.06.2002
;
-; unsigned char __fastcall__ tgi_getcolorcount (void);
+; unsigned char tgi_getcolorcount (void);
; /* Get the number of available colors */
.include "tgi-kernel.inc"
rts
.endproc
-
;
; Ullrich von Bassewitz, 23.06.2002
;
-; const unsigned char* __fastcall__ tgi_getdefpalette (void);
+; const unsigned char* tgi_getdefpalette (void);
; /* Return the default palette. Will return NULL for drivers that do not
; * support palettes.
; */
.include "tgi-kernel.inc"
_tgi_getdefpalette = tgi_getdefpalette ; Call the driver
-
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; unsigned char __fastcall__ tgi_geterror (void);
+; unsigned char tgi_geterror (void);
; /* Return the error code for the last operation. This will also clear the
; * error.
; */
@L2: rts
.endproc
-
;
; Ullrich von Bassewitz, 22.06.2002
;
-; unsigned char __fastcall__ tgi_getmaxcolor (void);
+; unsigned char tgi_getmaxcolor (void);
; /* Return the maximum supported color number (the number of colors would
; * then be getmaxcolor()+1).
; */
rts
.endproc
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; unsigned __fastcall__ tgi_getmaxx (void);
+; unsigned tgi_getmaxx (void);
; /* Return the maximum x coordinate. The resolution in x direction is
; * getmaxx() + 1
; */
rts
.endproc
-
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; unsigned __fastcall__ tgi_getmaxy (void);
+; unsigned tgi_getmaxy (void);
; /* Return the maximum y coordinate. The resolution in y direction is
; * getmaxy() + 1
; */
rts
.endproc
-
;
; Ullrich von Bassewitz, 23.06.2002
;
-; unsigned __fastcall__ tgi_getpagecount (void);
+; unsigned tgi_getpagecount (void);
; /* Returns the number of screen pages available. */
;
rts
.endproc
-
;
; Ullrich von Bassewitz, 23.06.2002
;
-; const unsigned char* __fastcall__ tgi_getpalette (void);
+; const unsigned char* tgi_getpalette (void);
; /* Return the current palette. Will return NULL for drivers that do not
; * support palettes.
; */
.include "tgi-kernel.inc"
_tgi_getpalette = tgi_getpalette ; Call the driver
-
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; unsigned __fastcall__ tgi_getxres (void);
+; unsigned tgi_getxres (void);
; /* Return the resolution in X direction */
rts
.endproc
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; unsigned __fastcall__ tgi_getyres (void);
+; unsigned tgi_getyres (void);
; /* Return the resolution in Y direction */
rts
.endproc
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; void __fastcall__ tgi_init (void);
+; void tgi_init (void);
; /* Initialize the already loaded graphics driver */
@L9: rts
.endproc
-
-
;
; Ullrich von Bassewitz, 21.06.2002
;
-; void __fastcall__ tgi_unload (void);
+; void tgi_unload (void);
; /* Unload the currently loaded driver. */
lda #<TGI_ERR_NO_DRIVER
sta _tgi_error
rts
-
-
; Stefan Haubenthal, 2004-10-07
; Based on code from Pu-239
;
-; unsigned char __fastcall__ get_tv (void);
+; unsigned char get_tv (void);
; /* Return the video mode the machine is using */
;