CINXE.COM
MBASIC - Wikipedia
<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>MBASIC - Wikipedia</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-enabled skin-theme-clientpref-day vector-sticky-header-enabled vector-toc-available";var cookie=document.cookie.match(/(?:^|; )enwikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat":"dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"1b1f617f-63f2-4855-b96e-bf67bb964b16","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"MBASIC","wgTitle":"MBASIC","wgCurRevisionId":1274897107,"wgRevisionId":1274897107,"wgArticleId":1195349,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Articles with short description","Short description is different from Wikidata","CP/M software","Discontinued Microsoft BASICs","BASIC programming language family","Microsoft programming languages"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"MBASIC","wgRelevantArticleId":1195349,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"wikipedia","wgCiteReferencePreviewsActive":false,"wgFlaggedRevsParams":{"tags":{"status":{"levels":1}}},"wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgPopupsFlags":0,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":10000,"wgEditSubmitButtonLabelPublish":true,"wgULSPosition":"interlanguage","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgWikibaseItemId":"Q623610","wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList","mobile","model","platform","platformVersion"],"GEHomepageSuggestedEditsEnableTopics":true,"wgGETopicsMatchModeEnabled":false,"wgGEStructuredTaskRejectionReasonTextInputEnabled":false,"wgGELevelingUpEnabledForUser":false}; RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.cite.styles":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","jquery.makeCollapsible.styles":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.interlanguage":"ready","wikibase.client.init":"ready"};RLPAGEMODULES=["ext.cite.ux-enhancements","mediawiki.page.media","site","mediawiki.page.ready","jquery.makeCollapsible","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp","ext.gadget.ReferenceTooltips","ext.gadget.switcher","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.popups","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.cx.eventlogging.campaigns","ext.cx.uls.quick.actions","wikibase.client.vector-2022","ext.checkUser.clientHints","ext.growthExperiments.SuggestedEditSession"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&modules=ext.cite.styles%7Cext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cjquery.makeCollapsible.styles%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&only=styles&skin=vector-2022"> <script async="" src="/w/load.php?lang=en&modules=startup&only=scripts&raw=1&skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&modules=site.styles&only=styles&skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.20"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="MBASIC - Wikipedia"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//en.m.wikipedia.org/wiki/MBASIC"> <link rel="alternate" type="application/x-wiki" title="Edit this page" href="/w/index.php?title=MBASIC&action=edit"> <link rel="apple-touch-icon" href="/static/apple-touch/wikipedia.png"> <link rel="icon" href="/static/favicon/wikipedia.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Wikipedia (en)"> <link rel="EditURI" type="application/rsd+xml" href="//en.wikipedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://en.wikipedia.org/wiki/MBASIC"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en"> <link rel="alternate" type="application/atom+xml" title="Wikipedia Atom feed" href="/w/index.php?title=Special:RecentChanges&feed=atom"> <link rel="dns-prefetch" href="//meta.wikimedia.org" /> <link rel="dns-prefetch" href="login.wikimedia.org"> </head> <body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-MBASIC rootpage-MBASIC skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" title="Main menu" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-contents" class="mw-list-item"><a href="/wiki/Wikipedia:Contents" title="Guides to browsing Wikipedia"><span>Contents</span></a></li><li id="n-currentevents" class="mw-list-item"><a href="/wiki/Portal:Current_events" title="Articles related to current events"><span>Current events</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Visit a randomly selected article [x]" accesskey="x"><span>Random article</span></a></li><li id="n-aboutsite" class="mw-list-item"><a href="/wiki/Wikipedia:About" title="Learn about Wikipedia and how it works"><span>About Wikipedia</span></a></li><li id="n-contactpage" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us" title="How to contact Wikipedia"><span>Contact us</span></a></li> </ul> </div> </div> <div id="p-interaction" class="vector-menu mw-portlet mw-portlet-interaction" > <div class="vector-menu-heading"> Contribute </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-help" class="mw-list-item"><a href="/wiki/Help:Contents" title="Guidance on how to use and edit Wikipedia"><span>Help</span></a></li><li id="n-introduction" class="mw-list-item"><a href="/wiki/Help:Introduction" title="Learn how to edit Wikipedia"><span>Learn to edit</span></a></li><li id="n-portal" class="mw-list-item"><a href="/wiki/Wikipedia:Community_portal" title="The hub for editors"><span>Community portal</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes to Wikipedia [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-upload" class="mw-list-item"><a href="/wiki/Wikipedia:File_upload_wizard" title="Add images or other media for use on Wikipedia"><span>Upload file</span></a></li><li id="n-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages"><span>Special pages</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/wikipedia.png" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikipedia" src="/static/images/mobile/copyright/wikipedia-wordmark-en.svg" style="width: 7.5em; height: 1.125em;"> <img class="mw-logo-tagline" alt="The Free Encyclopedia" src="/static/images/mobile/copyright/wikipedia-tagline-en.svg" width="117" height="13" style="width: 7.3125em; height: 0.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Wikipedia [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia" aria-label="Search Wikipedia" autocapitalize="sentences" title="Search Wikipedia [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page's font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&returnto=MBASIC" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&returnto=MBASIC" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out" title="Log in and more options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="https://donate.wikimedia.org/?wmf_source=donate&wmf_medium=sidebar&wmf_campaign=en.wikipedia.org&uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&returnto=MBASIC" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&returnto=MBASIC" title="You're encouraged to log in; however, it's not mandatory. [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> <div id="p-user-menu-anon-editor" class="vector-menu mw-portlet mw-portlet-user-menu-anon-editor" > <div class="vector-menu-heading"> Pages for logged out editors <a href="/wiki/Help:Introduction" aria-label="Learn more about editing"><span>learn more</span></a> </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-anoncontribs" class="mw-list-item"><a href="/wiki/Special:MyContributions" title="A list of edits made from this IP address [y]" accesskey="y"><span>Contributions</span></a></li><li id="pt-anontalk" class="mw-list-item"><a href="/wiki/Special:MyTalk" title="Discussion about edits from this IP address [n]" accesskey="n"><span>Talk</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">(Top)</div> </a> </li> <li id="toc-Environment" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Environment"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Environment</span> </div> </a> <ul id="toc-Environment-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Features" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Features"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Features</span> </div> </a> <button aria-controls="toc-Features-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Features subsection</span> </button> <ul id="toc-Features-sublist" class="vector-toc-list"> <li id="toc-Language_system" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Language_system"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.1</span> <span>Language system</span> </div> </a> <ul id="toc-Language_system-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Files_and_input/output" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Files_and_input/output"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.2</span> <span>Files and input/output</span> </div> </a> <ul id="toc-Files_and_input/output-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Variables_and_data_types" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Variables_and_data_types"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.3</span> <span>Variables and data types</span> </div> </a> <ul id="toc-Variables_and_data_types-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Program_flow_control" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Program_flow_control"> <div class="vector-toc-text"> <span class="vector-toc-numb">2.4</span> <span>Program flow control</span> </div> </a> <ul id="toc-Program_flow_control-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-PEEKs,_POKEs,_and_user_functions" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#PEEKs,_POKEs,_and_user_functions"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>PEEKs, POKEs, and user functions</span> </div> </a> <ul id="toc-PEEKs,_POKEs,_and_user_functions-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Successors_to_MBASIC" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Successors_to_MBASIC"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Successors to MBASIC</span> </div> </a> <ul id="toc-Successors_to_MBASIC-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-BASCOM" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#BASCOM"> <div class="vector-toc-text"> <span class="vector-toc-numb">5</span> <span>BASCOM</span> </div> </a> <ul id="toc-BASCOM-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Importance_of_MBASIC" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Importance_of_MBASIC"> <div class="vector-toc-text"> <span class="vector-toc-numb">6</span> <span>Importance of MBASIC</span> </div> </a> <ul id="toc-Importance_of_MBASIC-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Other_uses" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Other_uses"> <div class="vector-toc-text"> <span class="vector-toc-numb">7</span> <span>Other uses</span> </div> </a> <ul id="toc-Other_uses-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-References" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#References"> <div class="vector-toc-text"> <span class="vector-toc-numb">8</span> <span>References</span> </div> </a> <ul id="toc-References-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" title="Table of Contents" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">MBASIC</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="Go to an article in another language. Available in 5 languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-5" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">5 languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li class="interlanguage-link interwiki-de mw-list-item"><a href="https://de.wikipedia.org/wiki/MBASIC" title="MBASIC – German" lang="de" hreflang="de" data-title="MBASIC" data-language-autonym="Deutsch" data-language-local-name="German" class="interlanguage-link-target"><span>Deutsch</span></a></li><li class="interlanguage-link interwiki-fa mw-list-item"><a href="https://fa.wikipedia.org/wiki/%D8%A7%D9%85_%D8%A8%DB%8C%D8%B3%DB%8C%DA%A9" title="ام بیسیک – Persian" lang="fa" hreflang="fa" data-title="ام بیسیک" data-language-autonym="فارسی" data-language-local-name="Persian" class="interlanguage-link-target"><span>فارسی</span></a></li><li class="interlanguage-link interwiki-it mw-list-item"><a href="https://it.wikipedia.org/wiki/MBASIC" title="MBASIC – Italian" lang="it" hreflang="it" data-title="MBASIC" data-language-autonym="Italiano" data-language-local-name="Italian" class="interlanguage-link-target"><span>Italiano</span></a></li><li class="interlanguage-link interwiki-ja mw-list-item"><a href="https://ja.wikipedia.org/wiki/MBASIC" title="MBASIC – Japanese" lang="ja" hreflang="ja" data-title="MBASIC" data-language-autonym="日本語" data-language-local-name="Japanese" class="interlanguage-link-target"><span>日本語</span></a></li><li class="interlanguage-link interwiki-ru mw-list-item"><a href="https://ru.wikipedia.org/wiki/MBASIC" title="MBASIC – Russian" lang="ru" hreflang="ru" data-title="MBASIC" data-language-autonym="Русский" data-language-local-name="Russian" class="interlanguage-link-target"><span>Русский</span></a></li> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-edit wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q623610#sitelinks-wikipedia" title="Edit interlanguage links" class="wbc-editpage">Edit links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/MBASIC" title="View the content page [c]" accesskey="c"><span>Article</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:MBASIC" rel="discussion" title="Discuss improvements to the content page [t]" accesskey="t"><span>Talk</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/MBASIC"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=MBASIC&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=MBASIC&action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/MBASIC"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=MBASIC&action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=MBASIC&action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/MBASIC" title="List of all English Wikipedia pages containing links to this page [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/MBASIC" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-upload" class="mw-list-item"><a href="//en.wikipedia.org/wiki/Wikipedia:File_Upload_Wizard" title="Upload files [u]" accesskey="u"><span>Upload file</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=MBASIC&oldid=1274897107" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=MBASIC&action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&page=MBASIC&id=1274897107&wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMBASIC"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FMBASIC"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&page=MBASIC&action=show-download-screen" title="Download this page as a PDF file"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=MBASIC&printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-wikibase" class="wb-otherproject-link wb-otherproject-wikibase-dataitem mw-list-item"><a href="https://www.wikidata.org/wiki/Special:EntityPage/Q623610" title="Structured data on this page hosted by Wikidata [g]" accesskey="g"><span>Wikidata item</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> </div> <div id="siteSub" class="noprint">From Wikipedia, the free encyclopedia</div> </div> <div id="contentSub"><div id="mw-content-subtitle"></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="shortdescription nomobile noexcerpt noprint searchaux" style="display:none">Dialect of the BASIC programming language</div> <style data-mw-deduplicate="TemplateStyles:r1257001546">.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme) div:not(.notheme){background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table tr{display:table-row!important}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}</style><table class="infobox vevent"><caption class="infobox-title summary">MBASIC</caption><tbody><tr><th scope="row" class="infobox-label"><a href="/wiki/Programming_paradigm" title="Programming paradigm">Paradigm</a></th><td class="infobox-data"><a href="/wiki/Imperative_programming" title="Imperative programming">imperative</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Software_design" title="Software design">Designed by</a></th><td class="infobox-data"><a href="/wiki/Microsoft" title="Microsoft">Microsoft</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Software_developer" class="mw-redirect" title="Software developer">Developer</a></th><td class="infobox-data organiser"><a href="/wiki/Microsoft" title="Microsoft">Microsoft</a></td></tr><tr><th scope="row" class="infobox-label"><a href="/wiki/Operating_system" title="Operating system">OS</a></th><td class="infobox-data"><a href="/wiki/CP/M" title="CP/M">CP/M</a></td></tr><tr><th scope="row" class="infobox-label">Website</th><td class="infobox-data"><span class="url"><a rel="nofollow" class="external text" href="http://www.microsoft.com">www<wbr />.microsoft<wbr />.com</a></span></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #eee;">Influenced by</th></tr><tr><td colspan="2" class="infobox-full-data"><a href="/wiki/BASIC" title="BASIC">BASIC</a></td></tr></tbody></table> <p><b>MBASIC</b> is the <a href="/wiki/Microsoft_BASIC" title="Microsoft BASIC"><b>M</b>icrosoft <b>BASIC</b></a> implementation of <a href="/wiki/BASIC" title="BASIC">BASIC</a> for the <a href="/wiki/CP/M" title="CP/M">CP/M</a> operating system. MBASIC is a descendant of the original <a href="/wiki/Altair_BASIC" title="Altair BASIC">Altair BASIC</a> interpreters that were among Microsoft's first products. MBASIC was one of the two versions of BASIC bundled with the <a href="/wiki/Osborne_1" title="Osborne 1">Osborne 1</a> computer. The name "MBASIC" is derived from the disk file name MBASIC.COM of the BASIC interpreter. MBASIC, like its predecessor family of 8-bit interpreters <a href="/wiki/Microsoft_BASIC" title="Microsoft BASIC">Microsoft BASIC</a>, were heavily inspired by <a href="/wiki/Digital_Equipment_Corporation" title="Digital Equipment Corporation">Digital Equipment Corporation</a> <a href="/wiki/PDP-10" title="PDP-10">PDP-10</a>'s <a href="/wiki/BASIC-PLUS" title="BASIC-PLUS">BASIC-PLUS</a>. </p> <meta property="mw:PageProp/toc" /> <div class="mw-heading mw-heading2"><h2 id="Environment">Environment</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=1" title="Edit section: Environment"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <figure class="mw-default-size" typeof="mw:File/Thumb"><a href="/wiki/File:MBasic_5.21.jpg" class="mw-file-description"><img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/17/MBasic_5.21.jpg/220px-MBasic_5.21.jpg" decoding="async" width="220" height="164" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/17/MBasic_5.21.jpg/330px-MBasic_5.21.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/17/MBasic_5.21.jpg/440px-MBasic_5.21.jpg 2x" data-file-width="2692" data-file-height="2008" /></a><figcaption>MBasic 5.21 running on a Z80 CP/M system displayed on a monochrome monitor typical for that time</figcaption></figure> <p>MBASIC version 5 required a CP/M system with at least 28 KB of <a href="/wiki/Random-access_memory" title="Random-access memory">random-access memory</a> (RAM) and at least one diskette drive. </p><p>Unlike versions of <a href="/wiki/Microsoft_BASIC-80" class="mw-redirect" title="Microsoft BASIC-80">Microsoft BASIC-80</a> that were customized by <a href="/wiki/Home_computer" title="Home computer">home computer</a> manufacturers to use the particular hardware features of the computer, MBASIC relied only on the CP/M operating system calls for all input and output. Only the CP/M console (screen and keyboard), <a href="/wiki/Line_printer" title="Line printer">line printer</a>, and disk devices were available. </p><p>MBASIC in the uncustomized form had no functions for <a href="/wiki/Computer_graphics" title="Computer graphics">graphics</a>, color, joysticks, mice, <a href="/wiki/Serial_port" title="Serial port">serial communications</a>, <a href="/wiki/Ethernet" title="Ethernet">networking</a>, sound, or even a <a href="/wiki/Real-time_clock" title="Real-time clock">real-time clock</a> function. MBASIC did not fully support the features of the host CP/M operating system, for example, it did not support CP/M's user areas for organizing files on a diskette. Since CP/M systems were typically single-user and stand alone, there was no provision for file or record locking, or any form of <a href="/wiki/Computer_multitasking" title="Computer multitasking">multitasking</a>. Apart from these limitations, MBASIC was considered at the time to be a powerful and useful implementation of BASIC. </p> <div class="mw-heading mw-heading2"><h2 id="Features">Features</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=2" title="Edit section: Features"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="mw-heading mw-heading3"><h3 id="Language_system">Language system</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=3" title="Edit section: Language system"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>MBASIC is an <a href="/wiki/BASIC_interpreter" title="BASIC interpreter">interpreter</a>. Program source text was stored in memory in tokenized form, with BASIC keywords replaced by one-byte tokens which saved memory space and speeded execution. Any line prefixed with a line number was stored as program text; BASIC statements not prefixed with a line number were executed immediately as commands. Programs could be listed on the screen for editing, or saved to disk in either a <a href="/wiki/Data_compression" title="Data compression">compressed</a> binary format or as plain <a href="/wiki/ASCII" title="ASCII">ASCII</a> text. Every source line was identified with a number, which could be used as the target of a <a href="/wiki/GOTO" class="mw-redirect" title="GOTO">GOTO</a> or <a href="/wiki/GOSUB" class="mw-redirect" title="GOSUB">GOSUB</a> transfer. Only line editing commands were provided.<sup id="cite_ref-1" class="reference"><a href="#cite_note-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> It was often beneficial to save a program as plain text and edit it with a full featured editor. </p><p>Program text, <a href="/wiki/Variable_(computer_science)" title="Variable (computer science)">variables</a>, <a href="/wiki/Disk_buffer" title="Disk buffer">disk buffers</a> and the CP/M operating system itself all had to share the 64 kilobyte address space of the <a href="/wiki/Intel_8080" title="Intel 8080">8080</a> processor. Typically when first starting MBASIC there would be less than 32 kB memory available for programs and data, even on a machine equipped with a full 64 kilobytes of RAM. Comment lines, prefixed with the <code> REM </code> keyword or an apostrophe, could be placed in the program text but took up valuable memory space, which discouraged BASIC users from fully documenting their code. To allow larger and more complex programs to be run, later versions of MBASIC supported functions that allowed portions of program text to be read in and executed under program control (the "<a href="/wiki/Chain_loading" title="Chain loading"><code> CHAIN </code></a>" and <code> MERGE </code> statements). No support for "shell" command execution was provided, though this functionality could be duplicated by a determined programmer. </p><p>A particular advantage of MBASIC was the full-text error messages provided for syntax and run-time errors. MBASIC also had a "trace" function that displayed line numbers as they were executed. While this occupied the same screen space as normal program output, it was useful for detecting conditions such as <a href="/wiki/Endless_loop" class="mw-redirect" title="Endless loop">endless loops</a>. </p> <div class="mw-heading mw-heading3"><h3 id="Files_and_input/output"><span id="Files_and_input.2Foutput"></span>Files and input/output</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=4" title="Edit section: Files and input/output"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Data could be read and stored to disk as either sequential files (delimited by the CP/M convention of <a href="/wiki/Carriage_return" title="Carriage return">CR</a>/<a href="/wiki/Line_feed" class="mw-redirect" title="Line feed">LF</a> at the end of each line) or else as fixed-record-length random access files, which, given a sufficiently determined programmer, could be used to perform database-type record manipulation. The <a href="/wiki/Microsoft_Binary_Format" title="Microsoft Binary Format">Microsoft Binary Format</a> for <a href="/wiki/Floating_point" class="mw-redirect" title="Floating point">floating point</a> numbers was proprietary to the implementation, which meant that data could only be interchanged with other programs using ASCII text representation or else with extensive programming to convert the binary format. </p> <div class="mw-heading mw-heading3"><h3 id="Variables_and_data_types">Variables and data types</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=5" title="Edit section: Variables and data types"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>MBASIC supported the following data types: </p> <ul><li>8-bit character data, in strings of length 0 to 255 characters;</li> <li>16-bit <a href="/wiki/Integer" title="Integer">integers</a>;</li> <li>32-bit <a href="/wiki/Floating_point" class="mw-redirect" title="Floating point">floating point</a> (single precision), equivalent to six decimal digits, with a two-digit exponent;</li> <li>64-bit floating point (double precision), equivalent to sixteen decimal digits, with a two-digit exponent.</li></ul> <p>String operators included substring selection, concatenation, assignment, and testing for equality. </p><p>Arrays of the above types were allowed with up to 7 dimensions, but no functions or operators worked on arrays; for example, there was no assignment of arrays. Unlike some other BASIC implementations of the time, MBASIC did not provide support for <a href="/wiki/Matrix_(mathematics)" title="Matrix (mathematics)">matrix</a> operations, <a href="/wiki/Complex_number" title="Complex number">complex numbers</a>, or a <a href="/wiki/Binary-coded_decimal" title="Binary-coded decimal">decimal (BCD)</a> data type for financial calculations. All floating point operations were carried out in software since typical CP/M systems did not have <a href="/wiki/Floating-point_unit" title="Floating-point unit">floating point hardware</a>. The built-in mathematics functions (<a href="/wiki/Sine_and_cosine" title="Sine and cosine">sine, cosine</a>, <a href="/wiki/Tangent" title="Tangent">tangent</a>, <a href="/wiki/Natural_logarithm" title="Natural logarithm">natural log</a>, <a href="/wiki/Exponential_function" title="Exponential function">exponential</a>, <a href="/wiki/Square_root" title="Square root">square root</a>) only gave single precision results. A software <a href="/wiki/Pseudorandom_number_generator" title="Pseudorandom number generator">pseudorandom number generator</a> was provided; this relied on the user to key in a seed number to obtain a sequence of numbers useful for games and some simulations. MBASIC permitted but did not require the <code> LET </code> keyword for assignment statements. </p><p>Early versions of BASIC on <a href="/wiki/Microcomputer" title="Microcomputer">microcomputers</a> were infamous for one- or two-character variable names, which made the meanings of variables difficult to recall in complex programs. MBASIC version 5 allowed identifiers up to 40 characters long, which permitted programmers to give variables readable names. </p> <div class="mw-heading mw-heading3"><h3 id="Program_flow_control">Program flow control</h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=6" title="Edit section: Program flow control"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Program flow control in MBASIC was controlled by <code> IF...THEN...ELSE... </code> conditional tests, <code> WHILE...WEND </code> loops, and <code> GOTO </code> and <code> GOSUB </code> instructions. No <code> CASE </code> statement was available, although an <code> ON...GOTO... </code>(computed GOTO) provided multi-way branches. Subroutines had no parameters and all variables were global. MBASIC did not make <a href="/wiki/Structured_programming" title="Structured programming">structured programming</a> mandatory for programmers and it was easy to write <a href="/wiki/Spaghetti_code" title="Spaghetti code">spaghetti code</a>. </p> <div class="mw-heading mw-heading2"><h2 id="PEEKs,_POKEs,_and_user_functions"><span id="PEEKs.2C_POKEs.2C_and_user_functions"></span>PEEKs, POKEs, and user functions</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=7" title="Edit section: PEEKs, POKEs, and user functions"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>No discussion of BASICs on the <a href="/wiki/8-bit_computing" title="8-bit computing">8-bit</a> computers of the late '70s and early '80s would be complete without mentioning the importance of the <a href="/wiki/PEEK_and_POKE" title="PEEK and POKE">PEEK and POKE</a> functions for directly reading and writing to memory. Since these systems typically had no <a href="/wiki/Memory_protection" title="Memory protection">memory protection</a>, this allowed a programmer to access portions of the operating system, or functions that would not otherwise be available. This also provided opportunities for user programs to hang the system (by accident, usually). For example, a CP/M programmer might use a <code> POKE </code> function to allow BASIC to switch the console device to the serial port, if the system <a href="/wiki/BIOS" title="BIOS">BIOS</a> supported this. For machines with real-time clocks, a set of <code>PEEK</code> instructions might have been used to access the time. </p><p>For more complex operations, MBASIC allowed user-defined functions that could be called from a BASIC program. These were typically placed in a reserved area of memory, or POKEd into string constants, as a series of <a href="/wiki/Machine_language" class="mw-redirect" title="Machine language">machine codes</a> (<a href="/wiki/Opcodes" class="mw-redirect" title="Opcodes">opcodes</a>). MBASIC also provided hardware <code>INP</code> and <code>OUT</code> instructions that read and wrote directly to the 8080 hardware input/output ports. This could be used to control peripheral devices from a BASIC program if the system hardware permitted. </p><p>Any MBASIC programs that made use of <code>PEEK</code> and <code>POKE</code>, and of machine code user functions, were not portable between machines without modifications. </p> <div class="mw-heading mw-heading2"><h2 id="Successors_to_MBASIC">Successors to MBASIC</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=8" title="Edit section: Successors to MBASIC"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Besides Microsoft's BASIC-80 for CP/M, a variant of MBASIC was also available as for the <a href="/wiki/Intel_ISIS-II" class="mw-redirect" title="Intel ISIS-II">ISIS-II</a> operating system. </p><p><a href="/wiki/MSX_BASIC" title="MSX BASIC">MSX-BASIC</a> is also a well known successor of MBASIC, featuring several extensions specific to the <a href="/wiki/MSX" title="MSX">MSX</a> machines. </p><p>All the functions of CP/M MBASIC were available in the IBM PC disk-based <a href="/wiki/BASICA" class="mw-redirect" title="BASICA">BASICA</a> or <a href="/wiki/GWBASIC" class="mw-redirect" title="GWBASIC">GWBASIC</a> which made migration of programs from CP/M systems to PC-compatibles possible. The tokens used to represent keywords were different, so CP/M programs had to be saved in ASCII source form. Typically screen formatting escape sequences put into the CP/M version would be replaced with the cursor positioning commands found in the PC versions of BASIC, otherwise little rewriting would be needed. </p> <div class="mw-heading mw-heading2"><h2 id="BASCOM">BASCOM</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=9" title="Edit section: BASCOM"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>Microsoft sold a CP/M BASIC <a href="/wiki/Compiler" title="Compiler">compiler</a> (known as <b>BASCOM</b>) which used a similar source language to MBASIC. A program debugged under MBASIC could be compiled with BASCOM. Since program text was no longer in memory and the run-time elements of the compiler were smaller than the interpreter, more memory was available for user data. Speed of real program execution increased about 3 fold. </p><p>Developers welcomed BASCOM as an alternative to the popular but slow and clumsy <a href="/wiki/CBASIC" title="CBASIC">CBASIC</a>. Unlike CBASIC, BASCOM did not need a <a href="/wiki/Preprocessor" title="Preprocessor">preprocessor</a> for MBASIC source code so could be debugged interactively.<sup id="cite_ref-iw19800818_2-0" class="reference"><a href="#cite_note-iw19800818-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> While approving of its superior edit-compile-run-debug loop compared to CBASIC, and stating that binaries ran far faster, <a href="/wiki/Jerry_Pournelle" title="Jerry Pournelle">Jerry Pournelle</a> in December 1980 denounced Microsoft's requirement of a 9% royalty for each binary copy<sup id="cite_ref-pournelle198012_3-0" class="reference"><a href="#cite_note-pournelle198012-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup> and $40 for hardware-software combinations. The company also reserved the right to audit developers' financial records. Because authors' typical royalty rates for software was 10-25%, <i><a href="/wiki/InfoWorld" title="InfoWorld">InfoWorld</a></i> in 1980 stated that BASCOM's additional 9% royalty rate "could make software development downright unprofitable", concluding that "Microsoft has the technical solution [to CBASIC's flaws], but not the economic one".<sup id="cite_ref-iw19800818_2-1" class="reference"><a href="#cite_note-iw19800818-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup> </p> <div class="mw-heading mw-heading2"><h2 id="Importance_of_MBASIC">Importance of MBASIC</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=10" title="Edit section: Importance of MBASIC"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>MBASIC was an important tool during the era of 8-bit CP/M computers. Skilled users could write routines in MBASIC to automate tasks that in modern-day systems would be performed by powerful application program commands or scripting languages. Exchange of useful MBASIC programs was a common function of computer <a href="/wiki/Users%27_group" title="Users' group">users' groups</a>. <a href="/wiki/Type-in_program" title="Type-in program">Keying in long BASIC listings</a> from a magazine article was one way of "bootstrapping" software into a new CP/M system. At least one compiler for a high-level language was written in MBASIC, and many small games and utility programs ranging from a few lines to a few thousand lines of code were written. </p> <div class="mw-heading mw-heading2"><h2 id="Other_uses">Other uses</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=11" title="Edit section: Other uses"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p>MBASIC is also the name of a commercial <a href="/wiki/BASIC" title="BASIC">BASIC</a> compiler for the <a href="/wiki/Microchip_Technology" title="Microchip Technology">Microchip Technology</a> <a href="/wiki/PIC_microcontroller" class="mw-redirect" title="PIC microcontroller">PIC microcontroller</a> family developed by Basic Micro, Inc., unrelated to the CP/M interpreter. </p> <div class="mw-heading mw-heading2"><h2 id="References">References</h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=MBASIC&action=edit&section=12" title="Edit section: References"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <style data-mw-deduplicate="TemplateStyles:r1239543626">.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}</style><div class="reflist"> <div class="mw-references-wrap"><ol class="references"> <li id="cite_note-1"><span class="mw-cite-backlink"><b><a href="#cite_ref-1">^</a></b></span> <span class="reference-text">CP/M products providing full-screen editing support required their own installation routines to customize the software for the specific <a href="/wiki/Computer_terminal" title="Computer terminal">computer terminal</a> used as the system console. No support was provided within CP/M to standardize terminal capabilities.</span> </li> <li id="cite_note-iw19800818-2"><span class="mw-cite-backlink">^ <a href="#cite_ref-iw19800818_2-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-iw19800818_2-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/6/65/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/d/d6/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/a/aa/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/4/4c/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}</style><cite class="citation magazine cs1"><a rel="nofollow" class="external text" href="https://books.google.com/books?id=az4EAAAAMBAJ&pg=PT47">"Editorial"</a>. <i>InfoWorld</i>. 1980-08-18. p. 8.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=InfoWorld&rft.atitle=Editorial&rft.pages=8&rft.date=1980-08-18&rft_id=https%3A%2F%2Fbooks.google.com%2Fbooks%3Fid%3Daz4EAAAAMBAJ%26pg%3DPT47&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMBASIC" class="Z3988"></span></span> </li> <li id="cite_note-pournelle198012-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-pournelle198012_3-0">^</a></b></span> <span class="reference-text"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1238218222" /><cite id="CITEREFPournelle,_Jerry1980" class="citation news cs1">Pournelle, Jerry (December 1980). <a rel="nofollow" class="external text" href="https://archive.org/stream/byte-magazine-1980-12/1980_12_BYTE_05-12_Adventure#page/n223/mode/2up">"BASIC, Computer Languages, and Computer Adventures"</a>. <i>BYTE</i>. p. 222<span class="reference-accessdate">. Retrieved <span class="nowrap">18 October</span> 2013</span>.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.jtitle=BYTE&rft.atitle=BASIC%2C+Computer+Languages%2C+and+Computer+Adventures&rft.pages=222&rft.date=1980-12&rft.au=Pournelle%2C+Jerry&rft_id=https%3A%2F%2Farchive.org%2Fstream%2Fbyte-magazine-1980-12%2F1980_12_BYTE_05-12_Adventure%23page%2Fn223%2Fmode%2F2up&rfr_id=info%3Asid%2Fen.wikipedia.org%3AMBASIC" class="Z3988"></span></span> </li> </ol></div></div> <style data-mw-deduplicate="TemplateStyles:r1239549316">.mw-parser-output .refbegin{margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li{margin-left:0;padding-left:3.2em;text-indent:-3.2em}.mw-parser-output .refbegin-hanging-indents ul,.mw-parser-output .refbegin-hanging-indents ul li{list-style:none}@media(max-width:720px){.mw-parser-output .refbegin-hanging-indents>ul>li{padding-left:1.6em;text-indent:-1.6em}}.mw-parser-output .refbegin-columns{margin-top:0.3em}.mw-parser-output .refbegin-columns ul{margin-top:0}.mw-parser-output .refbegin-columns li{page-break-inside:avoid;break-inside:avoid-column}@media screen{.mw-parser-output .refbegin{font-size:90%}}</style><div class="refbegin" style=""> <ul><li>Thom Hogan and Mike Iannamico, <i>Osborne 1 User's Reference Guide</i>,(1982) Osborne Computer Corporation</li> <li>David A. Lien, <i>The BASIC Handbook</i>, 2nd Edition Encyclopedia of the BASIC Computer Language",(1981), Compusoft Publishing</li> <li><i>BASIC 80 Reference Manual</i>, Microsoft Corporation, no date</li></ul> </div> <div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1129693374">.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}</style><style data-mw-deduplicate="TemplateStyles:r1236075235">.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}</style></div><div role="navigation" class="navbox" aria-labelledby="Dialects_of_the_BASIC_programming_language_(list)202" style="padding:3px"><table class="nowraplinks mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1129693374" /><style data-mw-deduplicate="TemplateStyles:r1239400231">.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}</style><div class="navbar plainlinks hlist navbar-mini"><ul><li class="nv-view"><a href="/wiki/Template:BASIC" title="Template:BASIC"><abbr title="View this template">v</abbr></a></li><li class="nv-talk"><a href="/wiki/Template_talk:BASIC" title="Template talk:BASIC"><abbr title="Discuss this template">t</abbr></a></li><li class="nv-edit"><a href="/wiki/Special:EditPage/Template:BASIC" title="Special:EditPage/Template:BASIC"><abbr title="Edit this template">e</abbr></a></li></ul></div><div id="Dialects_of_the_BASIC_programming_language_(list)202" style="font-size:114%;margin:0 4em">Dialects of the <a href="/wiki/BASIC" title="BASIC">BASIC</a> programming language (<a href="/wiki/List_of_BASIC_dialects" title="List of BASIC dialects">list</a>)</div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">Classic</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Microsoft" title="Microsoft">Microsoft</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Microsoft_BASIC" title="Microsoft BASIC">Microsoft BASIC</a></li> <li>TRS-80 BASICs (<a href="/wiki/Level_I_BASIC" title="Level I BASIC">Level I</a>, <a href="/wiki/TRS-80_Level_II_BASIC" class="mw-redirect" title="TRS-80 Level II BASIC">Level II/III</a>)</li> <li>Thomson <a href="/wiki/Microsoft_Basic_1.0" title="Microsoft Basic 1.0">BASIC 1.0</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Texas_Instruments" title="Texas Instruments">Texas Instruments</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/TI-BASIC" title="TI-BASIC">TI-BASIC (calculators)</a></li> <li><a href="/wiki/TI_Extended_BASIC" class="mw-redirect" title="TI Extended BASIC">TI Extended BASIC</a> (aka XBasic)</li> <li><a href="/wiki/TI-BASIC_83" title="TI-BASIC 83">TI-BASIC 83</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Hewlett-Packard" title="Hewlett-Packard">Hewlett-Packard</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/HP_Time-Shared_BASIC" title="HP Time-Shared BASIC">HP Time-Shared BASIC</a></li> <li><a href="/wiki/Rocky_Mountain_BASIC" title="Rocky Mountain BASIC">Rocky Mountain BASIC</a></li> <li><a href="/wiki/HP_Time-Shared_BASIC" title="HP Time-Shared BASIC">HP Basic</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Locomotive_Software" title="Locomotive Software">Locomotive Software</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Locomotive_BASIC" title="Locomotive BASIC">Locomotive BASIC</a></li> <li><a href="/wiki/Mallard_BASIC" title="Mallard BASIC">Mallard BASIC</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Microcomputer" title="Microcomputer">Microcomputers</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Atom_BASIC" class="mw-redirect" title="Atom BASIC">Atom BASIC</a></li> <li><a href="/wiki/Integer_BASIC" title="Integer BASIC">Integer BASIC</a></li> <li><a href="/wiki/North_Star_BASIC" title="North Star BASIC">North Star BASIC</a></li> <li><a href="/wiki/SCELBAL" title="SCELBAL">SCELBAL</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Minicomputer" title="Minicomputer">Minicomputers</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/BASIC-11" title="BASIC-11">BASIC-11</a></li> <li><a href="/wiki/Business_Basic" title="Business Basic">Business Basic</a> (<a href="/wiki/B32_Business_Basic" title="B32 Business Basic">B32</a>, <a href="/wiki/Data_General_Business_Basic" title="Data General Business Basic">Data General</a>)</li> <li><a href="/wiki/Data_General_Extended_BASIC" title="Data General Extended BASIC">Data General Extended BASIC</a></li> <li><a href="/wiki/Southampton_BASIC_System" title="Southampton BASIC System">Southampton BASIC System</a></li> <li><a href="/wiki/Wang_BASIC" title="Wang BASIC">Wang BASIC</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Time-sharing" title="Time-sharing">Time-sharing</a> computers</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/BASIC-PLUS" title="BASIC-PLUS">BASIC-PLUS</a></li> <li><a href="/w/index.php?title=Extra!_Basic_Macro_Language&action=edit&redlink=1" class="new" title="Extra! Basic Macro Language (page does not exist)">Extra! Basic Macro Language</a></li> <li><a href="/wiki/VSI_BASIC_for_OpenVMS" title="VSI BASIC for OpenVMS">VSI BASIC for OpenVMS</a></li> <li><a href="/wiki/SUPER_BASIC" title="SUPER BASIC">SUPER BASIC</a></li> <li><a href="/wiki/CALL/360:BASIC" title="CALL/360:BASIC">CALL/360:BASIC</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/AlphaBasic" title="AlphaBasic">AlphaBasic</a></li> <li><a href="/wiki/Astro_BASIC" class="mw-redirect" title="Astro BASIC">Astro BASIC</a></li> <li><a href="/wiki/BASICODE" title="BASICODE">BASICODE</a></li> <li><a href="/wiki/Business_application_language" title="Business application language">BAL</a></li> <li><a href="/wiki/Casio_BASIC" title="Casio BASIC">Casio BASIC</a></li> <li><a href="/wiki/CBASIC" title="CBASIC">CBASIC</a></li> <li><a href="/wiki/PBASIC" title="PBASIC">PBASIC</a></li> <li><a href="/wiki/SDS_BASIC" title="SDS BASIC">SDS BASIC</a></li> <li><a href="/wiki/Tiny_BASIC" title="Tiny BASIC">Tiny BASIC</a></li> <li><a href="/wiki/UBASIC" title="UBASIC">UBASIC</a></li> <li><a href="/wiki/ZBasic" title="ZBasic">ZBasic</a></li> <li><a href="/w/index.php?title=ETBASIC&action=edit&redlink=1" class="new" title="ETBASIC (page does not exist)">ETBASIC</a><span class="noprint" style="font-size:85%; font-style: normal;"> [<a href="https://zh.wikipedia.org/wiki/ETBASIC" class="extiw" title="zh:ETBASIC">zh</a>]</span></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/BASIC_extension" title="BASIC extension">Extenders</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/BASIC_8" title="BASIC 8">BASIC 8</a></li> <li>Graphics BASIC</li> <li><a href="/wiki/Simons%27_BASIC" title="Simons' BASIC">Simons' BASIC</a></li> <li><a href="/wiki/Super_Expander" title="Super Expander">Super Expander</a></li> <li><a href="/wiki/Super_Expander_64" title="Super Expander 64">Super Expander 64</a></li> <li><a href="/wiki/YS_MegaBasic" title="YS MegaBasic">YS MegaBasic</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Procedural_programming" title="Procedural programming">Procedure</a>-<br />oriented</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Proprietary_software" title="Proprietary software">Proprietary</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/AmigaBASIC" class="mw-redirect" title="AmigaBASIC">AmigaBASIC</a></li> <li><a href="/wiki/AMOS_(programming_language)" title="AMOS (programming language)">AMOS BASIC</a></li> <li><a href="/wiki/ASIC_programming_language" title="ASIC programming language">ASIC</a></li> <li><a href="/wiki/BasicX" title="BasicX">BasicX</a></li> <li><a href="/wiki/Beta_BASIC" title="Beta BASIC">Beta BASIC</a></li> <li><a href="/wiki/FutureBASIC" title="FutureBASIC">FutureBASIC</a></li> <li><a href="/wiki/GRASS_(programming_language)" title="GRASS (programming language)">GRASS</a></li> <li><a href="/wiki/Liberty_BASIC" title="Liberty BASIC">Liberty BASIC</a></li> <li><a href="/wiki/LSE_(programming_language)" title="LSE (programming language)">LSE</a></li> <li><a href="/wiki/MapBasic" title="MapBasic">MapBasic</a></li> <li><a href="/wiki/Mobile_BASIC" title="Mobile BASIC">Mobile BASIC</a></li> <li><a href="/wiki/OWBasic" title="OWBasic">OWBasic</a></li> <li><a href="/wiki/PowerBASIC" title="PowerBASIC">PowerBASIC</a></li> <li><a href="/wiki/PureBasic" title="PureBasic">PureBasic</a></li> <li><a href="/wiki/Petit_Computer" title="Petit Computer">SmileBASIC</a></li> <li><a href="/wiki/Tiger-BASIC" title="Tiger-BASIC">Tiger-BASIC</a></li> <li><a href="/wiki/True_BASIC" title="True BASIC">True BASIC</a></li> <li><a href="/wiki/Turbo_Basic" class="mw-redirect" title="Turbo Basic">Turbo Basic</a></li> <li><a href="/wiki/WordBASIC" title="WordBASIC">WordBASIC</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Free_and_open_source" class="mw-redirect" title="Free and open source">Free and<br />open source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Basic-256" title="Basic-256">Basic-256</a></li> <li><a href="/wiki/Basic4GL" title="Basic4GL">Basic4GL</a></li> <li><a href="/wiki/BBC_BASIC#Acorn_Archimedes_(RISC_OS)" title="BBC BASIC">BBC BASIC V</a></li> <li><a href="/wiki/The_Game_Creators" title="The Game Creators">DarkBASIC</a></li> <li><a href="/wiki/Euphoria_(programming_language)" title="Euphoria (programming language)">Euphoria</a></li> <li><a href="/wiki/Hindawi_Programming_System" title="Hindawi Programming System">Indic BASIC</a></li> <li><a href="/wiki/Open_Programming_Language" title="Open Programming Language">Open Programming Language</a></li> <li><a href="/wiki/SdlBasic" title="SdlBasic">SdlBasic</a></li> <li><a href="/wiki/SmallBASIC" title="SmallBASIC">SmallBASIC</a></li> <li><a href="/wiki/QB64" title="QB64">QB64</a></li> <li><a href="/wiki/WxBasic" title="WxBasic">wxBasic</a></li> <li><a href="/wiki/XBasic" title="XBasic">XBasic</a></li> <li><a href="/wiki/XBLite" title="XBLite">Xblite</a></li> <li><a href="/wiki/Yabasic" title="Yabasic">Yabasic</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">With <a href="/wiki/Object-oriented_programming" title="Object-oriented programming">object</a><br />extensions</th><td class="navbox-list-with-group navbox-list navbox-odd hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Proprietary_software" title="Proprietary software">Proprietary</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/AutoIt" title="AutoIt">AutoIt</a></li> <li><a href="/wiki/Chipmunk_Basic" title="Chipmunk Basic">Chipmunk Basic</a></li> <li><a href="/wiki/GLBasic" title="GLBasic">GLBasic</a></li> <li><a href="/wiki/LotusScript" title="LotusScript">LotusScript</a></li> <li><a href="/wiki/Morfik" title="Morfik">Morfik</a></li> <li><a href="/wiki/PowerBASIC" title="PowerBASIC">PowerBASIC</a></li> <li>ProvideX</li> <li>Run BASIC</li> <li><a href="/wiki/Visual_Basic_for_Applications" title="Visual Basic for Applications">VBA</a></li> <li><a href="/wiki/VBScript" title="VBScript">VBScript</a></li> <li>VB 5 for <a href="/wiki/Microsoft_Excel" title="Microsoft Excel">Microsoft Excel</a> 5.0 <ul><li><a href="/wiki/Visual_Studio_Tools_for_Office" title="Visual Studio Tools for Office">VSTO</a></li> <li><a href="/wiki/Visual_Studio_Tools_for_Applications" title="Visual Studio Tools for Applications">VSTA</a></li></ul></li> <li><a href="/wiki/Embedded_Visual_Basic" title="Embedded Visual Basic">Embedded Visual Basic</a></li> <li>WinWrap Basic</li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Free_and_open_source" class="mw-redirect" title="Free and open source">Free and<br />open source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Blitz_BASIC" title="Blitz BASIC">BlitzMax</a></li> <li><a href="/wiki/FreeBASIC" title="FreeBASIC">FreeBASIC</a></li> <li><a href="/wiki/Microsoft_Small_Basic" title="Microsoft Small Basic">Microsoft Small Basic</a></li> <li><a href="/wiki/Mono_(software)" title="Mono (software)">Mono-Basic</a></li> <li><a href="/wiki/OpenOffice_Basic" title="OpenOffice Basic">OpenOffice Basic</a></li> <li>ScriptBasic</li> <li><a href="/wiki/Roslyn_(compiler)" title="Roslyn (compiler)">Roslyn</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Rapid_application_development" title="Rapid application development">RAD</a><br /><a href="/wiki/GUI_designer" class="mw-redirect" title="GUI designer">designers</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Proprietary_software" title="Proprietary software">Proprietary</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/CA-Realizer" title="CA-Realizer">CA-Realizer</a></li> <li><a href="/wiki/Visual_Basic_(classic)" title="Visual Basic (classic)">Visual Basic (classic)</a></li> <li><a href="/wiki/NS_Basic" title="NS Basic">NS Basic</a></li> <li><a href="/wiki/RapidQ" title="RapidQ">RapidQ</a></li> <li><a href="/wiki/Visual_Basic_(.NET)" title="Visual Basic (.NET)">Visual Basic .NET</a> (<a href="/wiki/Mercury_(RemObjects_BASIC_programming_language)" title="Mercury (RemObjects BASIC programming language)">Mercury</a>)</li> <li><a href="/wiki/Xojo" title="Xojo">Xojo</a></li></ul> </div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="/wiki/Free_and_open_source" class="mw-redirect" title="Free and open source">Free and<br />open source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li>B4X (<a href="/wiki/Basic4android" title="Basic4android">Basic4android</a>, <a href="/wiki/Basic4ppc" title="Basic4ppc">Basic4ppc</a>)</li> <li><a href="/wiki/Gambas" title="Gambas">Gambas</a></li> <li><a href="/wiki/FreeBASIC" title="FreeBASIC">WinFBE, Visual FB Editor</a></li></ul> </div></td></tr></tbody></table><div></div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Defunct</th><td class="navbox-list-with-group navbox-list navbox-even hlist" style="width:100%;padding:0"><div style="padding:0 0.25em"> <ul><li><a href="/wiki/Altair_BASIC" title="Altair BASIC">Altair BASIC</a></li> <li><a href="/wiki/Applesoft_BASIC" title="Applesoft BASIC">Applesoft BASIC</a></li> <li><a href="/wiki/Apple_Business_BASIC" title="Apple Business BASIC">Apple Business BASIC</a></li> <li><a href="/wiki/Atari_BASIC" title="Atari BASIC">Atari BASIC</a></li> <li><a href="/wiki/Atari_Microsoft_BASIC" title="Atari Microsoft BASIC">Atari Microsoft BASIC</a></li> <li><a href="/wiki/Atari_ST_BASIC" title="Atari ST BASIC">Atari ST BASIC</a></li> <li><a href="/wiki/BASIC_A%2B" title="BASIC A+">BASIC A+</a></li> <li><a href="/wiki/Optimized_Systems_Software#BASIC_XE" title="Optimized Systems Software">BASIC XE</a></li> <li><a href="/wiki/Optimized_Systems_Software#BASIC_XL" title="Optimized Systems Software">BASIC XL</a></li> <li><a href="/wiki/BASIC_Programming" title="BASIC Programming"><i>BASIC Programming</i> (Atari 2600)</a></li> <li><a href="/wiki/BBC_BASIC" title="BBC BASIC">BBC BASIC</a></li> <li><a href="/wiki/Benton_Harbor_BASIC" title="Benton Harbor BASIC">Benton Harbor BASIC</a></li> <li><a href="/wiki/Chinese_BASIC" title="Chinese BASIC">Chinese BASIC</a></li> <li><a href="/wiki/Commodore_BASIC" title="Commodore BASIC">Commodore BASIC</a></li> <li><a href="/wiki/Color_BASIC" title="Color BASIC">Color BASIC</a></li> <li><a href="/wiki/Dartmouth_BASIC" title="Dartmouth BASIC">Dartmouth BASIC</a></li> <li><a href="/wiki/Disk_Extended_Color_BASIC" title="Disk Extended Color BASIC">Disk Extended Color BASIC</a></li> <li><a href="/wiki/Extended_Color_BASIC" title="Extended Color BASIC">Extended Color BASIC</a></li> <li><a href="/wiki/Family_BASIC" title="Family BASIC">Family BASIC</a></li> <li><a href="/wiki/GFA_BASIC" title="GFA BASIC">GFA BASIC</a></li> <li><a href="/wiki/GW-BASIC" title="GW-BASIC">GW-BASIC</a></li> <li><a href="/wiki/IBM_BASIC" title="IBM BASIC">IBM BASIC</a></li> <li><a href="/wiki/JR-BASIC" title="JR-BASIC">JR-BASIC</a></li> <li><a href="/wiki/MacBASIC" title="MacBASIC">MacBASIC</a></li> <li><a class="mw-selflink selflink">MBASIC</a></li> <li><a href="/wiki/MSX_BASIC" title="MSX BASIC">MSX BASIC</a></li> <li><a href="/wiki/MS_BASIC_for_Macintosh" title="MS BASIC for Macintosh">MS BASIC for Macintosh</a></li> <li><a href="/wiki/QBasic" title="QBasic">QBasic</a></li> <li><a href="/wiki/QuickBASIC" title="QuickBASIC">QuickBASIC</a></li> <li><a href="/wiki/S-BASIC" title="S-BASIC">S-BASIC</a></li> <li><a href="/wiki/Sinclair_BASIC" title="Sinclair BASIC">Sinclair BASIC</a></li> <li><a href="/wiki/STOS_BASIC" title="STOS BASIC">STOS BASIC</a></li> <li><a href="/wiki/SuperBASIC" title="SuperBASIC">SuperBASIC</a></li> <li><a href="/wiki/TI_BASIC_(TI_99/4A)" title="TI BASIC (TI 99/4A)">TI BASIC (TI 99/4A)</a></li> <li><a href="/wiki/Turbo-BASIC_XL" title="Turbo-BASIC XL">Turbo-BASIC XL</a></li> <li><a href="/wiki/Vilnius_BASIC" title="Vilnius BASIC">Vilnius BASIC</a></li></ul> </div></td></tr></tbody></table></div> <!-- NewPP limit report Parsed by mw‐web.codfw.main‐69755cc569‐64jmn Cached time: 20250317163933 Cache expiry: 2592000 Reduced expiry: false Complications: [vary‐revision‐sha1, show‐toc] CPU time usage: 0.350 seconds Real time usage: 0.447 seconds Preprocessor visited node count: 1147/1000000 Post‐expand include size: 52716/2097152 bytes Template argument size: 1036/2097152 bytes Highest expansion depth: 15/100 Expensive parser function count: 4/500 Unstrip recursion depth: 1/20 Unstrip post‐expand size: 18765/5000000 bytes Lua time usage: 0.201/10.000 seconds Lua memory usage: 4432025/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 369.064 1 -total 32.80% 121.056 5 Template:Navbox 29.41% 108.536 1 Template:Reflist 27.94% 103.120 1 Template:BASIC 23.84% 87.993 1 Template:Cite_magazine 22.11% 81.584 1 Template:Short_description 16.97% 62.640 1 Template:Infobox_programming_language 15.35% 56.643 1 Template:Infobox 11.96% 44.132 2 Template:Pagetype 6.20% 22.869 6 Template:Main_other --> <!-- Saved in parser cache with key enwiki:pcache:1195349:|#|:idhash:canonical and timestamp 20250317163933 and revision id 1274897107. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?useformat=desktop&type=1x1&usesul3=0" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=MBASIC&oldid=1274897107">https://en.wikipedia.org/w/index.php?title=MBASIC&oldid=1274897107</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Help:Category" title="Help:Category">Categories</a>: <ul><li><a href="/wiki/Category:CP/M_software" title="Category:CP/M software">CP/M software</a></li><li><a href="/wiki/Category:Discontinued_Microsoft_BASICs" title="Category:Discontinued Microsoft BASICs">Discontinued Microsoft BASICs</a></li><li><a href="/wiki/Category:BASIC_programming_language_family" title="Category:BASIC programming language family">BASIC programming language family</a></li><li><a href="/wiki/Category:Microsoft_programming_languages" title="Category:Microsoft programming languages">Microsoft programming languages</a></li></ul></div><div id="mw-hidden-catlinks" class="mw-hidden-catlinks mw-hidden-cats-hidden">Hidden categories: <ul><li><a href="/wiki/Category:Articles_with_short_description" title="Category:Articles with short description">Articles with short description</a></li><li><a href="/wiki/Category:Short_description_is_different_from_Wikidata" title="Category:Short description is different from Wikidata">Short description is different from Wikidata</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 9 February 2025, at 21:46<span class="anonymous-show"> (UTC)</span>.</li> <li id="footer-info-copyright">Text is available under the <a href="/wiki/Wikipedia:Text_of_the_Creative_Commons_Attribution-ShareAlike_4.0_International_License" title="Wikipedia:Text of the Creative Commons Attribution-ShareAlike 4.0 International License">Creative Commons Attribution-ShareAlike 4.0 License</a>; additional terms may apply. By using this site, you agree to the <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use" class="extiw" title="foundation:Special:MyLanguage/Policy:Terms of Use">Terms of Use</a> and <a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy" class="extiw" title="foundation:Special:MyLanguage/Policy:Privacy policy">Privacy Policy</a>. Wikipedia® is a registered trademark of the <a rel="nofollow" class="external text" href="https://wikimediafoundation.org/">Wikimedia Foundation, Inc.</a>, a non-profit organization.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Wikipedia:About">About Wikipedia</a></li> <li id="footer-places-disclaimers"><a href="/wiki/Wikipedia:General_disclaimer">Disclaimers</a></li> <li id="footer-places-contact"><a href="//en.wikipedia.org/wiki/Wikipedia:Contact_us">Contact Wikipedia</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/en.wikipedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//en.m.wikipedia.org/w/index.php?title=MBASIC&mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/static/images/footer/wikimedia-button.svg" width="84" height="29"><img src="/static/images/footer/wikimedia.svg" width="25" height="25" alt="Wikimedia Foundation" lang="en" loading="lazy"></picture></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><picture><source media="(min-width: 500px)" srcset="/w/resources/assets/poweredby_mediawiki.svg" width="88" height="31"><img src="/w/resources/assets/mediawiki_compact.svg" alt="Powered by MediaWiki" lang="en" width="25" height="25" loading="lazy"></picture></a></li> </ul> </footer> </div> </div> </div> <div class="vector-header-container vector-sticky-header-container"> <div id="vector-sticky-header" class="vector-sticky-header"> <div class="vector-sticky-header-start"> <div class="vector-sticky-header-icon-start vector-button-flush-left vector-button-flush-right" aria-hidden="true"> <button class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-sticky-header-search-toggle" tabindex="-1" data-event-name="ui.vector-sticky-search-form.icon"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </button> </div> <div role="search" class="vector-search-box-vue vector-search-box-show-thumbnail vector-search-box"> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail"> <form action="/w/index.php" id="vector-sticky-search-form" class="cdx-search-input cdx-search-input--has-end-button"> <div class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Wikipedia"> <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <div class="vector-sticky-header-context-bar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-sticky-header-toc" class="vector-dropdown mw-portlet mw-portlet-sticky-header-toc vector-sticky-header-toc vector-button-flush-left" > <input type="checkbox" id="vector-sticky-header-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-sticky-header-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-sticky-header-toc-label" for="vector-sticky-header-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-sticky-header-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div class="vector-sticky-header-context-bar-primary" aria-hidden="true" ><span class="mw-page-title-main">MBASIC</span></div> </div> </div> <div class="vector-sticky-header-end" aria-hidden="true"> <div class="vector-sticky-header-icons"> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-talk-sticky-header" tabindex="-1" data-event-name="talk-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbles mw-ui-icon-wikimedia-speechBubbles"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-subject-sticky-header" tabindex="-1" data-event-name="subject-sticky-header"><span class="vector-icon mw-ui-icon-article mw-ui-icon-wikimedia-article"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-history-sticky-header" tabindex="-1" data-event-name="history-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-history mw-ui-icon-wikimedia-wikimedia-history"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only mw-watchlink" id="ca-watchstar-sticky-header" tabindex="-1" data-event-name="watch-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-star mw-ui-icon-wikimedia-wikimedia-star"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-edit-sticky-header" tabindex="-1" data-event-name="wikitext-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-wikiText mw-ui-icon-wikimedia-wikimedia-wikiText"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-ve-edit-sticky-header" tabindex="-1" data-event-name="ve-edit-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-edit mw-ui-icon-wikimedia-wikimedia-edit"></span> <span></span> </a> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only" id="ca-viewsource-sticky-header" tabindex="-1" data-event-name="ve-edit-protected-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-editLock mw-ui-icon-wikimedia-wikimedia-editLock"></span> <span></span> </a> </div> <div class="vector-sticky-header-buttons"> <button class="cdx-button cdx-button--weight-quiet mw-interlanguage-selector" id="p-lang-btn-sticky-header" tabindex="-1" data-event-name="ui.dropdown-p-lang-btn-sticky-header"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>5 languages</span> </button> <a href="#" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive" id="ca-addsection-sticky-header" tabindex="-1" data-event-name="addsection-sticky-header"><span class="vector-icon mw-ui-icon-speechBubbleAdd-progressive mw-ui-icon-wikimedia-speechBubbleAdd-progressive"></span> <span>Add topic</span> </a> </div> <div class="vector-sticky-header-icon-end"> <div class="vector-user-links"> </div> </div> </div> </div> </div> <div class="mw-portlet mw-portlet-dock-bottom emptyPortlet" id="p-dock-bottom"> <ul> </ul> </div> <script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-69755cc569-qpt5p","wgBackendResponseTime":147,"wgPageParseReport":{"limitreport":{"cputime":"0.350","walltime":"0.447","ppvisitednodes":{"value":1147,"limit":1000000},"postexpandincludesize":{"value":52716,"limit":2097152},"templateargumentsize":{"value":1036,"limit":2097152},"expansiondepth":{"value":15,"limit":100},"expensivefunctioncount":{"value":4,"limit":500},"unstrip-depth":{"value":1,"limit":20},"unstrip-size":{"value":18765,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 369.064 1 -total"," 32.80% 121.056 5 Template:Navbox"," 29.41% 108.536 1 Template:Reflist"," 27.94% 103.120 1 Template:BASIC"," 23.84% 87.993 1 Template:Cite_magazine"," 22.11% 81.584 1 Template:Short_description"," 16.97% 62.640 1 Template:Infobox_programming_language"," 15.35% 56.643 1 Template:Infobox"," 11.96% 44.132 2 Template:Pagetype"," 6.20% 22.869 6 Template:Main_other"]},"scribunto":{"limitreport-timeusage":{"value":"0.201","limit":"10.000"},"limitreport-memusage":{"value":4432025,"limit":52428800}},"cachereport":{"origin":"mw-web.codfw.main-69755cc569-64jmn","timestamp":"20250317163933","ttl":2592000,"transientcontent":false}}});});</script> <script type="application/ld+json">{"@context":"https:\/\/schema.org","@type":"Article","name":"MBASIC","url":"https:\/\/en.wikipedia.org\/wiki\/MBASIC","sameAs":"http:\/\/www.wikidata.org\/entity\/Q623610","mainEntity":"http:\/\/www.wikidata.org\/entity\/Q623610","author":{"@type":"Organization","name":"Contributors to Wikimedia projects"},"publisher":{"@type":"Organization","name":"Wikimedia Foundation, Inc.","logo":{"@type":"ImageObject","url":"https:\/\/www.wikimedia.org\/static\/images\/wmf-hor-googpub.png"}},"datePublished":"2004-11-21T22:55:52Z","dateModified":"2025-02-09T21:46:16Z","headline":"Microsoft BASIC implementation for the CP\/M operating system"}</script> </body> </html>