mirror of
https://github.com/RevCurtisP/C02.git
synced 2024-11-22 01:31:33 +00:00
Renamed Apple 2 standard header files
This commit is contained in:
parent
45cead9330
commit
dfedddab72
@ -1,6 +1,6 @@
|
|||||||
/* C02 Apple II Test Program */
|
/* C02 Apple II Test Program */
|
||||||
|
|
||||||
#include <apple2.h02>
|
#include <appl2std.h02>
|
||||||
|
|
||||||
char i;
|
char i;
|
||||||
|
|
||||||
@ -10,3 +10,4 @@ main:
|
|||||||
prchr(i);
|
prchr(i);
|
||||||
}
|
}
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
|
@ -1,5 +1,16 @@
|
|||||||
@ECHO Compiling File %1.c02
|
@echo Compiling File %1.c02
|
||||||
..\c02.exe %1
|
..\c02.exe %1 >%1.out
|
||||||
|
@if ERRORLEVEL 1 exit /b
|
||||||
|
|
||||||
@ECHO Assembling File %1.asm
|
@echo Assembling File %1.asm
|
||||||
C:\Programs\dasm %1.asm -f3 -o%1.bin -l%1.lst -s%1.sym
|
dasm %1.asm -f3 -o%1.bin -l%1.lst -s%1.sym
|
||||||
|
@if ERRORLEVEL 1 exit /b
|
||||||
|
|
||||||
|
@echo Building Disk Image
|
||||||
|
copy /Y boot.dsk %1.dsk
|
||||||
|
echo BRUN %1 |a2tools in t %1.dsk command
|
||||||
|
a2tools in b.0C00 %1.dsk %1 %1.bin
|
||||||
|
@if ERRORLEVEL 1 exit /b
|
||||||
|
|
||||||
|
@echo Starting Emulator
|
||||||
|
start C:\Programs\AppleWin\applewin -d1 %1.dsk
|
||||||
|
@ -40,11 +40,17 @@ functions must be defined:
|
|||||||
Note: Depending on the system, this will usually
|
Note: Depending on the system, this will usually
|
||||||
output a Carriage Return, Line Feed, both.
|
output a Carriage Return, Line Feed, both.
|
||||||
|
|
||||||
prchr(c); Writes character c to the screen.
|
echo(c); Writes character c to the screen without any
|
||||||
|
translation.
|
||||||
|
|
||||||
Note: May directly access memory-mapped I/O
|
Note: May directly access memory-mapped I/O
|
||||||
or may call a system subroutine.
|
or may call a system subroutine.
|
||||||
|
|
||||||
|
prchr(c); Writes character c to the screen.
|
||||||
|
|
||||||
|
Note: Does any needed ACSII conversions, then calls
|
||||||
|
echo().
|
||||||
|
|
||||||
setdst(&s): Stores pointer to &s in dstlo and dsthi.
|
setdst(&s): Stores pointer to &s in dstlo and dsthi.
|
||||||
|
|
||||||
setsrc(&s): Stores pointer to &s in srclo and srchi and
|
setsrc(&s): Stores pointer to &s in srclo and srchi and
|
||||||
|
@ -71,6 +71,7 @@ PLKEYR: RTS
|
|||||||
;Read Keyboard
|
;Read Keyboard
|
||||||
GETKEY EQU KEYIN ;Alias to Monitor Routine
|
GETKEY EQU KEYIN ;Alias to Monitor Routine
|
||||||
|
|
||||||
|
|
||||||
;Print Character to Screen
|
;Print Character to Screen
|
||||||
PRCHR: ORA #$80 ;Set High Bit
|
PRCHR: ORA #$80 ;Set High Bit
|
||||||
CMP #$E0 ;
|
CMP #$E0 ;
|
@ -1,4 +1,4 @@
|
|||||||
/* Apple 1 Header File */
|
/* Apple ][ Header File */
|
||||||
|
|
||||||
/* Monitor Variables */
|
/* Monitor Variables */
|
||||||
|
|
||||||
@ -18,8 +18,8 @@ char temp0, temp1, temp2, temp3; //Temporary Variables
|
|||||||
char invflg; //Video Invert Mask
|
char invflg; //Video Invert Mask
|
||||||
|
|
||||||
//Keyboard I/O
|
//Keyboard I/O
|
||||||
char kbd; //Keyboard Data
|
char kbd; //Keyboard Data Register
|
||||||
char abd; //Keyboard Strobe
|
char abd; //Keyboard Strobe Register
|
||||||
|
|
||||||
//Monitor Subroutines
|
//Monitor Subroutines
|
||||||
void echo(); //Print Character in Accumulator
|
void echo(); //Print Character in Accumulator
|
Loading…
Reference in New Issue
Block a user