From a284d8ffebf1ce1d710ae7f58c416ed5ab9fe2bf Mon Sep 17 00:00:00 2001 From: uz Date: Sun, 28 Feb 2010 09:55:12 +0000 Subject: [PATCH] Moved the pet.inc file into the asminc subdirectory. Added definitions for the 6522 VIA and fixed the assignments for addresses to use ':=' instead of '='. git-svn-id: svn://svn.cc65.org/cc65/trunk@4603 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- asminc/pet.inc | 55 ++++++++++++++++++++++++++++++++++++++++++++++ libsrc/pet/pet.inc | 45 ------------------------------------- 2 files changed, 55 insertions(+), 45 deletions(-) create mode 100644 asminc/pet.inc delete mode 100644 libsrc/pet/pet.inc diff --git a/asminc/pet.inc b/asminc/pet.inc new file mode 100644 index 000000000..a07d6b37d --- /dev/null +++ b/asminc/pet.inc @@ -0,0 +1,55 @@ +; +; PET generic definitions. +; + + +; --------------------------------------------------------------------------- +; Zero page, Commodore stuff + +MEMSIZE := $34 ; Size of memory installed +TIME := $8D ; 60HZ clock +ST := $96 ; IEC status byte +KEY_COUNT := $9E ; Number of keys in input buffer +RVS := $9F ; Reverse flag +CURS_FLAG := $A7 ; 1 = cursor off +CURS_BLINK := $A8 ; Blink counter +CURS_CHAR := $A9 ; Character under the cursor +CURS_STATE := $AA ; Cursor blink state +SCREEN_PTR := $C4 ; Pointer to current char in text screen +CURS_X := $C6 ; Cursor column +FNLEN := $D1 ; Length of filename +LFN := $D2 ; Current Logical File Number +SECADR := $D3 ; Secondary address +DEVNUM := $D4 ; Device number +SCR_LINELEN := $D5 ; Screen line length +CURS_Y := $D8 ; Cursor row +FNADR := $DA ; Pointer to file name + +KEY_BUF := $26F ; Keyboard buffer + +;---------------------------------------------------------------------------- +; PET ROM type detection + +PET_DETECT := $FFFB +PET_2000 = $CA +PET_3000 = $FC +PET_4000 = $FD + + +;---------------------------------------------------------------------------- +; Vector and other locations + +IRQVec := $0090 +BRKVec := $0092 +NMIVec := $0094 + +; --------------------------------------------------------------------------- +; I/O: 6522 VIA2 + +VIA := $E840 +VIA_PRB := $E840 +VIA_PRA := $E841 +VIA_DDRB := $E842 +VIA_DDRA := $E843 + + diff --git a/libsrc/pet/pet.inc b/libsrc/pet/pet.inc deleted file mode 100644 index 27a614b16..000000000 --- a/libsrc/pet/pet.inc +++ /dev/null @@ -1,45 +0,0 @@ -; -; C64 generic definitions. Stolen from Elite128 -; - - -; --------------------------------------------------------------------------- -; Zero page, Commodore stuff - -MEMSIZE = $34 ; Size of memory installed -TIME = $8D ; 60HZ clock -ST = $96 ; IEC status byte -KEY_COUNT = $9E ; Number of keys in input buffer -RVS = $9F ; Reverse flag -CURS_FLAG = $A7 ; 1 = cursor off -CURS_BLINK = $A8 ; Blink counter -CURS_CHAR = $A9 ; Character under the cursor -CURS_STATE = $AA ; Cursor blink state -SCREEN_PTR = $C4 ; Pointer to current char in text screen -CURS_X = $C6 ; Cursor column -FNLEN = $D1 ; Length of filename -LFN = $D2 ; Current Logical File Number -SECADR = $D3 ; Secondary address -DEVNUM = $D4 ; Device number -SCR_LINELEN = $D5 ; Screen line length -CURS_Y = $D8 ; Cursor row -FNADR = $DA ; Pointer to file name - -KEY_BUF = $26F ; Keyboard buffer - -;---------------------------------------------------------------------------- -; PET ROM type detection - -PET_DETECT = $FFFB -PET_2000 = $CA -PET_3000 = $FC -PET_4000 = $FD - - -;---------------------------------------------------------------------------- -; Vector and other locations - -IRQVec = $0090 -BRKVec = $0092 -NMIVec = $0094 - -- 2.39.5