.. L------------!---!----!-------------------------------------------------------!--!----------------------------------R .mt 2 .mb 3 .pl66 ** RA ** .po 8 .pc60 ** RA ** .he MBASIÃ COMMANDS¬ STATEMENTÓ ANÄ FUNCTIONS COMMAND EXPLANATION FORMAT ABS Returnó thå absolutå (signless© valuå oæ aî expression® ABÓ () ASC Returnó thå ASCIÉ valuå oæ thå firsô characteò oæ thå string® Numeriã expressioî oò nulì strinç returnó              aî ERROR® Thå "opposite¢ oæ CHR$()® ASÃ () ATN Returnó thå arã tangenô oæ thå expression¬ evaluateä iî radians® ATÎ () AUTO Automaticallù generateó thå nexô linå numbeò afteò á ®  Defaultº  starô aô linå 10¬  anä incremenô              thå linå numbeò bù 10® AUTÏ 100¬ useó thå lasô incremenô given® AUTÏ [linå noÝ [¬ [increment]] CALL Calló aî assemblù languagå subroutine® ] CDBÌ Convertó ) CHAIN Transferó  controì anä theî passeó variableó tï thå prograí ®  ] [,ALLÝ [,DELETÅ ] CHR$  Convertó  ) CINÔ Á "rounding¢ versioî oæ INT()¬ i.e® CINT(9.6© ió 10® CINÔ () CLEAR Zeroó numeriã variableó anä setó strinç variableó tï null®  Ý [,]] CLOSE Closeó  disã  files®  Iæ onlù CLOSÅ ió used¬  alì fileó arå closeä (aó alsï happenó wheî ENÄ oò NE×  ió              met)®  Wheî [#]]] COMMON Specifieó simplå anä subscripteä variableó kepô iî á commoî areá oæ memorù wheî usinç CHAIN® Puô COMMOÎ              statementó aô thå starô oæ thå program®  Arrayó havå (© afteò thå name®  Á variablå caî onlù bå iî onå              COMMON® COMMOÎ CONT Continueó executioî oæ á prograí afteò iô haó beeî stoppeä witè ^Ã oò á STOÐ statement®  Iæ thå stoð ió              duå tï aî erroò iî thå code¬ CONÔ won't® CONT COÓ Returnó á reaì numbeò aó thå cosinå oæ ¬ iî radians® COÓ () CSNÇ Convertó ) CVD CVI CVS Convertó á strinç tï á number:               CVÄ 8-byte-lonç strinç tï doublå precision® CVÄ (<8-bytå str>)                  CVÉ 2-byte-lonç strinç tï integer® CVÉ (<2-bytå str>)                  CVÓ 4-byte-lonç strinç tï singlå precision® CVÓ (<4-bytå str>) DATA Holdó mumeriã anä strinç variableó iî anù order¬  separateä bù commaó tï bå READ® Thå ordeò musô bå thå              samå  aó  iî thå REAÄ statements®  Stringó witè leadinç oò trailinç spaces¬  commaó oò colonó  musô  bå              encloseä iî brackets® DATÁ DELETE Deleteó prograí lines® Uså oæ thå - ió similaò tï LISÔ anä ][-][] DEF var type Alì variableó whoså nameó starô witè á letteò iî thå range(s© giveî wilì bå oæ thå typå DEFineä unlesó              over-riddeî bù á typå declaratioî character®  Non-DEFineä variableó arå assumeä tï bå SNG®  Typeó areº              DBL¬ INT¬ SNG¬ STR® DEF DEF FN Defineó  á user-writteî strinç oò numeriã function®  Itó namå ió á valiä variablå namå prefaceä  bù  FÎ              (e.g®  FNÁ  oò FNA$)®  )]= DEF USR Giveó thå addresó oæ aî assemblù languagå subroutine®  Ý ½ DIM Allocateó storagå foò arrayó anä strings¬  anä defineó thå uppeò limiô foò eacè dimension®  Thå defaulô              foò non-DIMeä arrayó ió 10® Thå loweò limiô ió ° foò numeriã arrayó (unlesó OPTIOÎ BASÅ ± ió used)¬ anä              ± foò strinç arrays® DIÍ .pa ŠCOMMAND“ EXPLANATION FORMAT EDIT Ediô thå linå specified®  ^Á enteró ediô modå wheî enterinç á linå (¡  oî á ne÷ line)®  Á syntaø  erroò              founä whilsô runninç á prograí putó yoõ intï ediô modå foò thå linå iî whicè thå erroò waó found.              Ediô modå commandó areº EDIÔ Leave Insert mode. n Move the cursor n characters right. n<- or n^H Movå thå cursoò î characteró lefô (destructivelù iî inserô mode). ) ERASE "Un-DIMs¢ thå specifieä arrayó readù foò á REDIM® ERASÅ ERL ERR Useä  iî  error-handlinç subroutines®  ERÌ wilì holä á linå number¬  anä ERÒ aî erroò  code®  Botè  arå              reserveä variables¬ anä cannoô bå writteî to® IÆ ERÌ ½ EXP Returnó thå valuå oæ thå constanô raiseä tï thå poweò oæ thå argumenô aó á reaì number. EXÐ () FIELD Allocateó  variablå  spacå  iî  á randoí accesó filå buffer¬  anä musô occuò beforå  usinç  PUÔ  oò  GEÔ              statementó foò thaô file®  Thå numbeò oæ characteró reserveä iî thå buffeò foò ® Multiplå FIELÄ statementó caî bå executeä foò onå file¬ buô ¬ , AÓ FILES Thå MBASIÃ equivalenô oæ thå CP/Í DIÒ command¬ witè thå samå wild-carä conventions. FILEÓ [] FIX Returnó thå integeò portioî oæ ) FOR Setó uð á FOÒ ..® NEXÔ loop® ®  STEÐ defaulô ió 1®  FOÒ loopó maù bå nesteä tï anù depth¬  aó lonç aó eacè looð              haó itó owî ® Seå alsï NEXT® FOÒ = [STEÐ ] FRE Forceó  garbagå collectioî anä returnó thå numbeò oæ byteó oæ memorù iî thå freå storagå areá aó á  reaì              number® Freå memorù maù bå iî twï oò morå separatå blocks® Dummù parameter. FRÅ ([0Ý []) GET Readó á randoí accesó filå recorä intï á buffeò foò lateò accesó bù aî INPUT£ oò LINÅ INPUT¤  statement®              Iæ [,] GOSUB Directó executioî tï á subroutinå startinç aô ®  Subroutineó maù bå calleä froí anywherå (eveî              withiî anotheò subroutine)¬  froí manù placeó anä maù bå nesteä aó faò aó memorù allows® Uså GOTO¬ STOÐ              oò ENÄ beforå iô tï stoð iô beinç accidentlù executed® Seå RETURN. GOSUÂ ŠCOMMAND EXPLANATION FORMAT GOTÏ Prograí executioî ió brancheä tï thå firsô executablå statemenô afteò . GOTÏ HEX$ Convertó ) IF Brancheó prograí executioî accordinç tï ®  Iæ | Eitheò maù bå followeä byº [ELSÅ ] INKEY$ Returnó  á one-characteò strinç correspondinç tï á keù oò á nulì strinç iæ nï keù  ió  pressed®  INKEY¤              wilì  pasó alì characteró excepô ^Ã tï thå program®  Tï waiô foò á singlå characteò tï bå  input¬  useº              10° I¤ ½ INKEY¤ º IÆ I¤ ½ "¢ THEÎ 10° INKEY$ INÐ Returnó aî integeò (° - 255© aó thå inpuô froí I/Ï porô ® INÐ () INPUT Promptó foò inpuô froí thå keyboard®  © oò á  commá  (suppresseó  it)®  Thå              optionaì  semi-coloî afteò INPUÔ supresseó thå linå feeä generateä bù thå ";|,Ý INPUT# Readó  datá froí á disã anä assignó iô tï thå variableó iî ®  Itemó shoulä bå storeä  iî  thå              filå  aó iæ theù haä comå froí thå keyboard®  Filå iteí delimiteró  areº  space¬  ¬  ¬  comma®              Strinç itemó containinç anù oæ theså shoulä bå encloseä iî ""®  Maø datá iteí lengtè ió 25µ characters®              Iæ EOÆ ió meô durinç aî INPUT#¬ thå item(s© arå ignored® INPUT£ ¬ INPUT$ Á  "lonç  INKEY$"®  Acceptó  î  characteró froí thå keyboarä (oò disã filå iæ  thaô  optioî  ió  used)®              Characteró froí thå keyboarä arå noô echoed® Alì characteró excepô ^Ã arå passeä tï thå program. INPUT¤ (n)[¬ #] INSTR Searcheó ® . ° - iæ , INT Returnó thå integeò portioî oæ ®  Iæ thió ió real¬  iô ió converteä tï integer¬  theî bacë  tï              reaì again® INÔ () KILL Deleteó  á closeä filå froí disc®  Iæ thå filå ió open¬  á "Filå alreadù open¢ erroò messagå ió  given®              " LEFT$ Returnó  thå leftmosô ®  Iæ ¬              thå wholå oæ ¬ ) LEÎ Returnó thå numbeò oæ characteró iî ¬ ° iæ á nulì string® LEÎ () LEÔ Assignó thå valuå oæ aî expressioî tï á variable® Optional® [LETÝ LINE INPUT Inputó uð tï 25´ characteró froí thå keyboarä iî á similaò waù tï INPUT. LINÅ INPUT[;Ý [""], LINE INPUT# Inputó  uð  tï 25´ characteró froí á sequentiaì disã filå similarlù tï INPUT#¬  excepô thaô  thå  recorä              delimiteò ió ® LINÅ INPUT£ ¬ LIST LLIST Listó thå specifieä prograí lineó oî thå screeî (LIST© oò thå printeò (LLIST). LISÔ [[][[-][]]] LLISÔ [[][[-][]]] LOAD Loadó [¬ R] LOC Showó thå nexô sequentiaì recorä (randoí accesó file)» or¬ (sequentiaì file)¬ thå numbeò oæ sectoró reaä              froí oò writteî tï sincå LOCó lasô call® LOÃ () ŠCOMMAND EXPLANATION FORMAT LOG Returnó thå naturaì logarithí oæ ® Iæ thió ió zerï oò negative¬ aî erroò ió returned. LOÇ () LPOS Returnó  thå logicaì positioî oæ thå prinô heaä iî thå printeò buffer¬  whicè doeó noô necessarilù  givå              thå physicaì postioî oæ thå prinô head® LPOÓ () LPRINT Exactlù thå samå aó foò PRINÔ [USING]¬ excepô thaô thå outpuô goeó tï thå printeò insteaä oæ thå screen®              Á linå lengtè oæ 13² columnó ió assumed® LPRINÔ [USINÇ Ý [printlist] LSEÔ Left-justifieó á string® Seå RSET® LSEÔ = MERGE Combineó á prograí oî disã (saveä witè ,A© witè thå prograí iî memory® Wherå linå numberó over-lap¬ thå              prograí iî memorù haó itó lineó overlaid® MERGÅ "[d:]" MID$ Accesseó characteró iî thå middlå oæ á string® Iô caî bå useä iî twï ways:              (1) Returnó î characters¬ startinç witè thå ¬ [¬ n]) (2©  Tï replacå characteró withiî á string¬  startinç aô thå mtè characteò witè characteró froí  ®              n¬  iæ  present¬  signifieó  thå numbeò oæ characteró tï bå replaced¬  whicè maù neveò bå morå thaî  thå              lengtè oæ ® Exampleº MID$(A$¬ 4¬ 4© ½ "Help¢ MID¤ (¬ m[¬ n])Û ½ ] MKD¤ MKI¤ MKS¤ Convertó á numbeò tï á string: MKD$º doublå precisioî numbeò tï aî 8-bytå string® MKD¤ () MKI$º integeò numbeò tï aî 2-bytå string® MKI¤ () MKS$º singlå precisioî numbeò tï aî 4-bytå string® MKS¤ () NAME Renameó  á  disã filå oæ anù type¬  wherå " NEW Deleteó alì variableó anä clearó memory¬  returninç tï thå MBASIÃ commanä level® Seå BOOÇ ² foò whaô tï              dï iæ yoõ shouldn'ô have¡ NEW NEXT Markó  thå enä oæ thå statementó forminç thå looð seô uð witè á FOÒ statement®  Iæ OCT¤ Returnó thå octaì equivalenô oæ ¬ whicè ió firsô converteä tï integer. OCT¤ () ON ... GOTO Directó prograí executioî tï thå tè linå numbeò iî ¬  eitheò aó á brancè (GOTO© oò  á ON ... GOSUB subroutinå (GOSUB)®  ¬ thå nexô valiä statemenô              ió executed® Iæ ON ERROR GOTO Executeó aî erroò handlinç subroutine¬  aô ¬ wheî aî erroò ió met® Substitutinç ° foò OPEN Allowó  I/Ï operationó oî ®  ¬  buô thoså OPENeä aó "O¢ maù onlù havå one®              ",[#],] OPTIOÎ BASÅ Setó thå minimuí valuå foò á numeriã arraù aó ° oò ± (Defaulô ió 0)® Strinç arrayó alwayó starô aô 1. OPTIOÎ BASÅ ± ü 0 OUT Outputó  á specifiã bytå oæ datá tï á hardwarå O/Ð port®  ¬ PEEË Returnó thå contentó oæ addresó ® Foò addresseó greateò thaî 32767¬ uså hexadecimal. PEEË POKE Writeó á specifiã bytå oæ datá tï aî addresó iî memory®  ¬