1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-06-08 06:29:32 +00:00

Updated include/x16/joystk.a02

This commit is contained in:
Curtis F Kaylor 2019-11-20 10:52:41 -05:00
parent 665834bc74
commit 83c5f00759
2 changed files with 23 additions and 4 deletions

View File

@ -1,11 +1,11 @@
;Joystick Constants and Functions
;Non-Functional Skeleton for Systems with No Joystick Support
;for Commander X16 Computer
JYSTKS EQU 2 ;Number of Joysticks
JYDATA EQU $02BC ;Joystick 0 Data
.JYDATA EQU $02BC ;Joystick 0 Data
GETJOY EQU $FF06 ;Kernal GETJOY Routine
.GETJOY EQU $FF06 ;Kernal GETJOY Routine
;Joystick Bit Masks
JOYUP EQU $08 ;Up
@ -29,5 +29,5 @@ JOYSTK: CMP #JYSTKS ;If Invalid Joystick Number
;EOR #$FF ;Invert Bits
AND #$CF ;and Mask off Select/Start
RTS
JOYSTE: LDA #255 ;Return Error Code
JOYSTE: LDA #255 ;Return Error Code
RTS

19
test/x16.bat Normal file
View File

@ -0,0 +1,19 @@
@REM Compile and Run C02 Program for Commander X16 Emulator
@ECHO OFF
IF EXIST %1.c02 GOTO COMPILE
ECHO File %1.c02 not found
GOTO EOF
:COMPILE
ECHO Compiling File %1.c02 for Commander X16
..\c02.exe -c 65C02 -h x16 -s x16 -s cbm %1 >%1.dbg
IF %ERRORLEVEL% NEQ 0 GOTO EOF
ECHO Assembling File %1.asm
..\a02.exe -p %1.asm %1.prg %1.lst >%1.out
REM C:\Programs\dasm %1.asm -f1 -o%1.prg -l%1.lst -s%1.sym
IF %ERRORLEVEL% NEQ 0 GOTO EOF
ECHO Starting Emulator in Debug Mode
C:\Programs\x16emu\x16emu -prg %1.prg -run -debug -echo raw >%1.out
:EOF