cs 226 (h) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/cs226(h)/cs226(h)-supplement2.pdf ·...

18
CS 226 (H) 171

Upload: others

Post on 26-Sep-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

CS 226 (H) 171

Page 2: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

ClarriIi-callon

Systemcommands

FunctionReservedwwd

--___ -. -.--

Srlcct a program PlLd. Pit00

Erase a program.

Display the status of SYSTlYthe proyrom areas. t

Deline the conIeuI o!a PF key.

Display the definedcontent of PF kcyr.

Erase funcl~us uiti CLEAlluscr4iwd fuwIioI~c:(Set the characlcrarea size and theBASIC upbou@uy. P

er

t

--__- - - - -

AcIivnrc Ihe machine MONlanguage monilor.

Trim fer control :ot,

TEXM--Ierm al mckde.- - - - - - ..--

AuIomaIic;rlly ALTOBellerate programhue numbtn.

Erase e par1 of aprogram.

IChange hne wmbrrs.

\bbren-Ition I

FOHtllI

- PROCprogram a~ea number

I chuacIw of 0 - 9 I

:. KEY function number, key conlenl

I vhwrcar ulIJ - 9 chwcler oxprrubn--__

;. L. KEYUST

- M O N - -

- -

-. TERM

- -- AUTO [hItal line number] [ . incrcIwnIJ

lute numb1 um wmbel

- DELETE{ i$all~ Il;](ew;wj)

- -Iuu aumbm Line wxnbsr

(7) end line number

IIW aumkr I

- RENUM [new lmc number] [ , (old line num-

Lw numbw Ilm numl*r

bcr ] ] 1, [incrcmcnI] ]-lb10 mimkr

MOVE PROCpqram arca numborbetween prcgwn mar. 1 1rhuuIuor0-9

I

D1rplay a prcgram LIST L.m the CRT.

LISTI initial lina numbor)@) (and llna numbor)

1Inr numbal OT *.” lhaaumbwar”.”

CS 226 (H) 173

Page 3: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

:lassif-brtion

~YSklllOltUlWldS

execution:ontrol

Function-

3ispLy varublc NIPIIIn{ arrs, runtcs on:ht CRT.

Execute a pr0gma-n.

-. __

:ontmuc w.ecutionof a program.

Trace execution oiI prqrmx

stop tracingexecution oi apro*am.

~eimionte executionof I program

ln1ern8p1 tXCCutlOnof a program.--.--.-Unconditional jump.

Jump to P subroutine. ;osull

Conditional jump.

Cwdlt~al QNtmdtl-brJrlch - GOT0

kstntdford

:oNT

--‘ZON

MlOFF

- -3ND

XOP

- -XITO

--IF- THEN_ EM

rbbrcvcltlon

IL.

-

-

-

-

-

z.

Los.

RET.

-I:

G. -

Format-

VARLIST

RUN [execution start line]tim IumbEr

CONT

TRON

TROFF

END

STOP

i=Oi

I

dcrttnation lina ttumbcrtubs numbsr

PROC proyam UI. number1huascnoro-9

GOSUB

I

destlnatloo line numberlim numbor

PROC program atea number I1cbamur010-9

RETURN / ~~~~~~ number/

IF condition.-upnswJJ

174 Cs 226 O-4

Page 4: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

:blUfi-rtion

kbnmt-ulsuon

FUnCUotl

Codttimd sub.routine cdl.

kerale excculion ofIWCmCnb . .,pctfiid number ofLlnuS.

:ondItlondtcra:ion.

Ilanment statement

iwnp values>ctwocn vuiablsr.

DATA statement.

-tCd the COntSOb of1 DATA statement.

ipecify the pwaona da3 t0 bc wi.m

II(

1F

PR1

S

I

6

F

P

C

:OR- N E X T

ft!lLE-WEND

EM.

E T

iWAF

)ATA

LEAD

lESTORl

- -

‘R!!NT

SR p

rbbrwtion

II

FOR control vtiablo nuns -

imtial value TO final rulue(STEP msrc.

O”IM,*: .xpnrulnJlpIJ

NEXT [control vanable name[ , conlrd rulvble

-1’ I

l STEP mw k ;�l;rwklcd s.

- WHlLEgv~dition- WEND numer ic rxpro~n

- { RY ] ;“,“:,,

[LET]

i

numetic variable name = numericcxprcwon

charrcbr vambb - = characterexpreruon

- SWAP

. i

numeric vuiabla name, numericvatiabb name

&UOCICI vwiablo RUM. charactervariable nuna

I

DATA [ data] [ , 1dat.J 1’- -ou”llanl lxmuult

READ vtiblo nunc( , rrriabls rums] l

- RESTORE line number(numorlc erpreulon)

PRtNT[output olomcntj

[output element]

1

- I CSR (Xs.odinob. Y.coordinotee

numwk OXDIWWD

CS 226 (HI

Page 5: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

Fun&on lltw* SFword PonIlu

FHow lhc curlor TAB - TAB (t&l ql8cllkIllaa)horizontally IO Ispecified poeition.

nunwrlc rrprrmbll

Output es cifiedP

SIT ’ - spc (wllbr of ChuIctm)numkro 8prcc. aumukupIcnI88

Display rcvervd REV F - REV+IWlWS.

Displayxhuec~en Y F - NORMthey us. NORU

Output data accord. PRINT P. 0. PRINT USING former sPe&wian;ingm; specifiid USING chu*;lcl •apluliu~

wput 8lunml

[{fj, ~?~!!-y [;I

/ I.1Locate Ihe Elmor UXATE - LOCATE X-coordinate. Y-coordinateposition. acmclk erprossion

Specify an Xto- Pas F- Fosordinate of the cursor.

Specify a Y-60. F - CSRLINordinate of chc cursor. CSRIJN

Clear lhe screen. cu - CIA

Ddiie a display DEFCHRS - DEFCHKS (internal code) = charrtlr JIIpcharac1er paIbm. Dy#ncnc c‘pnukI8 dbnr~~ urna

Control keysmkc UEEP - BEEP ONbeep md buuer II IIOFFqnd.

Keyboard Input data ironi the INPUT I. lNFuT Promptinput keyboard.

Icbcrrwupnvioll~ ;idqwllrcbsrwucnnnu (‘0

v8d&l8lum8(.vulIbl8Mmc1*_-

Input 0s: brie of IJNE UNEI. LINE INPUT 1 pralpl ; Idau from tic INPUTkeyboard.

rhvrul0~k3,ttih7gWith-fouua1

Fetch one chuaclo~F

MKEY 5from a key buffer. INKEYS -

Read a specifii F I.$numtcr of c“r:acIcn INwrS

INM (numb of chamclon)

from ti key buffer. *llllmwkd;ph

CS 226 (H)1 7 6

Page 6: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

:hSSitl.rtion

Function Raenod Abbnvi.word otim

Fonna~

Leyboud Enable 8 PF key inter. KEY ON K.ON KEYONQNll rupt.

Disable a PF key KEY OFF K.OFF KEYOFFinterrupt.

S$yr$em;mc& of ICETop KSTOP KEYSTOP

Jump to a rubroutim ON KEY GOSUB ’ [ dcrtmwon line numberspecified by a PF o&KI% ONK.Gos. k m rumbarkey interrupt.

drsttnatton line number

km nmbm

Specify the way rub. OPTION - OPTION BASE mmtmum vrlwscrrpr mmtmum vrlue. B A S E l YmeIk *rpnuuo

�mlmmuar☺ubOwI.

Doclrrcr an uny. DIM -

script 1, muimom value of submpt)) 1’-. l mub*rpmuion �-- ..--

Erase I specified army. ERASE - ERASE [ array ouw [ , array n.nw 1’ 1-_ .~-

aachtne Define the machtoe D E F U S R - DEFUSR [ number j - eanguagc Iongwge subroutiooekrcncc start addreas.

I chalvur or 0 - 9 r4Ymcnc orpnuun

- -

Cdt a mlfhinc USR F - USR [ number 1 ( sr8ument )IOI~U~C subroutine , cl)uac,s, “f 0 - 9 ““In~IIC OI Eb..ac‘.# ..prw(functions.

Calt *machine C A Llanguage rubroutioe

C A L L artdress, f :;m;;:...-!!’ ^--l*“*“l

(commimd).numeric cxpmuion

- i

- -numeric *xpmnw

I . owmcnt 1

D E F I N T - DEF INT . dumcrer [ - chamcter ]- -I-

D E F S N C - DEF SNG cherrtor [ - chuwtsr 1I clw~lu

1, cJuroctor [ , choroctor [ - chuoctor I 1’- -1 cburut

C S 2 2 6 (Ii) 177

Page 7: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

:1rrUti.otion

I1 I

I,

,,I,

/

’ Rewved Abbwi-Fun-tton 1 vo,d

riionFOmUl 1

DetineIhe data

IYPC of&ablerand “YPdefiiedfunctionsbyudndccharacter.

-doube D E F D B L - DBF DBL charrtor I- character ]ptccwon I chueclcrml ‘Ype [ , chuacter [ ) chur1er [ - character 1 I’- -

l uhurtu

extended- DEF FIN -prruirionrest type

dwacter DEFSTW - DEF STI chrnctcl [ - characl8r 1- -type F I churur

[ , chaucur ( , churtet [ - chuwter I 1’

I CtwYt41

Inte&cr CINT ’ - CINT ( ugutwtt j

‘Ype IlwMIK r.pnuue

Spcctly an~aude mods. ANGLE - ANGLE an@ specif icat ion l 0 : DEG

nuncnc orpnroion I : RADl.CRAD

y-t-Tngowmc .I ic :‘~xxtton TAN P -

(‘ax)- - - - -Inverse trigcmbtiehc ASN p -function (rkn”x)

lnverr trigonomcttic ii-- F -function (cQsL’t x)

TAN ( argument )l -1440. < auun~-: < ~40.

numeric *rpnuioa

ASN ( argument ) -90. s &SN(X) 5 90’

#NlmeRC *xp”Y)OII

d 5 ACS(X) 5 180.KS (argument )

nunlelic expreuiaa

lnvenc ttigonomcttic ,ATN F -function (tan’trj

Hyperbolic function HSN F -(itnh⌧)

Hcs F -

ATN ( wgument ) -9V~AlNoOJpQnunled rrpnubn

HSN ( aqunwnt j l lu#uwo11<230aurmlk uP�von

HCS ( qumenl ) l lyvau11<110

aumuk 8~pnut-1

178 CS 226 (H)

Page 8: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

:hutfi.rtion I Function

lZZ;mcd ]~$cwFu1llNt

IF

HTN -- HTN (argument )4nrhmetkiunctionr

-.

:harac:erlatanani-uiation

Hyperbolic function(tmh x)

lnvenc hyprbokfunction (smh”‘rj

lnverv hyprbolicfunction (corh”x)

lkxc hyperbolichncuon (twh”~)

A1IT (2ument ) * - 1 < u,um.at < I---.-“Yln~l* rnp~uwn

F -- LOG ( rryumcnt )l u < u‘uawol

““llwlk ..PW.l””

I.&T F - LGT t argument ) l o < u#yIIyut

“YnlDlK crprrswm

EXP ’ -. 1 EXP ( argument ) l ugumat < 230- -

Natural loganthmxfunctmn (lug u)

Common logari thmicfunction (log, Ok)

Exponenlid function

(6)

Convert 1 gven voiueInto an mteger.

INT INT ( argument )

““rn.5,K CXD,.T‘sm”

FIX FI - / FJX ( argumcn~ )Asumc the mlcprpart of P “WncrK vidue

FRAC b - FRAC ( argument )

numcrtc c”.;,euon

RANDOMIZE

CHHS I’/ -Ax h- - ASC ( character ,trmg )

char.cter cxpreuron

CS 2 2 6 (H) 179

Page 9: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

IJuiti-rtion

Function Fttdtwd Abbtwi-uiost

:hacter ConWt &tr into 6 STRS i -bta chmctrr strirt&.

STRS ( upunmt )uwlr rspvr(un

nmni~bulrtion Convert &tr intu I VAL F -

numcdc VJUC.VAL ( chuwtrr *rh( )

o&mclol upmdon

Fetchrchactrr WDS F -strhq.

YIW ( a4ulacrr atrbl$

dw.pctu rrpr*m)of churtcnj

lt;gr. chuactor YIDS - YIDS ( cbuackr vati&& antne,pa*cion,wmw* rwnwao

pmkr of churun) ) l chamctrr wing

mumwk rr~rw4w cllalaclu l pmwm

Fetch .I charactsr LEFTS F - LEFTS ( churtrr strtry. number of charwtrf~jstring from the leftof a spwikd choral.

ShamcWl ..plowu “YY(k 9m?m-

tcr strmn&

Fetch D chuasler RIGHTS -stnny fro;n Ihe right

WGHlS(chomctu str(ry, numbor uf charuten]- -

or a spcifiidF Ghuu’u( .‘~uu *“I.,* II?lemIw

charvctcr strm&

Specify the len@h LEN F -of * charact string.

LEN (chuactrr strin$

churtu upr*dJo---_

Specify the location INSTR F -of a character string.

1NSTR ([start position,) charactor slrlw I ,

mumark l rrwb~ ctwwu~ upnsw.churter string 2)Ghancur l plorlun

Specify a chwactorstring rcprcrntcdin hrxadecimll.

HEXS F - HEXS (wumcnt) ’ -32769<~6w~rK65556iaun.rlc .“-n

Specify 6 cllaracterstring rcprescntcdIn octal .

OCTS F - OCTS (argument) l -32769~~6um~W65556numwk uvnulon

Function Dotii a urr4cfixd DEFFN - DEFFN function name, [(dummyargumtn*Miiition function. d,,,pk character rbabk I I -

1, dummy qument]*) ] = cxpmuion

Uscrdeiiucd function. FN F - FN function nunc [(foal argument [ .I+

UplOSYiOD rrpossbn

wmcntr ) I

3ther Specify the rem~iw FREr

- FRE ( rxpmulon ) * nlw * by” MIJ’,Iunctions inp momoty bytcr.

180CS 226 (H)

Page 10: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

:larclti.:ation

ItherLnctionr

Error~roceuing

stattsticalp r o c e s s i n g

FWCIlOtl

._--

Assume the conte~llof e specified memorysddreo.

Write dau IO P rpeci-tied memory rddreu.

Input the content ofa specified 1/O port.

output data to Dspectfied l/O port.

-.___-Specify the addrevof a vannble.-__--.Define 1 desttnnltonto which control is lobe ~ranrferred if LIIerror occurs.

_ _ _ -__Return control froman error procewqroutme.

output an error COdL.

Output the hoe numGm whtch an error hasoccurred.

Cause the error of erpecilicd ctror code.-_--_Initialize the statisticalprocewng function.

-Input rtattsticnl data.

---~-Count the number ofstatIstica! data items.

Sum of X dzta.

Sum of \ data.- -

sum of squarer ot xdata.

Sum of squarer of Y-data.-. - --..-._sum of pr%Iuctr ofX data and i’ data._-_.___- .___Mean of X data._ _ ..__- -.-.- .--Mean of Y dct;l.--I_

-.-PEEK F --t

POKE -.-I-

O NERROR

- I -

i :GOT0

RESUHEI--I

ERR F -

---l--ERL F -

ERRORI -

--f-STAT -CLEAR

STAT --T_ _ -CNT F -

- -SLIMY2 1: -.I-t

_-- -SUMXY” -

tiGNx~ --..- -_ _-MEAN9 -

Formet

PEEK (eddrcn) ’ -31X9 < d40nu -Z (55%

nwa.* rlpnvlon

POKE eddress, data- -num.r* l rpnubn

* -32169 <ad&w < 65556O~bu<l56

INP (rddreu) ’ -31169 < &dmu .Z 65556

num.rlr.u(on

o u r 1ddrcu, data- -num.rir .rpr.riun

’ -31769 ‘ addmu < 65536Os&u<256

VARPTR (variable ttune)

ON ERRQR COT0 dertination line numbertu10 numb

RESUME

H

NEXTreturn line numbor

ho numb01 IIERR

ERL

ERROR error code

--STAT CLEAR

-START Xdute ( YdotuJ-*-“YIWK r.pr-n

CNT

suwx

SUMY

suMx2

SUHYZ

- - -SUMXY

H E A N X

MMNY

CS 226 (H)

Page 11: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

..-_ -__---- ---

-.--_ - __.- ---

--.--

l For the FY.1100 only.

OYU,lc r.prawm

‘23 2 2 6 (HI

Page 12: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

:lantfi-:atton

;raphrcr30tl1101

FUllCtNXl

Dfiplay a pant “1strqhc lttte (con.ttnuous dtrp1.y isporrtblc).

Reserved Abbrevr-word stiott

DRAW -DIUWC -

Dt,play I punt otstra(pht Ime by aspecrt’ied function.

Dtsplay a rectal&k QUAD -by a ,pectfied

QUADl(_X.U)l -(KS!)“um.r,e ..prcurun num,,,c .rp,.Ik,un

functton

(; [color code]v L~rprauo”

Dt&play a click bv ClltCLE -a rpcctfied fun&n.

CIRCLE (2, y, I tt+dttJrnwlwric ..pr.-

i. [color code] (

Kead a graphic pattern GET @tnto an uwy.l For the I:&1100 onlly.

- CET~(X,Y)-(X.Y).urlywnc“WnGc ..pGxn

Draplay a gtaphtc pat- PUT@ - P?JT@(X.Y)-(X,Y)tern on a spccifred

- -““lnnorlc ..pc;;w;;

posttmn

l FP-l,oooJy 1

?ntmr:0tltt0l

Speafy 2 rdo: code POINT POINT ( X-coordruate , Y-coordtnatc )for a spc-ctfied pomt. �Yrn.rlF l .pr.uton

Print P program. LUST LL. LLIST Istut ltnc number]Il”, ““mbr u -.-

11 -1 [end hnt number] ]* I,“, ““rnbw “I ‘I ..

Prmt a fileattribute.

LFILFS - LFILES [tile docrtptor]ch.rrclrr’.x,mWn

CS 226 (H) 183

Page 13: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

184 CS 226 (H)

Page 14: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

CbSSifi-Function

Random Albcatc charactervariables to I/Obuffers.

FIELD - FIELD (#I file number I vuiablc bwth““Yrk ..p.dlln

AS character variable name [ , artable bnrthulllpla ca”LI., mlbbh - “YHdc rqmnhm

AS character variable nune ] l

umpb C☺UIWUI vubbb amu

Read a record into GET -sn l/O buffer.

GET [W) file number [ I record number )��ml.,* l �p,- �rm�lcCiplwilM

Write I/O buffer data PUT -

Into a NC.PUT [#I NC number ( , record number (

nua.nc ..*- .ur.r* r.pr.u(ua

Input data r@t- RSET -lustitied inlo P variablespecified by a FIELDstatement.

Inputdata left.justifiad LSET -Into a variablespeatied by a FIELDrtstemcn1.

RSET character vuirblo nmrna l characterexpression

-

LSET character variable name = characterexprevlon

Converl a“umc”cvduc inloCh&XaClCrdata byspeciticdmtertulrcprcwn.tatton.

Cbnvert acharacterstringintcrnauyrepreaentecinto anumericvalue of aspecifiedtype.

integer MKIS F - MKi s (PI8U”Mt)

type num.rw ..p,*Yb”

single- MILS F - MKS s (argument)precision ..m~*ylonreal type

double . MKOSF - ht,‘D s (ar@Ul,COt)preasion nwn.tic ..prmdonreal type

extended. MKF S F - MWS (argument)prcasion nwnerlc ..pr*u,onreal type

integer CVI F - CVI (argument)

type c(wI‘,c, eIPmti.

C6 226 O-4 185

Page 15: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

Xa.sifi.xtion

FunctionReversed Abbrcvl-word stion

Fornut

Flkhandling

lnittie the medtum F O R M A T - FORMAT [file descriptor]of a specified devtce. chuacter cxprenion

Display the fk FILES - FILES (fde descriptor]attribute of arpectficd device.

character oxprcvlan

Erse a specified KILL - KILL (fde descriptor]

character crprc,,wn

Alter the name ofa me.

NAME - NAME old fide descriptor

chu,c,cr .“yrouKm

AS nsw Ne dcwrptor

L!h”rcl#r .“D,.Y*I”

ICI., ,rpn*a

AS fdo descriptor 2

SAVE -

ChYKUI .Xp,Culo”__--SAVE Ne descriptor ( , A ]

characwr cllprew”

LOAD - LOAD fde descriptor [ , R ]

character sxprerwn

Execute a loadedprogram.

RUN -

- - - . --.-.I Control the cassette MOTOR -

tape recorder moto:. / MoToR {gcF/

CS 226 (H)

Page 16: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

/IRrwrsed IAbbreui-1Functionword

-.-

Read data f rom Pspecified pack.____---

Output the contentsof an l/O buffer to aspeciricd pack.

latmn

/-

-

-

IFOl?lM

PACI

- -

PACO

PACI pockagenumkr , blocknumber““rn‘,k ..p,.Ylm

1

Give the number ofrcmaming clustcd ona specifiid pack.

-_Oulput the conlenlsof an l/O buffer to aspecified sectoron FDD.__-,-

Input the contents ofa specified YCIOI onFDD to an I/O buffer.

-Cwe the numberof rem:iinmg szclorson disk sheet.

Enable D communi~catroa Ihe iatcrrupt.----__

Disable communi-cation line izerrupt.

Suspend inter.rupls from com-mwucatton lures.-.-----____

Dcline a destinationIO which control isIO be transferredwhen an mtcrrupifrom cornmud-cation line lxxllli.

Output the conlentsof memory.

Alter the contents ofmemory.- -Transfer Ihe contentaof memory.- -Execute a machinelanguspc progmm.- -Return lo C,143ASIC.

Sequcntiauy alter thecontents of registers.---__-..

Output the contents 01menKHy to P cassettetape rcccrder.

Read data from a cwxdtc hap: recorder(nlo memory.

- -Y&F

DSKO

DSKI

DGKF

COM ON

- -

COM OFF

c4xdSTOP

DN COMGCSUB

DM

3M

yx

xl

BA

:R

iT

LT

-

-

-

-_-

-

-

-

-

-

Gas.

- -

-

-

-

-

-

-

-

-

PACOpackqe number , block number““.n.,k ..prwkm

PACF (package number)nwn*,k .xpr*uion

-DSKO drtve number , side number ,

nut.** *1prwhm

D!SKl drive number , ddc number ,““mwlc *arrruluu

track numb& , sector number““mdc ..pnulo.

DSKF (draw number)“uurk ..PI.Y*)”

COY QN

COU OFF

COW STOP

O N COM COSUB[destinrtiot8 bnc number] 1 , (destinrllon line

ih numkr

da11 rddnv 1, md rddrru ]

--

--&d SIU( addms , end addrcu. lrrarfor rdddrou

co [Siarl rddmj

UA

CR

ST aut oddma ond oddrow

L T

CS 226 (Ii) 187

Page 17: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

ERROR CODES TABLE

I 011 Groc out ofMemory Hcmoty overflow or system ttack ovrrllow.

2 SN Error SynIJx error A command 0, ,titetmnt hu an .r,or ut itafotmJt.

3 IE Error Itttemd error Sysum internal error. such u aa error durla(main-sub data transfer.

4 ST Error string e,,or No mow character are. iv available or the lrn@hof. chmcur ctrq exceeded 255 chuacterc.

*5 TC Ersor Too Comp&x enor An expreasiott iI sxcenivcly complex.

6 BV Error Buffot overflow l/O buffer ovortlow.

7 NR Error lhvtcc not Ready I/O device not reedy for Input or output.

8 RW Error Read Writa error An Orlo, La l/O dovtco opmtion.

9 BD Error Bad Drive Number An tncorrcc~ drtvr wu rpd(ird.

10 FN Error Bad File Name An incorrect fdo tume wu spcctfkd.

I1 BN Error Bad File Number The ~-UC number of an unoptted tlle tv” uwd.

1 2 NF Error File NOI Found A ape&id file tutw u not found.

1 3 TS Error Bad Track/Sector &I bcmoct trui/uctw numbor wu spocifud.

1 4 FL Error Duk or Pack Full An rttmpc wal made to vd1r dAta h.utuvlllu

rbbdhkorRAhtpck#pca.

15 OV Gror Over Flow eiro, The rcaul1 of operltkut of lh4 valw of input data

exceeded tbc allow&la rw.

1 6 MA Error Divicton by 7x10mathematical error

A m~them~ti cnor. such u divbhxt by 0.

1 7 DD Error Duplicate De&titian An attempt was made to doubly dellnc utidonti umy w uwdefiid funcuon.

1 8 BS Error Bad Sibrtipt The subrtipt of an array cxcccds the allowableRngc.

1 9 FC Error

2 0 UL Error

Illeg~I Function Call A functiott or rtatemettt wa impropotly called.

;indciiicd Line Number A line number spccif=d by CDTO. CDSUB, etc.,does not exist or. specifii PROG ata hat not

yet boon defmed.

2 1 MO error bliutttg Operand A required parameter i not defmed in the atate-nunt.

2 2 TU Error Type btianutch The variable typer In an expreuion (loft side,ri&t ride, function argument, etc.) do notNtch.

2 3 RE Error Resume Witltout cnor A RESUME ttatcment was encountered ovenwhen control wu not tmttrlerrod to ati etrorp1caaittg wnttino.

CS 226 (H)

Page 18: CS 226 (H) 171 - old-book.ru.ac.thold-book.ru.ac.th/e-book/c/CS226(H)/cs226(h)-supplement2.pdf · 3ND XOP--XITO--IF - THEN _ EM rbbrcvc ltlon IL.-----z. Los. RET.-I: G. - Format-VARLIST

2 4

23

2 6

2 7

2 8

2 9

3 0

3 1

3 2

3 3

3 4

35

3 6 FIELD Error

3 7

3 8

3 9

~4dt

25s

PR Error I

CONT error

DATA Error

FOR Error

NEXT Error

WHILE Error

WEND Error

GOSUB Error

USR Error

FN Error

FORMAT Error

MOUNT Error

NAME Error

OPEN Error

PASS Error

-----I??

PRotected errot

CM’1 C0n1tttue

Next withwl For

For wthout Ncrc

Wend without Wkib

While without Wend

Return wtthout Cosub

Undetiid User Function

Undcfiied Functlcn

.I-_-Lkprmtable Etfor

Attrll8nlptwuma&tewtiUduainapfc#uto, n* wtttctt ia write-ptotcted by ?Ass. rrrss-u& SET. WIU pf0ucl0ul& l lc.

Progmttt rxccutioa canttol k tnuntad b y tlu

C O N T command (ptntttac vaht@ & b u t t &-

sttoyed).

A READ statement v u ex8cuted 10 nd ooo

exblont &la.

Thrrr b no NEXT ~umd asaciWd mtb oFOR btatmwtt.

Therm b no WHlk cutaway -tad with aWEND aaanent.

There is no WEND statement assoclaud wilh

the WfllLE mxmwtt.

A GOSUB is not proprly associated with a

RETURN (A RETURN statement WN encourrtetcd while it was not called by 8 GOSUB state-

mat).

An undefti USR function was&d.

The FN function is undefmd.

A medium has not berr: Ftirmatted ot ita fonttat

has been destroyed.

A n are. cxodlng 2 5 6 byres wu specifiwd in a

FIELD statement.

A fdc twme ot fde descriptor has been incot-

rally specltkd.

AII rttampt WL) mada to toference ut unopetted

No of to open ut already opened No.

WhBr PASS or PASS ALL b utrbgwd. ut

rtlcmpl wu mada lo rxecuta 1 comntattd, wch

u LIST, or ut Inuuwct purword wu ratorad.

Erron wltou WtO‘ nmugo. hrw n o t b u t

daflncd.

CS 226 (HI 1 8 9