1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-22 01:31:33 +00:00

Cleaned up system header files

This commit is contained in:
Curtis F Kaylor 2019-11-15 13:27:55 -05:00
parent 51bf4514d6
commit 508533b148
4 changed files with 36 additions and 24 deletions

View File

@ -35,3 +35,7 @@ void newlin(); //Advance cursor to beginning of next line
char putchr(); //Print ASCII character to Console
void setdst(); //Set Destination Pointer
void setsrc(); //Set Source Pointer
//System Labels
start: //Start of Code
exit: //Return to Operating System

View File

@ -1,4 +1,4 @@
; c02 Program Initialization Code for Unexpanded VIC-20
; c02 Program Initialization Code for Commodore 64
;PETSCII Key Mappings
DELKEY EQU $14 ;Delete/Backspace Key (Delete)
@ -6,6 +6,9 @@ ESCKEY EQU $03 ;Escape/Stop Key (RUN/STOP)
RTNKEY EQU $0D ;Return/Enter Key (RETURN)
;Zero Page Variables
XMBANK EQU $0A ;Extended Memory Bank (Load/Verify Flag)
XADRLO EQU $0B ;Ext Memory Address LSB (Text Index/Array Size)
XADRHI EQU $0C ;Ext Memory Address MSB (Array Dimension Fkags)
SRCLO EQU $22 ;Source Pointer LSB [Temporary Pointers]
SRCHI EQU $23 ;Source Pointer MSB [Temporary Pointers]
DSTLO EQU $24 ;Destination Pointer LSB [Temporary Pointers]
@ -51,7 +54,7 @@ FSFLFA EQU $F314 ;Find Logical File A
;Machine Language Basic Stub
ORG $0801 ;Start of Basic Program
BASIC: DC $0C, $10 ;Pointer to Next Line (4109)
BASIC: DC $0C, $08 ;Pointer to Next Line
DC $00, $00 ;Line Number (0)
DC $9E ;SYS
DC $20 ;' '
@ -91,4 +94,9 @@ NEWLIN: LDX #0 ;Store 0
STX $D3 ;in Cursor Column and
JMP $E87C ;Execute NXTLINE Routine
;Print Zero Delimited String to Screen
PUTSTR: TXA ;Copy LSB to Accumulator
JMP $AB1E ;Execute STROUT
INCLUDE "../include/prbyte.a02" ;PRBYTE and PRHEX routine

View File

@ -23,7 +23,7 @@ char temp0, temp1, temp2, temp3; //Temporary Storage
//Memory Mapped I/O
char putcon; //Write Character to Console
char getcomn; //Read Character from Console
char getcon; //Read Character from Console
//System Subroutines
char polkey(); //Poll Console for character

View File

@ -1,6 +1,6 @@
/************************************************
* template - Template Library Routines for C02 *
************************************************/
/***************************************************
* template.a02 - Template Module Routines for C02 *
***************************************************/
/* Function Description *
* Args: a - First Argument *