home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CBM Funet Archive
/
cbm-funet-archive-2003.iso
/
cbm
/
maps
/
C128io.doc
< prev
next >
Wrap
Text File
|
1995-03-08
|
18KB
|
562 lines
;cOMMODORE 128 i/o mAP
;v1.222 jUN 1994
commodore 128 input/output assignments
dIFFERENCES bETWEEN c64 AND c128
d500-d50bmmu
d600-d601vdc
ff00-ff05pRECONFIGURATION rEGISTERS
hexdecimalbitsdescription
8502 i/o rEGISTERS
c128 MODE:
0000X0101111
0001XcAPSmOTORsENSEwRITEhIrESlOrEScOLOR
c64 MODE:
000007-0mos 8502 dATA dIRECTION
rEGISTER (XX101111)
bIT= 1: oUTPUT, bIT=0:
iNPUT, X=dON'T cARE
00011mos 8502 mICRO-pROCESSOR oN-cHIP i/o pORT
0/loram sIGNAL (0=sWITCHbasic rom oUT)
1/hiram sIGNAL (0=sWITCH kERNAL rom oUT)
2/charen sIGNAL (o=sWITH cHAR. rom iN)
3cASSETTE dATA oUTPUT lINE
4cASSETTE sWITCH sENSE: 1 = sWITCH cLOSED
5cASSETTE mOTOR cONTROL
o = on, 1 = off
6-7uNDEFINED
d000-d02e53248-54271mos 6566 video interface controller (vic)
d00053248sPRITE o x pOS
d00153249sPRITE o y pOS
d00253250sPRITE 1 x pOS
d00353251sPRITE 1 y pOS
d00453252sPRITE 2 x pOS
d00553253sPRITE 2 y pOS
d00653254sPRITE 3 x pOS
d00753255sPRITE 3 y pOS
d00853256sPRITE 4 x pOS
d00953257sPRITE 4 y pOS
d00a53258sPRITE 5 x pOS
d00b53259sPRITE 5 y pOS
d00c53260sPRITE 6 x pOS
d00d53261sPRITE 6 y pOS
d00e53262sPRITE 7 x pOS
d00f53263sPRITE 7 y pOS
d01053264sPRITES 0-7 x pOS (MSB OF x COORD.)
d01153265vic cONTROL rEGISTER
7rASTER cOMPARE: (bIT 8)sEE 53266
6eXTENDED cOLOR tEXT mODE 1 = eNABLE
5bIT mAP mODE. 1 = eNABLE
4bLANK sCREEN TO bORDER cOLOR: o = bLANK
3sELECT 24/25 rOW tEXT dISPLAY: 1 = 25 rOWS
2-0sMOOTH sCROLL TO y dOT-pOSITION (0-7)
d01253266rEAD rASTER / wRITE rASTER vALUE FOR cOMPARE irq
d01353267lIGHT-pEN lATCH x pOS
d01453268lIGHT-pEN lATCH y pOS
d01553269sPRITE DISPLAY eNABLE: 1 = eNABLE
d01653270vic cONTROL rEGISTER
7-6uNUSED
5always set this bit to 0 !
4mULTI-cOLOR mODE: 1 = eNABLE (tEXT OR bIT-mAP)
3sELECT 38/40 cOLUMN tEXT dISPLAY: 1 = 40 cOLS
2-0sMOOTH sCROLL TO x pOS
d01753271sPRITES o-7 eXPAND 2X vERTICAL (y)
d01853272vic mEMORY cONTROL rEGISTER
7-4vIDEO mATRIX bASE aDDRESS (INSIDE vic)
3-1cHARACTER dOT-dATA bASEaDDRESS (INSIDE vic)
0sELECT UPPER/LOWER cHARACTER sET
d01953273vic iNTERRUPT fLAG rEGISTER (bIT = 1: irq oCCURRED)
7sET ON aNY eNABLED vic irq cONDITION
3lIGHT-pEN tRIGGERED irq fLAG
2sPRITE TO sPRITE cOLLISION irq fLAG
1sPRITE TO bACKGROUND cOLLISION irq fLAG
0rASTER cOMPARE irq fLAG
d01a53274irq mASK rEGISTER: 1 = iNTERRUPT eNABLED
d01b53275sPRITE TO bACKGROUND dISPLAY pRIORITY: 1 = sPRITE
d01c53276sPRITES o-7 mULTI-cOLOR mODE sELECT: 1 = m.c.m.
d01d53277sPRITES 0-7 eXPAND 2X hORIZONTAL (x)
d01e53278sPRITE TO sPRITE cOLLISION dETECT
d01f53279sPRITE TO bACKGROUND cOLLISION dETECT
d02053280bORDER cOLOR
d02153281bACKGROUND cOLOR o
d02253282bACKGROUND cOLOR 1
d02353283bACKGROUND cOLOR 2
d02453284bACKGROUND cOLOR 3
d02553285sPRITE mULTI-cOLOR rEGISTER 0
d02653286sPRITE mULTI-cOLOR rEGISTER 1
d02753287sPRITE o cOLOR
d02853288sPRITE 1 cOLOR
d02953289sPRITE 2 cOLOR
d02a53290sPRITE 3 cOLOR
d02b53291sPRITE 4 cOLOR
d02c53292sPRITE 5 cOLOR
d02d53293sPRITE 6 cOLOR
d02e53294sPRITE 7 cOLOR
d02f532957-3uNUSED
2-0aDDITIONAL kEYBOARD cOLUMNS
d030532967-2uNUSED
1tEST
02 mhZ mODE
d400-d4ff54272-52527mos 6581 sound interface device (sid)
d40054272vOICE 1: fREQUENCY cONTROL - lOW-bYTE
d40154273vOICE 1: fREQUENCY cONTROL - hIGH-bYTE
d40254274vOICE 1: pULSE wAVEFORMwIDTH - lOW-bYTE
d403542757-4uNUSED
3-0vOICE 1: pULSE wAVEFORM wIDTH - hIGH-nYBBLE
d40454276vOICE 1: cONTROL rEGISTER
7sELECT rANDOM nOISE wAVEFORM, 1 = oN
6sELECT pULSE wAVEFORM, 1 = oN
5sELECT sAWTOOTH wAVEFORM, 1 = oN
4sELECT tRIANGLE wAVEFORM, 1 = oN
3tEST bIT: 1 = dISABLE oSCILLATOR 1
2rING mODULATE oSC. 1 WITH oSC. 3 oUTPUT, 1 = oN
1sYNCHRONIZE oSC. 1 WITH oSC. 3 fREQUENCY, 1 = oN
0gATE bIT: 1 = sTART aTT/dEC/sUS, 0 = sTART rELEASE
d40554277eNVELOPE gENERATOR 1: aTTACK / dECAY cYCLE cONTROL
7-4sELECT aTTACK cYCLE dURATION: o-15
3-0sELECT dECAY cYCLE dURATION: 0-15
d40654278eNVELOPE gENERATOR 1: sUSTAIN / rELEASE cYCLE cONTROL
7-4sELECT sUSTAIN cYCLE dURATION: o-15
3-0sELECT rELEASE cYCLE dURATION: o-15
d40754279vOICE 2: fREQUENCY cONTROL - lOW-bYTE
d40854280vOICE 2: fREQUENCY cONTROL - hIGH-bYTE
d40954281vOICE 2: pULSE wAVEFORM wIDTH - lOW-bYTE
d40a542827-4uNUSED
3-0vOICE 2: pULSE wAVEFORM wIDTH - hIGH-nYBBLE
d40b54283vOICE 2: cONTROL rEGISTER
7sELECT rANDOM nOISE wAVEFORM, 1 = oN
6sELECT pULSE wAVEFORM, 1 = oN
5sELECT sAWTOOTH wAVEFORM, 1 = oN
4sELECT tRIANGLE wAVEFORM, 1 = oN
3tEST bIT: 1 = dISABLE oSCILLATOR 1
2rING mODULATE oSC. 2 WITH oSC. 1 oUTPUT, 1 = oN
1sYNCHRONIZE oSC. 2 WITH oSC. 1 fREQUENCY, 1 = oN
0gATE bIT: 1 = sTART aTT/dEC/sUS, 0 = sTART rELEASE
d40c54284eNVELOPE gENERATOR 2: aTTACK / dECAY cYCLE cONTROL
7-4sELECT aTTACK cYCLE dURATION: o-15
3-0sELECT dECAY cYCLE dURATION: 0-15
d40d54285eNVELOPE gENERATOR 2: sUSTAIN / rELEASE cYCLE cONTROL
7-4sELECT sUSTAIN cYCLE dURATION: o-15
3-0sELECT rELEASE cYCLE dURATION: o-15
d40e54286vOICE 3: fREQUENCY cONTROL - lOW-bYTE
d40f54287vOICE 3: fREQUENCY cONTROL - hIGH-bYTE
d41054288vOICE 3: pULSE wAVEFORM wIDTH - lOW-bYTE
d411542897-4uNUSED
3-0vOICE 3: pULSE wAVEFORM wIDTH - hIGH-nYBBLE
d41254290vOICE 3: cONTROL rEGISTER
7sELECT rANDOM nOISE wAVEFORM, 1 = oN
6sELECT pULSE wAVEFORM, 1 = oN
5sELECT sAWTOOTH wAVEFORM, 1 = oN
4sELECT tRIANGLE wAVEFORM, 1 = oN
3tEST bIT: 1 = dISABLE oSCILLATOR 1
2rING mODULATE oSC. 3 WITH oSC. 2 oUTPUT, 1 = oN
1sYNCHRONIZE oSC. 3 WITH oSC. 2 fREQUENCY, 1 = oN
0gATE bIT: 1 = sTART aTT/dEC/sUS, 0 = sTART rELEASE
d41354291eNVELOPE gENERATOR 3: aTTAC/dECAY cYCLE cONTROL
7-4sELECT aTTACK cYCLE dURATION: o-15
3-0sELECT dECAY cYCLE dURATION: 0-15
d41454285eNVELOPE gENERATOR 3: sUSTAIN / rELEASE cYCLE cONTROL
7-4sELECT sUSTAIN cYCLE dURATION: o-15
3-0sELECT rELEASE cYCLE dURATION: o-15
d41554293fILTER cUTOFF fREQUENCY: lOW-nYBBLE (bITS 2-o)
d41654294fILTER cUTOFF fREQUENCY: hIGH-bYTE
d41754295fILTER rESONANCE cONTROL / vOICE iNPUT cONTROL
7-4sELECT fILTER rESONANCE: 0-15
3fILTER eXTERNAL iNPUT: 1 = yES, 0 = nO
2fILTER vOICE 3 oUTPUT: 1 = yES, 0 = nO
fILTER vOICE 2 oUTPUT: 1 = yES, 0 = nO
0fILTER vOICE 1 oUTPUT: 1 = yES, 0 = nO
d41854296sELECT fILTER mODE AND vOLUME
7cUT-oFF vOICE 3 oUTPUT: 1 = oFF, o = oN
6sELECT fILTER hIGH-pASS mODE: 1 = oN
5sELECT fILTER bAND-pASS mODE: 1 = oN
4sELECT fILTER lOW-pASS mODE: 1 = oN
3-0sELECT oUTPUT vOLUME: 0-15
d41954297aNALOG/dIGITAL cONVERTER: gAME pADDLE 1 (o-255)
d41a54298aNALOG/dIGITAL cONVERTER gAME pADDLE 2 (o-255)
d41b54299oSCILLATOR 3 rANDOM nUMBER gENERATOR
d41c54230eNVELOPE gENERATOR 3 oUTPUT
mmu $d500 AND $ff00
c128 mmu 8722
d500cONFIGURATION rEGISTER (cr)
7-6ram-SELECT 0-3
5-4hIGH ram/rom
00 sYSTEM rom (kERNEL, eDIT)
01 iNTERNAL fUNCTION rom
10 eXTERNAL fUNCTION rom
11 ram
note: i/o OVERRIDES ALL OF THESE.
3-2mID ram/rom
00 sYSTEM rom (bASIC hi)
01 iNTERNAL fUNCTION rom
10 eXTERNAL fUNCTION rom
11 ram
1lO ram
0 sYSTEM rom (bASIC lo)
1 ram
0c.gen
0 i/o
1 rom/ram
d501pRECONFIGURATION rEGISTERS
d502
d503
d504
d505740/80 READ ONLY
6c64 mODE (0 = c128)
5exrom: c64 (1 = c128) READ ONLY
4game: c64 (1 = c128) READ ONLY
3fsdir: fAST dISK tRANSFER dIRECTION
2-1-
0z80/8502
d506ram cONFIGURATION rEGISTER (rcr)
7-6vIDEO-bANK
5-4-
3sHARED ram hI
2sHARED ram lO
1-0sHARED ram sIZE: 00 = 1k, 01 = 4k, 10 = 8k, 11 = 16k
d507zERO pAGE pOINTER lO
7-0a15-a8
d508zERO pAGE pOINTER hI
7-4-
3-2a19-a18 (uSED IN 1mb sYSTEM)
1-0a17-a16(256k sYSTEM)
d509sTACK pAGE pOINTER lO
d50asTACK pAGE pOINTER hI
d50bmmu vERSION rEGISTER
7-4bANK vERSION (2 = 128k)
3-0mmu vERSION
dEFAULT mEMORY cONFIGURATIONS
bANK ff00 fREE ram sPACEram i/o rom
03F0000-FFFF 0
17F0000-FFFF 1
2BF0000-FFFF 2
3FF0000-FFFF 3
4160000-7FFF 0 i/o iNT
5560000-7FFF 1 i/o iNT
6960000-7FFF 2 i/o iNT
7D60000-7FFF 3 i/o iNT
82A0000-7FFF 0 i/o eXT
96A0000-7FFF 1 i/o eXT
10AA0000-7FFF 2 i/o eXT
11EA0000-7FFF 3 i/o eXT
12060000-7FFF 0 i/o kERNEL iNT_rOM_lOW
130A0000-7FFF 0 i/o kERNEL eXT_rOM_lOW
14010000-3FFF 0 cHAR kERNEL bASIC
15000000-3FFF 0 i/o kERNEL bASIC
vdc $d600
tHIS REGISTER MAP IS FROM c-hACKING mAGAZINE.
----------------------------------
{$7c} vdc 8563 rEGISTER dEFINITIONS {$7c}
----------------------------------
rEG 7 6 5 4 3 2 1 0 dESCRIPTION nOTES
------ ---- ---- ---- ---- ---- ---- ---- ---- ------------------------ -----
0hZt7 hZt6 hZt5 hZt4 hZt3 hZt2 hZt1 hZt0 hORIZONTAL tOTAL ^1
1hZd7 hZd6 hZd5 hZd4 hZd3 hZd2 hZd1 hZd0 hORIZONTAL dISPLAYED ^1
2hZs7 hZs6 hZs5 hZs4 hZs3 hZs2 hZs2 hZs0 hORIZONTAL sYNC pOSITION ^1
3vsw3 vsw2 vsw1 vsw0 hsw3 hsw2 hsw1 hsw0 vERT/hORIZ. sYNC wIDTH ^2
4vEt7 vEt6 vEt5 vEt4 vEt3 vEt2 vEt1 vEt0 vERTICAL tOTAL ^3
5.... .... .... vEa4 vEa3 vEa2 vEa1 vEa0 vERTICAL tOTAL fINE aDJU ^3
6vEd7 vEd6 vEd5 vEd4 vEd3 vEd2 vEd1 vEd0 vERTICAL dISPLAYED ^3
7vEs7 vEs6 vEs5 vEs4 vEs3 vEs2 vEs1 vEs0 vERTICAL sYNC pOSITION ^2
8.... .... .... .... .... .... iLC1 iLC0 iNTERLACE mODE ^4
9.... .... .... ctv4 ctv3 ctv2 ctv1 ctv0 cHARACTER tOTAL vERTICAL ^5
0A 10.... cRm1 cRm0 cSS4 cSS3 cSS2 cSS1 cSS0 cURSOR mODE/ sTART sCAN ^6
0B 11.... .... .... cES4 cES3 cES2 cES1 cES0 cURSOR eND sCAN ^6
0C 12dS15 dS14 dS13 dS12 dS11 dS10 dS09 dS08 dISPLAY sTART aDRS (hI) ^7
0D 13dS07 dS06 dS05 dS04 dS03 dS02 dS01 dS00 dISPLAY sTART aDRS (lO) ^7
0E 14cP15 cP14 cP13 cP12 cP11 cP10 cP09 cP08 cURSOR pOSITION (hI) ^7
0F 15cP07 cP06 cP05 cP04 cP03 cP02 cP01 cP00 cURSOR pOSITION (lO) ^7
10 16lPv7 lPv6 lPv5 lPv4 lPv3 lPv2 lPv1 lPv0 lIGHT pEN vERITCAL ^8
11 17lPh7 lPh6 lPh5 lPh4 lPh3 lPh2 lPh1 lPh0 lIGHT pEN hORIZONTAL ^8
12 18uA15 uA14 uA13 uA12 uA11 uA10 uA09 uA08 uPDATE aDDRESS (hI) ^9
13 19uA07 uA06 uA05 uA04 uA03 uA02 uA01 uA00 uPDATE aDDRESS (lO) ^9
14 20aT15 aT14 aT13 aT12 aT11 aT10 aT09 aT08 aTTRIBUTE sTART aDRS (hI) ^7
15 21aT07 aT06 aT05 aT04 aT03 aT02 aT01 aT00 aTTRIBUTE sTART aDRS (lO) ^7
16 22hCp3 hCp2 hCp1 hCp0 iCs3 iCs2 iCs1 iCs0 hZ cHR pXL tTL/icHAR sPC ^a
17 23.... .... .... vCp4 vCp3 vCp2 vCp1 vCp0 vERT. cHARACTER pXL sPC ^5
18 24bLKm rVSs vSS5 vSS4 vSS3 vSS2 vSS1 vSS0 bLOCK/rVS sCR/v. sCROLL ^9^b^c
19 25tEXT aTRI sEMI dBLE hSS3 hSS2 hSS1 hSS0 dIFF. mODE sW/h. sCROLL ^d,^e
1A 26fGD3 fGD2 fGD1 fGD0 bGD3 bGD2 bGD1 bGD0 fOREgROUND/bACKgROUND cOL ^f
1B 27rIN7 rIN6 rIN5 rIN4 rIN3 rIN2 rIN1 rIN0 rOW/aDRS. iNCREMENT ^g
1C 28csA2 csA1 csA0 rAMt .... .... .... .... cHARACTER sET aDDRS/rAM ^h,^i
1D 29.... .... .... uDl4 uDl3 uDl2 uDl1 uDl0 uNDERLINE sCAN lINE ^6
1E 30wDc7 wDc6 wDc5 wDc4 wDc3 wDc2 wDc1 wDc0 wORD cOUNT (-1) ^9
1F 31dTA7 dTA6 dTA5 dTA4 dTA3 dTA2 dTA1 dTA0 dATA ^9
20 32bLKf bLKe bLKd bLKc bLKb bLKa bLK9 bLK8 bLOCK cOPY sOURCE (HI) ^9
21 33bLK7 bLK6 bLK5 bLK4 bLK3 bLK2 bLK1 bLK0 bLOCK cOPY sOURCE (LO) ^9
22 34dEb7 dEb6 dEb5 dEb4 dEb3 dEb2 dEb1 dEb0 dISPLAY eNABLE bEGIN ^j
23 35dEe7 dEe6 dEe5 dEe4 dEe3 dEe2 dEe1 dEe0 dISPLAY eNABLE eND ^j
24 36.... .... .... .... dRM3 dRM2 dRM1 dRM0 dram rEFRESH rATE ^k
d800-dbff55296-56319cOLOR ram (nYBBLES)
dc00-dcff56320-56575mos 6526 cOMPLEX iNTERFACE aDAPTER (cia) #1
dc0056320dATA pORT a (kEYBOARD, jOYSTICK, pADDLES, lIGHT-pEN)
7-0wRITE kEYBOARD cOLUMN vALUES FOR kEYBOARD sCAN
7-6rEAD pADDLES ON pORT a / b (01 = pORT a, 10 = pORT b)
4jOYSTICK a fIRE bUTTON: 1 = fIRE
3-2pADDLE fIRE bUTTONS
3-0jOYSTICK a dIRECTION (0-15)
dc0156321dATA pORT b (kEYBOARD, jOYSTICK, pADDLES): gAME pORT 1
7-0rEAD kEYBOARD rOW vALUES FOR kEYBOARD sCAN
7tIMER b tOGGLE/pULSE oUTPUT
6tIMER a: tOGGLE/pULSE oUTPUT
4jOYSTICK 1 fIRE bUTTON: 1 = fIRE
3-2pADDLE fIRE bUTTONS
3-0jOYSTICK 1 dIRECTION
dc0256322dATA dIRECTION rEGISTER - pORT a (56320)
dc0356323dATA dIRECTION rEGISTER - pORT b (56321)
dc0456324tIMER a: lOW-bYTE
dc0556325tIMER a: hIGH-bYTE
dc0656326tIMER b: lOW-bYTE
dc0756327tIMER b: hIGH-bYTE
dc0856328tIME-OF-dAY cLOCK: 1/10 sECONDS
dc0956329tIME-OF-dAY cLOCK: sECONDS
dc0a56330tIME-OF-dAY cLOCK: mINUTES
dc0b56331tIME-OF-dAY cLOCK: hOURS + am/pm fLAG (bIT 7)
dc0c56332sYNCHRONOUS sERIAL i/o dATA bUFFER
dc0d56333cia iNTERRUPT cONTROL rEGISTER (rEAD irqS/wRITE mASK)
7irq fLAG (1 = irq oCCURRED) / sET-cLEAR fLAG
4flag1 irq (cASSETTE rEAD / sERIAL bUS srq iNPUT)
3sERIAL pORT iNTERRUPT
2tIME-OF-dAY cLOCK aLARM iNTERRUPT
1tIMER b iNTERRUPT
0tIMER a iNTERRUPT
dc0e56334cia cONTROL rEGISTER a
7tIME-OF-dAY cLOCK fREQUENCY: 1 = 50 hZ, 0 = 60 hZ
6sERIAL pORT i/o mODE oUTPUT, 0 = iNPUT
5tIMER a cOUNTS: 1 = cnt sIGNALS, 0 = sYSTEM 02 cLOCK
4fORCE lOAD tIMER a: 1 = yES
3tIMER a rUN mODE: 1 = oNE-sHOT, 0 = cONTINUOUS
2tIMER a oUTPUT mODE TO pb6: 1 = tOGGLE, 0 = pULSE
1tIMER a oUTPUT ON pb6: 1 = yES, 0 = nO
0sTART/sTOP tIMER a: 1 = sTART, 0 = sTOP
dc0f56335cia cONTROL rEGISTER b
7sET aLARM/tod-cLOCK: 1 = aLARM, 0 = cLOCK
6-5tIMER b mODE sELECT:
00 = cOUNT sYSTEM 02 cLOCK pULSES
01 = cOUNT pOSITIVE cnt tRANSITIONS
10 = cOUNT tIMER a uNDERFLOW pULSES
11 = cOUNT tIMER a uNDERFLOWS wHILE cnt pOSITIVE
4-0sAME AS cia cONTROL rEG. a - FOR tIMER b
dd00-ddff56576-56831mos 6526 cOMPLEX iNTERFACE aDAPTER (cia) #2
dd0056576dATA pORT a (sERIAL bUS, rs-232, vic mEMORY cONTROL)
7sERIAL bUS dATA iNPUT
6sERIAL bUS cLOCK pULSE iNPUT
5sERIAL bUS dATA oUTPUT
4sERIAL bUS cLOCK pULSE oUTPUT
3sERIAL bUS atn sIGNAL oUTPUT
2rs-232 dATA oUTPUT (uSER pORT)
1-ovic cHIP sYSTEM mEMORY bANK sELECT (dEFAULT = 11)
dd0156577dATA pORT b (uSER pORT, rs-232)
7uSER / rs-232 dATA sET rEADY
6uSER / rs-232 cLEAR TO sEND
5uSER
4uSER / rs-232 cARRIER dETECT
3uSER / rs-232 rING iNDICATOR
2uSER / rs-232 dATA tERMINAL rEADY
1uSER / rs-232 rEQUEST TO sEND
0uSER / rs-232 rECEIVED dATA
dd0256578dATA dIRECTION rEGISTER - pORT a
dd0356579dATA dIRECTION rEGISTER - pORT b
dd0456580tIMER a: lOW-bYTE
dd0556581tIMER a: hIGH-bYTE
dd0656582tIMER b: lOW-bYTE
dd0756583tIMER b: hIGH-bYTE
dd0856584tIME-OF-dAY cLOCK: 1/10 sECONDS
dd0956585tIME-OF-dAY cLOCK: sECONDS
dd0a56586tIME-OF-dAY cLOCK: mINUTES
dd0b56587tIME-OF-dAY cLOCK: hOURS + am/pm fLAG (bIT 7)
dd0c56588sYNCHRONOUS sERIAL i/o dATA bUFFER
dd0d56589cia iNTERRUPT cONTROL rEGISTER (rEAD nmLS/wRITE mASK)
7nmi fLAG (1 = nmi oCCURRED) / sET-cLEAR fLAG
4flag1 nmi (uSER/rs-232 rECEIVED dATA iNPUT)
3sERIAL pORT iNTERRUPT
1tIMER b iNTERRUPT
0tIMER a iNTERRUPT
dd0e56590cia cONTROL rEGISTER a
7tIME-OF-dAY cLOCK fREQUENCY: 1 = 50 hZ, 0 = 60 hZ
6sERIAL pORT i/o mODE oUTPUT, 0 = iNPUT
5tIMER a cOUNTS: 1 = cnt sIGNALS, 0 = sYSTEM 02 cLOCK
4fORCE lOAD tIMER a: 1 = yES
3tIMER a rUN mODE: 1 = oNE-sHOT, 0 = cONTINUOUS
2tIMER a oUTPUT mODE TO pb6: 1 = tOGGLE, 0 = pULSE
1tIMER a oUTPUT ON pb6: 1 = yES, 0 = nO
0sTART/sTOP tIMER a: 1 = sTART, 0 = sTOP
dd0f56591cia cONTROL rEGISTER b
7sET aLARM/tod-cLOCK: 1 = aLARM, 0 = cLOCK
6-5tIMER b mODE sELECT:
00 = cOUNT sYSTEM 02 cLOCK pULSES
01 = cOUNT pOSITIVE cnt tRANSITIONS
10 = cOUNT tIMER a uNDERFLOW pULSES
11 = cOUNT tIMER a uNDERFLOWS wHILE cnt pOSITIVE
4-0sAME AS cia cONTROL rEG. a - FOR tIMER b
deoo-deff56832-57087rESERVED FOR fUTURE i/o eXPANSION
dfoo-dfff57088-57343rESERVED FOR fUTURE i/o eXPANSION
dma $df00
8726 dma cONTROLLER FOR c128 (512k reu)
nOTE: tHE 8726 dma CONTROLLER FOR c128 IS DIFFERENT FROM THE c64 ONES
IN REGISTERS 00,01,09 AND 0A.
df00 dma ststatus
7iNTERRUPT pENDING (1 = iNT. WAITING)
6eND OF bLOCK (1 = tRANSFER COMPLETE)
5fAULT (1 = bLOCK VERIFY ERROR)
4sIZE (0 = 128k, 1 = 512k eXP. mEMORY)
3-0vERSION
df01 dma cmdcommand
7eXEC
6rESERVED (NORMALLY 0)
5lOAD (1 = eNABLE AUTO LOAD)
4$ff00 (1 = dISABLE $ff00 DECADES)
3-2rESERVED (NORMALLY 0)
1-0mODE
00 = tRANSFER FROM INTERNAL TO EXTERNAL
01 = fROM EXT TO INT
10 = sWAP
11 = vERIFY
df02 dma adlhost address low
df03 dma adhhost address high
df04 dma loexpansion address low
df05 dma hiexpansion address high
df06 dma bnkexpansion bank (BITS 2-0 ONLY)
7-3uNUSED
2-0eXPANSION bANK NUMBER
df07 dma daltransfer length low
df08 dma dahtransfer length high
df09 dma suminterrupt mask register
7iNTERRUPT eNABLE (1 = iNTERRUPTS ENABLED)
6eND OF bLOCK MASK (1 = iNTERRUPT ON END OF BLOCK)
5vERIFY eRROR (1 = iNTERRUPT ON VERIFY ERROR)
4-0uNUSED (NORMALLY ALL SET)
df0a dma verversion, maximum memory
7-6aDDRESS cONTROL
00 = iNCREMENT BOTH ADDRESSES (DEFAULT)
01 = fIX EXPANSION ADDRESS
10 = fIX c128 ADDRESS
11 = fIX BOTH ADDRESSES
5-0uNUSED (NORMALLY ALL SET)