repo_id string | size int64 | file_path string | content string |
|---|---|---|---|
wagiminator/C64-Collection | 1,586 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/graphics.s | ;
; Christian Groessler, June 2004
;
; this file provides an equivalent to the BASIC GRAPHICS function
;
; int __fastcall__ _graphics(unsigned char mode);
;
;
.export __graphics
.import findfreeiocb
.import __do_oserror,__oserror
.import fddecusage
.import clriocb
.import fdtoiocb
.import newfd
.importzp tmp1... |
wagiminator/C64-Collection | 1,119 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/rwcommon.s | ;
; common iocb setup routine for read, write
; expects __fastcall__ parameters (int fd, void *buf, int count)
;
.include "atari.inc"
.include "errno.inc"
.importzp tmp2,tmp3
.import incsp4,ldax0sp,ldaxysp
.import __errno,__oserror
.import fdtoiocb
.export __rwsetup
__rwsetup:
sta tmp2
stx tmp3 ; remember ... |
wagiminator/C64-Collection | 2,120 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/scroll.s | ;
; Christian Groessler, June 2004
;
; void __fastcall__ _scroll (signed char numlines);
; numlines > 0 scrolls up
; numlines < 0 scrolls down
;
.include "atari.inc"
.importzp tmp1,tmp4,ptr1,ptr2
.import mul40,_clrscr
.export __scroll
.proc __scroll
cmp #0
beq jmpfin
; cmp #$80
; bcc up
bpl up
;scroll do... |
wagiminator/C64-Collection | 6,809 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/fdtable.s | ;
; Christian Groessler, May-2000
;
; fd indirection table & helper functions
;
.include "atari.inc"
.include "fd.inc"
.importzp tmp1,tmp2,tmp3,ptr4,sp
.import fd_table,fd_index
.import fdt_to_fdi
.export clriocb
.export fdtoiocb
.export fdtoiocb_down
.export findfreeiocb
.export fddecusage
.export newfd
... |
wagiminator/C64-Collection | 1,465 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/getfd.s | ;
; Christian Groessler, Oct-2000
;
; allocates a new fd in the indirection table
; the fdtable itself is defined here
;
.include "atari.inc"
.include "fd.inc"
.importzp tmp1
.export fdt_to_fdi,getfd
.export fd_table,fd_index
.export ___fd_table,___fd_index ; for test(debug purposes only
.data
___fd_index:
f... |
wagiminator/C64-Collection | 2,346 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/atari-multijoy.s | ;
; MultiJoy joystick driver for the Atari. May be used multiple times when linked
; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-21
; Stefan Haubenthal, 2009-04-10
; Using code from Carsten Strotmann and help from Christian Groessler
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.includ... |
wagiminator/C64-Collection | 1,877 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/ostype.s | ;
; Christian Groessler, July 2004
; from Freddy Offenga's rominfo.c
;
; unsigned char get_ostype(void)
;
; x x x x x x x x - 8 bit flag
; | | | | | | | |
; | | | | | +-+-+-- main OS rev.
; | | +-+-+-------- minor OS rev.
; +-+-------------- unused
;
; main OS rev.:
; 000 - unknown
; 001 - 400/800 ROM
; 010 - 1200XL ... |
wagiminator/C64-Collection | 2,072 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/getargs.s | ; get arguments from command line (when DOS supports it)
; Freddy Offenga, 4/21/2000
MAXARGS = 16 ; max. amount of arguments in arg. table
CL_SIZE = 64 ; command line buffer size
SPACE = 32 ; SPACE char.
.include "atari.inc"
.import __argc, __argv
.importzp ptr1
.import __dos_type
.constructor initmainargs... |
wagiminator/C64-Collection | 1,142 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/dio_cts.s | ;
; Christian Groessler, October 2000
;
; this file provides the _dio_phys_to_log function
; (previously called _dio_chs_to_snum, so the filename)
;
; on the Atari this function is a dummy, it ignores
; cylinder and head and returns as sector number the
; sector number it got
;
; unsigned char __fastcall__ dio_phys_to_... |
wagiminator/C64-Collection | 4,144 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/oserror.s | ;
; Christian Groessler, May-2000
;
; os specific error code mapping
; int __fastcall__ _osmaperrno (unsigned char oserror);
;
.include "errno.inc"
.export __osmaperrno
.proc __osmaperrno
cmp #$80 ; error or success
bcs errcode ; error, jump
lda #0 ; no error, return 0
tax
rts
errcode:and #$7f ; create ... |
wagiminator/C64-Collection | 1,272 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/cputc.s | ;
; Mark Keates, Christian Groessler
;
; void cputcxy (unsigned char x, unsigned char y, char c);
; void cputc (char c);
;
.export _cputcxy, _cputc
.export plot, cputdirect, putchar
.import popa, _gotoxy, mul40
.importzp tmp4,ptr4
.import _revflag,setcursor
.include "atari.inc"
_cputcxy:
pha ... |
wagiminator/C64-Collection | 3,071 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/diopncls.s | ;
; Christian Groessler, February 2005
;
; This file provides the _dio_open and _dio_close functions
; Since on the Atari no real open and close is necessary, they
; do not open or close something. The _dio_open sets the sector
; size of the drive which is later used by the _dio_read and
; _dio_write functions. To quer... |
wagiminator/C64-Collection | 3,096 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/read.s | ;
; Christian Groessler, Jul-2005
;
; int __fastcall__ read(int fd,void *buf,int count)
;
.include "atari.inc"
.import __rwsetup,__do_oserror,__inviocb,__oserror
.export _read
_read: jsr __rwsetup ; do common setup for read and write
beq done ; if size 0, it's a no-op
cpx #$FF ; invalid iocb?
beq _inv... |
wagiminator/C64-Collection | 1,549 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/break.s | ;
; Christian Groessler, 27-Feb-2000
;
; void set_brk (unsigned Addr);
; void reset_brk (void);
;
.export _set_brk, _reset_brk
.destructor _reset_brk
.export _brk_a, _brk_x, _brk_y, _brk_sr, _brk_pc
.include "atari.inc"
.bss
_brk_a: .res 1
_brk_x: .res 1
_brk_y: .res 1
_brk... |
wagiminator/C64-Collection | 1,609 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/siocall.s | ;
; Christian Groessler, October 2000
;
; This file provides the __sio_call function
; The function does a SIO call, it's not completely
; generic (e.g. transfer size is fixed), it's used
; to save space with _dio_read and _dio_write functions.
;
; unsigned char __fastcall__ _sio_call(dhandle_t handle,
; sect... |
wagiminator/C64-Collection | 1,029 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/sysremove.s | ;
; Christian Groessler, Aug-2003
;
; int remove (const char* name);
;
.include "atari.inc"
.include "errno.inc"
.import findfreeiocb
.importzp tmp4
.ifdef UCASE_FILENAME
.importzp tmp3
.import addysp
.import ucase_fn
.endif
.export __sysremove
.proc __sysremove
pha ; save input parameter
txa
pha
jsr ... |
wagiminator/C64-Collection | 1,175 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/dio_stc.s | ;
; Christian Groessler, October 2000
;
; this file provides the _dio_log_to_phys function
; (previously called _dio_snum_to_chs, so the filename)
;
; on the Atari this function is a dummy, it returns
; cylinder and head 0 and as sector the sectnum it got
;
; unsigned char __fastcall__ dio_log_to_phys(dhandle_t handle,... |
wagiminator/C64-Collection | 4,005 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/oserrlist.s | ;
; Ullrich von Bassewitz, 18.07.2002
; Christian Groessler, 24.07.2002
;
; Defines the platform specific error list.
;
; The table is built as a list of entries
;
; .byte entrylen
; .byte errorcode
; .asciiz errormsg
;
; and terminated by an entry with length zero that is returned if the
; error ... |
wagiminator/C64-Collection | 2,357 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/atari-stdjoy.s | ;
; Standard joystick driver for the Atari. May be used multiple times when linked
; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-21
; Using the readjoy code from Christian Groessler
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.include "joy-error.inc"
.include "atari.inc"
.macpack g... |
wagiminator/C64-Collection | 7,450 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/rs232.s | ;
; Christian Groessler, Dec-2001
;
; RS232 routines using the R: device (currently tested with an 850 only)
;
; unsigned char __fastcall__ rs232_init (char hacked);
; unsigned char __fastcall__ rs232_params (unsigned char params, unsigned char parity);
; unsigned char __fastcall__ rs232_done (void);
; unsigned char __... |
wagiminator/C64-Collection | 11,684 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/ctype.s | ;
; Ullrich von Bassewitz, 02.06.1998
;
; Character specification table.
;
; adapted to Atari by Christian Groessler, June 2000
;
; The tables are readonly, put them into the rodata segment
.rodata
; The following 256 byte wide table specifies attributes for the isxxx type
; of functions. Doing it by a table means s... |
wagiminator/C64-Collection | 2,602 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/atari/open.s | ;
; Christian Groessler, Jan-2003
;
; int open(const char *name,int flags,...);
;
.include "atari.inc"
.include "fcntl.inc"
.include "errno.inc"
.include "fd.inc"
.export _open
.destructor closeallfiles, 17
.import _close
.import clriocb
.import fddecusage,newfd
.import findfreeiocb
.import __d... |
wagiminator/C64-Collection | 1,195 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/mouse/mouse_geterrormsg.s | ;
; Ullrich von Bassewitz, 2004-11-07
;
; const char* __fastcall__ mouse_geterrormsg (unsigned char code);
; /* Get an error message describing the error in code. */
;
.include "mouse-kernel.inc"
.proc _mouse_geterrormsg
cmp #MOUSE_ERR_COUNT
bcc L1
lda #MOUSE_ERR... |
wagiminator/C64-Collection | 5,387 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/mouse/mouse-kernel.s | ;
; Ullrich von Bassewitz, 2003-12-28, 2009-09-26
;
; Common functions of the mouse driver API.
;
.import return0, popsreg, incsp2
.importzp sreg, ptr1, tmp1, tmp2
.interruptor mouse_irq ; Export as IRQ handler
.include "mouse-kernel.inc"
;-----... |
wagiminator/C64-Collection | 3,193 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/mouse/mouse_load.s | ;
; Ullrich von Bassewitz, 2006-06-05
;
; unsigned char __fastcall__ mouse_load_driver (const struct mouse_callbacks* c,
; const char* name)
; /* Load a mouse driver and return an error code */
.include "mouse-kernel.inc"
.i... |
wagiminator/C64-Collection | 9,214 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/apple2-stdmou.s | ;
; Driver for the AppleMouse II Card.
;
; Oliver Schmidt, 03.09.2005
;
.include "zeropage.inc"
.include "mouse-kernel.inc"
.include "apple2.inc"
; ------------------------------------------------------------------------
SETMOUSE = $12 ; Sets mouse mode
SERVEMOUSE = $13 ; Services mouse interrupt
READMOUSE = $14 ... |
wagiminator/C64-Collection | 1,262 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/sysmkdir.s | ;
; Oliver Schmidt, 15.04.2005
;
; unsigned char _sysmkdir (const char* name, ...);
;
.export __sysmkdir
.import pushname, popname
.import addysp, popax
.include "zeropage.inc"
.include "mli.inc"
__sysmkdir:
; Throw away all parameters except the name
dey
dey
... |
wagiminator/C64-Collection | 1,113 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/sysrename.s | ;
; Oliver Schmidt, 15.04.2005
;
; unsigned char __fastcall__ _sysrename (const char* oldname, const char* newname);
;
.export __sysrename
.import pushname, popname
.import popax
.include "zeropage.inc"
.include "mli.inc"
__sysrename:
; Save newname
sta ptr2
stx ptr2+1
; Get ... |
wagiminator/C64-Collection | 8,761 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/crt0.s | ;
; Oliver Schmidt, 15.09.2009
;
; Startup code for cc65 (Apple2 version)
;
.export _exit, done, return
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import zerobss
.import initlib, donelib
.import callmain, callirq
.import ... |
wagiminator/C64-Collection | 2,303 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/videomode.s | ;
; Oliver Schmidt, 07.09.2009
;
; unsigned __fastcall__ videomode (unsigned mode);
;
.export _videomode
.import COUT
.include "apple2.inc"
.segment "LOWCODE"
_videomode:
; Get and save current videomode flag
bit RD80VID
php
... |
wagiminator/C64-Collection | 1,195 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/rwcommon.s | ;
; Oliver Schmidt, 12.01.2005
;
.export rwprolog, rwcommon, rwepilog
.import oserrexit
.import popax
.include "zeropage.inc"
.include "fcntl.inc"
.include "mli.inc"
.include "filedes.inc"
rwprolog:
; Save count
sta ptr2
stx ptr2+1
... |
wagiminator/C64-Collection | 2,722 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/mcbdefault.s | ;
; Default mouse callbacks for the Apple II
;
; Oliver Schmidt, 22.09.2005
;
; All functions in this module should be interrupt safe, because they may
; be called from an interrupt handler
;
.export _mouse_def_callbacks
.include "apple2.inc"
; --------------------------------------------------------------------... |
wagiminator/C64-Collection | 5,237 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/mainargs.s | ; mainargs.s
;
; Ullrich von Bassewitz, 2003-03-07
; Based on code from Stefan A. Haubenthal <polluks@web.de>, 2003-11-08
; Greg King, 2003-05-18
; Stefan Haubenthal, 2005-01-07
; Oliver Schmidt, 2005-04-05
;
; Scan a group of arguments that are in BASIC's input-buffer.
; Build an array that points to the beginning of ... |
wagiminator/C64-Collection | 1,987 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/get_ostype.s | ;
; Oliver Schmidt, 04.01.2005
;
; unsigned char get_ostype (void)
;
.constructor initostype
.export _get_ostype
; Identify machine according to:
; Apple II Miscellaneous TechNote #7, Apple II Family Identification
.segment "INIT"
initostype:
sec
jsr $FE... |
wagiminator/C64-Collection | 2,017 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/oserror.s | ;
; Ullrich von Bassewitz, 17.05.2000
;
; int __fastcall__ _osmaperrno (unsigned char oserror);
;
.export __osmaperrno
.include "errno.inc"
__osmaperrno:
ldx #ErrTabSize
: cmp ErrTab-2,x ; Search for the error code
beq :+ ; Jump if found
dex
dex
bne :- ... |
wagiminator/C64-Collection | 2,592 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/cputc.s | ;
; Ullrich von Bassewitz, 06.08.1998
;
; void __fastcall__ cputcxy (unsigned char x, unsigned char y, char c);
; void __fastcall__ cputc (char c);
;
.ifdef __APPLE2ENH__
.constructor initconio, 17
.endif
.export _cputcxy, _cputc
.export cputdirect, newline, ... |
wagiminator/C64-Collection | 2,073 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/filename.s | ;
; Oliver Schmidt, 30.12.2004
;
; File name handling for ProDOS 8 file I/O
;
.export pushname, popname
.import subysp, addysp, decsp1
.include "zeropage.inc"
.include "mli.inc"
pushname:
sta ptr1
stx ptr1+1
; Alloc pathname buffer
ldy #64+1 ; Max p... |
wagiminator/C64-Collection | 13,598 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/apple2-40-48-16.s | ;
; Graphics driver for the 40x48x16 mode on the Apple II
;
; Stefan Haubenthal <polluks@sdf.lonestar.org>
; Oliver Schmidt <ol.sc@web.de>
; Based on Maciej Witkowiak's line and circle routine
;
.include "zeropage.inc"
.include "tgi-kernel.inc"
.include "tgi-mode.inc"
.include "tgi-error.inc"
.include "apple2.in... |
wagiminator/C64-Collection | 4,413 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/apple2-auxmem.s | ;
; Extended memory driver for the Apple II auxiliary memory
;
; Stefan Haubenthal, 2003-12-12
; Ullrich von Bassewitz, 2002-12-02
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.macpack generic
; ------------------------------------------------------------------------
; Header. In... |
wagiminator/C64-Collection | 2,059 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/read.s | ;
; Oliver Schmidt, 12.01.2005
;
; int __fastcall__ read (int fd, void* buf, unsigned count);
;
.constructor initprompt
.export _read
.import rwprolog, rwcommon
.import errnoexit
.import RDKEY, COUT
.include "zeropage.inc"
.include "errno.inc"
.inclu... |
wagiminator/C64-Collection | 1,682 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/break.s | ;
; Ullrich von Bassewitz, 27.09.1998
;
; void set_brk (unsigned Addr);
; void reset_brk (void);
;
.export _set_brk, _reset_brk
.destructor _reset_brk
; Be sure to export the following variables absolute
.export _brk_a: abs, _brk_x: abs, _brk_y: abs
.export _brk_sr... |
wagiminator/C64-Collection | 1,103 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/dosdetect.s | ;
; Oliver Schmidt, 08.03.2004
;
; Identify DOS version we're running on as one of these:
;
; AppleDOS 3.3 - $00
; ProDOS 8 1.0.1 - $10
; ProDOS 8 1.0.2 - $10
; ProDOS 8 1.1.1 - $11
; ProDOS 8 1.2 - $12
; ProDOS 8 1.3 - $13
; ProDOS 8 1.4 - $14
; ProDOS 8 1.5 - $15
; ProDOS 8 1.6 - $16
; ProDOS 8 1.7 - $1... |
wagiminator/C64-Collection | 10,149 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/apple2-ssc.s | ;
; Serial driver for the Apple II Super Serial Card.
;
; Oliver Schmidt, 21.04.2005
;
; The driver is based on the cc65 rs232 module, which in turn is based on
; Craig Bruce device driver for the Switftlink/Turbo-232.
;
; SwiftLink/Turbo-232 v0.90 device driver, by Craig Bruce, 14-Apr-1998.
;
; This software is Public... |
wagiminator/C64-Collection | 1,187 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/dioopen.s | ;
; Oliver Schmidt, 24.03.2005
;
; dhandle_t __fastcall__ dio_open (driveid_t drive_id);
;
; drive_id = (slot * 2) + (drive - 1)
.export _dio_open
.import return0
.include "zeropage.inc"
.include "errno.inc"
.include "mli.inc"
_dio_open:
; Convert drive id into unit ... |
wagiminator/C64-Collection | 1,185 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/filedes.s | ;
; Oliver Schmidt, 30.12.2004
;
; File descriptor management for the POSIX I/O routines
;
.include "errno.inc"
.include "fcntl.inc"
.include "filedes.inc"
getfd:
; Check for handle >= 256
cpx #$00
bne error
; Check for handle >= MAX_FDS
cmp #MAX_FDS
... |
wagiminator/C64-Collection | 3,371 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/apple2-stdjoy.s | ;
; Standard joystick driver for the Apple ][. May be used multiple times
; when statically linked to the application.
;
; Ullrich von Bassewitz, 2003-05-02
; Oliver Schmidt, 2008-02-25
; Using the readjoy code from Stefan Haubenthal
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.include ... |
wagiminator/C64-Collection | 2,846 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/oserrlist.s | ;
; Stefan Haubenthal, 2003-12-24
; Ullrich von Bassewitz, 18.07.2002
;
; Defines the platform specific error list.
;
; The table is built as a list of entries
;
; .byte entrylen
; .byte errorcode
; .asciiz errormsg
;
; and terminated by an entry with length zero that is returned if the
; error co... |
wagiminator/C64-Collection | 2,808 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/textframe.s | ;
; Oliver Schmidt, 10.03.2004
;
; void __fastcall__ textframexy (unsigned char x, unsigned char y,
; unsigned char width, unsigned char height,
; unsigned char style);
; void __fastcall__ textframe (unsigned char width, unsigned char height,
; ... |
wagiminator/C64-Collection | 20,167 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/apple2-280-192-8.s | ;
; Graphics driver for the 280x192x8 mode on the Apple II
;
; Stefan Haubenthal <polluks@sdf.lonestar.org>
; Oliver Schmidt <ol.sc@web.de>
; Based on Maciej Witkowiak's circle routine
;
.include "zeropage.inc"
.include "tgi-kernel.inc"
.include "tgi-mode.inc"
.include "tgi-error.inc"
.include "apple2.inc"
.ma... |
wagiminator/C64-Collection | 2,367 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/write.s | ;
; Oliver Schmidt, 12.01.2005
;
; int __fastcall__ write (int fd, const void* buf, unsigned count);
;
.export _write
.import rwprolog, rwcommon, rwepilog
.import errnoexit, oserrexit
.import COUT
.include "zeropage.inc"
.include "errno.inc"
.include "fcntl.... |
wagiminator/C64-Collection | 6,774 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/ctype.s | ;
; Stefan Haubenthal with minor changes from Ullrich von Bassewitz, 2003-05-02
;
; Character specification table.
;
.include "ctype.inc"
; The tables are readonly, put them into the rodata segment
.rodata
; The following 256 byte wide table specifies attributes for the isxxx type
; of functions. Doing it by a tab... |
wagiminator/C64-Collection | 5,172 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/apple2/open.s | ;
; Oliver Schmidt, 30.12.2004
;
; int open (const char* name, int flags, ...);
;
; Be sure to keep the value priority of closeallfiles lower than that of
; closeallstreams (which is the high level C file I/O counterpart and must be
; called before closeallfiles).
.export _open, closedirect, freebuffer
... |
wagiminator/C64-Collection | 5,311 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/crt0.s | ;
; Startup code for cc65 (Plus/4 version)
;
.export _exit
.export brk_jmp
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import callirq_y, initlib, donelib
.import callmain, zerobss
.import __INTERRUPTOR_COUNT__
.include "zeropage.inc"
... |
wagiminator/C64-Collection | 2,702 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/plus4-stdjoy.s | ;
; Standard joystick driver for the Plus/4. May be used multiple times when linked
; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-21
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.include "joy-error.inc"
.include "plus4.inc"
.macpack ... |
wagiminator/C64-Collection | 11,306 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/plus4-stdser.s | ;
; Serial driver for the builtin 6551 ACIA of the Plus/4.
;
; Ullrich von Bassewitz, 2003-12-13
;
; The driver is based on the cc65 rs232 module, which in turn is based on
; Craig Bruce device driver for the Switftlink/Turbo-232.
;
; SwiftLink/Turbo-232 v0.90 device driver, by Craig Bruce, 14-Apr-1998.
;
; This softwa... |
wagiminator/C64-Collection | 1,305 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/ksetnam.s | ;
; Ullrich von Bassewitz, 22.11.2002
;
; SETNAM replacement function
;
.export SETNAM
.include "plus4.inc"
; This function is special in that the name must reside in low memory,
; otherwise it is not accessible by the ROM code.
.segment "LOWCODE" ; Must go into l... |
wagiminator/C64-Collection | 3,991 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/mainargs.s | ; mainargs.s
;
; Ullrich von Bassewitz, 2003-03-07
; Based on code from Stefan A. Haubenthal, <polluks@web.de>
; 2003-05-18, Greg King
; 2004-04-28, 2005-02-26, Ullrich von Bassewitz
;
; Scan a group of arguments that are in BASIC's input-buffer.
; Build an array that points to the beginning of each argument.
; Send, t... |
wagiminator/C64-Collection | 1,852 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/cputc.s | ;
; Ullrich von Bassewitz, 06.08.1998
;
; void cputcxy (unsigned char x, unsigned char y, char c);
; void cputc (char c);
;
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
.import PLOT
.include "plus4.inc"
_cputcxy:
pha ; Save C
jsr popa ... |
wagiminator/C64-Collection | 1,331 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/break.s | ;
; Ullrich von Bassewitz, 27.09.1998
;
; void set_brk (unsigned Addr);
; void reset_brk (void);
;
.export _set_brk, _reset_brk
.export _brk_a, _brk_x, _brk_y, _brk_sr, _brk_pc
.import brk_jmp
.include "plus4.inc"
.bss
_brk_a: .res 1
_brk_x: .res 1
_brk_y: .res 1... |
wagiminator/C64-Collection | 2,256 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/plus4/cgetc.s | ;
; Ullrich von Bassewitz, 06.08.1998
;
; char cgetc (void);
;
.export _cgetc
.import cursor
.include "plus4.inc"
; --------------------------------------------------------------------------
.segment "LOWCODE" ; Accesses the ROM - must go into low mem
_cgetc: lda KEY_COUNT ;... |
wagiminator/C64-Collection | 3,045 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c16/crt0.s | ;
; Startup code for cc65 (C16 version)
;
; Note: The C16 is actually the Plus/4 with just 16KB of memory. So many
; things are similar here, and we even use the plus4.inc include file.
;
.export _exit
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import initlib, donelib, callirq
.imp... |
wagiminator/C64-Collection | 6,797 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c16/c16-ram.s | ;
; Extended memory driver for the C16 hidden RAM. Driver works without
; problems when statically linked.
;
; Ullrich von Bassewitz, 2003-12-15
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.include "plus4.inc"
.macpack generic
; --------------... |
wagiminator/C64-Collection | 1,948 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c16/kernal.s | ;
; Ullrich von Bassewitz, 19.11.2002
;
; C16 kernal functions
;
.export CINT
.export IOINIT
.export RAMTAS
.export RESTOR
.export VECTOR
.export SETMSG
.export SECOND
.export TKSA
.e... |
wagiminator/C64-Collection | 3,901 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c16/mainargs.s | ; mainargs.s
;
; Ullrich von Bassewitz, 2003-03-07
; Based on code from Stefan A. Haubenthal, <polluks@web.de>
; 2003-05-18, Greg King
; 2004-04-28, 2005-02-26, Ullrich von Bassewitz
;
; Scan a group of arguments that are in BASIC's input-buffer.
; Build an array that points to the beginning of each argument.
; Send, t... |
wagiminator/C64-Collection | 1,852 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c16/cputc.s | ;
; Ullrich von Bassewitz, 06.08.1998
;
; void cputcxy (unsigned char x, unsigned char y, char c);
; void cputc (char c);
;
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
.import PLOT
.include "plus4.inc"
_cputcxy:
pha ; Save C
jsr popa ... |
wagiminator/C64-Collection | 1,548 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c16/break.s | ;
; Ullrich von Bassewitz, 27.09.1998
;
; void set_brk (unsigned Addr);
; void reset_brk (void);
;
.export _set_brk, _reset_brk
.destructor _reset_brk
.export _brk_a, _brk_x, _brk_y, _brk_sr, _brk_pc
.include "plus4.inc"
.bss
_brk_a: .res 1
_brk_x: .res 1
_brk_y: .res 1
_brk_sr... |
wagiminator/C64-Collection | 1,841 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c16/cgetc.s | ;
; Ullrich von Bassewitz, 06.08.1998
;
; char cgetc (void);
;
.export _cgetc
.import cursor
.include "plus4.inc"
; --------------------------------------------------------------------------
_cgetc: lda KEY_COUNT ; Get number of characters
ora FKEY_COUNT ; Or with number of funct... |
wagiminator/C64-Collection | 6,567 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/dtv-himem.s | ;
; Extended memory driver for the C64 D2TV (the second or PAL version).
; Driver works without problems when statically linked.
;
; Ullrich von Bassewitz, 2005-11-27
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.macpack generic
; -------------... |
wagiminator/C64-Collection | 7,756 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-vdc.s | ;
; Extended memory driver for the VDC RAM available on all C128 machines
; (based on code by Ullrich von Bassewitz)
; Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
; 06,20.12.2002
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.macpack generic
; --------... |
wagiminator/C64-Collection | 2,772 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-stdjoy.s | ;
; Standard joystick driver for the C64. May be used multiple times when linked
; to the statically application.
;
; Ullrich von Bassewitz, 2002-12-20
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.include "joy-error.inc"
.include "c64.inc"
.macpack gener... |
wagiminator/C64-Collection | 2,666 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-numpad.s | ;
; Joystick driver using C128 number pad in 64 mode.
; May be used multiple times when linked to the statically application.
;
; Stefan Haubenthal, 2004-01-26
; Based on Ullrich von Bassewitz, 2002-12-20
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.include "joy-error.inc"
.include "c64.inc"
.macpack ge... |
wagiminator/C64-Collection | 3,269 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/crt0.s | ;
; Startup code for cc65 (C64 version)
;
.export _exit
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import initlib, donelib, callirq
.import zerobss
.import callmain
.import RESTOR, BSOUT, CLRCH
.import __INTERRUPTOR_COUNT__
.import _... |
wagiminator/C64-Collection | 6,628 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-georam.s | ;
; Extended memory driver for the GEORAM cartridge. Driver works without
; problems when statically linked.
;
; Ullrich von Bassewitz, 2002-11-29
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.macpack generic
; ---------------------------------... |
wagiminator/C64-Collection | 6,881 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-reu.s | ;
; Extended memory driver for the Commodore REU. Driver works without
; problems when statically linked.
;
; Ullrich von Bassewitz, 2002-11-29
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.macpack generic
; ------------------------------------... |
wagiminator/C64-Collection | 1,939 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/systime.s | ;
; Stefan Haubenthal, 27.7.2009
;
; time_t _systime (void);
; /* Similar to time(), but:
; * - Is not ISO C
; * - Does not take the additional pointer
; * - Does not set errno when returning -1
; */
;
.include "time.inc"
.include "c64.inc"
.constructor initsystime
... |
wagiminator/C64-Collection | 1,934 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/kernal.s | ;
; Ullrich von Bassewitz, 19.11.2002
;
; C64 kernal functions
;
.export CINT
.export IOINIT
.export RAMTAS
.export RESTOR
.export VECTOR
.export SETMSG
.export SECOND
.export TKSA
.e... |
wagiminator/C64-Collection | 6,507 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-ram.s | ;
; Extended memory driver for the C64 hidden RAM. Driver works without
; problems when statically linked.
;
; Ullrich von Bassewitz, 2002-12-02
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.macpack generic
; -----------------------------------... |
wagiminator/C64-Collection | 2,745 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/mcbdefault.s | ;
; Default mouse callbacks for the C64
;
; Ullrich von Bassewitz, 2004-03-20
;
; All functions in this module should be interrupt safe, because they may
; be called from an interrupt handler
;
.export _mouse_def_callbacks
.include "mouse-kernel.inc"
.include "c64.inc"
... |
wagiminator/C64-Collection | 3,810 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/mainargs.s | ; mainargs.s
;
; Ullrich von Bassewitz, 2003-03-07
; Based on code from Stefan A. Haubenthal, <polluks@web.de>
; 2003-05-18, Greg King
; 2004-04-28, 2005-02-26, Ullrich von Bassewitz
;
; Scan a group of arguments that are in BASIC's input-buffer.
; Build an array that points to the beginning of each argument.
; Send, t... |
wagiminator/C64-Collection | 6,570 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-ramcart.s | ;
; Extended memory driver for the RamCart 64/128KB cartridge. Driver works
; without problems when statically linked.
; Code is based on GEORAM code by Ullrich von Bassewitz.
; Maciej 'YTM/Elysium' Witkowiak <ytm@elysium.pl>
; 06,22.12.2002
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include... |
wagiminator/C64-Collection | 1,839 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/cputc.s | ;
; Ullrich von Bassewitz, 1998-08-06, 2009-09-26
;
; void __fastcall__ cputcxy (unsigned char x, unsigned char y, char c);
; void __fastcall__ cputc (char c);
;
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
.import PLOT
.include "c64.inc"
... |
wagiminator/C64-Collection | 1,613 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/break.s | ;
; Ullrich von Bassewitz, 27.09.1998
;
; void set_brk (unsigned Addr);
; void reset_brk (void);
;
.export _set_brk, _reset_brk
.destructor _reset_brk
.export _brk_a, _brk_x, _brk_y, _brk_sr, _brk_pc
.include "c64.inc"
.bss
_brk_a: .res 1
_brk_x: .res 1
_brk_y: ... |
wagiminator/C64-Collection | 31,707 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-320-200-2.s | ;
; Graphics driver for the 320x200x2 mode on the C64.
;
; Based on Stephen L. Judds GRLIB code
;
.include "zeropage.inc"
.include "tgi-kernel.inc"
.include "tgi-mode.inc"
.include "tgi-error.inc"
.macpack generic
; -------------------------------------------... |
wagiminator/C64-Collection | 5,776 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-hitjoy.s | ;
; DXS/HIT-4 Player joystick driver for the C64
;
; Groepaz/Hitmen, 2002-12-23
; obviously based on Ullrichs driver :)
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.include "joy-error.inc"
.include "c64.inc"
.macpack generic
; -----------------------------------------... |
wagiminator/C64-Collection | 3,700 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-ptvjoy.s | ;
; PTV-4 Player joystick driver for the C64
;
; Groepaz/Hitmen, 2002-12-23
; obviously based on Ullrichs driver :)
;
.include "zeropage.inc"
.include "joy-kernel.inc"
.include "joy-error.inc"
.include "c64.inc"
.macpack generic
; ---------------------------------------------... |
wagiminator/C64-Collection | 1,142 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/cgetc.s | ;
; Ullrich von Bassewitz, 06.08.1998
;
; char cgetc (void);
;
.export _cgetc
.import cursor
.include "c64.inc"
_cgetc: lda KEY_COUNT ; Get number of characters
bne L3 ; Jump if there are already chars waiting
; Switch on the cursor if needed
lda CURS_FLAG
pha
lda cursor
jsr setcursor... |
wagiminator/C64-Collection | 12,946 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-1351.s | ;
; Driver for the 1351 proportional mouse. Parts of the code are from
; the Commodore 1351 mouse users guide.
;
; 2009-09-26, Ullrich von Bassewitz
; 2010-02-06, Greg King
;
; The driver prevents the keyboard from interfering by changing the
; keyboard's output port into an input port while the driver reads its
; cont... |
wagiminator/C64-Collection | 12,400 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-joymouse.s | ;
; Driver for a "joystick mouse".
;
; Ullrich von Bassewitz, 2004-03-29, 2009-09-26
; 2010-02-08, Greg King
;
; The driver prevents the keyboard from interfering by changing the
; keyboard's output port into an input port while the driver reads its
; controller device. That disables a wire that is left active by the
... |
wagiminator/C64-Collection | 8,486 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-potmouse.s | ;
; Driver for a potentiometer "mouse" e.g. Koala Pad
;
; Ullrich von Bassewitz, 2004-03-29, 2009-09-26
; Stefan Haubenthal, 2006-08-20
;
.include "zeropage.inc"
.include "mouse-kernel.inc"
.include "c64.inc"
.macpack generic
; ------------------------------------------------------------------------
; Header. In... |
wagiminator/C64-Collection | 12,546 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/c64/c64-swlink.s | ;
; Serial driver for the C64 using a Swiftlink or Turbo-232 cartridge.
;
; Ullrich von Bassewitz, 2003-04-18
;
; The driver is based on the cc65 rs232 module, which in turn is based on
; Craig Bruce device driver for the Switftlink/Turbo-232.
;
; SwiftLink/Turbo-232 v0.90 device driver, by Craig Bruce, 14-Apr-1998.
;
... |
wagiminator/C64-Collection | 1,584 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/color.s | ;
; Ullrich von Bassewitz, 13.09.2001
;
.export _textcolor, _bgcolor, _bordercolor
.import sys_bank, restore_bank
.import vic: zp, CHARCOLOR: zp
.include "cbm510.inc"
; ------------------------------------------------------------------------
; unsigned char __fastcall__ textcolor (unsigne... |
wagiminator/C64-Collection | 14,192 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/crt0.s | ;
; Startup code for cc65 (CBM 500 version)
;
.export _exit
.export __STARTUP__ : absolute = 1 ; Mark as startup
.import _clrscr, initlib, donelib, callirq_y
.import push0, callmain
.import __CHARRAM_START__, __CHARRAM_SIZE__, __VIDRAM_START__
.import ... |
wagiminator/C64-Collection | 1,908 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/systime.s | ;
; Stefan Haubenthal, 2009-07-27
; Ullrich von Bassewitz, 2009-09-24
;
; time_t _systime (void);
; /* Similar to time(), but:
; * - Is not ISO C
; * - Does not take the additional pointer
; * - Does not set errno when returning -1
; */
;
.include "time.inc"
.include "cbm510.inc... |
wagiminator/C64-Collection | 1,857 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/kernal.s | ;
; Ullrich von Bassewitz, 2003-12-20
;
; CBM610 kernal functions
;
.export CINT
.export IOINIT
.export RAMTAS
.export RESTOR
.export VECTOR
.export SETMSG
.export SECOND
.export TKSA
... |
wagiminator/C64-Collection | 2,531 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/kscnkey.s | ;
; Ullrich von Bassewitz, 13.09.2001
;
; Keyboard polling stuff for the 510.
;
.export scnkey
.importzp tpi2, ktab1, ktab2, ktab3, ktab4
.importzp keyidx, keybuf, keyscanbuf, keysave, modkey, norkey
.importzp graphmode, lastidx, rptdelay, rptcount
.include "cbm510.in... |
wagiminator/C64-Collection | 11,856 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/cbm510-stdser.s | ;
; Serial driver for the builtin 6551 ACIA of the Commodore 510.
;
; Ullrich von Bassewitz, 2003-12-18
;
; The driver is based on the cc65 rs232 module, which in turn is based on
; Craig Bruce device driver for the Switftlink/Turbo-232.
;
; SwiftLink/Turbo-232 v0.90 device driver, by Craig Bruce, 14-Apr-1998.
;
; This... |
wagiminator/C64-Collection | 1,722 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/extzp.s | ;
; Ullrich von Bassewitz, 2003-02-16
;
; Additional zero page locations for the CBM510.
; NOTE: The zeropage locations contained in this file get initialized
; in the startup code, so if you change anything here, be sure to check
; not only the linker config, but also the startup file.
;
; ---------------------------... |
wagiminator/C64-Collection | 2,593 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/cputc.s | ;
; Ullrich von Bassewitz, 14.09.2001
;
; void cputcxy (unsigned char x, unsigned char y, char c);
; void cputc (char c);
;
.export _cputcxy, _cputc, cputdirect, putchar
.export newline, plot
.import popa, _gotoxy
.import __VIDRAM_START__
.import CURS_X: zp, CURS_Y: zp... |
wagiminator/C64-Collection | 1,646 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/break.s | ;
; Ullrich von Bassewitz, 27.09.1998
;
; void set_brk (unsigned Addr);
; void reset_brk (void);
;
.export _set_brk, _reset_brk
.export _brk_a, _brk_x, _brk_y, _brk_sr, _brk_pc
.import _atexit, BRKVec
.include "cbm510.inc"
.bss
_brk_a: .res 1
_brk_x: .res 1
_brk_y: .res... |
wagiminator/C64-Collection | 7,097 | C64_xu1541/software/tools/cc65-2.13.2/libsrc/cbm510/cbm510-ram.s | ;
; Extended memory driver for the CBM510 additional RAM banks. Driver works
; without problems when linked statically.
;
; Ullrich von Bassewitz, 2002-12-09, 2003-12-27
;
.include "zeropage.inc"
.include "em-kernel.inc"
.include "em-error.inc"
.include "cbm510.inc"
.m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.