Ccea "KOHA" peaaea ocae epcoax po-BM, coex eo poecce o px cex aeo. B ao pooce ocaec peaa cce BM "AAT".

C 1982 oa ccea poxoa o caa B CO AH CCCP, a c 1984 oa - ceo aee C N166.

a oe peaae copooae popac, oo ocooe ae eec oca cpp ax ocox aopo opoa cce.

peoaaec, o ae ee o cceoo popapoa ao c Pooco popaca (oe 3533847.00042-01 33 01).

                  COEPAHE

1. OE CBEEH................................................
2. HKOHAHOE HAHAEHE.....................................
3. OCAHE OECKO CTPKTP.................................
  3.1. Coca cce............................................
  3.2. Cppa Papa-eppeaopa...........................
  3.3. coee eo.......................................
  3.4. Ccea oa pao P-a.......................
  3.5. pecaee ax  cooae a...............
    3.5.1. Paeee epo  oace eppeaopa  a.
    3.5.2. Paeee eppeaopa  a....................
    3.5.3. e, opeee cocoe cce................
    3.5.4. pecaee ax  e...........................
    3.5.5. Ce. pecaee ax  cee...................
    3.5.6. Cppa a e................................
4. COEME TEXHECKE CPECTBA.............................
  4.1. Tpeea opa....................................
  4.2. Apxepa BM "AAT"....................................
5. BOB  APKA..............................................
  5.1. o pocxo p e a.......................
  5.2. Aoapa (apa aaoo apa).............
  5.3. Cppa aaoo apa...........................
  5.4. Paoa aaoo apa..............................
  5.5. oa ap c paoeo ca.........................
6. BXOHE AHHE................................................
7.BXOHE AHHE................................................
8. HTEPPETATOP KOB PAPA  POK...........................
  8.1. po cce..............................................
    8.1.1. Coca pa...........................................
    8.1.2. occea pae a (C)...................
    8.1.3. opopa pae popa cea (C)...
    8.1.4. opopa pae aec epa........
    8.1.5. popaa COPY/DELETE.................................
    8.1.6. occea oa/oa...............................
    8.1.7. Bpcce epec.............................
  8.2. o cacecoo aaa..............................
    8.2.1. Cppa oa.......................................
    8.2.2. CKAHEP................................................
    8.2.3. Taa ex co (TKC)...........................
    8.2.4. Taa cacecoo oca......................
    8.2.5. Cacec aaaop.............................
    8.2.6. Ceaece opopa............................
    8.2.7. Cooece e peca PAP  oaa...
  8.3. o eppea.......................................
    8.3.1. Cppa oa.......................................
    8.3.2. Pacpeee oa HTEPKOM........................
    8.3.3. poep o......................................
    8.3.4. o CLIP.............................................
    8.3.5. Peaa o (o CYCLES).......................
  8.4. o aa  MOHTOP..............................
  8.5. o paopa  ea o..............................
  8.6. coe  o......................................
9. PEAKTOP......................................................
10. ACHE OPOPAMM BBOA-BBOA...........................
  10.1. Haaee...............................................
  10.2. Aapae  popapee oooc ee aoa.
  10.3. ocoe apaep aoa.............................
  10.4. Ocae xox oe...................................
11. CKOBA OEPAOHHA CCTEMA................................
  11.1. Haaee   cooae OC..........................
  11.2. paep cooa RWTS...................................
  11.3. Cppa ca..........................................
  11.4. Cppa pee a OC..........................
POEHE. TAA EPEKPECTHX CCOK..........................
.......................................................

 

1. OE CBEEH

ae pax popa aoaa ooo eoo poecca "KOHA" ( aee - ccea "KOHA") 3533847.00042 peaoa BM AAT 7 coe. ooaec ec epc - A1.2.

Ccea ope aooo e pee coe pao ax px cpec cce popapoa. Bece c e oa oeceae o o o coecoc o e oce co ao coo oepaoo cceo, oea cooae poo popaoo oecee BM AAT.

Bce o cce "KOHA" aca a e acceepa popoeccopa MST/6502. apo o cce axoc a o ao ce.

 

2. HKOHAHOE HAHAEHE

Kacc aa, peaex c oo cce "KOHA" ae ee aa o popapoa, papao popax cce ac, cepea papao popaoo oecee peoaa pax ox c, eox aa acpao-xoceoo pae aa aoaa ax cceoa.

Ccea oeceae pao ooae aooo pee popao cpee c cooae p o cex oooce aoo BM. Bxoe cce - PAPA POK.

Haaaee cceo oae opae poc [3] (poee 3).

 

3. OCAHE OECKO CTPKTP

3.1. Coca cce.

Ccea "KOHA" coco cex ocox oo:

aa ap;
eppeaop o PAPA  POK;
popaa pae paox co;
oao oec, coco  Peaopa, Acceepa  Oaa.

Bce o axoc a ce 1. p e BM c co cooe apaec aa ap, oop opeee ecoaxoee pax a, acpaae cce a ope opa, apaae ooae o, apae eo ae (4).

eee cce a oae o cee o x oax poc [2].

epepece cc e oa cce copa poe.

3.2. Cppa Papa-eppeaopa.

Papa-eppeaop coco cex ocox ace:

po cce coco opopa pae a, cea, aec epa, ooa oa-oa (8.1);

o cacecoo paopa (8.2) c paopa ox peca, poep , oca oe eepa popa a e pao PAPA-a (aee ee eeo P-ao);

o eppea coe popa oax P-a (8.3);

Peaop ae ooae oooc o c ca aap ec poep cpa x (9);

opopa oa-oa aac oo cpo coo c aap BM oo coo a pa, a ae o cae c pae ec (10);

coa oepaoa ccea oeceae pao c oea ao a cax (11);

popaa paopa ea o eaae cooe o oax, a ae copae o cac (8.5).

3.3. coee eo.

Paee cacc PAP, a ae ae ccee opoo a - POKa - cea o cooae cacec paeoo aaaopa.

C eo eppeaoo xapaepa a, c oo copo, aoo cpoec oo po oa poeccopa, c po, o po peee cooa poeo (pa PAPA-a). aoap o aoc peo cpoece aoo BASIC-eppeaopa a cpao acce aa.

B c c aec eco xapaepo a peec oa aa a pee poe, acoc, aecoe pacpeeee a. a apaee e opeee paep oeo, epecaeoc pee x coa oe, a ae o aco apoco a eee ocooee a, cce pae a pa eo eo.

Hae e pepcx poep pee ooo popaoo cea, a ae aoo cea oae cooa eo px ee; oo paa P-aa ee ceo apxep.

e xapaep xox o e ooe o ax-o opae oe, e o acoo eoxoo; acoc, eoxoo e pao opaaa ce pae poee ca.

B c c aoo xapaepo cce peec pao occaaa oepao ocao cae oo.

Moe cpeca pae ooa oa/oa a eoxooc epaa ceo oea.

B ccee  pecaeo eo oepo, oop aae o a. Ta opao, ocaeo peaa oco e oee 256 e. ea opc o pe pac, oo e peec oc e ae o pe oe, o ee oee eae copoc coe.

p papaoe cce oa eoxooc oacx a c oceoae aoee, paep oopx apaee e ece ( a eaopo, oa ao pep, xpae oca). B c c po peee ec aece epa, eee oe e a eaee o epe aooc.

3.4. Ccea oa pao P-a.

3.4.1. Oe cee.

PAPA-aa ee ceo apxep. o oeae pao a oa cacecoo paopa, a oa eppea. Oa oaa oe ooaa coepeo pae ec. K pep, oaa "+" oe oaa a coee x ce, a oeee x oec. p o opee, aa eo oepa eec , oo oo o pe coe o a apaepo.

Opaaaee PAPA-ao ae xpac o pe coe cee e eeo. eeo oe :

oeca ocaa (CTHA  O);
;
cca a oe a (oca  peeoe aee);
pea  opa;
ac aa poep  .

peoaaec, o popaa acaa pao (o cacecoo paopa o apape) oe coe oa ce ee apaep axoc cee. oe ac oa peec aee, oo p opaoe apaepo ooo paeoae e pe. Co pea ( pea) oa ae oea ce.

oeaec ce ece co cap cocoe coe a; a pe axoe e cee a eo cac acoa aa c e e oeco oox oox eo ( axoc cee, oa e cee px oepao oepa, , ceoaeo, eee eo ae eoco).

epe coee ao oa poepec, e a aaa aa ocaoa; ec a, o oec pecae "CTO".

3.4.2. Apxepa P-a. Ocoe ooae.

P-aa coe cee oac a:

a ce. o ce coec p oax poep, ce pae, paoe oepaopo o.
Taa e, e axoc opa o aca, ae, ae opoe cex e, ecx ccee a oe.
a. B e xpac ae cex e, x ec, poeoe ae, pae epa eppeeopa.

He e oop o ooe oa, oopo axoc oa poeooo a, o cao c epe oca, e xpac oca, oocec o oo. oo, ep xpac e paccapac a oceoaeoc ao. B acoc, o o ac poepoo ae. opa paea a pa ao apeca p ooa (epa) coec xaooe ceee ooceo aaa ooa (epa oca).

Ko oca oa ( ae o oee "*" epe oo oepa) coaa c oepo eoo coa, c oopoo aaec cooecee pecae PAP, e c oo aa oepa (ee - e x capx o). o cee e p ee oo oa ece, a ae p ee oepo ex co.

oo ceecx ao oa ocoeoce eec oee cex x pecaee aoee ao opa. He a coee ae ooae:

M - oep e; aae o a;
K - oca xpac epe oca pecac ooe aa - ceee ooceo aaa epa;
A - oaax epexoa - apec oa, a oop ocecec epexo; aaec xao ceee ooceo aaa ooa;
C - ooao ce (apaepo, eeo p oppoa cpp);
C - cco e oaax BK, BK, oppoa ac: caaa o a (C) - oeco e, ae - ca ea; a opao, ec cco e aae C+1 ao;
Cco ex co aax epe "|" - o (oep) ooo epecex ex co e x capx o;
- ecoo e: caaa o a - a, ae oceoaeoc ao - cao ;
i - pa (a); ae e epee oox ae oo paa;
B - cpoco oa/oa, .e.:

o eoo coa "MA";
o eoo coa "KPAH";
0 - pa eeo cpoca;
ep a - pa oa  a  oa  aa ($EE), opo a -  aa;

p oca cce oa opaeaec:

ce apaep axoc cee;
ec p paope apaepo cec, o x coeo oae e oxo, cpec ooa ca;
oa pe e o oeax, eec , o ee, axoc cee, ec oeo cce a (o cco a ao oe) cae eoxooc oe paeoa; oea pooe;
o epo "cppa" eec ec,ope oeco;
o epo "co" eec eoe eeceoe.
o epo "poepa" ee, e e oopc o oe opae, eec a poepa, a .

   3.4.3. Ccea oa.

         Oepa.

KO MHEM APAMETP         PETAT HA CTEKE

*09   //  2 ex          ea ac acoo
*10  H-  co            pooooa ea
*11   +   2 ca          ca
          2 eca         oaea eco
          2 opea        oaea opee
          2 oeca      oeee oec
*12   -   2 ca          apeeca paoc
          2 oeca      paoc oec
*13   *   2 ca          poeee
          2 oeca      epeceee oec
*14   /   2 ca          acoe
*15   **  2 ca          oeee  cee
*16   #   cppa        ooc cpp

         Cpaee. oece oepa.

KO MHEM APAMETP     OECK PETAT HA CTEKE

*04    epa,ec      xo  epa  ec
         oe,ope     xo  oe  ope
         oe,o.      xo  oe  oeco
*05   2 oecx      oecoe ""
*06  HE  oecoe        oecoe "HE"
*07     oecoe        oecoe ""
*08 BA 2 oea         pea cpae o
*0A  >   2 ca           pea cpae
*0B  <   2 ca           pea cpae
*0C  >=  2 ca           pea cpae
*0D  <=  2 ca           pea cpae
*0E  =   2 oea         pea cpae
*0F  /=  2 oea         pea cpae

         oppoae.

KO MHEMOHKA APAMETP     PETAT HA CTEKE

 1D  <¤ C  C oeo    coppoaa    ac
 1E  <  C  C oeo    coppoa    ope
 1F  <* C  C oeo    coppoaoe oeco

         Paoa co ceo.

KO   MHEM                 ECTBE HA CTEKE

 02    M                 oec M  ce
 03    K                  oec K  ce
 28   CHT                c oe co cea
 29                    poa  oe  a  cee
 2B   OMEH                ec  c    px
                           epxx   oeo  a  cee:
                           ABC->BCA, ec C epoaao
                             epx  eeo  cea
 33  HAB                paeoae  \eoo\ a cee
                           (coec  e  OBTOP)
 3E  HAB                paeoae oea a cee
                           ( coec    peca
                           BOP)

   o oaa c oa ¤80-¤FF (128-255) oppec eoe co, 
opeeeoe a ce a oa oepa (o 0 o 127)  pocxo ac eo  ce. 
o ooe oo 5 ao p ape aoee opeex oca.

         pae cpp.

KO  MHEMOHKA APAMETP   ECTB

 00  OCTAHOB               ocao eppeaopa
 1A 1     cppa   aa a -
*26 KOHTPO   oecoe  pecae "KOHTPO"
 2C  A                  eco epexo
 2D  A      oecoe  epexo, ec o
 30 OT1 M 3 ca     aa a -OT
 11 OT2 A  3 ca     poepa a oe a -OT
 32 OT3 A  3 ca     ppaee epeeo a -OT
 34 OBTOP A  eoe       poepa a oe a OBTOP
 35 2 A  cppa   epexo  cee ee

         pcaae, opa, pea  oc.

KO  MHEM  APAMETP          PETAT

*17  ->    oe,         pcaae
*18  [:    2 ex, cppa pea a cee
*19  [     eoe, cppa   opa a cee
*1B  . M ac             opa a cee

C o pe P-a e opo a cee oco a cee pa e, .. aop ocx ec x oao. o eo ocaec opo cooeceo opaa pecae ac.

         Koa pao c aa.

KO MHEMOHKA       APAMETP   ECTBE

*1C                  a       oec  ce
                               eoe - o aa
 40 ATA    =0:  ec      oepe e a
               =80: ec      aepe e a
 41 OTKPT   =0:          op a 
               /=0: ec,  op a ec
                                o ee 
 42 AKPT                  ap a 
 43 O          a,eoe caoa o  ae
 44 CTEPET          ec      cepe e a
 46 AKPBCE                     ap ce ope a

         peca  pe.

KO MHEMOHKA     APAMETP              ECTBE

*20 CK              -               pea CK
*21 A               -               pea A
*22 BXO             -               pea BXO
*23 BK "CE|        -                ce,
         CTPOK|MEH"                  ce cpo, e
                                      cooeceo
    BK 0             -               pea POK
    BK "POTOKO|BBO|OTAK" B    o ooa
    BK "POKPTK"   -                pop
                                      cex e
    BK "POKPTK"+1 C               pop
                                      e  C
    BK "BBO" B     -                o c B
    BK "ACT|AT" C               ac/
                                      o a
*24 BK              -               aaoo BK,
                                      o e BK MEH,
                                      BK ACT AT;
    BK 0            -               pea PAPA
*25 CTO              -               pecae CTO
*27 KATAO 1 2 B  -
               2=0:                  aao ao 
               2="MEH"  1=0:      aao e
               2="MEH"  1="BCEX": aao cex e
 2E BHK C , C oeo   o  c C
                                      apaepa
 2 BOBPAT           -               opa  poep
                   oe             opa  
 36 C                -               epeo cpo
*37 BBO          oe             o oea o
                                      cooo opa
*38 BBO1         oe, eoe      o oea o
                                      ooo opa
*39 BBO2         oe, 2 ex    o oea o
                                      cpe opa
*3A BBO 1+2 B    1=0:         o e apoca oo
                                      cpo
                        1=80:        o c oo cpo
                        2=0:         o eca
                        2="AHHX":  o ax       
 3B BPO C poepa, C oeo o poep
                                      c C apaepa
 3C PBXO           -               ce cex eeo
                                      co  cea  o  ac
                                     aa  epexo a           
                                     pecae BOBPAT
 3D EPEK B         -              epeee oa a
                                     cpoco
 45  M         -              o poep c ca

         Mo.

KO MHEMOHKA         ECTBE
                     
 01 ' M           oc   o M
 2A BKM 60 M       o M
 3F BKM  60 M       o M
 60 BKM2 M        ac oa BKM

3.5. pecaee ax cooae a.

3.5.1. Paeee epo oace eppeaopa a.

Moo e 3 ocox acca oace a, coex Papa-eppeaope:

-Oac, cao ae paep oopx e pa coco pao c aapa cpeca:

-Oac, oeea oopae poooa aoa (ecoo cpa): 2K.

-Oac, oeea oopae paeco opa (paeco cpa): 8K.

-ep RWTS: ¤156 ao.

-epa, ae oopx ec pa poe pee, a paep - oeo oco a:

-Ce: 5 cpa; epepo oac a axoc 2 cea co cpe aoee.

-O aeco a: 32K. po coco cooa c. ocae C, 8.1.2.

-Taa e: 5 cpa. Cppa a ocaa 3.5.6.

-ep copa cac o oe oa (ocpa).

-ep Peaopa (coee c oac a, oeeo o paec cpa).

-epa, peee opoa ex x oo cce:

-epa ao: 7 epo o 2 cpa a (oa cpaa - pae pe/ceopoo cca, pa - ep ax). 14 cpa.

-VTOC ca: 1 cpaa.

-ep eex peca: 1 cpaa. Bo pe coe peca ec axoc ee e paopaa ac eeo cpo.

-Cpaa occe oa-oa (oo oa opaoe ea ao).

-ep aap (coec ae a paoa cpaa OC px oo).

-ep opo oca.

3.5.2. Paeee eppeaopa a.

eppeaop eo peee, a coxpaec ae oa ac oa aa, o ooe epea cce e opae c.

Pae o cce paee a ce opao (pc. 3.1):

-O: ce, aa e, ecooe oo, paecoe oo (ep Peaopa), paoe cpa, IOSUB, COMOZU;

-O+NORMOZU - ;

-DOPOZU - Peaop, OC c epa, RWTS, VTOC, ep cac o oa, o aa;

-LC0 - o eppea,

-LC0D1 - apea,

-LC1D0 - a cacecoo paopa,

-LC1D1 - paa aa poep TKC,

-LC1 - o cacecoo paopa popaa ea o,

3.5.3. e, opeee cocoe cce.

He poc cco aoee ax ee. x apeca oo a poe.

-Cacec paop:

-TABZ - apec aaa a aae TCO eeo a;

-TAKS - apec aaa a TKC eeo a;

-TASP - apec aaa a CEMo;

-ITSO - apec aaa aa aae POKa; coec p eepa cacca coee POKe;

-ITKS - apec aaa a TKC POKa; coec p eepa cacca coee POKe;

-CURCHR - apec eeo coa; p cee opae CKAHEP oca ac ece. Me CURCHR, oo p CKAHEP o ece c oo poo eca (a p oca poep), o aa co oa cpo c aap (a eaec oce o, oa CURCHR acpaaec a aao epa aap a ec co epeoa cpo).

-BEG, END - cooeceo, apeca aaa oa ocee poao ece; coc:

- opoax,

- popae ea o,

-p caceco paope, p poepe a eoe coo;

-TEL - o poao ece; ooe ae c. 8.2.2;

-LENGTH - oa a aeoo eca; epeaec CKAHEPo TEKCTKO; e oaeo paa END-BEG-1, .. p eca o coee a;

-NA - oep aaa, o oopo CHTAHo eec paop;

-AS - apec ee cpo, o oopo CHTAHo eec paop;

-NPA, PL - oep oceeo aaa oce ecea, cooeceo; cpe ece PL aae NPA CHTAH pepaae aeee ee ece;

-NTK.SEMP - ceee ee eeppeo oa ooceo aaa ooa oa;

-SCH - ce (eeo, apaepo), coe CEMax; coxpaec cee p paope aoo-o aaa, o oeceae oooc pepcoo paopa pae;

-DEFINITN - pe paopa:

-¤00 - pe poo aoa,

-¤FF - papaec epa poepa () ae,

-¤FE - papaec ocea poepa ();

%ENDL

-WASDEF - coepc epe Peaopa ocae poep (): 0 - e, e 0 - a;

-FILENAME - ec WASDEF/=0, o FILENAME - epo poep ae;

-PROCNAME - ee papaeo poep;

-CURRENT - oep aapeo a oe cpo aa;

-Oe e:

-EMPTY (apec ¤0000) - cea ee aee ¤00. p opaoe ae CTO (pecaeoo ccee apeco ¤0000) oa oee poep e apec, a a o o apec oop pae oo p co ae.

-REGIM - e (0 - PAPA, ¤FF - POK);

-ASP - aa cooo a C;

-UGS - apec epoo coooo aa aoo cea;

-UGS1 - apec epoo coooo aa cooaeoo cea;

-ERROR:

-0 - o e,

-e 0 - oep o;

-ERRBRAN - apec opopa opao o. Oo a axoc apec oo x ocox opopa opao: opaoa cacecx oo MOHTOPe opaoa o pee eppea HTEPKOMe;

-BEGIN, LAST COMMANDS - cooeceo apeca aa, oo oo epx coox ao ex epo. Taa 8 ao - o 2 a a ep (oa, oca, cee, a e);

-ENDLINE, LENGTH - e Peaopa. x x co ocaoo, o p a pao opa epe a Peaop.

-TIPOUT - aae eeo ooa oa:

-¤01 - oo cceoo oa,

-¤13 - oo popaoo oa,

-¤25 - oo oaooo oa;

-DL, DL2 - a eo-o;

-Paoe e OC:

-FILETYP - aa;

-NAMEBUF - aa (30 coo; p ee e e cee oo eo poea);

-FILEQUAN (a aa) - co opx ao a ao cooe;

-ISVTOC - pa a VTOC a:

-0 - e VTOC a,

-1 2 - oep cooa, c oopoo caa VTOC;

-DRIVER - oep aoo (1 2);

-VOLNUM (a aa) - o ca (xpac oo p a opx ao, ae - 0);

-VTOCHANG - pa ee VTOC a:

-0 - ee e o,

-e 0 - ee ;

-IOERR - pa eca o OC:

-e 0 - oa o pe ocooo oea c ao (oa o),

-0 - oa p oe px OC;

-18 ee opaooo epa opoo aa OC (¤90-¤A2);

-e paecx opopa:

-GRMODE - e paec pe:

-0 - C,

-1 - HC,

-2 - HP,

-3 - CP,

-4 - BP;

-GRPAGE - apec ee paeco cpa;

-TXPAGE - apec ee ecoo cpa;

-GRSYMBOL - co, oop e opcoa paecx eeo ecox peax;

-GRCOLOR - e e opco paecx eeo:

-¤FF - co e,

-¤80-¤FE - epc e,

-cap = 0 - e coaco ee paeco pe;

-GR.TXT - pa eeo opae a pae:

-c.=0 - ecoa cpaa,

-c.=1 - paeca cpaa;

-COEFF (a aa) - oe ca oopa o oc X,:

-00 - e ca,

-ZZ - cae ZZ/256 pa;

-BASEX, BASEY - acoe pae oopa oecoo aaa oopa o oc X,;

-SYMTADR - apec a coo poep TKC (ccea caaae ¤DA00);

-GRVECTS - apeca ocox paecx opopa; ec p cee paecx peo;

-e pee coe:

-CURRENT2 - oep ee coeo cpo poep. Bcec oepaec cceo p ea oo, pee oaooo coe a ae p eo paccpoe cpo.

-PROMPTR - co-paee peca "BBO";

-ADR1, ADR2, ADR3, ADR4 - ocooe aaee: apeca 1-3 apaepo peaa HTEPKOMa; coc px ex, ocoo opaa pcceoo epeca;

-TGS1, TGS2, TGS3 - e eeo aoo cea, epeaaex aece apaepo HTEPKOM;

-NTK - aco apec ee coeo oa;

-CMD - oep ee oa P-a;

-ABZAC - apec aapeoo paea TA;

-RANDOM - apec eeo caoo ca;

-REGOUT - pa pea oa:

-c.=1 - oc cppa o oaoa opa: ec aax, ca e poeo;

-c.=0 - oc poco oe: aae ca - poe, ec - e ae;

-LIBARG - pa eoxooc oe apaepo oce poxoa a HTEPKOMa:

-0 - e ao,

-e 0 - ao;

-WHATSTEK - c aoo cea cac ee opopao ELEMENT.

-c.=0 - c aoo,

-c.=1 - co cooaeoo;

-TRACE - pa paccpo poep;

-TRACELN - pa paccpo cpo;

-STEPREG - pa oaooo coe;

-MONITNAM - pa pop \cex\ e;

-ISCALL - pe pao P-eppeaopa:

-0 - pe poo aoa,

-1 - aa poepa,

-2 - ocao,

-3 - ocao o oe;

-ISNAMEOLD - pee pao poep:

-e 0 - aa poepa ec aee e,

-0 - aa poepa - peeoe aee;

-PROCOLD, PROTOLD - cooeceo aa paoae poep;

-SAVEAREA - ae UGS UGS1 oe aaa paop peca;

-epcae paoe e (¤10-¤1F).

-Paoa oac oex oo cce (¤80-¤9F).

-Paoe e IOSUB OC (¤20-¤49).

3.5.4. pecaee ax e.

ae xpac ao \e\ oepao a. xpae ax e ec \o.\ B c c opo C aece eoa pacpeee a \eoa eo\ paep oa pae cee o; a paep oa - 4 aa, aca ac o oea oco a. apoc a eee ocooee oo acac o, exa copa copa e pecope.

Ec aeca a ax ( acoc, oea a) ee paepa eeoo oa, o ocaac ac oa e coec.

xpae oea eec ae ocx oo a.

ep a oa - ecpop oea - coep:

-e oa, opee  xpao  oe opa,
-ocaa N-2, opeea  oa (N - o oap  oa),
- ce cap  opeee a (0-c, 1- c).  xpae N-2  o cae ooc oo 3 a.
    7 6 5 4 3 2 1 0
   -----------------
   !  N-2  !  e  !
   !_!_____!_______!
   a

o apeco oea oaec apec eo epoo aa (.e. cca a eo e). Apec ee p paepe oa eee oo cpa o eo e e. o a coec eoopx opopaax opao.

pa oeo (poepa, , a) cece ce cco (opo a pecae). p x opoa (apep, p pcaa) peaoo opoa e pocxo, a ce cco eaec, coec o e oe. Aaoo, p oe oea o ocooaec oo p paece cea cco . Occe oex cco apapec cao ppoo x oeo.

Cca a oe "co" (coe aee) pecaec ccee e apeco oea. Ta a eoop popaa oee cope e a apec oea, a a a o o apec, o apec ¤0000 aca 0 (eo a e oe ep ao oea).

He ocaa opa pecae oeo:

-\Cce o\ (o epo WBUF, .e. aa e, oo oa, epa oca cee, coe):

a:

0 - ecpop: e=1, N-2 = 0..C ;
1.. - opa, aca o aae oa.

B pe cceo oe oe xpac a opa, oao popao COPY (c. 8.1.5) ccee o e opc.

-\eoe co\:

a:

0 - ecpop: e=2, N-2 = 0..5 ;
1..oce - pecaee ca.

B oe xpac o ca po oo oe, ae pap aa oce a oa.

Taoe pecaee ex ce oeceae oopeeo a pao c o ca, a ooceo e pao c eo ca.

Macaoe eoe co - 2 ** 1016 - 1 (o ¤80 ao). Opaee cao c e, o p opaoa ee ox ce a ao BM ae ooee eoca, opaaec a eoc opao ax ce.

-\pooe co\:

a:

0 - ecpop: e=3, N-2 = 1 ;
1 - ec opo ca;
2..7 - acca ca.

Hopaoaa acca xpac oo-eco e, o e p ae. opo xpac oo e (opae - ooeo oe). Caec o oa co \epe\ epo po acc.

Bop pecae oo-eco e ca c e, o p pecae oo e oa o epeopo, oc oope o o eeaeo.

Bpoe, pecaee oo-eco e ae ee eoca:

1/3*3=0.999999999999

(a o paax oo popa o aeae oco a poe 8-9 acca).

po apa peaa - xpaee opaoa ca c oe ooc, a aa c ee, o c opee - cpae o eocao, o po epecae ocec, apep:

A=B, o A-B>0 .

pecaee 0.0:

   13 00 00 00 00 00 00 00

(eoope popa poep a paco oo ecox epx ao, oope eeo poo ce e e o).

-\Tec\:

a:

0 - ecpop: e=5, N-2 = 0..C ;
1,2 - aeca a  (co coo),
3..+2 - co eca o oo ae.

oc co ec (=0).

-\Cpp\ (ope, oeco, ac):

a:

0 - ecpop: e=6 (oeco),
                e=7 (ope),
                e=E (ac),    N-2 = 0..C ;
1,2 - aeca a =2*co eeo,
3..*2+2 - ap ao - apeca eeo,
*2+3..*3+2 (oo  ace) - cco oepo e oe, o oo  ae.

oc coe oeco co ope (=0), o e ca ac.

Beca caapoe pecaee cpp aoo a. Oaooe peee pecaee cpp oeae pao c .

-\a\:

a:

0 - ecpop: e=F, N-2 = 0 ;
1 - ce cco;
2 - cca a opao ep aa (ceee  cpae occe oa-oa).

-\poep \:

Oe "poepa"/"" oe a caap (SQRT, PM p.), a peao pac popa a PAPE. Cap 2-o aa pecae oea - .. \ cceoc\ - aae, e ec aa poepa.

-caapa poepa/:

a:

0 - ecpop: e=9 - poepa,
                e=B - ;
                N-2 e ee ae ;

cap = 0 - ocae apec peaa coe ADR4, oce oa eppeaop oe oec eo ce;

cap = 1 - caa oec pea ce;

1 - oep poep/;
2 - ¤80+K - oeco apaepo;
3..K+2 - ae a apeco opopa opao apaepo; caec, o ce opopa aac a oo cpae.

Oca caapx poep xpac , ce cco e peec, popaa COPY cae opoa caapo poep/ opaae o e apec.

Hoep poep/ coec popae ea o. He peea aa oepo:

  00 ABS     08 K     10 BET    18 APB  20 ( )
  01 KO     09 T    11 CMPC  19      21 MT
  02 A     0A AA  12 TK     1A PKA   22 OTCET
  03 P   0B O    13 H     1B KHOKA  23 BOH
  04 E    0C OKHO   14 PM    1C HAATO  24 TKC
  05 SQRT    0D KB   15 O     1D KAB
  06 TEKCT  0E OKCM  16 AP    1E PM
  07 KOPT   0F BK   17 AP    1F C

-\oa poepa/\:

a:

0 a - ecpop: e = 9 - poepa,
                     e = B - ;
                     N-2 = 2..C;
1 - ce cco;
2 -  - oeco apaepo (<=127);
3,4 - apec epa oca poep ( 0000);
5,6 - apec ep cee pep ( 0000);
7 -  - oeco oax e;
8 - oeco xox  opax apaepo;
9,¤A - ceee  oa PBXO;
¤B - cap  -  oca: 0 - PAPA,
                                  1 - POK;
     ocae - oep o/coe ( 0);
¤C..2*+¤B - o 2 aa a apaep:
   ep a - oep e opaoo apaepa,
   opo a -  epea:
     ¤00 - xoo,
     ¤50 - xoo,
     ¤60 - opa;
¤C+2*..2*++¤B - oa, o oo  ae;
¤C+2*+.. - oa poep;
  aee - oa ce peaa;
aee - oaa BOBPAT.

B epe oca poep axoc oca, aee e o pe pac. Ceee oaax ap oca ce - o ceee ooceo aaa epa oca poep. Ec poepe e px oca, poe opox, .e. ec ep oca c, o o poep e eec eco eo apeca 3-4 a c .

ep cee c opeee oe coe cooec e ceee ooceo aaa poep coeo oa oepo cpo eca poep. o o opeee oepa cpo o pe a aoc o oe, a ae p paccpoe cpo.

Bo pe pac CKAHEP, oap co epeoa cpo, ocae ep cee aee NTK.SEMP, o pe coe opeee oepa cpo ocaoo pocoo a pocopa epa cee. poep, xoe coca o/coe, ep cee occe, eco eo apeca aca .

Ceee oa PBXO x aae a oa, ce paee oce "PE:", a poepax - a oa BOBPAT.

3.5.5. Ce. pecaee ax cee.

B oac ceo axoc 2 cea co cpe aoee. ep, a, pace copo ee apeco.

Ha ae cacecoo paopa o c opaa pepc CHTAHa, o pe a opo (cooae) ce coec CEMa epeoa pae opa oc ac xpae poeoo opa (apeco, cee p.), oocec , ooo, oe peca. Bo pe coe ao cee axoc pao oopee cc a oe cce e eeo aoo cea. C paoa oa pao co ceo P-a. epe eo ocecec o poep. Bo opo cee xpac ac ocaoa ocaoa o oe, a ae paoa opa a -. popa opao oex cpp co eo opaa pepc.

p ooe caceco o oa cea cpacac o aoex SAVEAREA o, a p ooe o pee eppea a ce papaec (.e. c eo cac ee p eoxooc oac) o oa o epo ac aa.

Paoa co cea ocecec epe opopa pae popa cea (C), c. 8.1.3. O oecea caap aop ec - ac/cae ooo aa.

He peeo pecaee oeo ao cee o pe eppea. Bepx a cea - o \TC\ (e aoo cea), opee eea, ocee a - opa o o eee.

\ca:\

      1. TC = 0 .

\o:\

      1. TC = 1 .

\:\

      1. TC = 2 ,
      2. Hoep e,
      3. Capoe aee a.

Koa oeaec ce, a eo caaaec acoa aa; p o eo capa aa ec ce occaaaec oo p c e co cea (apep, oce cooa eo ae). o o a o oox eo. Cooc oa p ee opa eeo cee e x paeoa, .e. e -OT (ec c 3-x eeo cee) p oe poep (apaep epecac o opo ce).

\Cca a oe\:

-oe, oop e e (apep, ocaa):

 1. TC = 3 ,
 2. Apec oea (2 aa).

-peeoe aee (oce cooa o):

 1. TC = 4 ,
 2. Apec oea \ e\ (2 aa).

\Bpea eca/opea:\

Bpea eec:

- eca - a oceoae aa,  oopx aca peaee co;
- cpp - a oceoae apa ao,  oopx aca apeca peaex eeo.

pecaee a cee:

 1. TC = 5 - pea  eca,
        = 7 - pea  opea;

( opopaax opao coec coaee TC c ea oeo).

2. Apec aaa peaeoo epaa (2 aa),

3. oa a peaeoo epaa \ aax\ (2 aa);

       pe A[i:j]:
       -  eca - (j-i+1)
       -  opea - (j-i+1)*2

4. Hoep e, ae oopoo eec pea.

Ec pea eaec ae e po pe, o cee oppec o ee "pea". p eoxooc cooa \aee\ pe oa paeoaec, .e. coaec pee oe, cca a oop oeaec ce c TC=4 (a peeoe aee). p eoxooc pco eo-o pee paeoa e pocxo.

5. Capoe aee a (ocae c. e "").

pea.

- eco eco op A[i] oppec pea A[i:i].

- opee opa A[i] oopec a pea, o a caaaec >=¤8000 (aeoo e oca a pe).

-oc o ac peaec a opa opea (TC=7), e aece eca cae pea oep e cce oe ac; ec coec o a, o cco eeo ac xpac a e, a opee.

-Aaoo peaec op oepeoo eea oeca e -: pee pecae oec opee coaa.

\ac aa poep/:\

-TC = 6 .

-Cap  = 0 - poepa aa  PAP,
           = 1 - poepa aa  POKA.

Ocae 7 o - aee ISCALL oe oa.

-ISNAMEOLD oe oa.

-Ec oe oa ISNAMEOLD /= 0 (), o aee - PROCOLD PROTOLD.

-BEGIN (2 aa) oe oa (ao apec oa epea pae; aao epa oa, aao poep).

-Ec oe oa ISNAMEOLD /= 1 (o), o aee - BEGIN+2, BEGIN+3 - aao epa oca.

-SAVEAREA, SAVEAREA+1 - aae a aoe o aoo cea oe oa.

-NTK oe oa - apec opaa.

%ENDL

aee - oae ea (o 3 aa a ):

   - a opo,
   - 2 aa - apec ae  oe oa.

oae ea acac ce ope x epece ocp "MEHA:".

aee - opae apaep; aao oa ea.

aee - ea pe, cooece opa xo apaepa; acac ce ope epece.

Bo opo cee o pe coe o axoc ac ocaoa ocaoa o oe. He peea cppa ace ocaoa ocaoa o oe:

-0 ;

-MAINREG, .e. pa paoo ooaee a;
-REGIM, .e. , a oopo acaa pocaoea poepa;
-BEGIN..BEGIN+3, .e. apeca aaa poep  ee epa oca.

aee pea ocaoa ce:

-Coepoe ee CLASS, C.PROC, C.ISAME, C.ISCALL, cooeceo, oe pocaoa;

-8 ao: NTK, CURRENT2, C.BEGIN, C.ISCALL oe pocaoa.

3.5.6. Cppa a e.

Kaoe , cpeeec xoe cacecoo paopa, aocc a e (ec eo a ee e) e e oe oa epo.

B ae e xpac ceee:

-cca a aee - 2 aa,

-a a (opo),

-ceee eca eaopa ooceo aaa \epa e\ (eeoo ae \ae eaopo\).

Taa opaa a e ooe:

-oo a p eoo oece e x ao e (eee 8 coo, .e. ae ceo cpeaec ea).

-ca ce co eaopa a.

ep e p eoxooc oe pacpc, p o eec eo aa apec (eo oo ae e xpac \ceee\ eeaopa ooceo aaa epa).

Hoep e aae o a. B P-eppeaope ee eco e coec eo oep. eceo, o oep e ooao occaaac ce eo xapaepc.

Taa e caec aae 5 oex cpa opaoaa o p ecoo oca, e eco c oep e; a cpa c oao oepo oca oo o e .

Cppa aa opo aoa:

-7,6 - aa e:

  00 - a e,
  01 - aca aa,
  10 - oa aa,
  11 - ccea (acoa) aa.

-1 - pa cceoc, .e. pa, ao e ao aa o peca "KATAO BCEX MEH" (0 - ao, 1 - e ao).

-0 - pa a opo a ee (0 - e, 1 - a).

Taa e aoec oceoaeo, aa c 0-o e. B aae a axoc caape ea, aoce p oe eppeaopa. Taa caapx e peea 5.4.4 p oca peeo pecae caapx poep (aae oepa c ae oepa x e). C po copo (o ¤FF ) pacoaac oae ea oe coee.

B epe e eaop xpac cee e:

-a, opeee aa ae e ceee - a eaopa coax,

-aee - ca eaop, o co ae.

K peeca aoo cocoa pecae oocc:

-cp oc e.

-Ma oe peeo a.

-oco peeo pecae e; oaoc pecae e o pee oe.

-Cooece eoa oca aapa oooc BM , a cece, oco opao.

-Cooece eoa oca pao exa peaa poep.

B peae aoc oc cooo cpoec P-eppeaopa p paoe c ea.

K eocaa cocoa oo oec:

-Maoe oeco oox e (256, a caape ea ax oe).

-cp acopeoc a e.

 

4. COEME TEXHECKE CPECTBA.

4.1. Tpeea opa.

Ccea "KOHA" ope cee opa BM "AAT":

-BM "AAT" c oeo O 64K a 32K a (7 coee).

-O a cooa a oo paee.

-eo eeo oop.

4.2. Apxepa BM "AAT".

7 coee BM "AAT" ee ce cpp a:

-0000.7FFF - ocooe O;
-8000.BFFF - ooea aa O;
-C000.CFFF - a ex cpoc;
-D000.FFFF - aa O c ao o ac.

He opae coco oopae 96K a 64K apecoo pocpaca pee ooae, coee popaax:


     ------------
0000 |          |
     | Ocooe |
     |          |
     |   O    |
7FFF |          |
     -----------------------
8000 |          |          |
     | HOPMO  |  OO  |
BFFF |          |          |
     -----------------------
C000 .          .
     .          .
CFFF .          .
     -----------------------  -----------------------
D000 |          |          |  |          |          |
     |  LC0D0   |  LC0D1   |  |  LC1D0   |  LC1D1   |
DFFF |          |          |  |          |          |
     -----------------------  -----------------------
E000 |          |             |          |
     |   LC0    |             |   LC1    |
FFFF |          |             |          |
     ------------             ------------

Kacca a:

-Ocooe O (¤0000-¤7FFF) ocoo oco a ee a ac. B e pacoaac:

-00 cpaa, epe oop oec ocea apeca  oaax popoeccopa,  e pacoaac aoee opeee e;
-01 cpaa, coea popoeccopo a aapa ce;
-8 oceoaex cpa ecoo pao a;
-32 (¤20) oceoaex cpa paeco pao a.

Kpoe oo, .. ocooe O oco oo aa a, e oo pacooa aoee opeee opopa (apep IOSUB, 6) opopa epee ao a.

-B oo 6 paeo ea BM oa axoc aa ooeoo O (¤8000-¤BFFF). a oe axoc oo 3 coco:

-oce a ee  ac o NORMOZU (¤CX08),
-oce a ee  ac o DOPOZU (¤CX09),
-e oce  o  oo (p e aec ¤FF) (¤CX00).

B coax aa apec, o oopo peec poec ac opa aoo coco (X - oep paea a O).

-B oo 6 paeo ea BM oa axoc aa (aec O c ao o ac). a o ¤D000 o ¤FFFF o oe oca oo a ee, oo a ac (aec ¤FF e coepoe ). Coco a:



----------------------------------------------
|  N |    0    |    2    |     4   |   6     |
| M  |         |         |         |         |
----------------------------------------------
| 0  |  LC0  |  LC0  |  LC0  |  LC0  |
|    |  LC0D0 |  LC0D0 |  LC0D1 |  LC0D1 |
----------------------------------------------
| 1  |  LC1  |  LC1  |  LC1  |  LC1  |
|    |  LC1D0 |  LC1D0 |  LC1D1 |  LC1D1 |
----------------------------------------------

Bop coco pooc ac o apec ¤CYNM, e Y - oep paea a .

-Apecoe pocpaco ¤C000-¤CFFF oeeo pae a ooe cpoca:

-¤C0 cpaa - paee oo c aap  aaoo oo-oo;
-¤C1-¤C6 cpa cooec 1-6 paea ea. Opeeee a oeoo  pae X cpoc:
-0-2 a cpa pa A2 20 A0 - paep cooa,
-0 a cpa pae FF - cpoca e,
-1 a cpa 80..FE - aa ,
-0 a cpa pae 0, 8, 9 - aa ooeoo O,
-¤C0N0-¤C0N3 (N=X+8) pa 00 00 00 FF - aa epeca.

-¤C7 cpaa - opoep ce. ec 5 peo oopae. CP BP o oo peec 8K, o ocae pe - 2K. opa pea oopae eoxoo opac o apec ¤C7XY, e XY opeeec o ae acoc o peeoo pea oepa aao cpa ecooo paa.



    | 00 08 10 18 20 28 30 38 40 48 50 58 60 68 70 78
----|------------------------------------------------
HP | 00 04 08 0C 10 14 18 1C 20 24 28 2C 30 34 38 3C
CP | 01 -- -- -- 11 -- -- -- 21 -- -- -- 31 -- -- --
C | 02 06 0A 0E 12 16 1A 1E 22 26 2A 2E 32 36 3A 3E
HC | 82 86 8A 8E 92 96 9A 9E A2 A6 AA AE B2 B6 BA BE
BP | 03 -- -- -- 13 -- -- -- 23 -- -- -- 33 -- -- --

-¤C8-¤CF cpa coc pacpe a ex cpoc.

Ha BM "AAT" ec ae 2 aepa:

-NMI - aep c acoo pepa 50 , cxpopoa c co apoo paep eeoopa;

-IRQ - aep c acoo 500 .

pepa eeppc a, o 50% pee poeccop oe popa opao pepa (ec oa aepc pae, oa e aa coa).

Papa-eppeaop coe pepa opaa opoaoo ecoo-paecoo pea oopae opa a pa eeoopa, e pecopeoo caap aapa cpeca. B aae a ooe coepoo paa o pepa NMI aec pe oopae paeco cpa, a oe (a 190- pepa IRQ) aec pe oopae ecoo cpa.

eepaop pepa ac ac oopeeo opaee ee ¤C040 ¤C050, cooeceo.

B c c eococ pepa pao paepa ca RWTS p opae c eepaop pepa ac.

p oea c cooo coco opoa opae oo a [1].

 

5. BOB APKA

5.1. o pocxo p e a.

ocoa a BM "AAT" e coep ao cce popapoa, e axoc oo ace opopa oa-oa cce oop. apa a o cce, .. "KOH", pocxo aoaec p e a aoap ocoo cppe cceoo ca (pc. 5.1) oep co copo aapap. p e a e pocxo cee poecc:

-Aapaa paea a aa ae.

-Aapaoe ee a ac aa LC0D0, p o opaec a ee cce oop.

-Aapapa ae ca "CPOC", o oopo pec paoa popoeccopa oec popaa opao caa "CPOC", apec oopo aca capx apecax a (¤FFFC-¤FFFD).

-a popaa

-opeee o coco a, o aa oo o ea,

-ae epxe cpoe paa ac " ** AAT ** ",

-opeee oep paea X, oopo axoc opoep cooa,

-epeae paee o apec ¤CX00 (aaa apa cce popapoa).

aea paoa a e o paee apeo cce popapoa.

oo, o poec epeap cce p e eo ae, ocaoo epea paee o apec ¤CX00, cea peapeo oc a ee cce oop, .e. \a ac\ a LC0 LC1.

5.2. Aoapa (apa aaoo apa).

\I a aao ap.\ Apecoe pocpaco ¤CX00-¤CXFF - o cooa. B e axoc popaa e eoo ceopa eoo pea. p xoe o apec ¤CX00 pocxo ee cooa apoa oo: oa ooc o opa ee copoe ca (0 pe), o copooaec xapaep o, oxo a cpee. ae a 8- cpa O caec 0/0 pe/ceop ca, coepa popa-aoap cce popapoa, paee epeaec a ee.

aa popaa cooa e epcaa: oa e MOe ca ceop c poooo pea -a opae a co oe (1 cpaa). o o e pe oa e peape a o e, oo ec p e a a pae op ac " ** AAT ** ", a coo paoae co oo, a aa e oe poa aa ap (apep, o aep oxo poa apoa oo).

\II a aao ap.\ Ha ao ae pocxo apa 12 ooex ceopo c oo e 0 pea, coepax aa ap cce "KOHA". p x ca coec a e popaa e ceopa (oa xoa ¤CX5C).


-----  Pc.5.1  Cppa paoeo  cceoo co. -----

 ce  0  123456789ABCDEF     ce  0123456789ABC   DEF
pe !--------------------!  pe !---------------------!
  0  !H! HE COETC !    0  ! HA.APK ! XXX !
     !--------------------!       !---------------------! 
  1  !                    !    1  !   MO  CCTEM   !
  2  ! PAOEE  POCTP-BO !    2  !     "KOHA"     !
  .  !    OOBATE    !    .  !       ( 60 K )      !
  .  !                    !   ¤0F !                     !
 ¤0F !      ( 64 K )      !       !---------------------!
 ¤10 !                    !   ¤10 ! CTAH. AKET (4K)  !
     !--------------------!       !---------------------!
 ¤11 ! KATAO CKA (4K) !   ¤11 ! KATAO CKA (4K)  !
     !--------------------!       !---------------------!
 ¤12 !                    !   ¤12 !                     !
 ¤13 ! PAOEE  POCTP-BO !   ¤13 ! CTAHAPTHE  AKET !
  .  !    OOBATE    !    .  !  PAOEE POCTP-BO !
  .  !                    !    .  !                     !
 ¤21 !      ( 68 K )      !   ¤21 !      ( 68 K )       !
 ¤22 !                    !   ¤22 !                     !
     !--------------------!       !---------------------!

      a) Pao c               ) Cce c
-----------------------------------------------------------

5.3. Cppa aaoo apa.

Haa ap coco cex ace:

-Aoap - c ap a ocax ace. Cpaaae o pa aae ap.

-Koec acx opopa oa-oa cce "KOHA" (IOSUB, 10). o o ocaec pee a eee pao aoo o cce, oecea e ca eco pa aoa o ce ccee.

-opopaa e/ac poooo pe/ceopa (RWTS). Oa coec ap oo cce, a ae p paee paox co.

-Cpaa opox c. B e coc oo ¤10-¤FF a; a XY coep opo c ceopa Y pea X. Kopoa ca pecae coo pea oceoaeoo pee oepa "EOR" (caeo "") o ce aa cpa ax; oa coec p ape oa opo paoc ca ceopo.

-Coceo aa ap.

5.4. Paoa aaoo apa.

oco aa ap aae pao eopeeeo aao ocaoe, a eo oaaec oaoc opee opa a, pec a oe cocoe, acpo cpeca ee aoa.

oooea paoa aaoo apa aoa:

-aecee a RWTS oepa paea opoepa cooa; o oep opeee ee cce oopo p oooe ape.

-Opeeee paeo a ooeoo O. o eaec e opoca ¤C1-¤C6 cpa a (4.2). Ec oa a e aea, a pa aec cooee, apep:

   HE HAEHA ATA 
   POOAT (/H)?

Ec e a ae aooo, ap acpaae ace o oepo x paeo opopa IOSUB, copae oe ¤1B cpa (opopa epee a p.). Hae x opopa ooe ca paoae o opa a o.

-Opeeee oepa paea a epeca (ec aoa ec).

-Hacpoa aoa:

-paa cpaa  ¤1000-¤17FF,
-eo eco pe,
-oo a ec pa.

-Baa aoo cceoo e apoc o ap (oeceaec c oo IOSUB).

aee aaec \pe a aao ap\. apa paoo o ocecec o ae. Kao o e cooece ecoo cpo, o c cx ooeo, opax o o. Oa cpoa a opeee opo ap coo aca ca c oac a ee :

-0 a - a aca  ceopax (, ceoaeo,  cpaax a);
-1 a opeee, a a a ao  \epe\ apo; ooe ae:

-0 - eo,

-8 9 - NORMOZU DOPOZU cooeceo,

-¤80+o oca - , o oca opeee ope aa a ee ac caap opao,

-2 a - oep cpa, a oe apc \oce\ ceop aaoo aca ca,

-3,4 a - pe/ceop \oceeo\ ceopa aca ca, oop peec ap a.

aea:

-Ceopa a ce cac ope opaca ca XY (X - oep pea, Y - oep ceopa).

-Ka o a, ec oe e o cooec ceop-cpaa, oo pa ooaoa ocpaa apeca.

Cppa apooo o cce "KOHA" oaaa a pc. 5.2.

oce ca oepeoo ceopa ax o oca e paa cec eo opoa ca, oopa cpaaec c aoo cpae opox c; cae ecoae aec cooee

   POPAMMA COPEHA
   POOAT (/H)?

p oee "" apa pooaec, o p paoe o \ooe co.\

Aaoo, ooo pooee ap oce o e a cooe

   OKA TEH
   POOAT (/H)?

pao oa ap o caec 0 o oepeoo aca. B o cae 1 2 a a paccapac a apec aao o xoa ae o c o.

B eee ceo pee pao aaoo apa aae a "CPOC" po aa "c " ceo a ap, a ec a aoo. o ocaec aoap o, o aapee cce oopo o ca "CPOC" e a e ec aa apo coxpa coe cocoe c oea e BM.

He poc cco xox ax, oop pacoaae a aa apo o cce:

BOOTSL (¤2B)    N paea cooa * 16
OZUSL  (¤4C)    ¤C0+N paea a O
PZUSL  (¤4D)    ¤C0+N paea a 
IOSL16 (¤4B)    N paea a epeca * 16
TXPAGE (¤A6)    ¤10 - pa  ¤1000..¤17FF
INVFLG (¤32)    ¤2A - ee co, ee e

opopa IOSUB (¤1800-¤1BFF) acpoe a opa a.

peoaaec, o paee aaoo apa pae eoop o acpo aoo o, oop c eoxo oo o opa aece ceae e.


---- Pc.5.2. Cppa apooo o cceoo ca ----

 ce  0 1 2 3 4 5 6 7 8 9 A B C D E F
pe ----------------------------------
  0  ! H H H R R R R R I I I I K - - -
  1  ! O O O O O O O O         
  2  !                 
  3  !                 
  4  ! 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 
  5  ! 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 
  6  ! 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 
  7  ! 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 
  8  ! 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3
  9  ! 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
  A  ! 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
  B  ! 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4
  C  ! C C & & & P P P P P P P P P P P 
  D  ! P P P P P P P S S S S S A A A A
  E  ! A A A A A A A A A A A A A A A A
  F  ! A A A A A A A A - - - - - - - -
  
H  (08-0A) - Haa ap cce
R  (0B-0F) - RWTS aaoo apa
I  (18-1B) - IOSUB
K  (  06 ) - Cpaa opox c
  (1C-20) - popaa pae co
O  (20-27) - Oa (OK)
P  (9E-AF) - Peaop (OK)
S  (D0-D4) - o oa Acceepa  Peaopa (OK)
A  (D5-F0) - Acceep (OK)
&  (1C-1E) - o cope ace OK
  (80-82) - o aa P-.
  (9F-BE) - a OO P-.
1  (D0-DF) - a LC0D1 P-.
2  (D0-FF) - a LC0(D0) P-.
3  (D0-DF) - a LC1D1 P-.
4  (D0-FF) - a LC1(D0) P-.
C  (1C-1D) - o COMOZU P-.
----------------------------------------------------------

5.5. oa ap c paoeo ca.

Ha paoe ce ac pocpaca oeeo popa ooae (Pc. 5.1a). Cce a e e, oo apa c oo ca eooa.

Ha 0/0 pe/ceope paoeo ca eco popa- aoapa axoc popaa, aa cooee o eoooc ap. p o coc oo oooc apapoao ocoo o oe cceoo oopa. aee popaa aaec, oa e ca eaeca ooae. Haae a "CPOC" ae e e ec, o ee a, .e. eaec oopa oa ap. peoaaec, o o pe oa ooae e ae c cooe cce.

 

6. BXOHE AHHE

Bxo a cce c:

-ec peca, ox ooaee c aap  pee aoa;
-oe ooae a apoc cce;
-ec popa, ae  pc, oe c x ax co;
-oe o PAPA  POK: ca, ec, ope, oeca, ac, poep  ;
-ca o ex cpoc.

Bxoe ae aac o paa, p o xox ax ccee ([3,4,5]).

Cpeco ooo ax oe c caa ccea a pa ccea popapoa o BM (p coe pa aa ax).

 

7. BXOHE AHHE

Bxo a c:

-cooe cce (a ce  cpoc oa);
-oa opa  popaax ooae (a ce  cpoc oa);
-popa, ec  ae a x ax cax;
-paece opae a pae eeoopa.

opa xox ax opeeec [3,4,5].

 

8. HTEPPETATOP KOB PAPA POK

8.1. po cce.

8.1.1. Coca pa.

B .. \po cce\ xo cee opopa:

-occea pae a (C).
-opopa pae popa cea (C).
-opopa pae aec epa.
-popa opoa  oe aecx oeo (COPY/DELETE).
-occea oa-oa.

He ocaec aaee cppa x opopa.

8.1.2. occea pae a (C).

occea pae a ocece o opo a pacpeeee a o eo "eo" ([6]). Bop oo eoa ooe oece pee copoc oeope acx apoco a eee ocooee a p paoe c oea aeco paepa.

Coaco eo "eo" aeco a ce eee o o e oo 2**N. Macaoe aee N ao peaa - 15(¤F), o cooece 32 Kaa. B ccee peao coc o e ee 4 ao.

Cco cooo a pecaec ae AC. oo aoo paepa e oee pae o 4 aa, oopx xpac cc a ep oce cooe o co cce. c cco oeae cee oa cca p eo ee c c eo. oc cce occe cc ooaaec e cape ae apeca.

Ocoeoc peaa eoa "eo":

-oco apec oa-ea opeec a "aco apec oa" EOR "a oa", apec aoo oa oe pae eo e. Eceoe eoee oo co (apec a ¤4000 e pae eo paep ¤8000) po eoooc oee x oo paepo oa, o o peao e peec. Booe e, apee oo peoa oaco.

-ae cooe o e pacoac o 2 a a coeo 0-o aa (e ecpopa). Bce e, poe 0,4,8,¤C, oaa, o o a, ca pacoaa o oeo. B poo cae o cooe, epe 4 aa e aa 2 apeca (cc a pe ce cooe o oo e paepa). Taoe pacoaae ooo oo, o apec oo oa pae 4, .e. 2 ax a apeca pa 00. Ma a aoo apeca xpac 0-o ae coooo oa.

-B ecpope aoo oa ( 7-4) xpac ocaa N-2, paa log2(a oa)-2. ce, pecae oopx ocaoo ¤80 ao (N-2=5), 7 oee aa. p ocooe oa C coe e acoc o eo opeee oa o 3 4 a N-2.

-5- o op a coooo oa aae ocaa ¤F0+(N-2). Oa coec oo p c oo opeee ea.

B cao ee, p c c eo eoxoo poep, e pa o a oee ee o, ac oopx aa, a ca ep cooe. oo oo poep ea eocaoo, cooo oe o xpa eo . Coee c ¤F0 peec pae x ca:

  o-e
 !-----------!-----------!---
 ! co.(4) ! a(4) !
 !-----------!-----------!---
 
 !-----------!---------------
 ! coo.o (8.  oee)
 !-----------!---------------
              ^

Kocaa ¤FX oeeo ae ooe c ep ca (N-2 aoo 4-aooo oa e oe a). 4-aox oa oa e a: o e e ec.

-B ccee coec cea ocoeoc peaa C: p apoce a eec oce eoee ocooe o ao (opopaa WBUF).

C coco x opopa:

-SUP1 - eee oa  e. 
Peao eoxooe co ao (c o  ecpopa) epeaec  DL. 
Beec a  oxox oo: N aoe, o 2**(N-1) < DL <= 2**N. 
Apec eeoo oa aec  ADR4.
-SUP2 - ocooee oa. Apec oa epeaec  ADR4.

B ccee coec ceee cocoe pecpo poeccopa a xoe C:

-X - e eec,
-Y=A=0, Z=1 ( SUP1, ec oa ca "cepaa a", A=¤0E, Z=0).

aa C ocaoo:

%LISTM

-aca  epe 5 ao a 00 00 00 00 FD ( pecae coo ece coo o);
-o ce pae AC, a  oce aec a apeca aaa a (aa cco cooo a).

8.1.3. opopa pae popa cea (C).

opopa C opa oao pao c popa cea (ac ee aa).

-WSTEK, IZSTEK - cooeceo, ac ee ooo aa ( aoo cea);

-WSTEK1, IZSTEK1 - o e opoo cea;

-WSTEK0 - caaa poep, ec oac popax ceo ¤20 coox ao; ec ec - epe a WSTEK, ae a o.

-IZSTEK0 - cae ooo aa aoo cooaeoo cea acoc o coco e WHATSTEK (cap =0 - a, 1 - oo). a opopaa aec opopao ELEMENT. Eceoe eco, e peec cae co opoo cea - o poep, e eo eac apaep.

   epec opopa pao co cea:
                \ac\           \ee\
   xo:   A=acae a     -
   xo:  A eeco         A=ca a
           Y=0                  Y=0
           X e eec        X e eec

Booe o:

-epeoee cea;
-cepae cea (p opao paoe cce oa e oa oa).

p opae opopaa cee o, o o o a ca o oe caocoeo a pea a ee. Heoxoo o oece eoooc ooe oo, o pecope oco popa x opao acpo a ee cce eop pea a o (c.8.5.1).

8.1.4. opopa pae aec epa.

opopa ca opaa oep aecx epo epeeo .

Bceo ec 4 a epo ( coax aa oepa epo):

    - oo oa            (X=0),
    - ep oca          (X=2),
    - ep cee          (X=4),
    - aa eaopo (X=6).

Bce o, a o aao p oca poex pee, e apaee e opeee o p opao. Kpoe oo, epa epx pex o o cecoa e eceo ce (ec ec poep). o pa aca e epcae opopa coa aecoo epa ac aa eo oe.

Ha xo oe opopaa pecpe X epeaec oep epa.

-popaa INIT opae co ep, aaa eo o paepo 16 ao;

-popaa WBUF ocae coepoe aopa peapeo apoao ep; ec ep aae ec oee o eo o a, o epe ac aa eoxoo aaa o o epeca eo ep:

-o a ocooaec (p o coxpaec coepoe coex C epx 5 ao oa),

- C apaaec o, oe o o a,

-ec o o ee, o eo epecac coepoe epa. Ec e, o C aaaec o a peeo paepa (o occao ep), p o eec cap o (c. 8.1.2, .5), aec ca o oe.

Paoe oac:

-BEGIN - aaa oo a, eee o epa; eo cap a apeca ooaae occe aoo epa;

-COMMANDS - apeca epx coox ao oax (aae oo epo);

-LAST - apeca ocex ao oo a, eex o epa.

8.1.5. popaa COPY/DELETE.

popaa COPY/DELETE peaaea opao \oeo e\, .e. o coe po oa e cex ocax o paee popa. Oa coco x opopa: COPY DELETE.

opopaa COPY oae a xoe apec oea ADR1 opaae apec peaa - o cxooo oea - ADR4.

opopaa DELETE ocooae a, a oeo, apec oopoo epeaec e ADR1.

p opoa ce eco ocaoo poco o o C o a peeoo paepa epeca a coepoe oa. Aaoo, p oe ocaoo oo ocoo aae o.

p opoa coo ae caapo poep ocaoo ep oa a xo apec, a p x oe ax ec pepa e ao.

p opoa poep, aa pocxo eee ooaooo cea cco aec apec oo e oea. Oca cee p cpae oeo x o o cce. p oce ceo pecoo ae - 256 - aec ca o oe ("oo o"). p x oe peaoe ocooee a pocxo oo oce oce ceo cco eoo ae.

p opoa oe cocax cpp - opee, oec ace - coec cxoec x peeo pecae. opaa pepc coec cooae ce. p exae a o oo cpp pocxo oe opoae ocaa cpp c e epc pepc, ae o oea cppa oaec aec ca o oe.

cooae ao opopa oeae peaa poo ccee pa opoa oea p eoxooc coa ooeo cc a eo oe eo p oe o cc. ococo oo pa ec occe aooc cpecax cop copa. K eo eocaa oo oec aac ee opoa oeo (apep, opaoo apaepa p xoe poep).

opopaa COPY/DELETE oeae pao c oea a pee poe P-eppeaopa.

p paoe popa COPY eec aea opaoa o c e oece occe copa p exae a o pe opoa cocaoo oea (oee e copoax ace oea).

8.1.6. occea oa-oa.

B PAPA-eppeaope pa ocoa cxea opae opopaa oa oa (aapa ooo), oeaa paee e cpoca a a ee, a a pee poe.

8.1.6.1. paee oo.

oa coa oax cce coec opopaa COUT.

Pea o coa a p a cpoc poo popa-\paep\:

    - a pa - COUT1 (10.4.3),
    - a pep - D100,
    -  a - WRBYTE,

oo oa opaee peaoa ce opao.

-B paoe oac OUTPOOL ee 3 18-aoe epe o pecae ooo oa:

   ¤00-11 - cce,
   ¤12-23 - popa,
   ¤24-35 - oao.

Cppa pep ooa ao:


 0   1  2  3     4  5  6     7   8   9   A   B     C
----------------------------------------------------------
!! JSR COUT1 ! JSR JPRNT ! LDA #N  JSR JWRBYTE ! RTS !
-!--------------------------------------------------------
 !   3 aa     3 aa       5 ao             ^
 !__________________________________________________!

0 a - cca a oe ooa, coea p oae ooo cpoca;

aee - oa oa paepo; opa pa a popa, oaac oao opaa.

epeee cpoc oa ocecec paa ON OFF. x epe oa pecopea ooea opa, opeea opeoe cpoco oo. o e occaaaec oceoaeoc oa ooe, oaaa o a aoe cpoco (ce ooe opae pee a pe)

-opopaa IFINUSE opeee, ec e o paepa aoo cpoca ooe (e oa epexoa ooe). Opaee: apec paepa e oe coepa ao ¤A9 ¤60 (o oa LDA# RTS).

-opopaa ONDEVICE oae o paepa oe ooa, ec eo ee e; ae ocaec oaa opaa.

-opopaa OFFDEVIC cae o paepa ooa, ec o a ec, ca p o ocee o.

pe ccee opae a aoee ooa oa ce eo paepa (18 ao).

-Bop oo oo ooa oa ocecec popao-pacpeeee OUT, epeae paee a popa, aca o o ooe, acoc o e TIPOUT ( e xpac ceee aaa o popa ooceo aaa epa OUTPOOL).

B CSWL,CSWH oo axoc eo apec OUT, oo o coa epe COUT ee opaee popae ooe, .e. oceoae o oo coa epe ce paep oex cpoc.

Pacpeee OUT paep coxpa pecp A,X,Y. o apape paoc oa p oceoaeo oe paepo ooe, oo p cooa oa oax cce.

paep aa WRBYTE ee eoo po epec:

   xo:  A=oep aa,
          SYMBOL=co (acaec  OUT),
   xo: A=SYMBOL.

-epeee ax ooo oa paoco ee e TIPOUT. Eo o e o cce, op eoxoo o-o ec, o opae COUT. oca cooa eco opaoo epee a ao poxoe o HTEPKOMA MOHTOPA pooc acpoa cceoo ooa.

- paooo oa e e, a o aa pecax BBO KATAO oo coec ooe pee oo oa TEMPOUT (a ¤5A-61 OUTPOOL):

-o oae EPEK aec paa DEVOUT ( ee oa xoa DEVCAT p coe pa CATALOG), oopa aoc TEMPOUT popa oa paepa oo cpoca:

   STA SYMBOL
   opaee  paep
   RTS

apec TEMPOUT aoc eocpeceo CSWL,CSWH.

-Bo pe pao ocex oa oa e o e apac epe pee oo.

-o ooa xoa o oecoaa epee oa, o eep occaaaec o epe e oo (popaa SETO coa aoc CSWL,CSWH apec OUT, a TIPOUT e ec).

8.1.6.2. paee oo.

paee oo ee cee ocoeoc:

-ec oo a a cpoc oa: aapa a;

-cce o ooe oo c aap;

-o ooe oopeeo oo c ooo cpoca;

-ocaoo oo cpoooo oa: oe cpeca e pe \epee\ cooo oa.

%ENDL

paepo oa cpo oe oo a:

     - c aap - GETLN (10.4.3),
     -  aa - GETLNF.

Opae paepa oa xpac e oa oac OUTPOOL:


    FRSCRN  (62) : JMP GETLN           <--------!
    FRFILE  (65) : LDA #N              <--------!
                   JMP GETLNF                   !
    FRFILE1 (6A) : LDA #N              <--------!
                   JMP GETLNF                   !
--> GETLNADR(6F) : BIT KBDSTRB                  !
                   JMP eop eeo oa  __!

Bec popa o (o INPUT) eec epe GETLNADR.

pa eeo cpocaoa xpac ee KEYINLOC (ceee o OUTPOOL o popa oa). Oo o e apec xpac eope GETLNADR. epee oa ocaoo e ee coepoe.

Bo c o aaoo peca BBO cpoca opaec a:

-eop GETLNADR acpaaec a popa (KEYINLOC e eec!),

-popaaae o,

-eop GETLNADR acpaaec o KEYINLOC (occaaaec o c eeo cpoca, opopaa SETIO).

peae. B eax KSWL,KSWH ocoo axoc apec KEYIN.

8.1.7. Bpcce epec.

epec opopa pa coacoa c epeco HTEPKOMa pao. opopa COPY C opaa apec peaa eax ADR4, o eca oo a HTEPKOM, .. e eec coepoe ee ADR1-ADR3, a paa, .. opaae apec ae ceo ec apec peaa.

Haoee aco coee opopa ece oo eco (a COMMON), e o oc cooa.

Ta a oe ae p pa opopa pacooe pax aax a, ec opopa (JUMPS), oope epea a a, a o o o epea a aa.

8.2. o cacecoo aaa.

8.2.1. Cppa oa.

o cacecoo aaa coco :

-a cacecoo oca (TCO);
-a ex co (TKC);
-CKAHEPa;
-cacecoo aaaopa (CHTAHa);
-ceaecx opopa (CEMo).

Ta opee cacc aoo peaeoo a. Ka PAP, a POKa cece o ep TCO TKC.

He paccapac cppa aaee aoo oa.

8.2.2. CKAHEP.

CKAHEP c ececoo aaa e ececx oo. O aec p aae:

-eocpeceo eeo cpo;
-pacpeo p xoe  Peaopa poep;
-poep, oo pecae BBO  ;
-oca o o peca BK MO (BK COHTE  POKe);
-ece, ox pecae BBO AHHX.

Aa aaec c oo eca, a acpoe aae CURCHR, .e. ae ceo oa, e o aoe p pee oe CKAHEPa. e aee aae, oo acpo caep a aa c pooo eca a.

CKAHEP oe paoa x peax, opeeex ao DEFINITN:

-cpo oca c aap (DEFINITN=0); o pee oo p CKAHEP ec o cpo, acpo epe eo oo CURCHR a co epeoa cpo (RETURN);

-cpo, paeee coa epeoa cpo (RETURN) xpac \epe peaopa\ (DEFINITN=FE FF). p pac poep, e xoe coca o coe, CKAHEP eeppe ae \a cee\ (a pa p oape coa epeoa cpo o e ee aee aae ee oa NTK). a aa coec aee opeee cooec e popa ceo P-a cpoa cxooo eca.

CKAHEP opaae opa o cee ecee, o ec:

- ece (TEL) (, eoe, pooe, ec, ec ce co, o ao). po coaee, o oopo ece - o co o ¤40 o ¤7F (o oaaec o caceco aaaop; cp. ae c opao TCO); e aec cco oox ae TEL:


KO EKCEMA       KO EKCEMA  KO EKCEMA

                   50  ::      60 <=>
 41            *51  +       61 ec
 42  ,            *52  -       62 ce.co (¤7F)
 43  eoe        *53  *       63 ?
 44  eeceoe *54  /       64 )
 45  !            *55  **      65 '
 46  CTO (p-D) *56  #
 47  <*           *57  ->
 48  ;             58  :       68 <¤
*49  //           *59  [       69 ¤>
*4A  >            *5A  ]
*4B  <            *5B  .
*4C  >=           *5C   
*4D  <=            5D  *>
*4E  =             5E  =>
*4F  /=            5F  (  

ec eoo oee o, oope CEMa peopac o oa P-a (e opea x capx o). Cee ae e , o o ece <=> => p opaoe poep aocc x peee pecaee coc popaa CALL RTS. p paope pae o ece (, [, <, <* <¤ c ce c e oece epooepeoe cee pae coax, oo x o e o coaa c oa apeecx oepa ( o, o - e x capx o).

-aae a aao oe ece (BEG END cooeceo); pec oooo epeoa ece o peee pecaee ea o;

- cae eca aec ae eo ooc (-a poa pex e eca oa e paa END-BEG).

CKAHEP oppe poe, epeo cpo oeap ( PAPE (REGIM=0) - coax (* *), POKE (REGIM=¤FF) - oce ";" o oa cpo).

8.2.3. Taa ex co (TKC).

B ae ex co axoc ce ee coa a. opa pecae:

-o a - a eoo coa;
-oceoaeoc ao a  - cao eoe coo.

B ae apeco ex co (TAKC) xpac cc a ca coa. oca co ocaoo a eo oep ae, oo ccee eoe coo pecaec co oepo (a pao, c caoe cap o; c. opa TCO). He poc aa ex co PAP:


KO COBO     KO COBO   KO COBO
   
              *98 BBO   *B0 MEH
*81 BBO       99 B        B1 AOB
 82 MEHA      9A HA      *B2 AHHX
 83 PE        9B A     B3 EC
*84                      B4 O
*85         9D BCE      B5 ACT
*86 HE         9E OKA     B6 AT
*87           9F OBTOP  *B7 OTAK
*88 BA      *A0 CK     B8 PA
 89 PO      *A1 A      B9 PAA
 8A KH       *A2 BXO    BA OTKPT
 8B HK      *A3 BK      BB AEPET
 8C        *A4 BK     BC O
 8D AA     *A5 CTO     BD AKPT
 8E KAK       *A6 KOHTPO BE CTEPET
*8F CTPOK     *A7 KATAO *BF MEH
 90 TEKCT      A8       C0 OCTHO
*91 JNO        A9 TO
 92 C        AA HAE    C2 CK
*93 POTOKO  *AB MA   C3 H
 94 MO     AC OT
 95 OTEPET   AD BOP    C5 BP
*96 CE      *AE KPAH    C6 M
*97 POKPTK *AF BCEX
                           C8 POK
                           C9 PAPA

Taa ex co POKa:


KO COBO      KO COBO      KO COBO

                98 OK       *B2 AHHX
 81 BBO        99 AMT     *C8 POK
 82 HAEHE    9A C          *C9 PAPA
 83 COHTE 9B MEHEM     *B7 PCBOT
 84 BHTPEHHE  9C BBAT
 85 MEHA       9D POEP
 86 AKOHT   9E KABATP 
 87            9F HK
 88 OCAHE   *A0 CK
 89 AOMHT   A1 COOEHE
 8A BEPHT    *A2 BXO
 8B HK    *A3 BK
 8C POEP  *A4 BK
 8D BPAEH  *A5 CTO
 8E EC        A6 BBO
 8F TO         *A7 KATAO
 90 HAE
 91 OKA        A9 C
 92 OBTOPT   AA HA
 93 OBTOPT  *AB MA
 94 PA         AC E
 95 PAA
 96 B          *AE KPAH
*97 OMECTT

ec eoo oee ee coa, o oopx oce ocee x capx o epeoc CEMa o ac oa P-a. Cee, poe oo, e :

-o co "PO" "HK" coc poep CEMa oe ea peeo pecae poep ;

-popaa ea o coe coaee oa coa "PE" c oepo aaa KOHE HK;

- TAKC POKa ecooae ee coa (o ¤FF, .e. o 127 ex co) aoe . B o CEM p oca coee apeca ex co coee.

8.2.4. Taa cacecoo oca.

B TCO aopoa cacc peaeoo a (POKA PAP).

TCO coco \aae\, a oopx cooece eoopo o o apaax ( pep, aa BPAEHE, POEPH OK). Aa poepoa aa c e c paoa c eec epe \a aae\ TA, oopo xpac x apeca. peoaaec, o ep aa - o ocae aoeoo peca. Ka aa coco \cpo\, a aa cpoa - o eepa ao:

-ep a - o oo o, aaaeo oe:

-Cap caoe - ocae ce aa oep eoo coa TKC ( pep, peca KATAO oce coa "BCEX" peec coo "MEH");

-a capx a pa "01" - ocae ec aa oep ece, aaeo CKAHEPOM ( pep, aooe a -OT oce aa peec ecea "::");

-a capx a pa "00" - ocae ec aa oep aaa, oop oe co o o ( pep, oce coa "KOHTPO" peec aa COBE).

-Bopo a - o ao ea, ec ao o eceo co o, o peec:

-"A" (¤80) - ao paop oo aaa, ep oe "a, aeo o, o oaoc";

-"HET" (¤81) - ao paop aaa, a oe "He, o e o";

-Cap caoe - a o; ocae opee ee o; a opao, ec oooc aa po aop cooe o oax;

-a capx a pa "00" - cecc o aa a N cpo; apaee ca aaec pe o (0 - epe, 1 - aa), a ceee N - oca .

-Tpe a - o ao ea p ecexe cpae. Aaoe opo a.

-eep a - oep \ceaeco opopa\, oop ao a cae cexa ( 0, ec opopaa occe). Ec a opopaa oa oo aca oo oa cpoa a, o eco oepa opopa oo oca oo o a c caoe cap o (epe ac oo o cpacaec).

Ka eo e, aa pepca (o a pe, a ocee cc aaa a eo e) paccaa a cxo paop e opao. Cppa a eo ocaa [9].

p ope eoa cacecoo paopa cpp a aaoc, o ocaoo xopoo aac a cxe paopa, o oee coc, o eoope oe a PAPA pe ooex c p peaa:

-B ocpx a

  EC < 1 , 2 >= A TO ...
               --

apaa coa opea a paeca ooa caepo a oa ecea "oe pao". oecee paoo paopa CHTAH caea ceaa poepa: ec o ae peec "oe", a CKAHEP ae "oe pao", o CHTAH paae ece "oe pao" a e. Bcece oo TCO poepa a "oe pao" cea oa peecoa poepe a "oe".

-Occe opao p cxoe aae ape paop co a

  EC (A+B)>C TO ...
  EC (A+B>C) TO ...

.. a opae coe "(" eeco, o oo coax - coe paee, a o ceae PAP o paac. oo eco ooo aaa, oop aa "A" cae cexa, "HET" poo cae, ee aa BPAEHE COBE, oop opaae "A" cae co "HET" cae pae.

-B peca OTKPT cax

  OTKPT A;
  OTKPT A+B KAK C;

eeco, o e oce coa OTKPT - paee, aaeec c e; ec peec ceaa opaa paopa opaop pae cae eoxooc.

-Aaoo, oaoo aac peca pcaa oa pep, oo ec oe pec ceae poep:

  A(1,2);
  A(1,2)->B;
  <A,B,C>->A;
  <A,B,C>[I]();
  (I+J)[K]()->L;
  (I+J)[K]();

-Ta a ee coa e ec e peeppc, coe pecae epe BCE, HAE, KH oap e a eo: ec oce o c ao poep oo, e a e peca, CHTAH pe, o ec, oo aaec c e BCE, HAE KH cooeceo, ac o pae. oce aoo peca p cocaoo peca peec poepa a apa co oepaopa. Ta opao, ooe oecoe pacooa ex co e oeceaec.

-p caceco oe eooo opeeec eooea CHTAH ecea, o ca xapaep o opee pee. Ta, p oe pae, coe a ocee ece peca, ec e paopaa ac ec cacec pa paee, peao po ope c p o:

  #BBO: A + B \ C; (* HE "/", A "\" *)
  BBO: A + B \\\ C; (* HE "/", A "\" *)
  TPEETC ";"
  #

8.2.5. Cacec aaaop.

Cacec aaaop peaae paopa eca popa o ae cacecoo oca oa CEMo eepa poeooo oa. B CHTAHE coec cxo epeop e opao, aop oopoo oca [7].

opaa pepc coec a ce; opo ce coec CEMa paopa pae xpae po opa.

p aca CHTAHa aoe poc ao opeeee, oa ao apaa CKAHEPa oepe ece, a oa e. To pep a: CKAHEP oe cac a o ece p oe oea "A" a eco oe, oao e a ocee opaee epxe aae ( ao cae - oa c ao 1 aae). epcaoc CHTAH a xo oaec cea opa:

-NA - oep aaa, c oopoo aa paop,
-NPA, PL - cpe ece PL  aae NPA e ao ca CKAHEP.
Oo NA=NPA=1, PL=";".

8.2.6. Ceaece opopa.

Bceo ccee acaec ooo 100 ceaecx opopa, oope coo oo accpoa o x aae:

-CEM epeoa popa o P-a;

-CEM opo oo (apep, CEM, poep occe oopxc e oca ac);

-poepe CEM. CEM cae eoxooc apa ec poep c ca, a Peaop o epe pac poep opp \oe a\ - poep . poepe CEM oa paee 3-x cax:

%LISTD

-B aece aaa peca CHTAH o c aap coo PO HK. oce oe e pep CEM ae Peaop oceeo aaa acpaae CURCHR a caoe aao epa Peapa. o paop oe o pao ( pep, Peaope ooae cep aooo poep apa pecae "H__JNO"->A;), aao epa ec ce. co (o ¤7F), oop oeceae paoc opa aaa ae cae oape caceco o, oopoo oa Peaopa MOHTOPo oa CHTAHa c caoo aaa. B oe eca ocac 2 ce. coa: o - a pa oa aa, po - o CKAHEP oo o a- cc oce axoe epoo (PL o-pee caoea a o c ao).

-e pac aa, eeoo c ca o peca BBO .

-e pac oca coe o.

8.2.7. Cooece e peca PAP oaa P-a.


PECAHE          BHTPEHH KO

(A+B*C/D)**E->L;     A,B,C,*,D,/,+,E,**,L,->
F(T[3:5])->U[I+J];   F,T,3,5,[:,BHK 1,U,I,J,+,[,->
F1();                F1,BPO 0
<A,B,C>[I]()[J]();   A,B,C,< 3,I,[,BHK 0,J,[,BPO 0
-#T->M'B.L;          T,#,H-,'M B,. L,->
BK MO M;        BKM BKM2 M
BK MO M;       BKM1 BKM2 M
KOHTPO A>0  C<3;  A,0,>,C,3,<,,KOHTPO
KOHTPO B  E+P;   B,E,P,+,,KOHTPO
KOHTPO C BA O;   C,O,BA,KOHTPO
<¤A:3.0,B:"M"¤>->R;  3.0,"M",<¤ 2 A B,R,->
CTO;                CTO
CK;                CK
A;                 A
BXO;               BXO
OTEPET "H";        "H",ATA 0
AEPET X;          X,ATA 80
OTKPT A;           A,OTKPT 0
OTKPT A KAK B;     A,B,OTKPT XX  (XX/=0)
AKPT T;           T,AKPT
O T=777;       T,777,O
CTEPET C;           C,CTEPET
AKPT;             AKPBCE
BK CE CTPOK;      BK "CTPOK"
BK BBO HA MA; BK "BBO" "MA"
BK BBO  ;     BK "BBO" ¤EE 
BK AT:O,,E;    BK "AT" 3 O  E
BK POKPTK;      BK "POKPTK"
POK;               BK 0
PAPA;              BK 0
KATAO MEH;        KATAO 0 "MEH" 0
...PE:T//O KH;     ...T,O,//,BOBPAT
...0->A; KH;        ...0,A,->,BOBPAT
?I,J:K,L:M:N;        I,BBO,J,K,BBO1,L,M,N,BBO2,C
BBO B :A,();     A,EPEK ¤EE ,BBO,EPEK 0,,
                     BHK 0,EPEK ¤EE ,C,EPEK 0
BBO C:A;         A,BBO
BBO AHHX:C,;     C,BBO "AHHX"+¤80 0,,BBO "AHHX" 0
BBO:T,P;            T,BBO ¤80 0,P,BBO ¤80 0
...;BXO;...KH;    ...PBXO...BBPAT
BBO  :;        

EC A/=0 TO         A,0,/=, M,
  1->                 1,,->
BCE...               M:...

EC A* BA  TO   A,,*,,BA, M1,
  P->T;                P,T,->,
HAE                 M2,
  T->P;                M1:T,P,->,
BCE;...              M2:..

BOP T            T,HAB,
1,2:                 1,/=, M1,,2,=, M2
    ?"OXO"           M1:"OXO",BBO,C,
   !                    M4,
  3:                 M2:,3,=, M3,
    ?""              "",BBO,C
HAE                   M4
    ?"XOPOO"        M3:"XOPOO",BBO,C,
BCE;                 M4:CHT

BOP 
A<0:-1->!           A,0,<, M1,1,H-,,->, M3,
A=0:0->!            M1:A,0,=, M2,0,,->, M3,
A>0:1->             M2:A,0,>, M3,1,,->,
BCE...               M3:...

OKA T[I]<0::        M1:T,I,[,0,<, M2,
  I+1->I;              I,1,+,I,->,
BCE;...               M1,M2:...

OBTOP A::           A,HAB,M1:OBTOP M2,
  A+A->A               A,A,+,A,->,
BCE;...               M1,M2:...

  OT A O       A,,
      A ::        ,OMEH,OT1 ,M1:OT2 M2,
  ->[];             ,,,[,->,
BCE;...              OT3 M1,M2:...

 A  B::         B,1 A,M1:2 M2,
  A+->;              A,,+,,->,
BCE;                  M1,M2:...

8.3. o eppea.

8.3.1. Cppa oa.

o eppea oa pao P-a ocece coee ceeppoaoo oa.

B eo xo:

-o-pacpeee oa (HTEPKOM).

-eppepe opopa (pa). Kaa paa peae o oa peeo a. coo pa oo oe cee oae o:

-o pae eppeae (STEKS, CYCLES, ON, COMPCOM),

-apea (INTARIT, RELARIT)

-poep o (CALL, RTS, DIRS, LOAD),

-opaoa cpp (STR),

-pea, paeoae pcaae (CLIP),

-o-o (INPUT, OUTPUT, CAT),

-caape (STFUN),

-paa (GRAFICS),

-aoa occea (FILER).

He oca ecaape o peaa o pecae caocoe epec o.

8.3.2. Pacpeee oa HTEPKOM.

HTEPKOM ec ao popao oa eppea. O oeceae o cex ocax opopa.

HTEPKOM aec MOHTOPA oce ooa cacecoo paopa eepa epa poeooo oa (ooa oa). o ep epeaec e aece xox ax. B xoe pao HTEPKOM oe peeo epeac a eppea px epo (p oe poep).

Paoa HTEPKOMa aaec c acpo eopa pea a o a opopa opao o epoa coe. aee HTEPKOM acpaaec a aao ooa oa aae opao oa:

-\oooe a:\

-caoa opaoe cocoe ocox pao epoa eppea:

   WHATSTEK - a ee  aoo cea,
   REGOUT - a caap pe oa

oee x caoo a pa e op oa ocooae pa o ooeo pao;

-p coe poep pee paccpo cpo (TRACELN STEPREG) opopec epexo oo cpoe: ec e oep cpo e coaae c ce epe oee pee oa, o o aec oao oo;

-poepec, a aaa aa ocaoa; ec a, oec paa CTO;

-\eee oepeo oa ooa oa.\

HTEPKOM eae oo 1 a oa oa; ocee a, ec o pecope opao oa, o eac ooa eocpeceo pao. Ec o o oa ap opoo oca (cap =1), o cooeca ocaa e apaec ce, opao oa aaec c aaa.

-\Opeeee paop apaepo.\

-o oep oa opeeec pae ee oca ae pa (TA). Pae coco 4-aox oe cee cpp:

-0 a:

7 - pa: oceee oe paee (1) e (0);

6,5 - oeco apaepo (o 0 o 3);

4 - pa ococ peopaoa ex apaepo poe;

3..0 - 1 apaepa (e);

-1 a:

7..4 - 2 apaepa (e),

3..0 - 3 apaepa (e);

-2,3 a - apec pa, oe pecopee oao ec a apaepa aax o.

Ec oc apaep oo a, eco ea aaec 0.

-o ae opeeec oeco apaepo oa; cooecee co eeo caec co cea paeec. Ta opao, HTEPKOM oae \apeca oeo\, oope acac ADR1, ADR2 ADR3, e, c oop o axoc cee (TGS1, TGS2, TGS3). pa, peae oa c epee co apaepo c x ecaapo opaoo, ca x cea caocoeo.

-\poepa ococ oe oa c a a apaepo\.

oc o TA, oopo cooec cx co cea apaepo. p o, ec oaa ocae, ooo peopaoae ex poe (oce peopaoa ce apaep po!). Ec oxoeo o e, a aa oaa oeo aoo a e opeeea, aec ca o oe.

-\Bo pa.\

paee epeaec pae, apec oopo aca aeo oe TA. Oa oa:

-coxpa ex e eax apeca TC apaepo, apec pea a o;

-caocoeo oea a ce co pea (ec o ec), co opopa RESULT;

-oca a ce pao coco (oo pao oopee ee);

-caocoeo poa eopaaaee p cceo pea ocec oo.

Coee x co oeceae paoc eppea pae opa pao HTEPKOMa.

-\oee apaepo\.

oce coe pa HTEPKOM oae apaep - peee ae (ec paa e ea pa LIBARG, opee eoxooc oe). Heoope pa co oooc oe cox poeox peao: aca x apeca ADR1-3, e peeoo ae TGS1-3 caaa LIBARG.

8.3.3. poep o.

poep o coco popa oa poep (CALL), opaa ee (RTS) ecox opopa, peax pe (STOP, START, EXIT, STEP, EXITSTMT).

poep o peae oa BPO, BHK, CK, A, BXO, CTO, PBXO pao P-a:

-popaa CALL oe oa BPO BHK.

-aoaec e oea, oop ao a (9 ¤B). o eceoe oe e oa poep .

- oca poepo ae apaep epecac aoo cea o cooae. p o x opo eec: ep apaep axoc a epxe cea, o oeae o oaoo opa. apaep e paec, .. o o xo opa. Ec opac oo epec, o oce oa

A(B[1],B[2]);

a e B ocaec acoa aa, .. p epec ec opo peo. oo p epec cae oopaoo xoe e (peo ooo e) cco apaepo pocxo oe a epoo oceeo x xoe.

-Caec cec poepoe aee.

-poepec coaee ea oeoo oea aoeo e, cae ecoae cpec oa.

-caaaec pa e co opoo cea (WHATSTEK); aee, ec poepa caapa, o paee epeaec o oa caapx CALLSTFUN.

-pooc 2 a paopa apaepo:

\ep :\ apaep coa cac cea, a o pa opoo:

-ae xox apaepo paec aoac cooa o opo e.

-ee, cooece xo opa apaepa (ea pe), c a ce;

- xox apaepo pooc o, poe.

\Bopo :\ apeca ae opax apaepo a opo c ce, a ca pcaac oee epo e ae. ec e oc oaoa opa.

a a o apaepa eooo oe o, .. oe

   A(,)

e ocae poep A aaec

   PO A(,H);...

opa apaep H oe o aee oaoo e , a e aee oaoo e , oopoe oo o o pcoeo e .

-pooc o oa ea: apeca x ae a opo c ce oce oo oc.

-aae a, opeee e paoa poep, acac ce oa oe ae.

-B ce ec TC=6; ac aa coppoaa.

p oe o pe oa poep epe xoo a caap opopa opao o oac copoae oe, co opoo cea cac ee e paopae apaep.

-popaa RTS peae oa BOBPAT. Ee ec o oo opa ec popa CALL:

- cea cac ae ocox ee aaee.

- cea cac apeca ae a opo oax e; x ee ae oac.

- cea cac apeca ae a opo opax apaepo; ee ae xox aaepo oac, a xox opax aoac.

-o ooa ca ae pcaac aec xo opa apaepa.

-opopaa EXITSTMT peae oa PBXO, .e cae co cea ce ee o o ac aa ocece epexo a oa BOBPAT ( - a aao ce pae-peaa).

-opopa STOP, STEP, START, EXIT pea oa CTO, A, CK, BXO, cooeceo. x paoa coc opaoe ace ocaoa pocaoa.

B poepo oe ee poepec pe paccpo: ec o e, oc eoxoa oaoa opa.

8.3.4. o CLIP.

8.3.4.1. opopaa TAKEADR.

opopaa TAKEADR opaae apec xpaeoc a epxe cea eea. Baaea opa:

    !             ! cca a oe ! pea/opa
----------------------------------------------------------------
 A  ! TC e (2)  ! TC (3  4)    ! TC (3  4)
 X  ! N e        !       ---        ! N e, ec  e
ADR4! apec ae ! apec ae   ! apec ae

B cae pe ae e opee pocxo paeoae opoae eeo pe, a ec ecoo epecac, .e. oeceaec cca a pea oe a.

8.3.4.2. Bopa, pea oc.

pa CLIP1 CLIP2 opp cee ee "pea" o eca, aa oepa (1 2, cooeceo). ec epeac HTEPKOMo apaepa.

peeoo ae pea eaec cpa (.. pcaae eooo, ocpoa e a). p o opee epecaec cco apeco, a e ca ee, o ooe ea eo opoa. He ace pee ee ocoo cpp oac.

paa AVAIL oppe cee ee "pea", opee apec o ac.

HTEPKOMo epeaec 1 apaep - ac. Hoep e oca caec ooa.

opopaa e cce oe ac aa oep e, o e opeee apec o e ce op ( peeoo ae opa pocxo eeeo).

8.3.4.3. pcaae.

B cee axoc:

-e pco (epx ee cea),

-o pco (e).

paa ASSIGN cae oa oea caocoeo, .. axoc cepx ee paeoa e.

p pcaa e ope opea x capoe aee oaec, a ooe cae eoxooc opec.

p pcaa pee caaa poepec coaee aaoo ( pe).

-pcaae oec: co poco epecac ooo eca poe, ae cae eoxooc pcaae oe oaec.

-pcaae oope:

-ec o, o pcaaec - ac ae e, o copoa, o aec cooece ee (a op),

-ec o ac peeoo ae, o coec o e pe ce eeo cpp, o p oppoa pe (aee o x opoa).

8.3.5. Peaa o (o CYCLES).

8.3.5.1. OBTOP.

epe oee a pocxo paeoae apaepa: ce oeaec peeoe aee, opeeee co poxoo a.

paa REPLOOP a ao poxoe a oae o ee aece apaepa, eae co a 1, a ae occaaae cee ppaee aae cea (o pe coec px paax peaa o). Ec oce ee co oaaoc opae, aaaec.

aoap o, o ae eec "p", oaaec e o pee: o eo poxo p co ee c 0.9 ce.

8.3.5.2. OKA.

OKA opaec c oo oa cooo ecooo epexoa o cocoo.

8.3.5.3. -OT-O-A.

p oca coc cee ooae: H - aaoe aee, K - oeoe aee, - a a, - epeea a.

paa FORINIT (oaa OT1) ape .

apaep: 1 - K, 2 - , 3 - H.

B ooe axoc .

Paoa:

-Paeoae   K.
-H -> .
-ac  apaep  ce  cee ope: K, , .

pa FORCONTI/R (oaa OT2) poep coe aepe a eoo pooo K).

apaep: 1 - K, 2 - , 3 - .

B ooe axoc apec epexoa o aepe a.

Paoa:

-Ec K-   ooo aa,  pooaec:

-occaaac ceee aae cea K, , ;
- oae cce a.

ae  aepaec:

-occaaaec aa , e pcaaec coe aee;
-ocecec epexo o apec ooe.

pa FORENDI/R (oaa OT3) ocec ppaee epeeo a eoo pooo .

apaep: 1 - , 2 - .

B ooe apec oa OT2.

Bcec oepeoe aee = + . Ha pe pcaa acoa aa caec. ae cpaaae eco epexo oae OT2.

Ocae pa ae TAKOM ocpoeo a, o e a opo poxoe a ce ace cpae coe ca e o e ac peopaoa. o oae eoc a: o eo poxo p co ee c ac 6 ce.

B peaa coeo ec oa ecoo ca 3 eeo cea e pecope oe a p oopao xoe e. oo p coe o

     OT \A\ O K A \A\ :: ...
     OT \A\ O \A\ :: ...

oaec cceo aeo.

8.3.5.5. -.

paa FORCLIP1 (oaa 1) ape .

Bxo:  cee - cppa, o oopo pooc ;
       ooe ce a -  epeeo a;
      apaepo e;

Paoa:

-aoaec o aae aoo cea, oopoo ee e caa cppa. a o ocoo occaaaec, aoap e cppa axoc cee o aepe a.

- cea eaec cppa; ec ee a = 0, o e oec pa; opaec xo a:

-a cex aa ooe pocac ( oaa 2);

-caaaec pa (LIBARG), o oopo cppa cae eoxooc e oea HTEPKOMo;

-paee epeaec o apec, aao aee ooe (apec aepe a oa 2).

-Ec cppa - pea, a ee caaaec aa (e e o pe pao a). aa cac a epeeo a.

-Bo opo ce ec a cpp, ae ocaa ppae: eca - 0000, px oeo - 0001.

-B a ce c 2 eea:opa i-o eea cpp (p aa i=0!) - epeea a. B ao oceoaeoc o peca coo xoe ae popa pcaa.

paa FORCLIP2 (oaa 2) ocece epexo cee ee cpp, poepe coe ooa. Oa oeae a oepae ceo o e cao e p pooe a a ce co ceo paoe opa p eo aepe.

apaepo e. Paoa opa - pea 1.

Paoa:

-a cpp o opo cee eaec a 1 (oee, a co o opo cee + 1). Ec oa oe 0, pooaec:

-Bopa, coppoaa ao cee, pcaaec epeeo a.

-aae aoo cea epeeaec a, o cae p pcaa pea o oaac cee.

Ec a ee 0, aepaec:

-Boccaaaec opo ce: caec paoa opa;

-C aoo cea cac pea .

-epeeo a pcaaec coe aee; capoe aee oaec (oee, HTEPKOMo).

-To e cpp, axoec cee.

-paee epeaec o aao ooe apec.

p>8.4. o aa MOHTOP.

O pa oe oa cce popaaae .. \o aa\ (INITMEM). O eae ceee:

-caaae popae ce c  acae o opo ce  CEMa eo a.
-Paeae   a cooo a: o o paepo 32K.
-pe a e (caaa c)  acae  ee caape .
-Bee o  ceeo caoo ca  e  eo 2 aa - RNDL, RNDH.
-ape occe oa-oa; acpaae oo.
-caaae pae e  aae.

Oee paee paoo P-eppeaopa ocece MOHTOP, opa oa, aaa coe peca.

oa paopa peca aec CHTAH (8.2.5). O opaae paee MOHTOP p oape o oce aepe paopa oepeoo peca. B cae o MOHTOP pe a pae cpo c oo ae popa a aoc (8.5.2), a ae aoo aae .

Ec pac poa ceo, aec eppeaop oa HTEPKOM coe ceeppoaoo oa eeoo peca. HTEPKOM opaae paee MOHTOP o oae OCTAHOB cae o, o ee peape opao. ae aaec c aaa.

8.5. o paopa ea o.

8.5.1. Opaoa oo ccee.

e xapaep cce pee pao opao cex oox oox ca occaoee paoococooc cce oce o.

popaa, oopo oa oa, ee e oooc:

-Bep pa o ae ee popae; oo a oca opopa eo po ( pep, C).

-epea paee popae opao o. Oo paee oae oa x opopa: popaa opao caceco o MOHTOPe popaa opao o pee coe HTEPKOMe, o oe o pa popaa (co pea a o caaae, pep, LOAD).

aece coe pea a o peec:

-aec apec opopa opao o e ERRBRAN.

-aec (p eoxooc) oep aa , coepaeo popa opao, e ERRAREA.

Koa opeoc ecaapo opao o cee, cee occao pea, oopa a o oo.

a caa o oe ee oep o aec e ERROR epea paee a eop ERREACT.

popaa opao caceco o MOHTOPa eae ceee:

-Boccaaae aae ceo a aoee paee o.

-Ec oa a p oca poep, o ae Peaop c caoe ao o pcopo a ece oape o.

-Ec oa a ac peca pea aoa - ac eea cpoa c eeo ooo eceo cooee o oe.

popaa opao o pee coe eae ceee:

-Boccaaae opo ce o aoeo paee o.

-Papae ocooae, ec ao, ee aoo cea o aaa cea o ac aa.

-B pee coe poep - oppe o opo cee ac ocaoa o oe.

-B pee coe poep - ce oep cpo, oopo pooa oa ae oopa o.

-Bae cooee o oe.

-Bopaae paee MOHTOP.

8.5.2. popaa PRINTERR.

a popaa ae aoc o oe. o a o oep o, oa ae ee ec, ca eo opee ae epeex oe. Oa ae eae ce ao o oac ERRCOUNT. Tec cooe o oax xpac ae oo, pecae coo oceoaeoc cooe. Oe c oepo N cooece cooee c oepo N. N opeeec a ce a oepa o; cap opeee ppo o: 1, ec oa aa CHTAHo.

Kaoe cooee ee :

0 a: ec c.=1 - epe cooee a "TPEETC "; ocae 7 o aa cooe aax, 0 a e aec;

aee cee cao cooee. Ka a oaae:

-0..¤3F - eoe coo c oepo;

-¤40..¤7F - ecea; a opeee ceee eca ece ooceo aaa a ece CKAHEPa;

-¤80..¤9F - oo aco cpeaxc co (CKOM, MHOO, HEBEPH, HEOCTM, M, , A).

-"\" (ee cc oo cacecx oax) - eoe coo, oopoe o apae oe co ao o. B oo apao a o ¤BB coec ae coaee oepa aaa oca oa oepa eoo coa "PE";

-"?" - co; a aee aeo oaa;

-" " - ; a epeaoe o ;

-"^" - a "COHTE" "MO", acoc o a;

-"&" (ee cc oo oax pee eppea) - a aae oepa caapo ;

-¤A0..¤FF - a co c cooec oo.

oce ex co ece aec aa "", acoc o oo, coo ao cee aee.

Taa cooe o oax:


¤01  EPECTABEH CK
¤02  OKA OMEHA C 
¤03  CK AKPT HA AC
¤04  TPEETC PA OCE TOK
¤05  TPEETC OKAATE CTEEH
¤06  "_" B KOHE MEH
¤07  HE AKPT TEKCT
¤08  HEOHTH CMBO
¤09  "__" B MEH
¤0A  TPEETC "*)"
¤0B  CKOM HHA HHA EKCEMA
¤0C  EPEOHEHE CTEKA
¤0D  CTEK CT
¤0E  CEPAHA AMT
¤0F  HEBEPHE OEPAH &
¤10  HEBEPHOE HAEHE ? APAMETPA &
¤11  &: BXO A PAH KPAHA
¤12  HEBEPHOE POHOE
¤13  CKOM OOE EOE
¤14  0 ** 0
¤15  X / 0
¤16  HEBEPHA HA BPEK
¤17  BPEKA HEBOMOHA
¤18  HEBEPHE HEKC
¤19  &: TEKCT - HE TEPA
¤1A  CKOM MHOO MEH
¤1B  B AC HET O  
¤1C  TAKOE M E O
¤1D  BBAETC HE HK
¤1E  BBAETC HE POEPA
¤1F  HEBEPHOE CO APAMETPOB
¤20  B HE B PEME POCTAHOBA
¤21  CKOM HH CCOK
¤22  BXO HE  PO/HK
¤23  CPAOTA KOHTPO
¤24  OKA BBOA
¤25  OKA: OBTOPTE BBO
¤26  CKOM COHA CTPKTPA
¤27  CKOM MHOO KO
¤28  A HE HAEH
¤29  HET MECTA B 
¤2A  A   AKPT HA AC
¤2B  KOHE AHHX B  
¤2C  A HE OTKPT
¤2D  HEBEPHA O KAATE  
¤2E  A OTKPT
¤2F  HEBEPH T AA
¤30  CKOM MHOO OTKPTX AOB
¤31  M AA - HE TEKCT
¤32  EPEOHEH OTOK BBOA
¤33  HEBEPH T EPEA APAMETPA
¤34    CCT. AEHO
¤35  PCBABAHE   APEEHO
¤36  M AEHO
¤B7  TPEETC "]"  ","
¤B8  TPEETC ";"
¤B9  TPEETC M
¤BA  HEBEPH AOOBOK KA
¤BB  TPEETC \
¤BC  TPEETC ":"
¤BD  TPEETC PO. OK
¤BE  TPEETC BPAEHE
¤BF  TPEETC "::"
¤C0  TPEETC BPAEHE  ""
¤C1  TPEETC COBE
¤C2  TPEETC OEPAH
¤C3  TPEETC CTPOCTBO
¤C4  TPEETC ">"  ","
¤C5  TPEETC "*>"  ","
¤C6  TPEETC M AA
¤C7  TPEETC "MA"  "KPAH"
¤C8  TPEETC "¤>"  ","
¤C9  TPEETC HAK OEPA  "->"
¤CA  TPEETC "="
¤CB  TPEETC ")"  ","
¤CC  TPEETC ")"
¤CD  HEBEPH PEM
¤CE  TPEETC ":"  ","
¤4F  A AEPT
¤50  CKOM OO A
¤51  CKOM MHOO ^E
¤52  ^ E BKEH
¤53  TAKOO ^ HET
¤54  ^ B PAOTE
¤55  TAKOO MEH HET B ^E
¤56  EPEOHEHA AMT ^
¤57  COBAAT HAAA PECAH
¤58  M HE OCAHO
¤D9  TPEETC "PCBOT"  "OMECTT"
¤DA  TPEETC "POEP"  "HK"
¤DB  TPEETC PECAHE
¤DC  TPEETC "PA"  "PAA"
¤DD  TPEETC CPABHEHE
¤DE  TPEETC ":"  ""
¤DF  TPEETC M COHTE
¤E0  TPEETC CO
¤E1  TPEETC ATA
¤62  B HAA "CPOC"
¤63  OKA B CHTAKCCE

8.6. coe o.

8.6.1. pecaee coee.

Mexa coee ec acpoo a peaae, oop oc aeo oe peaa cex ocax e oo.

He o coo "coe" opaeaec ae o (ec opaoe e aao o). Mo - o ac ca coe (aec, coe e opeee cacca).

eepa coe pooc o peca

   BK COHTE ;   ( Poe)
   BK MO ;        ( Pape)

o o peca a c ocae coe apaec ep Peaopa a e, a o eaec o peca BBO , aaec cacec paop oo oca.

coe pecaec cce oo e. Eo cppa aoa:


-0 a - ecpop: e=9, N-2 = 2 ;
-1 a - ae  oepo oax e;
-2 a - oeco oax e;
-3,4 a - apec aaa a TCO aoo coe (,  cae o, );
-5,6 a - apec aaa a TKC aoo coe (,  cae o, );
-7 a -  capoo poep coe ( 0);
-8 a -  o poep coe ( 0);
-9 a - oep aaa TCO aoo coe (0  o);
-10 a - oep aaa TKC aoo coe ( 0);
-11 a - ao  oepo ex co.

Ta a coe e ec oeo, o e oe c aee e. Ccea xpa opa o ex coex cex aax:

-TCLASSID - ea coee;

-TCLASSL, TCLASSH - cooeceo ae cape a apeco coee; eo cap a apeca oaae coooe oe;

-TCLCOUNT - oeco ax a oe poep aoo coe.

Paep x a opeee acaoe oeco oopeeo ex coee ( ao peaa x 16).

8.6.2. oae ea coee.

Bce oae ea coee pacoaac oceoaeo oe a e. eo oo peoa cee opaee ao peaa - eoooc e oao poep coe (ee oae ea e o oe cae axoc po c p oa ea coe, .. o e po coe, oae ea oopoo e a o oce e aoo coe). p e coe ae eo oax e oac, oao ca ea ocac, ae o e o cooa o epeoa cce. p oopo e coe eo oae ea oa e pe oepa.

2-o aa opo oaoo e coe ooaae, ec oo op a oc (0 - a, 1 - e).

p caceco oe oca coe ce, o o ceeppoao, oaec ( .. ocooac o e ax e).

Bo pe coe oca oao e coe pooc oc o ae e, .. oaa "'" ee apaepo eaop (e o pe pac poep, coepae oc oao e, coe oe ee e e oep e oe ee e ece).

8.6.3. Paoa c coe o pe coe.

C e acpo caoo aa pao poep, xoe coca coe, p oe ee coepoe aoee ax ee coxpaec. B cae ocaoa ooe o ee coe p ae eca o coec eo a aoea opa.

Aaoo, p xoe poep coe oaoe pa TRACE, TRACELN, MONITNAM STEPREG oc, a p xoe x aee occaaaec, o ooe e ocea pao poep coe.

p epeoe cce ce ee coe ac. B pee pocaoa coe epea cce eooo.

8.6.4. Ocae cacca coee.

peaa aec aaaeoo cacca coee aax POKA p cee pee:

-Aa PECAHE pa a a aaa - aa PECAHE aa PCBABAHE. o cao c e, o poep a pecae pcaa oo oo oce poep a peca coee (.. eoe coo aae peca pcaa oe occoa).

-B aae PECAHE ocaeo ¤40 coox ao (4 aa a cpo aoo 16 oox coee). B ao cpoe oe xpac cca a aa oca cacca coe.

-B ae TAKC oeeo eco 127 ex co.

TCO TKC coe pacoaac e. x paep - ac oa cpaa.

Bce ee coa, cpeee p oca cacca coe, aocc TKC a cooe o.

Kaoe pecae coe oopec a o poep.

B TCO coe co o cex CEMo:

-epoe eoe coo - ceeppoa oa ap ce e eppepe poep (eo oep xpac TKC coe \epe\ e coo).

-oe oe - e ce apaepo poep.

-Keoe coo (oceee peca) - eeppoa oa oa eppepe poep.

-Bpaee (oceee pae) - o 2) 3).

-Keoe coo (eceoe peca) - o 1) 3).

8.6.5. Ocoe e oa coee.

-CLASSL, CLASSH - CEMax - apec ocaeoo coe;

-NAME - CEMax - ocaeoo coe;

-ITABZ, ITAKS - cooeceo, apec TA TKC POKA;

FIRSTMOD - oep epoo e, e aoo ee oa ea coee;

LASTMOD - p oca coe - oep epoo coooo e;

-MODE - pe oca coe;

-CLASS - oep epoo ( cee) aoo coe;

-C.NTK, C.BEGIN, C.ISCALL, C.ISNAM, C.PROC, C.MONIT, C.TRACE, C.TRLIN, C.STEPREG - ae cooecx ee oe epoo oa poep coe;

 

9. PEAKTOP

9.1. Oe cee.

B ccee "KOHA" coc 2 epc Peaopa:

-Peaop cocae PAPA-eppeaopa.

-Aoo Peaop cocae Oaooo Koeca.

Pa e epc ecece e apaa opopa paoo peapoa. Caoe aoe oe coco oooc Aoooo Peaopa o c aap aee . Tae ecoo oaec aop pe, o opopa x opao a o oe. B aee ece e oopc poco o Peaope, e oa opeo epc.

Peaop eca aooe, e coo epa cce eo oo o ae p (ooo, paoa a px pax). Aaoo, Peaop oo eo epeea pao c po cceo.

He ocac oo cpp ax Peaopa, .. aop eo opoa c oeoc x ea.

9.2. Cppa eca a.



AREABEG                 BEGLINE ENDLINE   BEGTAIL
-------                 ------- -------   -------
%LEFT 3
!                       !       !         !
v                       v       v         v
-----------------------------------------------------------
!      ! !      ! !     !      ! !        !      ! !
!cpoa! !cpoa! !     ! e. ! !cooo! ce.! !ocao
!   1  ! !   2  ! ! ... !cpoa! !   ...  !cpoa! !eca
!      ! !      ! !     !      ! !        !      ! !
-----------------------------------------------------------
                     ^      ^
                     !      ! 
                  ___!___  _!_
                  BEGSCRN  POS

Pc. 9.1. pecaee peapeoo eca a.

Ka o pc. 9.1, peape ec pa a e ac. B oex acx ec xpac oceoaeo; aa cpoa aepaec coo epeoa cpo. oce ee cpo ocaeo coe eco, o p peapoa e ao o ca ec ocao aa. Ta a p peapoa ee ae ceo occ ecoo cox po cpo, aoe pecaee oeceae ae o p peapoa (, a cece oo, eca aoe pe oea).

K eocaa aoo pecae cee oec eoooc oaa o ecex ee eoxooc oe ec eoe eoe p xoe Peaopa.

9.3. Ta pea paoo peapoa.

Ta peaae caoe cooec e coep paa peape eco. Kao pao cpoe cooece oe ao ae, o e aoopo (a SCRNADRL/H, LINEL/H coepa SCRNSIZE+1 eeo).

Ta coepa:

-SCRNADRL/H - apeca aa pax cpoe p peapeoo eca
 (oee oop, apeca epoo coa, e paeaeo pee cpoe);
-LINEL/H - oep cpo, axoec  cooece pao cpoe;
-LINE -  7 = 1, ec oce cpoa cpo,
              =0  poo cae;
        6-0  - oep ocee ao o  cpoe.

Taa cppa a oeceae poco oopae eca a pa ae o paa.

9.4. Ocoe a.

-ERROR - o, ec o e;
       - e o, ec ooae ao coo o oe;
-OUTOFLN - pcop axoc e eca, .e. e a oce a o cpo (opaaec a pcope);
-ISINSERT - e pe ca;
-MUST.POS - ec p xoe  pe peapoa ao cpoe,
 o ce a Peaopa  ope  eoxoo poco occao
 coepoe paa. B poo cae eoxoo eppoa e
 cpo  aec opa  a;
-ISPOS - ao caoe o pe a a pa ee cpo;
-MAYBENUM - p ae a pa ao caoe, ec eeco,
 ao  aa oep cpo (.e. ec oa epa a pae);

9.5. aae e.

He ocaec aaee oca aaee (c. ae pc. 9.1):

%LISTM
-BEGAREA - aao paoeo epa Peaopa;
-BEGSCRN - apec aaa eeo a pa opa;
-BEGLINE - apec aaa ee cpo;
-POS - o aae  ee cpoe;
-ENDLINE - apec oa ee cpo;
-BEGTAIL - apec aaa opo ac eca;
-LENGTH - a eca  cpoax;
-LINENUM - oep ee cpo;

Hoepa cpo xpac x aax oo-eco e.

Peaop coe ae cee e a:

-CURFILE -  eeo aa (30 coo);
-CURDRIVE - oep cooa eeo aa;
-MYDRIVE - oep cooa, c oop paoae Peaop; Peaop oe eo xpa,
 .. p opae  ee a a ce  e DRIVE aocc coepoe CURDRIVE.;
-SPSAVE - o aapaoo cea eocpeceo oce xoa  Peaop;
-FTEXT - ec  oca peo "F3" - oceoaeoc coo,
 aepaac (e oee 32 coo).

 

10. ACHE OPOPAMM BBOA-BBOA.

10.1. Haaee.

ace opopa oa-oa (Input-Output SUBroutines), aee - IOSUB, oecea ae oooc opaa aoa ccee "oa" c cooae aap eeoopa - cpoc, xox a opa execx cpec BM "AAT". opopa oo o poe popapoa a acceepe, oea oee aco coex ec.

Ocoe , oee IOSUB, ao:

\Bo:\

-o oooo coa c aap;

-o cpo coo c aap c pacoaae peapx coo;

-e e op oa c cooae popa oa, aao ooaee, .. o c poo cpoca p coe pa pa;

-epeopoa coo a oe (ce oaox o aca pccx acx );

-oee oax coc coo a oe, .e. ceax ec cae oce oo oo coa.

\Bo:\

-o oooo coa a pa oo x ecox peo;

-o c cooae opopa oa coa, aao ooaee, .. o a poe cpoco;

-oee oax coc coo a oe; ca oocc:

-paee ea p oe,

-paee oe oa,

-paee coepaec a pae opae.

Moe oooc IOSUB ceao oope e opopa oca x cooa acceepo popae. He, p oee eao aoce c IOSUB peoaaec apaeoe aoco c x cxo eco, oeae oae po x pao.

10.2. Aapae popapee oooc ee aoa.

\Aapa o c aap\. Ocecec c oo 3 ceoee:

-KBD (¤C000) - p aa a ca oaae ee o (o eeoo coa) \c caoe cap o\. Ka o oca o 1 o 3 oo acoc o pecpoo a, c oopo oa aaa. Pecp PC LAT a ocaee aa o e .

-KBDSTRB (¤C010) - p opae o ee cap KBD cpacaec 0.

-KBDREG (¤C063) - cap =0, ec caoe pecp PC, pae 1, ec pecp LAT. Oa ae oooc \popao\ oaa peoee o o pecp p oe a.

poepa oa oa coa, a opao, pocee cae aoa:

      BIT KBDSTRB  ;cpoc  KBD
 READ LDA KBD
      BPL READ     ;ec c. cpoe - oa e o
      ...          ;oa caoc - co ee

Opoc, a aaa aa, oe e a:

      LDA KBD
      BPL HET
      BMI A

\Aapa o a pa\. paee oo a pa coc popao opaoe opaa paa a. o oac paepo 2 Kaa, coepoe oopo oe aapa cpeca oopaac a pa oo ecox peo (HC C). Bo coa paoce eo ac eoop e o oac.

ao apec (A) pao a oe pae ¤800. Ec o, poe oo, pae ¤1000, o pee HC opaac epe co a eo oe, ae - aoopo. Cpoa paa oopaaec 64 aa, oceoaeoc oopae cpo a cooece x op a pae.

B pee HC ao co cpo cooece o a a, e xpac eo o. Apec o X cpoe ( - cepx, oce X eec c 0) aaec opo:

A + 64 * + X .

B pee C ao co cooece 2 aa: 1- ae xpac eo o, a 2- opeee eoc coa:

    2-0   - e (8 eo),
    (5,3) = 00 - epc co,
                01 - a co,
                10,11 - opa co.

Apec o X cpoe (p ex e cox) opeeec o ope

      A + 64 *  + 2 * X  .

eoc xpac cee ae.

\Boooc oa c paa\. a a pao a, oo opee, ao co opae eoopo o paa, a ae eo eoc.

\Oo aoa\. IOSUB oca eee aoa e a ce oa paa, a opaeo pooo oac, aaeo \oo\. Oca ac paa p o o e apaa.

\Tea o\. opaa aoa eeo oe ee o oe. Bo pe oa oa aae, e e ee oepeo co, a o pe oa opeee o \pcopa\, oo ae oa eoopa aaec \oe pcopa\.

o pcopa eec p oe aoo coa a, o opaoa ececeoe aoee paa coa cea apao cepx ; p eoxooc pa "caec" epx, ocooa c cpo (ec "oae" epx). e pe epeee pcopa peaoa a oaa apa a pae co p x oe (apep, co "P-Z" ceae pcop a cpo ).

\ep oa cpo.\ 2- cpaa O coec IOSUB aoe cpo coo, oo opopao GETLN.

10.3. ocoe apaep aoa.

Cocoe aoa ooc opeeec eco apaepa, oope xpac cex eax eo cpa:

-ocoe apaep:

-TXPAGE (¤A6) - oep aao cpa pao a (cap a A);

-INVFLG (¤32) - cap - pe aoa: (0-C, 1-HC), ocae e cc oo pee C opee eoc coa (aec, coepoe INVFLG acaec o 2- a pecae coa a pae);

-WNDLFT (¤20) - e oc oa: paccoe e e pa oa paa \ aax\ ( HC - o co coo, C - ooe co);

-WNDWDTH (¤21) - pa oa \ aax\;

-WNDTOP (¤22) - epx paa oa (paccoe o 0 cpo paa);

-WNDBTM (¤23) - paa oa (paccoe o 0 cpo paa);

-CH (¤24) - o pcopa cpoe (o eoo pa \oa\);

-CV (¤25) - ea cpoa (epaa o pcopa), ca c 0 o epxe cpo \paa\.

-CSWL,CSWH (¤36-37) - apec ooaeco opopa oa coa; IOSUB oe COUT1;

-KSWL,KSWH (¤38-39) - apec ooaeco opobpa oa coa; IOSUB oe KEYIN.

******************************************
*           ^        ^         ^         *
*           !        !         !         *
*    WNDTOP !     CV !         ! WNDBTM  *
*           !        !         !         *
*           v        !         !         *
*         !----------!------!  !         *
*         ! OKHO     !      !  !         *
*         !          !      !  !         *
*         !          v      !  !         *
*         !<---CH--->       !  !         *
*  WNDLFT !                 !  !         *
*<------->!                 !  !         *
*         !<----WNDWDTH---->!  !         *
*         !_________________!  v         *
*                                        *
******************************************

Pc.10.1. aae oa o pcopa.

-cooaee apaep:

-BASL,BASH (¤28-29) - apec aaa ee cpo \oa\; cec a pa o p cee ae CV; coec oca ecoo oca o pcopa;

-RNDL,RNDH (¤4E-4F) - caoe co, eec KEYIN ee a oa oa a;

-PROMPT (¤33) - co-paee o o cpo (GETLN).

10.4. Ocae xox oe.

10.4.1. Beopa pepa.

Bxoe o IRQ, NMI, RESET peaae aa ooaecx opopa opao pepa c o cec oaa epexoa o opeo ooaee apec (X+1, X+2). O ece O oca opae.

epexaa IRQ-pepa eoxoo pecope ooe popa, oeo opaaa ocao o oae BRK. Ee apec oe axoc eax ¤FFFE-FFFF coeoo oa . p paoe o opoe AOK eoxooc e e, opao pox IRQ-pepa ocaoo opoa eop IRQ.

Cee e , o p eo a ac aec cce oop co coe cceo opao pepa. ca cee ca p popapoa, cae e eoxooc cooa cce opao pepa.

10.4.2. opopa oa.

-STROBE - o coa e pcopa.

poco opoc cpoa e o aa a. Bee co epeopec TRANSL a pae e oopaaec.

Bxo: A=co, c.=1,
       Y<¤0B,
       X e eec.

-KEYIN - caap o coa c ae pcopa.

Bxo: CURSOR (¤30) - co, aae  aece pcopa.

Bo pe oa oa eaec coepoe ee RNDL RNDH (caoe 16-papoe co), a pae opaec a pcop: epeoae coa ee o c coo ee CURSOR. Kpcop ee o e e, o co. Bee co epeopec TRANSL.

Bxo: A=co, c.=1.
       Y=CH,
       X e eec.

-RDKEY - o c (ooo) ecaapo popao.

Ocece epexo o apec, acao (KSWL, KSWH).

Bxo: a  o opopa (c. ae ocae KEYIN).

RDKEY1: peapeoe aecee "_" CURSOR.

RDKEY2: peapeoe aecee "^" CURSOR.

-RDCHAR - o coa c pacoaae peapx coo.

Opaec oa o aa oo coa, poe "cpeo" "PE". Bo x coo ee x eee o epe COUT (.e. epeeee pcopa). Haae "PE" ee pcop (o eec c oo RDKEY1 RDKEY2). o po co pepaae a pa e oc.

Bxo: a RDKEY.

10.4.3. opopa oa.

B ocaex e opopaax pecp X e coec.

-COUT1 - caap o coa a pa.

Bxo: A=co.

Ec co e pa, o poco acaec e o pao a, o ceaec. Ec co ee oa ap - ocecee ee ( ocoo, oa coca coa cooec ocae e opopa).

Bxo: ce pecp coxpac, P acpaac o A.

-COUT - o coa c (ooo) ecaapo opopao.

Ocece epexo o apec, acao (CSWL, CSWH).

epec o opopa oe a e, a COUT1.

-PRBYTE - o aa.

Bxo: A=a.

epea a oc epe COUT a ecaaepoe co (e p).

Bxo: A e coxpaec.

ooe xo:

PRHEX: o ae oo aa a ecaaepo p.

-CROUT - epeo cpo.

Boc co "p-M" (epeo cpo) epe COUT. aec cpaaae opopaa CR.

CROUT1: peapea oca ocaa ee cpo poea eeo ea.

10.4.4. opopa pae pao.

B x opopaax pecp X ae e coec.

-BS, ADVANCE, UP, LF - c pcopa a o o peeax oa; ec opeec - c epexoo a p cpo, oo paa.

-CR - epexo aa oo cpo; ec KBD axoc epoa poe - aepa o aa o a.

-SCROLL - oa paa a cpo epx; epx cpoa p o poaae.

-HOME - epeeee pcopa e epx o oa epexo a CLREOP.

-CLREOP - oca (aoee poea eeo ea) paa eo o pcopa.

CLREOP1: o e, o a xo oac:
        A=cpoa (CV),
        Y=o (CH).

-CLREOL - oca ocaa cpo.

CLEOLZ: o e, o o epeaec Y.

CLEOLZ1: ooeo, eoc epeaec A.

-DELCHAR, INSCHAR - c ocaa ee cpo eo (pao) c oee eeo (oceeo) coa; oe cpo ( ee o) oec poe eeo ea.

DELCH32, INSCH32, DELCH64, INSCH64: o e aoo peo, pe a xoe

     Y=o (CH)
     A=eoc (INVFLG).

-opopa ee ee eoc (e cooece INVFLG):

SETRED, SETGRN, SETYEL, SETBLUE, SETVIOL, SETNAVY, SETWHIT: caoa ooo 7 eo (poe epoo).

SETINV, SETNORM, SETFLASH: caoa oa (epcoo, opaoo, aeo).

SETCOL: caoa ea, epeaoo A.

-SETTXT - oa pao a ee ecoo pee (opeeec o cape INVFLG).

-INIT - caoa caapoo oa o ec pa:

WNDTOP = 0, WNDLFT = 0, WNDWDTH = ¤40, WNDBTM = CV + 1 = ¤20.

SETWND: o e, o aee WNDTOP epeaec A.

-BASCALC - cee apeca aaa cpo, oep oopo epeaec A:

        (BASL, BASH) = A + A * 64

-VTAB - cee apeca aaa cpo \oa\:

        (BASL, BASH) = BASCALC(CV) + CH

VTABZ: o e, o oep cpo epeaec A.

TABV: ooeo, oep cpo aoaec CV.

10.4.5. poe opopa.

-WAIT - aa eoc 512*A**2 + 27*A/2 + 13 ce. Pecp X,Y e coc; a xoe A=0.

-BELL - oo ca (oo, 1 , 0.1 ce). Oe pecp Y; X e eec.

 

11. CKOBA OEPAOHHA CCTEMA.

11.1. Haaee cooae OC.

OC ec ac pa cce "KOHA" , aaoo IOSUB, c oecee eoo cocoa xpae ax a M x opao. O ec peeo PAPA-eppeaopa Aoooo Oaooo Koeca. oceee eae oo eo cooae acceepx popaax ooae.

OC pecae coo aop aocax opopa, oox opaoa pao c co 3 poe:

-Caapa opaoa ao a ce (ee ac eo, oee, caoa ce a).

-Paoa c oe aca ao (oaoo oceopo); OC oeceae p o eoxo aop cpec.

-oepa ecaapo pao c aa popaax ooae; peocaee e aopa cox .

ooaeca cp o OC aa [8].

OC oeceae coece co a popa oeceee opa cpp co. eec pa pecae ao oca o e oee.

OC ocae pao c cooa, oe oo o e opoep.

11.2. paep cooa RWTS.

B aece paepa cooa a opopaa RWTS (Read-Write Track/Sector) ao OC co ce eae ee:

-ce o aa ca;

-cea opaoa cooo a pax paeax;

-Taa xox apaepo ceaa caeco copoaa, ee ee apaep LAST, opee coo epx ao caoo ceopa ao aca a (coec p ape aa).

   Ho opa a:
--------------------------------------------------
 Me.  a        Coepoe
--------------------------------------------------
T.SLOT    0   pae opoepa * 16 (ocaa)
T.DRIVE   1   pee coo (1  2)
T.OLDDRV  2 * coo peeo opae
T.TRACK   3   pe
T.SECTOR  4   ceop
T.VOLUME  5   pee o ca (0 - o)
T.ACTVOL  6 * ece o ca
T.ACTION  7   ece: 1 - ee, 2 - ac
T.BUFFER 8-9  apec epa ax  a
T.LAST    A    e: oce  a
--------------------------------------------------

* - ACBATC CAMO RWTS

-epeece paoe e;

-ee epec: p xoe ac aepe pepa, ooa oa epeaec p xoe pecpe A ( 0, ec o e);

Ko oo:

    1 - ecooece oa ca aaao,
    2 - oa oea c co,
    3 - c ap a ac.

-epeeaa aa aepe p cee pe.

a e popaa coec px oax cce: Haao ape popae pae paox co.

11.3. Cppa ca.

B eo coxpaea pa ao OC cppa ca. Koe-e ee ooee pacpe.

Maa ea oea c co - ceop (256 ao). Ceop a ce apecec \pe-ceopo apo\ T/S, e T - oep pea, S - oep ceopa.

\Pacpee\ aaec apec (pe-ceopa apa) ceopa, coepaeo pooee opa, oopa e oecac a ceop. 0/0 oaae occe pacpe.

aecoe pacpeeee a a ce oeceaec cee eo cppo:

-oaee ca (11/00): opa o ce, cooo a a e, cca a aao;

-aao ca (oo 11/0F-11/01, o ooo pacpee): opa o aax a ce;

-a a ee coceoe oaee - pe-ceop cco, coepa ae o ax ao ceopax.

He p oca cpp ca. Hecoee a aax e aac peoaac e.

11.3.1. \Oaee ca\ (VTOC - Volume Table Of Contents):

----------------------------------------------------------
  a aee    Ocae
----------------------------------------------------------
  01-02  11,0F   apec aaa aaoa
   06      ?     o ca (oep oa) - 1-FF
  08-26    ?     aooo ca, oaac 8D,00
   27      7A    ax. co pe-ceopx ap  TC-cce
   30      ?     oep pea ee
   31      ?     apaee ee (1  -1)
   34      23    co peo a ce 
*  35      10    co ceopo a pee
* 36-37  00,01   co ao  ceope (¤0100)
  38-C3  ?,?,0,0 ac ax ceopo: o 4 aa a pe
----------------------------------------------------------

pea:

-* - OC e coe, ocaeo coecoc co ao OC x popa.

-Maca ax ceopo pea N:

   Apec o VTOC - 38 + N * 4 .
 ---------------------------------------------
 ! FEDCBA98 ! 76543210 !   e coc   !
 ---------------------------------------------
    1 a     2 a     3 a     4 a  

Ea pape oaae, o a ceop cooe.

-Tpe apaee ee opee, c aoo pea ao apae e ecc oc coooo ceopa TC-cca p coa oepeoo aa. Ec o apae e aeo ooo coooo ceopa, oc aaec o pea ee pooooo apae. Ceopa ec apae 0F-->00.

-Ko ca c pae co.

11.3.2. \Kaao ca\:

---------------------------------
  a    Coepoe
---------------------------------
  01-02   pacpee aaoa
  0B-2D   pae aa 1
  2E-50     --""--     2
  51-73     --""--     3
  74-96     --""--     4
  97-B9     --""--     5
  BA-DC     --""--     6
  DD-FF     --""--     7
---------------------------------

\Pae aa\:

---------------------------------
  a    Coepoe
---------------------------------
  00-01   apec TC-cca AA
   02     T AA
  03-20   M AA (30 CMBOOB)
  21-22   HA AA B CEKTOPAX
---------------------------------

pea:

-Koa a oaec, oep pea opec a 20, a a 00 acaec ocaa FF. Oa c pao coo aa. Cao oe a, a opao, oo occao.

-T aa ( coax - a, aaea aaoe):

   40 () - a a "ae" (e peaoa),
   20 (K) - o a cce "KOHA",
   10 () - epeeae o a (e peaoa),
   04 (B) - o a ao C,
   02 (A) - BASIC-a,
   00 (T) - eco a.

Ec cap = 1, o a aep.

11.3.3. \Tpe-ceop cco aa\:

------------------------------------------------
  a    Coepoe
------------------------------------------------
  01-02   pacpee TC-cca
* 03-04   cca a pe pae TC-cca
  05-06   ce p ceopo
* 08-09   a popa  K-aa  aax
* 0A-0B   aa apec popa  K-ae
  0C-FF   pe-ceope ap ceopo aa
------------------------------------------------

pea:

-* - Pacpee OC o cpae co ao.

-Cca a pe pae peec oca oopoa e eo ca.

-Ce p ceopo: aec o aco oep ae epoo ceopa ao paee TC-cca.

-O pae TC-cca coep apeca o 122 (¤7A) ceopo aa.

11.3.4. \opa K- T-ao\:

Teco a - o oceoaeoc eex ao, oaaac e aaa poooe oeco ceopo. aec ce ocee a o oa oceeo ceopa o e. Heo a 0 ceope e coec ( oca oopoa: apec o XXYY oaae a YY ceope XX), o coecoc co ao OC e e oe. ecox ao opeee pa oa aa: caoe oo o cae, ec ee o axoc o.

o K-a pecae coo oceoaeoc poox ao, aa poooe co ceopo. aeca a xpao opa aaec TC-cce.

11.4. Cppa pee a OC.

11.4.1. apaep coco ce.

FILEQUAN (¤3B0-3B1) - o ao, opx a ao  x cooo;
ISVTOC   (¤3B2) - pa a VTOC  a:
                  0 - e; 1,2 - oep cooa;
DRIVER   (¤3B3) - e a coo;
VOLNUM   (¤3B4-3B5) - o co  cooax;
                  ec a ce e opx ao - 0;
VTOCHANG (¤3B6) - pa ee VTOC  a.
IOERR    (¤3B7) - pa eca o: e 0, ec o pe oa-oa.

C oo x apaepo OC

-opae oa oae oo ca a (a o e opeeec ce ocaoe), ac HA CK capoo oae, ec eo ece ee (opopaa CHECKVTOC);

-pae coo oepeo oepa;

-opope ce ca cooe, oa a e ec ope a.

11.4.2. Paoe epa.

VTOC    (BF cp. OO) - ep VTOC ca,
CATAL   (05 cp.) - ep ceopa aaoa,
TSLIST  (02 cp.) - ep TC-cca
WORKP   (07 cp.) - pao ep;
NAMEBUF (300-31D) - ep e aa.

TC-cco opoo aa xpac epax aa.

11.4.3. Opaa opao ao.

Cee e aa opa aoo occe:

MAXFILES (¤400) - acaoe co opx ao;
DATABUFF (¤401) - oep aao cpa epo o ao;
TOPPAGE  (¤402) - epx pee ap aa  a.

epa oa ao ee :

 ------------------------------------------
 ! TN ! N !  . . .   ! T2 ! 2 ! T1 ! 1 !
 ------------------------------------------
 ^
 !           N  = MAXFILES
DATABUFF     Ti - T-cco i-o aa
             i - opaaae ceop ax i-o aa

aoo opoo aa xpac 18-ao \opao ep\, opee cocoe eo opao. opaoe epa ao axoc oac FPAGE (¤400-4FF):

%AREA 4

    1: EE-FF   5: A6-B7   9: 5E-6F   13: 16-27
    2: DC-ED   6: 94-A5  10: 4C-5D   14: 04-15
    3: CA-DB   7: 82-93  11: 3A-4B
    4: B8-C9   8: 70-81  12: 28-39

Paep o oac opeee acaoe aee maxfiles=14.

Ooce apec opaooo epa coec oca a. B acoc, eo o epeaec a xo opopaa oa-oa RDBYTE WRBYTE.

p cee eeo paea ax opao ep aa epecaec a e cpa (¤90-a1), o oece oee o po oc eo ea.

   Cppa opaooo epa aa:
----------------------------------------------------------
a  Me.               Ocae
----------------------------------------------------------
  0    DRN     oep cooa, a oopo a  op
  1    TCAT    pe     \
  2    SCAT    ceop    > oop. paea aa  aaoe
  3    SHIFT   ceee /
  4    TLIST   pe     \
  5    SLIST   ceop    > oop. e. paea TC-cca
  6    SHLIST  ceee /
  7    STATUS  aa +  aa
  8    TSLBUF  oep cpa epa TC-cca
  9    BUFF    oep cpa epa ceopa ax
 A-B   LENGTH  a aa  ceopax (e TC-cca)
  C    ISCHAN  pa ee  ee ceope ax
 D-E   NBLOCK  oep eeo ceopa ax  ae
  F    BYTE    oep eeo opaaaeoo aa
 10    EOF     pa oa aa ( T-ao)
 11    NAME    eaop aa
----------------------------------------------------------

pea:

-Ec DRN=0 - EP CBOOEH (AA HET E AKPT);

-NBLOCK BYTE opa pexao oep o aa;

-NAME OC e coec; oe cooa ea aa opaaae popae ( PAPA-eppeaope o oep e, o oop a op).

 

POEHE


  TAA EPEKPECTHX CCOK PAPA-HTEPPETATOPA.

   \coee ooae oo\:

ARIT - INTARIT    ERR  - PRINTERR  INIT - INITMEM    SCAN - SCANER
COD  - CODER      EXEC - EXECS     INP  - INPUT      SEMP - SEMPS
COM  - COMMON     FIL  - FILER     JLC0 - JUMPSLC0   STEK - STEKS
COMP - COMPCOM    FUN  - STFUN     JUMP - JUMPS      SYNT - SYNTAN
CYC  - CYCLES     GR   - GRAFICS   MON  - MONITOR    TAB  - TABLECOM
ED   - ED.1,ED.2  ICOM - INTERCOM  OUT  - OUTPUT     COZU - COMOZU

Haa px oo poc ooc.

========== e eo cpa ==========

EMPTY     00         INIT
TGS1      01         oeo ooa
BYTE1     01         SEMP
TGS2      02         oeo ooa
BYTE2     02         SEMP
TGS3      03         oeo ooa
BYTE3     03         SEMP
REGOUT    04         RTS,CALL,OUT,ICOM,CLIP
JNOLOC    05         ON,COM
UGS       06-07      CALL,COZU,STEK,ICOM,CYC,CLIP,INIT,MON,LOAD
UGS1      08-09      INIT,STEK,DIRS,CALL,COZU,SEMP,CLIP
NTK       0A-0B      LOAD,DIRS,RTS,CALL,COM,ICOM,MON
ENDLINE   0C-0D      ED,MON
LENGTH    0E-0F      ED,MON
          10-1F      oeo ooa
ccee 20-49      IOSUB,RWTS,DOS,FIL,ED
FILENUM   48         ON,FIL
DL        4A-4B      ARIT,SUP,EXEC,FUN,INP,COPY,WBUF,COMP,CLIP,STR,ICOM,CAT,
                     OUT,COM,COD
DL2       4C-4D      OUT,CLIP,COMP,COM,STR
RNDLOC    4E-4F      IOSUB,MON
SEMPWL1,2 4E-4F      SEMP
PSDIFF    50         DOS
ERRLOC    50         ERR
FILETYP   53         DOS,FIL,LOAD,ED
SYMBOL    54         FIL,ON,INIT,COZU,D100,DOS
TIPOUT    55         CAT,DIRS,RTS,ON,INP,COM,COZU,OUT,MON,CALL,CLIP
TABZ      56-57      MON,SYNT,INIT,LOAD
TAKS      58-59      MON,SYNT,ERR,INIT
ABZAC     5A-5B      ICOM
AS        5C-5D      SYNT,SEMP,ERR
TASP      5E-5F      INIT,SYNT
ADR1      60-61      oeo ooa
ADR2      62-63      oeo ooa
ADR3      64-65      oeo ooa
ADR4      66-67      oeo ooa
COP1      68-69      COPY,COM
CURCHR    6A-6B      INP,SCAN,MON
ADR       6C-6D      LOAD,ED,COMP,OUT,CLIP
COP2      6E-6F      COPY,COMP,COM,ED
          70-77      ERR,SUP,OUT,COD,DOS,ED
BEG       78-79      INP,COD,MON,INIT,ARIT,SEMP,SCAN,SYNT
END       7A-7B      INP,COD,SEMP,MON,SCAN,SYNT
ARB1      7C-7D      oeo ooa
ARB2      7E-7F      oeo ooa
          80-8F      COMP,CALL,RTS,OUT,ARIT,EXEC,LOAD,ERR,ED
PARAREA   80-A2      FUN,GR
INFBUF    90-A1      DOS,FIL,EXEC,ICOM
BEGADR    98-99      DOS,SEMP,LOAD,ED
LENGTH    9A-9B      DOS,ED
BEGOBJ    9C-9D      DOS,ASM
BYTE1-3   A1-A3      STR
CLASSL,H  A2-A3      EXEC,LOAD
GRMODE    A4         COZU,FUN,GR
GRPAGE    A5         COZU,GR
TXPAGE    A6         INIT,COZU,ED,GR
GRSYMBOL  A7         FUN
GRCOLOR   A8         FUN
GR.TXT    A9         INIT,COZU
NTK.SEMP  AA-AB      SCAN,MON,SEMP,LOAD
COMMANDS  AC-B3      SEMP,COD,WBUF
N1        B4         SUP,ED
NX        B5         SUP,ED
BEGIN     B6-BD      COD,LOAD,DIRS,RTS,CALL,ICOM,COM,SEMP,MON,WBUF
DLX       BE-BF      SUP
ERROR     C0         oeo ooa
WASCHANGE C1         LOAD,ED,SEMP
DEFINITN  C2         LOAD,MON,SCAN,SEMP
ISNAMEOLD C3         RTS,CALL,COM
PROTOLD   C4         RTS,CALL
CURRENT   C5-C6      MON,SCAN
PROCNAME  C7         LOAD,SEMP
PROCOLD   C8         RTS,CALL,COM
ISCALL    C9         INIT,SEMP,DIRS,ICOM,RTS,CALL
LIBARG    CA         FIL,CLIP,CYC,ICOM
CMD       CB         ERR,ICOM
WASDEF    CC         LOAD,FIL,SEMP
CURRENT2  CD-CE      DIRS,ICOM,COM
WHATSTEK  CF         ICOM,CALL,COZU
FILENAME  D0         SEMP,LOAD,ICOM
RANDOM    D2-D3      MON,ARIT
NA        D4         LOAD,MON,SYNT
NA        D5         SYNT
NPA       D6         LOAD,MON,SYNT
PL        D7         LOAD,MON,SYNT
MONITNAM  D9         ON,CLIP,RTS,CALL,DIRS
TRACE     DA         ON,CALL,RTS,DIRS
TRACELN   DB         ON,DIRS,RTS,ICOM,CALL
STEPREG   DC         DIRS,ICOM,CALL,RTS,MON
PROMPTR   DD         INP,INIT,FUN
KW        E0         SYNT
XSAV1     E0         SCAN
XSAV      E0         SEMP
ADRS      E0-E1      CLIP
SMESCH    E0-E1      COM,COD,EXEC,ICOM
XSAV      E1         SCAN
WORKING   E2         SCAN
SCH       E3         SEMP,SYNT
          E3-E8      ARIT,INP,LOAD
TEL       E4         INP,SYNT,SCAN,MON
WHATTEG   E5         CLIP
LENGTH    E5         SCAN,COD
SCH1      E6         SEMP,CALL
MYTRACE   E6         FUN
TEG       E7         SEMP
WNDCV     E8         ED
NAMENUM   E9         ON,CLIP,SEMP,CALL,FIL,ERR,CYC
STMTABZ   EA         INIT,EXEC
NAME      EB         EXEC
ITABZ     EC-ED      EXEC,LOAD
ITAKS     EE-EF      EXEC,LOAD
FIRSTMOD  F0         INIT,COD,EXEC,CAT
LASTMOD   F1         COD,EXEC
MODE      F2         MON,COD,SEMP
SAVID     F3         EXEC
EDCSW     FE-FF      ED

============ e 3- cpa ============

NAMEBUF   300-31D    ED,DOS,FIL
COEFF     31E-31F    FUN
SAVEAREA  320-324    RTS,CALL,MON,DIRS
REGIM     325        SCAN,MON,INIT,SEMP,LOAD,INP,ERR,RTS,DIRS,CALL
BASEX,Y   326-327    FUN
ASP       328-35F    SUP,MON
C.NTK     360-361    COM,DIRS,CALL
C.BEGIN   362-363    COM,DIRS,CALL
C.ISCALL  364        COM,DIRS,CALL 
C.ISNAM   365        COM,DIRS,CALL
C.PROC    366        COM,DIRS,CALL
CLASS     367        COM,DIRS,CALL,ON,RTS
C.MONIT   368        ON,RTS,DIRS,CALL
C.TRACE   369        ON,DIRS
C.TRLIN   36A        ON,DIRS
C.STEPREG 36B        ON,DIRS
SAVEERR   36C        EXEC
SYMTADR   36E-36F    INIT
TCLASSID  370-37F    EXEC,LOAD,COM
TCLCOUNT  380-38F    EXEC,LOAD,RTS,DIRS,CALL
TCLASSL   390-39F    EXEC,LOAD
TCLASSH   3A0-3AF    EXEC,LOAD
FILEQUAN  3B0-3B1    DOS
ISVTOC    3B2        DOS,EXEC
DRIVER    3B3        DOS,FUN,INIT,ED
VOLNUM    3B4-3B5    DOS
VTOCHANG  3B6        DOS
IOERR     3B7        DOS,FIL
LAST      3B8-3BF    WBUF
OFFALLTAB 3C0-3C4    LOAD
GRVECTS   3C5-3CA    GR

========== Paoe epa  oac =========

200-2FF   KBDBUF     IOSUB,INP,SCAN,COZU,ED,SEMP
          TKSBUF     EXEC
          WORKP      CALL
          TSLIST     DOS
400-4FF   OUTPOOL    FUN,DOS,ICOM,INIT,COZU,SCAN,FIL
400       MAXFILES   DOS,INIT,FIL
401       DATABUFF   DOS,INIT
402       TOPPAGE    DOS,INIT
403-439   POSTOUT    ON
45C       TEMPOUT    ON
462       FRSCRN     ON,INP,INIT,OUT,FIL
465       FRFILE     ON,FIL
46A       FRFILE1    INP
46F       GETLNADR   INP,SCAN,OUT
475       KEYINLOC   INIT,INP,ON,FIL
500-5FF   BUFCOD     COD,ARIT
          CATAL      DOS
          paoa    SEMP,OUT,STR,INP
600-6FF   SAVEPAGE   MON,SEMP
700-7FF   paoa    CALL,STR,ARIT,EXEC,RTS,DOS,
800-      BEGSTACK   INIT,ICOM,COZU
-CFF      ENDSTACK   INIT,COZU
D00-EFF   ADRIDML,ST INIT,COD,EXEC,COM,CAT
F00-FFF   CONTROL    INIT,MON,SEMP,EXEC,ICOM,CLIP,CYC,
                     ON,CAT,RTS,FIL,CALL
1E00-1FFF ADRVLML,ST INIT,MON,SEMP,ICOM,CLIP,CYC,ON,CAT,RTS,FIL,CALL
2001-     AREABEG    LOAD,SEMP,MON,ED
-3FFE     AREAEND    LOAD,ED,INIT
4000-     ADPUL      MON,SUP
8F80-8FFF ERRCOUNT   INIT,ERR
9100-9EFF FILEAREA   INIT
B500-B656 BUF1,2     RWTS
BF00-BFFF VTOC       DOS
          TAKSBUF    EXEC

============ IOSUB (1800-1B45) ==============

IRQREACT  1800       INIT,COZU
NMIREACT  1803       INIT,JUMP
RESREACT  1806       INIT,JUMP,ED
RDKEY1    180C       COM,DOS
RDKEY     1810       FUN
KEYIN     1813       COZU,ED
STROBE    1840
GETLNZ    1874
GETLN     1877       INIT
CROUT1    18C1       OUT,COM
CROUT     18C4       FUN,CLIP,RTS,DIRS,DOS,ED,CALL
COUT      18C6       MON,FUN,OUT,COM,INP,ERR,DOS,CALL
COUT1     18C9       INIT,COZU,COM,ON,CAT,ED
PRBYTE    18EC       COZU,COM,DOS
PRHEX     18F5       OUT,COM,ERR,DOS
BS        1915
UP        1929
VTAB      1931       FUN,ED
VTABZ     1933       FUN
HOME      1946       INIT,MON,ED
CLREOP    194E       ED
CLREOP1   1952
CR        1964
LF        1980
CLREOL    198D
CLREOLZ   198F
CLEOLZ1   1991
BELL      19A4       MON,COZU,FUN,COM,DIRS,ED
SETINV    19B7
SETNORM   19BD       COM
SETFLASH  19C3
SETRED    19CB
SETBLUE   19CE
SETVIOL   19D1       COM
SETWHIT   19D4
SETYEL    19D7
SETGRN    19DA
SETNAVY   19DD       COM
SETCOL    19DF
SCROLL    19FA
SETTXT    1AA1       INIT,COZU,ED
INIT      1AAE       FUN,ED
SETWND    1AB0       INIT,COZU
TABV      1ABF       INIT,FUN
RDCHAR    1ADD
BASCALC   1AF4       ED
WAIT      1B07       FUN
TRANSL    1B13       FUN,ED

============ COMOZU (1B50-1D98) =============

LC0(D0)   1B50       INIT,JUMP,JLC0,ICOM
LC1(D0)   1B54       INIT,JUMP,EXEC
LC0D1     1B58       JUMP,JLC0,ICOM
LC1D1     1B5C       INIT,JUMP
NORMOZU   1B60       MON,JUMP,SEMP,LOAD,FUN,ERR,CAT,DIRS,FIL
DOPOZU    1B64       MON,JUMP,INIT,SEMP,LOAD,FUN,ON,ERR,CAT,DIRS,FIL
NMI       1B68       INIT
IRQ       1B73       INIT
DISP1     1B6F
DISP2     1B79
SETGR     1B7D
JPRNT     1B8B       ON
PWRUP     1B9D       ON
OUT       1BA3       OUT
RAPKEYIN  1BB1       OUT
ERREACT   1BDA       oeo ooa
ERRAREA   1BDB       MON,EXEC,ICOM
ERRBRAN   1BE1       MON,EXEC,LOAD,ICOM,CLIP
JMPERRIO  1BE3       INIT,MON,ED
JWRBYTE   1BE9       ON
GETLNF    1BFB       INIT
GETSCAN   1BFE       SCAN
WSTEK0    1C14       CLIP,ICOM,COM
WSTEK     1C26       SEMP,COMP,DIRS,CLIP,STEK,ICOM,RTS,CALL,SYNT,COM
STKFULL   1C3C       STEK
IZSTEK    1C46       CLIP,SEMP,COMP,DIRS,ICOM,STR,CALL,RTS,SYNT
WSTEK1    1C5F       CLIP,INP,OUT,COMP,SEMP,DIRS
IZSTEK0   1C6E       CLIP,COM
IZSTEK1   1C72       INP,OUT,COMP,SEMP,DIRS
STATABZ   1CA6       SEMP
STAWORK   1CB2       SEMP
JMPFUN    1C89       FUN
ANPAR     1C9B       FUN
MYRESET   1CDC       INIT
MYIRQ     1CCA       JUMP
RAPENTRY  1D17       AUTO

============ INITMEM (8000-8216) ============

RAPIRA    8000       ON,COZU
MAINREG   8004       ON,DIRS
SETSCRN   8147       MON,ED
PRTITLE   814C       MON
PRTITL1   8155       DIRS

============ LOAD+ (8200-82FE) ==============

============ EDITOR (9F30-AFED) =============

ENTRY     9F34
EDITOR    9F59       MON
ED.SAVE   A28C       SEMP
COM.LOAD  AEFF       SEMP,LOAD

============ RWTS (B000-B45A) ===============

T.SLOT    B000       COZU
T.DRIVE   B001       DOS
T.TRACK   B003       DOS
T.SECTOR  B004       DOS
T.VOLUME  B005       DOS
T.ACTVOL  B006       DOS
T.ACTION  B007       DOS
BUFFER    B008-9     DOS
T.LAST    B00A       DOS
RWTS      B2FD       DOS
SAVETREK  B44B       COZU

============ D100 (B473-B4F6) ===============

D100CT    B47B       ED
D100      B490       COZU
IOSLOTCARD B4E9      COZU

============ DOS (B657-BDE1) ================

ERRVECT   B685       ED,MON,INIT
OPEN      B8D6       FIL
RDBYTE    B946       FUN,INP,COZU
WRBYTE    B965       COZU
SHUTFILE  BA34       FIL
DELETE    BA81       FIL,ED
SAVE      BAD7       ED
LOAD      BB4F       ED
LOCK      BBDC       FIL
CROUT2    BC00       CAT
CATALOG   BC24       ED
RAPCAT    BC28       CAT
PRBL1     BCFF       CAT
POSITION  BD23       FIL
              ***************
              *  L C 0 D 0  *
              ***************

============ OUTPUT (D000-D3C3) =============

SETIO     D000       JUMP,DIRS,FIL,INP
SETO      D00B       ON,CAT
OUTPUT    D016       TAB
UNFORMAT  D01A       FUN,CLIP,RTS,CALL
INTRECOD  D02B       JLC0
LINEFEED  D07C       TAB
PRTEXT    D0BB       TAB
PRINTEG   D0EF       TAB
PRREAL    D156       TAB
TABULAT   D1B8       TAB

============ ON/OFF (D3C8-D5AE) =============

ON        D3C8       TAB
OFF       D3CB       TAB
ONPRTCL   D410       FIL,INIT
TAKEFILE  D53B       INP
DEVOUT    D55C       TAB
DEVCAT    D55F       CAT

============ STEKS (D5B0-D65C) ==============

SWAP2     D5B0       INP,RTS
SWAP3     D5B2       TAB
EVALCASE  D614       TAB
DOUBLE    D617       TAB
ERASE     D657       TAB

============ CAT (D660-D7AF) ================

CATALOG   D660       TAB

============ FILER (D7B0-D910) ==============

OPENFILE  D7B0       TAB
LOCATE    D80B       TAB
CLOSEFIL  D83A       TAB,COPY
CLOSEALL  D853       JUMP,ON,TAB
DELFILE   D87A       TAB
LOCKFILE  D886       TAB
ERRIO     D895       COZU
NAMEWBUF  D8C1       JUMP

============ CALL (D925-DCF6) ===============

CALLACC   D925       JUMP
CALLPROC  D930       TAB
CALLFUNC  D933       TAB
DEL       DC8D       RTS
DELPARS   DCB2       FUN

============ RTS (DD00-DF0D) ================

RTS       DD00       TAB,DIRS

============ STFUN(1) (DF10-DF81) ===========

CALLSTFUN DF10       CALL

============ JUMPSLC0* (DF91-DFFF) ==========

               (C.  Apee)

              ***************
              *  L C 0 D 1  *
              ***************

======== INTARIT/RELARIT (D000-DCB7) ========

INTPLUS   D000(BB)   (TAB)
INTMINUS  D00B(C1)   (TAB)
INTMULT   D011(C7)   (TAB)
INTDIVIN  D01E(CD)   (TAB)
INTDIV    D026(D3)   (TAB)
EXPINT    D02C(D9)   (TAB)
REALMULT  D032(EB)   (TAB)
REALDIV   D038(F1)   (TAB)
REALPLUS  D03E(DF)   (TAB)
REALMINUS D044(E5)   (TAB)
INPLUS    D04A(91)   (CYC)
REPLUS    D825(9A)   (CYC)
INTREAL   D9E1(A3)
INTREAL1  D9E7       FUN,ICOM
TRUNC     DA71(A9)   (FUN)
REALINT   DA76       FUN
SQRT      DACD       FUN
RND       DBA3(AF)   FUN
   B coax - apeca  JUMSLC0  x cooae.

============ TABLECOM (DD00-DF11) ===========

TAIP      DD00       ICOM

============ JUMPSLC0+ (DF91-DFFF) ==========
RET.ARIT  DFFD       ARIT
JINTRCD   DFF7       ARIT

              ***********
              *  L C 0  *
              ***********

============ INTERCOM_(E000-E31C) ===========

INTERCOM  E000       JUMP
INTERC2   E017       JUMP
SEMBRAN   E16B       LOAD,CLIP
CLRSTEK   E18C       DIRS
WSTEKNAM  E1FE       CLIP,TAB,CYC,CALL
WSTEKADR  E218       TAB
OR        E235       TAB
NOT       E242       TAB
AND       E24A       TAB
EQTYPES   E257       TAB
UNARTEST  E269       FUN
REALUNAR  E27A       TAB
INTUNAR   E28E       TAB
BNE       E2A5       TAB
JMP       E2AA       CLIP,TAB,CYC,DIRS
JMPKON    E2BE       CLIP,CYC
MOSHNTEXT E2C4       TAB
MOSHNKORT E2C7       TAB
EVALUATE  E2E2       STEK,TAB,CYC
CONTROL   E2F7       TAB
CHEKPOS   E2FD       TAB

============ FIND (E321-E38F) ===============

FIND      E321       TAB

============ COMPCOM (E390-E6B3) ============

EQUALITY  E390       STR
CMPREAL   E3A4       CYC
CMPINT    E3D4       CYC
SRAVN     E405       ARIT
EQUAL     E466       TAB
NEQUAL    E473       TAB
LEREAL    E47A       TAB
GEREAL    E483       TAB
LTREAL    E48A       TAB
GTREAL    E491       TAB
LEINT     E49A       TAB
GEINT     E4A3       TAB
LTINT     E4AA       TAB
GTINT     E4B1       TAB
IFINTEXT  E4BA       TAB
IFIN      E4ED       TAB,STR
TBL       E534       OUT,COPY
ADR1WS    E535       COPY,OUT
IZSTADR1  E536       OUT,COPY
DLADR     E53B       OUT
ADRDL     E53E       OUT
DLWS      E548       COPY
DLIZ      E549       COPY
COP2WS    E54B       COPY
COP2IZ    E54C       COPY
ADR4WS    E54E       COPY
ADR4IZ    E54F       COPY
WST       E553       OUT,COPY
IZST      E563       OUT,COPY

============ COPY (E6C0-E8A5) ===============

COPY      E6C0       FUN,CLIP,ICOM,RTS
COPYNOER  E6CB       ARIT,CLIP,STR,CALL,FUN
DELETE1   E807       CALL,STEK  
DELETE    E80A       CLIP,ICOM,STR,RTS,CALL,JUMP,FUN

============ SUP (E8B0-EA70) ================

SUP1      E8B0       ARIT,FUN,INP,CLIP,STR,COPY,JUMP,COM
SUP2      E940       ICOM,ARIT,COPY,JUMP,MON

============ CLIP (EA73-EF2F) ===============

TAKENOER  EA73       STR,ICOM
TAKEADR   EA8B       FIL,FUN,RTS,CALL
CLIP2     EB8C       TAB
CLIP1     EB8E       TAB
ASSIGN    ECD3       CYC,TAB,INP,RTS
ASGN      ECE8       CYC
CHANVAL   ED3F       FIL
AVAIL     EE29       TAB
FORCLIP   EE79       TAB
FORCLIP1  EED9       TAB

============ CYCLES (EF30-F004) =============

REPLOOP   EF30       TAB
FORINIT   EF5A       TAB
FORCONTI  EF7F       TAB
FORCONTR  EF85       TAB
LOOPEND   EF97       CLIP
LOOPCONT  EFB9       CLIP
FORENDI   EFCB       TAB
FORENDR   EFD3       TAB

============ DIRS (F010-F1EB) ===============

STOP      F010       TAB,ICOM,CALL
EXIT      F057       TAB
EXIT01    F061       JUMP
START     F086       TAB
STEP      F099       TAB
EXITSTMT  F127       TAB
SAVEINF   F18B       ICOM

============ Paoe oca ==============

CONSTN00  F1F0-3     ARIT
CONSTIN1  F1F4-7     ARIT
PI        F1F8-F     FUN

============ COMMON (F200-F4BD) =============

SOUT      F200       TAB,COPY,ICOM
ADR41     F210       ARIT,CLIP,ICOM,FUN,STR,RTS,CALL,COPY
ADR14     F219       ARIT,CLIP,ICOM,COPY
OBMEN     F222       CYC,ARIT,ICOM
OPRDLIN   F23B       OUT,COMP,CLIP,STR,ICOM,COPY
OPRDLIN2  F248       COMP,STR
ADR42     F255       FUN,ARIT,CLIP,ICOM,FIL
ADR24     F25E       FUN,ARIT,FIL
ADR21     F267       ARIT,CLIP,ICOM
RESULT    F270       CYC,ARIT,FUN,INP,CLIP,ICOM,STR
EXP2      F27F       CYC,ARIT,OUT,COMP,COPY,JUMP
IZPOTOK   F297       JUMP,ON,CAT,INP,CLIP,FIL,ICOM,STR,RTS,CALL
ELEMENT   F2A2       FIL,CLIP,STEK,CALL
ZAPROS    F2D0       CLIP,FIL
RDYESNO   F2DD       JUMP
INTEGER   F304       OUT
PRNTNAME  F325       OUT,CLIP,JUMP,CALL
NAMEADR   F333       CAT,FIL,JUMP
PRNTERR   F349       INP,MON,JUMP
PRERR1    F34F       ICOM
PRERR3    F382       ICOM,DIRS
LINE      F38F       ICOM,DIRS,CALL,RTS
PR.LINE   F3CE       ICOM,DIRS,CALL
PRNTPROC  F3F6       RTS,CALL
PRMESS    F40A       RTS,CAT,OUT,DIRS,FUN,CLIP,CALL,JUMP
ADRCALC   F415       ICOM,JUMP
ZAKAZ     F421       FIL
TEXTZAK   F433       FUN
INTZAK    F442       FUN,ICOM,JUMP,ARIT
PRERR4    F452       ICOM,DIRS

============ INPUT (F4BE-F6BF) ==============

INPUT     F4BE       TAB

============ STR (F6C0-F9ED) ================

FORMKORT  F6C0       TAB,INP
FORMREC   F70A       TAB
KORTPLUS  F755       TAB
TEXTPLUS  F788       TAB
FORMMNOG  F8B6       TAB,INP
MINMNOG   F94C       TAB
MULMNOG   F94F       TAB
PLUSMNOG  F99C       TAB

============ STFUN(2) (F9EE-FE3F) ===========

DELARG    FAE3       JUMP

============ CONST (FE41-FEFF) ==============

MESS      FE00       COM
ERR02     FE41       ED,COM,DIRS
OF        FE47       COM
INIT2     FE4A        
INIT1     FE4F       CALL,CLIP
BR        FE53       CALL,COM,CLIP
EXPR      FE59       COM
RETURNS   FE5F       RTS
EXIT      FE64       RTS
LNUM      FE72       COM
IN        FE75       COM
ERR03     FE7A       DIRS
INLINE    FE82       COM
EMPTVAL   FE8D       OUT
PROCVAL   FE95       OUT
FUNCVAL   FEA1       OUT
FILEVAL   FEAB       OUT
REQUEST   FEB2       COM
SAVEORN   FEC7       SEMP
CATPROC   FEDA       CAT
CATNAMES  FEEF       CAT

============ JUMPS+ (FF00-FFFF) =============

JPRINTERR FF00       COM
JRESTST1  FF09       ICOM
JSCANER   FF12       INP
JTEXTCOD  FF1B       INP
JINTCOD   FF24       INP
JREALCOD  FF2D       INP
JSYNT     FF36       DIRS
JFRBUFS   FF3F       DIRS
JINTCOD1  FF48       ARIT
JLOAD     FF51       TAB
JONEXEC   FF5A       TAB 
JOFFEXEC  FF63       TAB
JDELEXEC  FF6C       TAB
JOFFALL   FF75       ON
JSCREEN   FF7E       FUN
          FFFA-FFFF  SYSTEM

              ***************
              *  L C 1 D 0  *
              ***************

========== Cacece a ===========

TKS       D000-D211  INIT,LOAD
TSO       D216-D9CF  INIT,LOAD
TSO.ROBIK D9E0-DDA5  MON
TKS.ROBIK DDB0-DF97  MON

              ***************
              *  L C 1 D 1  *
              ***************

============ GRAFICS (D000-D613) ============

PR.MODE   D000       FUN
LOWLEFT   D090       INIT
SWGRAF    D0F6       INIT
PLOT      D165       FUN
LINE      D1E2       FUN
RECTGL    D3A2       FUN
AREA      D3E0       FUN
SCREEN    D49F       JUMP
TKS       D4CF       FUN
 
SYMTABLE  DA00-DFFF  INIT


              ***********
              *  L C 1  *
              ***********

============ MONITOR (E000-E285) ============

CONTINUE  E000       INIT
FREEBUFS  E003       JUMP,SEMP
INITBUFS  E01B       LOAD,SEMP
SAVESTCK  E02E       
RESTSTCK  E03D
RESTST1   E040       JUMP
CALLED    E052       SEMP
STPARS    E065       LOAD
SYNT00    E0F5       COZU,JUMP,ED

============ STFUN(4) (E2A0-E2E9) ===========

ADRTB     E2A0       MON

============ SCANER (E300-E574) =============

SCANER    E300       JUMP,SYNT
PRIOR     E47F       SYNT
TCHARS    E503       ERR

============ SYNTAN (E580-E679) =============

SYNTAN    E580       LOAD,MON

============ WBUF (E6C0-E777) ===============

INIT      E6C0       SEMP,MON
WBUF      E6EA       SEMP,COD,SCAN,MON

============ CODER (E780-EA7B) ==============

POISK     E780       SEMP,MON
NOTMOD    E7B3       MON
FIND      E7C5       EXEC
SHCALC    E820       EXEC
SEMP54    E868       SEMP
TEXTCOD   E869       JUMP
SEMP52    E8BB       SEMP
INTCOD    E8E0       JUMP
SEMP53    E980       SEMP
REALCOD   E981       JUMP

============ SEMPS (EA80-F06B) ==============

WPOTOK    EA80       COD
IDCOM     EA8C       LOAD

TASP      F080-F175  INIT

============ PRINTERR (F180-F899) ===========

PRERRLOC  F180       <STAT>
PRINTERR  F188       JUMP

============ STFUN(3) (F8B0-F969) ===========

FNTB      F8B0       INIT

============ EXECS (F980-FDFF) ==============

DELCLASS  FDEF       LOAD

============ LOAD (FE00-FEFC) ===============

LOAD      FE00       JUMP
ONEXEC    FE1A       JUMP
OFFEXEC   FE72       JUMP
DELEXEC   FE91       JUMP
OFFALL    FEAB       JUMP

============ JUMPS* (FF00-FFFF) =============

JEXP2     FF00       MON,WBUF
JRDYESNO  FF09       SEMP
JPRNAME   FF12       SEMP,ERR
JPRNTERR  FF1B       MON
JADRCALC  FF24       COD
JINTZAK   FF2D       MON
JNAMEADR  FF36       COD
JSUP1     FF3F       WBUF,COD,EXEC
JSUP2     FF48       MON,WBUF
JDELETE   FF51       SEMP
JINTERCOM FF5A       MON
JSETIO    FF63       MON
JNAMWB    FF6C       ?
JCLALL    FF75       SEMP
JPRMESS   FF7E       SEMP
JEXIT01   FF87       SEMP
JINTERC2  FF90       LOAD
JIZPOTOK  FF99       LOAD
JCALLACC  FFA2       LOAD
JNMWBF1   FFAB        LOAD,SEMP
JDELARG   FFB4       FUN
JFB       FFEA       LOAD
JPRTERR   FFF3       ED
          FFFA-FFFF  SYSTEM

 

1. Worth D., Lechner P. Beneath Apple DOS. ??? 1982.

2. ae aoaa ooo eoo poecca ("KOHA"). Tec popa / B O AH CCCP; Ha pooe A..Epo; coe E.B.opoo, H..aoea, .A.eo, E.B.Hao, B.A.oa. - N 3533847.00042-01 12 01. - Hoocpc, 1985. - 3 c.

3. ae aoaa ooo eoo poecca ("KOHA"). Pooco popaca / B CO AH CCCP; Ha pooe A..Epo; coe .A.eopoc, E.B.Hao, B.A.oa. - N 3533847.00042-01 33 01. - Hoocpc, 1985. - ?? c.

4. ae aoaa ooo eoo poecca ("KOHA"). PAPA. Ocae a / B CO AH CCCP; Ha pooe A..Epo; coe .B.opo. - N 3533847.00058-01 35 01. - Hoocpc, 1985. - ?? c.

5. ae aoaa ooo eoo poecca ("KOHA"). POK. Ocae a / B CO AH CCCP; Ha pooe A..Epo; coe .B.opo. - N 3533847.00058-01 35 02. - Hoocpc, 1985. - ?? c.

6. K . ccco popapoa BM. .1. Ocoe aop. - M. Mp, 1976, c.544-546.

7. Knuth D.E. Top-down syntax analysis.- Acta informatica, 1971, v.2, No.1, p.79-110.

8. eppoaa popaa cpea "KOHA". ae pax popa "AOBA CCTEMA". Ocae popa / B CO AH CCCP; Ha pooe A..Epo; O. coe .A.eopoc; coe B.A.oa. - N 2068935.00061-01 13 01. - Hoocpc, 1983. - 27 c.

9. eao .. Ccea papao aeaecoo oecee o cpeca cooo po: cc. a coc. e. cee a. .-a. a (01.01.10) - Hoocpc,1981. - 121 c.