commands.html 199 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <link title="Purple" rel="stylesheet" href="manual-purple.css" type="text/css">
  6. <link title="Minty" rel="alternate stylesheet" href="manual-minty.css" type="text/css">
  7. <link title="Plain" rel="alternate stylesheet" href="manual.css" type="text/css">
  8. <title>openMSX Console Command Reference</title>
  9. </head>
  10. <body>
  11. <h1>openMSX Console Command Reference</h1>
  12. <ol class="inlinetoccat">
  13. <li><a class="internal" href="#introduction">Introduction</a></li>
  14. <li><a class="internal" href="#commands">Commands</a>
  15. <ol class="inlinetoc">
  16. <li><a class="internal" href="#after">after</a></li>
  17. <li><a class="internal" href="#bind">bind / unbind / bind_default / unbind_default / activate_input_layer / deactivate_input_layer</a></li>
  18. <li><a class="internal" href="#cart">cart / cart&lt;x&gt;</a></li>
  19. <li><a class="internal" href="#cassetteplayer">cassetteplayer</a></li>
  20. <li><a class="internal" href="#cd">cd&lt;x&gt;</a></li>
  21. <li><a class="internal" href="#cycle">cycle / cycle_back</a></li>
  22. <li><a class="internal" href="#debug">debug</a></li>
  23. <li><a class="internal" href="#disk">disk&lt;x&gt; / virtual_drive</a></li>
  24. <li><a class="internal" href="#diskmanipulator">diskmanipulator</a></li>
  25. <li><a class="internal" href="#escape_grab">escape_grab</a></li>
  26. <li><a class="internal" href="#exit">exit</a></li>
  27. <li><a class="internal" href="#ext">ext / ext&lt;x&gt;</a></li>
  28. <li><a class="internal" href="#filepool">filepool</a></li>
  29. <li><a class="internal" href="#findcheat">findcheat</a></li>
  30. <li><a class="internal" href="#hd">hd&lt;x&gt;</a></li>
  31. <li><a class="internal" href="#help">help</a></li>
  32. <li><a class="internal" href="#incr">incr</a></li>
  33. <li><a class="internal" href="#iomap">iomap</a></li>
  34. <li><a class="internal" href="#keymatrix">keymatrixdown / keymatrixup</a></li>
  35. <li><a class="internal" href="#laserdiscplayer">laserdiscplayer</a></li>
  36. <li><a class="internal" href="#list_extensions">list_extensions</a></li>
  37. <li><a class="internal" href="#load_icons">load_icons</a></li>
  38. <li><a class="internal" href="#load_settings">load_settings</a></li>
  39. <li><a class="internal" href="#machine">machine</a></li>
  40. <li><a class="internal" href="#machines">create_machine / load_machine / activate_machine / list_machines / delete_machine</a></li>
  41. <li><a class="internal" href="#machine_info">machine_info</a></li>
  42. <li><a class="internal" href="#message">message</a></li>
  43. <li><a class="internal" href="#monitor_type">monitor_type</a></li>
  44. <li><a class="internal" href="#mute_channels">mute_channels / unmute_channels / solo</a></li>
  45. <li><a class="internal" href="#nowind">nowind&lt;x&gt;</a></li>
  46. <li><a class="internal" href="#openmsx_info">openmsx_info</a></li>
  47. <li><a class="internal" href="#openmsx_update">openmsx_update</a></li>
  48. <li><a class="internal" href="#osd">osd</a></li>
  49. <li><a class="internal" href="#palette">palette</a></li>
  50. <li><a class="internal" href="#plugunplug">plug / unplug</a></li>
  51. <li><a class="internal" href="#psg_profile">psg_profile</a></li>
  52. <li><a class="internal" href="#record">record</a></li>
  53. <li><a class="internal" href="#record_channels">record_channels</a></li>
  54. <li><a class="internal" href="#remove_extension">remove_extension</a></li>
  55. <li><a class="internal" href="#reset">reset</a></li>
  56. <li><a class="internal" href="#reverse">reverse</a></li>
  57. <li><a class="internal" href="#save_settings">save_settings</a></li>
  58. <li><a class="internal" href="#savestate">savestate / loadstate / list_savestates / delete_savestate</a></li>
  59. <li><a class="internal" href="#screenshot">screenshot</a></li>
  60. <li><a class="internal" href="#set">set</a></li>
  61. <li><a class="internal" href="#slotmap">slotmap</a></li>
  62. <li><a class="internal" href="#slotselect">slotselect</a></li>
  63. <li><a class="internal" href="#soundlog">soundlog</a></li>
  64. <li><a class="internal" href="#store_machine">store_machine / restore_machine</a></li>
  65. <li><a class="internal" href="#test_machine">test_machine</a></li>
  66. <li><a class="internal" href="#toggle">toggle</a></li>
  67. <li><a class="internal" href="#trainer">trainer</a></li>
  68. <li><a class="internal" href="#type">type / type_via_keyboard</a></li>
  69. <li><a class="internal" href="#unset">unset</a></li>
  70. <li><a class="internal" href="#user_setting">user_setting</a></li>
  71. <li><a class="internal" href="#vdpregs">vdpregs</a></li>
  72. <li><a class="internal" href="#other">other</a></li>
  73. </ol>
  74. </li>
  75. <li><a class="internal" href="#settings">Settings</a>
  76. <ol class="inlinetoc">
  77. <li><a class="internal" href="#accuracy">accuracy</a></li>
  78. <li><a class="internal" href="#audio-inputfilename">audio-inputfilename</a></li>
  79. <li><a class="internal" href="#autoruncassettes">autoruncassettes</a></li>
  80. <li><a class="internal" href="#autorunlaserdisc">autorunlaserdisc</a></li>
  81. <li><a class="internal" href="#auto_enable_reverse">auto_enable_reverse</a></li>
  82. <li><a class="internal" href="#auto_save_replay">auto_save_replay</a></li>
  83. <li><a class="internal" href="#blur">blur</a></li>
  84. <li><a class="internal" href="#bootsector">bootsector</a></li>
  85. <li><a class="internal" href="#brightness">brightness</a></li>
  86. <li><a class="internal" href="#cmdtiming">cmdtiming</a></li>
  87. <li><a class="internal" href="#color_matrix">color_matrix</a></li>
  88. <li><a class="internal" href="#console">console</a></li>
  89. <li><a class="internal" href="#consolebackground">consolebackground</a></li>
  90. <li><a class="internal" href="#consolecolumns">consolecolumns</a></li>
  91. <li><a class="internal" href="#consolefont">consolefont</a></li>
  92. <li><a class="internal" href="#consolefontsize">consolefontsize</a></li>
  93. <li><a class="internal" href="#console_history_size">console_history_size</a></li>
  94. <li><a class="internal" href="#consoleplacement">consoleplacement</a></li>
  95. <li><a class="internal" href="#consolerows">consolerows</a></li>
  96. <li><a class="internal" href="#console_remove_doubles">console_remove_doubles</a></li>
  97. <li><a class="internal" href="#contrast">contrast</a></li>
  98. <li><a class="internal" href="#cputrace">cputrace</a></li>
  99. <li><a class="internal" href="#debugoutput">debugoutput</a></li>
  100. <li><a class="internal" href="#default_machine">default_machine</a></li>
  101. <li><a class="internal" href="#deflicker">deflicker</a></li>
  102. <li><a class="internal" href="#deinterlace">deinterlace</a></li>
  103. <li><a class="internal" href="#DirAsDSKmode">DirAsDSKmode</a></li>
  104. <li><a class="internal" href="#disablesprites">disablesprites</a></li>
  105. <li><a class="internal" href="#display_deform">display_deform</a></li>
  106. <li><a class="internal" href="#di_halt_callback">di_halt_callback</a></li>
  107. <li><a class="internal" href="#enable_session_management">enable_session_management</a></li>
  108. <li><a class="internal" href="#fastforward">fastforward</a></li>
  109. <li><a class="internal" href="#fastforwardspeed">fastforwardspeed</a></li>
  110. <li><a class="internal" href="#frequency">frequency</a></li>
  111. <li><a class="internal" href="#firmwareswitch">firmwareswitch</a></li>
  112. <li><a class="internal" href="#fullscreen">fullscreen</a></li>
  113. <li><a class="internal" href="#fullspeedwhenloading">fullspeedwhenloading</a></li>
  114. <li><a class="internal" href="#gamma">gamma</a></li>
  115. <li><a class="internal" href="#glow">glow</a></li>
  116. <li><a class="internal" href="#grabinput">grabinput</a></li>
  117. <li><a class="internal" href="#horizontal_stretch">horizontal_stretch</a></li>
  118. <li><a class="internal" href="#inputdelay">inputdelay</a></li>
  119. <li><a class="internal" href="#interleave_black_frame">interleave_black_frame</a></li>
  120. <li><a class="internal" href="#invalid_ppi_mode_callback">invalid_ppi_mode_callback</a></li>
  121. <li><a class="internal" href="#invalid_psg_directions_callback">invalid_psg_directions_callback</a></li>
  122. <li><a class="internal" href="#joystickN_config">joystick&lt;n&gt;_config</a></li>
  123. <li><a class="internal" href="#joystickN_deadzone">joystick&lt;n&gt;_deadzone</a></li>
  124. <li><a class="internal" href="#kbd_auto_toggle_code_kana_lock">kbd_auto_toggle_code_kana_lock</a></li>
  125. <li><a class="internal" href="#kbd_code_kana_host_key">kbd_code_kana_host_key</a></li>
  126. <li><a class="internal" href="#kbd_deadkey1_host_key">kbd_deadkey1_host_key</a></li>
  127. <li><a class="internal" href="#kbd_deadkey2_host_key">kbd_deadkey2_host_key</a></li>
  128. <li><a class="internal" href="#kbd_deadkey3_host_key">kbd_deadkey3_host_key</a></li>
  129. <li><a class="internal" href="#kbd_mapping_mode">kbd_mapping_mode</a></li>
  130. <li><a class="internal" href="#kbd_numkeypad_always_enabled">kbd_numkeypad_always_enabled</a></li>
  131. <li><a class="internal" href="#kbd_numkeypad_enter_key">kbd_numkeypad_enter_key</a></li>
  132. <li><a class="internal" href="#kbd_trace_key_presses">kbd_trace_key_presses</a></li>
  133. <li><a class="internal" href="#keyjoystick_n_button">keyjoystick&lt;n&gt;.&lt;button&gt;</a></li>
  134. <li><a class="internal" href="#led">led_&lt;name&gt;</a></li>
  135. <li><a class="internal" href="#limitsprites">limitsprites</a></li>
  136. <li><a class="internal" href="#master_volume">master_volume</a></li>
  137. <li><a class="internal" href="#maxframeskip">maxframeskip</a></li>
  138. <li><a class="internal" href="#midi-in-readfilename">midi-in-readfilename</a></li>
  139. <li><a class="internal" href="#midi-out-logfilename">midi-out-logfilename</a></li>
  140. <li><a class="internal" href="#minframeskip">minframeskip</a></li>
  141. <li><a class="internal" href="#mode">mode</a></li>
  142. <li><a class="internal" href="#mute">mute</a></li>
  143. <li><a class="internal" href="#noise">noise</a></li>
  144. <li><a class="internal" href="#pause">pause</a></li>
  145. <li><a class="internal" href="#pause_on_lost_focus">pause_on_lost_focus</a></li>
  146. <li><a class="internal" href="#pointer_hide_delay">pointer_hide_delay</a></li>
  147. <li><a class="internal" href="#power">power</a></li>
  148. <li><a class="internal" href="#printerlogfilename">printerlogfilename</a></li>
  149. <li><a class="internal" href="#print-resolution">print-resolution</a></li>
  150. <li><a class="internal" href="#r800_freq">r800_freq / r800_freq_locked</a></li>
  151. <li><a class="internal" href="#renderer">renderer</a></li>
  152. <li><a class="internal" href="#renshaturbo">renshaturbo</a></li>
  153. <li><a class="internal" href="#resampler">resampler</a></li>
  154. <li><a class="internal" href="#rs232-inputfilename">rs232-inputfilename</a></li>
  155. <li><a class="internal" href="#rs232-outputfilename">rs232-outputfilename</a></li>
  156. <li><a class="internal" href="#rtcmode">rtcmode</a></li>
  157. <li><a class="internal" href="#samples">samples</a></li>
  158. <li><a class="internal" href="#save_settings_on_exit">save_settings_on_exit</a></li>
  159. <li><a class="internal" href="#scale_algorithm">scale_algorithm</a></li>
  160. <li><a class="internal" href="#scale_factor">scale_factor</a></li>
  161. <li><a class="internal" href="#scanline">scanline</a></li>
  162. <li><a class="internal" href="#sound_driver">sound_driver</a></li>
  163. <li><a class="internal" href="#speed">speed</a></li>
  164. <li><a class="internal" href="#soundchip_balance">&lt;soundchip&gt;_balance</a></li>
  165. <li><a class="internal" href="#soundchip_channel_record">&lt;soundchip&gt;_ch&lt;channel&gt;_record</a></li>
  166. <li><a class="internal" href="#soundchip_channel_mute">&lt;soundchip&gt;_ch&lt;channel&gt;_mute</a></li>
  167. <li><a class="internal" href="#soundchip_detune_frequency">&lt;soundchip&gt;_detune_frequency</a></li>
  168. <li><a class="internal" href="#soundchip_detune_percent">&lt;soundchip&gt;_detune_percent</a></li>
  169. <li><a class="internal" href="#soundchip_vibrato_frequency">&lt;soundchip&gt;_vibrato_frequency</a></li>
  170. <li><a class="internal" href="#soundchip_vibrato_percent">&lt;soundchip&gt;_vibrato_percent</a></li>
  171. <li><a class="internal" href="#soundchip_volume">&lt;soundchip&gt;_volume</a></li>
  172. <li><a class="internal" href="#throttle">throttle</a></li>
  173. <li><a class="internal" href="#too_fast_vram_access">too_fast_vram_access</a></li>
  174. <li><a class="internal" href="#too_fast_vram_access_callback">too_fast_vram_access_callback</a></li>
  175. <li><a class="internal" href="#touchpad_transform_matrix">touchpad_transform_matrix</a></li>
  176. <li><a class="internal" href="#turborpause">turborpause</a></li>
  177. <li><a class="internal" href="#umr_callback">umr_callback</a></li>
  178. <li><a class="internal" href="#vdpcmdinprogress_callback">vdpcmdinprogress_callback</a></li>
  179. <li><a class="internal" href="#vdpcmdtrace">vdpcmdtrace</a></li>
  180. <li><a class="internal" href="#videosource">videosource</a></li>
  181. <li><a class="internal" href="#vsync">vsync</a></li>
  182. <li><a class="internal" href="#v9990cmdtrace">v9990cmdtrace</a></li>
  183. <li><a class="internal" href="#z80_freq">z80_freq / z80_freq_locked</a></li>
  184. <li><a class="internal" href="#othersettings">other</a></li>
  185. </ol>
  186. </li>
  187. </ol>
  188. <h2><a id="introduction">Introduction</a></h2>
  189. <p>This manual describes all commands and settings which are available in openMSX. You can use them to control openMSX fully from the Console (a built in command line interface, use F10 to call it), via Tcl scripts and via remote connections (explained in <a class="external" href="openmsx-control.html">Controlling openMSX from External Applications</a>). If you want to unleash the full potential of openMSX or just want a reference of all available possibilities, this manual should serve you well.</p>
  190. <h2><a id="commands">Commands</a></h2>
  191. <h3><a id="after">after</a></h3>
  192. <p>Execute a command after a certain event occurs, for example a given amount of time has passed or the emulator has been idle for a given amount of time.
  193. Every postponed command executes just once; if you want a command to run periodically, you have to issue it again every time it runs.
  194. The <code>after</code> command returns the id of the postponed command.
  195. It is possible to query a list of
  196. postponed commands and also to cancel postponed commands.</p>
  197. <div class="subsectiontitle">
  198. usage:
  199. </div>
  200. <table>
  201. <tr>
  202. <td><code>after time &lt;seconds&gt; &lt;command&gt;</code></td>
  203. <td>Execute a command after some time. Timescale is in MSX seconds.</td>
  204. </tr>
  205. <tr>
  206. <td><code>after realtime &lt;seconds&gt; &lt;command&gt;</code></td>
  207. <td>Execute a command after some time. Timescale is in host seconds.</td>
  208. </tr>
  209. <tr>
  210. <td><code>after idle &lt;seconds&gt; &lt;command&gt;</code></td>
  211. <td>Execute a command after some time being idle</td>
  212. </tr>
  213. <tr>
  214. <td><code>after frame &lt;command&gt;</code></td>
  215. <td>Execute a command when a video frame is finished
  216. (VDP scanning reaches vsync)</td>
  217. </tr>
  218. <tr>
  219. <td><code>after break &lt;command&gt;</code></td>
  220. <td>Execute a command after a breakpoint is reached</td>
  221. </tr>
  222. <tr>
  223. <td><code>after boot &lt;command&gt;</code></td>
  224. <td>Execute a command after a (re)boot</td>
  225. </tr>
  226. <tr>
  227. <td><code>after machine_switch &lt;command&gt;</code></td>
  228. <td>Execute a command after switch to new a machine</td>
  229. </tr>
  230. <tr>
  231. <td><code>after &lt;input-event&gt; &lt;command&gt;</code></td>
  232. <td>Execute a command after the given input event occurs. The events are e.g. mouse, joystick, focus and resize events, the same ones as for the <a class="internal" href="#bind">bind</a> command.</td>
  233. </tr>
  234. <tr>
  235. <td><code>after info</code></td>
  236. <td>List all postponed commands</td>
  237. </tr>
  238. <tr>
  239. <td><code>after cancel &lt;id&gt;</code></td>
  240. <td>Cancel the postponed command with given id</td>
  241. </tr>
  242. </table>
  243. <div class="subsectiontitle">
  244. examples:
  245. </div>
  246. <div class="examples">
  247. <code>after time 2.6 "set renderer SDLGL-PP"</code><br />
  248. <code>after idle 100 exit</code><br />
  249. <code>after info</code><br />
  250. <code>after cancel after#2</code><br />
  251. <code>after "mouse button1 down" foo</code>
  252. </div>
  253. <h3><a id="bind">bind / unbind / bind_default / unbind_default / activate_input_layer / deactivate_input_layer</a></h3>
  254. <p>Associate events (such as key presses) with commands. Whenever the
  255. specified event occurs (e.g. you press the specified key), the corresponding
  256. command will be executed. Any Tcl command or combination of commands
  257. separated with <code>;</code> (normal Tcl syntax) can be used. To customize your
  258. bindings you should use the (un)bind commands. A script that wants to provide
  259. a default binding for its functionality needs to use <code>bind_default</code>,
  260. this allows users with different preferences to overrule the default
  261. bindings. Using the <code>-repeat</code> option makes sure that if the event is
  262. repeated (e.g. keyboard events when keeping a key pressed), the command is
  263. repeated as well.</p>
  264. <p>Tcl scripts that need a whole set of bindings and only conditionally
  265. activate those bindings can use the 'input layer' system. It's possible to
  266. associate a binding with a specific layer and later specific layer(s) can be
  267. activated or deactivated. Such a layer can also be activated in a blocking
  268. mode. Blocking mode means that even if the layer didn't have a binding for a
  269. certain event, that event is still not passed to the emulated MSX. This can
  270. be useful to implement certain OSD widgets (like a virtual OSD keyboard).</p>
  271. <p>Events can be:</p>
  272. <table>
  273. <tr>
  274. <td><code>&lt;key&gt;[,release]</code></td>
  275. <td>Short for <code>keyb &lt;key&gt;[,release]</code></td>
  276. </tr>
  277. <tr>
  278. <td><code>keyb &lt;key&gt;[,release]</code></td>
  279. <td>&lt;key&gt; is pressed [or released]</td>
  280. </tr>
  281. <tr>
  282. <td><code>mouse button&lt;n&gt; &lt;up/down&gt;</code></td>
  283. <td>Mouse button &lt;n&gt; went up or down</td>
  284. </tr>
  285. <tr>
  286. <td><code>mouse motion &lt;x&gt; &lt;y&gt;</code></td>
  287. <td>Mouse motion of &lt;x&gt; and &lt;y&gt;</td>
  288. </tr>
  289. <tr>
  290. <td><code>joy&lt;n&gt; button&lt;m&gt; &lt;up/down&gt;</code></td>
  291. <td>Button &lt;m&gt; of joystick &lt;n&gt; went up/down</td>
  292. </tr>
  293. <tr>
  294. <td><code>joy&lt;n&gt; axis&lt;m&gt; &lt;value&gt;</code></td>
  295. <td>Axis &lt;m&gt; of joystick &lt;n&gt; got value &lt;value&gt;</td>
  296. </tr>
  297. <tr>
  298. <td><code>focus &lt;boolean&gt;</code></td>
  299. <td>The openMSX window got (1) or lost (0) focus</td>
  300. </tr>
  301. <tr>
  302. <td><code>OSDcontrol &lt;button&gt; PRESS|RELEASE</code></td>
  303. <td>The virtual OSDcontrol &lt;button&gt; got pressed or released.</td>
  304. </tr>
  305. </table>
  306. <div class="subsectiontitle">
  307. usage:
  308. </div>
  309. <table>
  310. <tr>
  311. <td><code>bind</code></td>
  312. <td>Show all bindings</td>
  313. </tr>
  314. <tr>
  315. <td><code>bind -layer &lt;layername&gt;</code></td>
  316. <td>Show all in a specific layer</td>
  317. </tr>
  318. <tr>
  319. <td><code>bind &lt;event&gt; [-layer &lt;layername&gt;]</code></td>
  320. <td>Show binding for the given event, optionally you can specify a layer</td>
  321. </tr>
  322. <tr>
  323. <td><code>bind &lt;event&gt; [-layer &lt;layername&gt;] [-repeat] &lt;command&gt;</code></td>
  324. <td>Make a new binding. Optionally make this binding in a specific layer.
  325. Also optionally it's possible to retrigger this binding periodically
  326. (e.g. when a key is kept pressed).</td>
  327. </tr>
  328. <tr>
  329. <td><code>bind -layers</code></td>
  330. <td>Show the names of all layers that currently have bindings</td>
  331. </tr>
  332. <tr>
  333. <td><code>unbind [-layer &lt;layername&gt;] &lt;event&gt;</code></td>
  334. <td>Undo binding for this event (optionally in a specific layer).</td>
  335. </tr>
  336. <tr>
  337. <td><code>unbind -layer &lt;layername&gt;</code></td>
  338. <td>Undo all bindings in the specified layer</td>
  339. </tr>
  340. <tr>
  341. <td><code>activate_input_layer</code></td>
  342. <td>Show a list of the currently active layers.</td>
  343. </tr>
  344. <tr>
  345. <td><code>activate_input_layer [-blocking] &lt;layername&gt;</code></td>
  346. <td>Activate the specified input layer, optionally this layer can be
  347. activate in blocking mode.</td>
  348. </tr>
  349. <tr>
  350. <td><code>deactivate_input_layer &lt;layername&gt;</code></td>
  351. <td>Deactivate the specified input layer.</td>
  352. </tr>
  353. </table>
  354. <div class="subsectiontitle">
  355. examples:
  356. </div>
  357. <div class="examples">
  358. <code>bind PAGEUP "set speed 100"</code><br />
  359. <code>bind PAGEDOWN "set speed 50"</code><br />
  360. <br />
  361. Only run in fastforward-mode while F9 is pressed (like BrMSX):<br />
  362. <code>unbind F9</code><br />
  363. <code>bind F9 "set fastforward off"</code><br />
  364. <code>bind F9,release "set fastforward on"</code><br />
  365. <br />
  366. Pause when window loses focus (like fMSX):<br />
  367. <code>bind "focus 0" "set pause on"</code><br />
  368. <code>bind "focus 1" "set pause off"</code><br />
  369. <br />
  370. Middle-click to toggle input grabbing:<br />
  371. <code>bind "mouse button2 down" "toggle grabinput"</code><br />
  372. <br />
  373. Map button 8 of joystick 1 to F2-key:<br />
  374. <code>bind "joy1 button8 down" "keymatrixdown 6 0x40"</code><br />
  375. <code>bind "joy1 button8 up" "keymatrixup 6 0x40"</code><br />
  376. <br />
  377. Use PageUp/Down to increase/decrease emulation speed.<br/>
  378. <code>bind PAGEUP -repeat "incr speed 1"</code><br />
  379. <code>bind PAGEDOWN -repeat "incr speed -1"</code><br />
  380. <br />
  381. Use Joystick hat left/right to increase/decrease volume.<br/>
  382. <code>bind "joy1 hat0 left" -repeat "incr speed -5"</code><br />
  383. <code>bind "joy1 hat0 right" -repeat "incr speed 5"</code><br />
  384. <br />
  385. Toggle fullscreen with ALT and ENTER.<br/>
  386. <code>bind ALT+RETURN toggle fullscreen</code><br />
  387. <br />
  388. React to joystick or cursor up movement in a Tcl script:<br />
  389. <code>bind_default "OSDcontrol UP PRESS" -repeat {osd_menu::menu_action UP }</code><br />
  390. React to joystick button 1 or spacebar press in a Tcl script:<br />
  391. <code>bind_default "OSDcontrol A PRESS" -repeat {osd_menu::menu_action A }</code><br />
  392. </div>
  393. <h3><a id="cart">cart / cart&lt;x&gt;</a></h3>
  394. <p>Insert a ROM cartridge in a running MSX. The <code>cart</code> command inserts the cartridge in the first available slot. The <code>carta</code>, <code>cartb</code> etc. commands insert it in the specified slot. The cartridges can be removed again with the <code>eject</code> subcommand.</p>
  395. <p>ROM cartridges are a special class of extensions. For extensions that are not ROM cartridges, see the commands <code><a class="internal" href="#ext">ext</a></code>, <code><a class="internal" href="#list_extensions">list_extensions</a></code> and <code><a class="internal" href="#remove_extension">remove_extension</a></code>.</p>
  396. <div class="subsectiontitle">
  397. usage:
  398. </div>
  399. <table>
  400. <tr>
  401. <td><code>cart KMARE.ROM</code></td>
  402. <td>Insert ROM cartridge in first free slot</td>
  403. </tr>
  404. <tr>
  405. <td><code>cart insert KMARE.ROM</code></td>
  406. <td>Insert ROM cartridge in first free slot</td>
  407. </tr>
  408. <tr>
  409. <td><code>carta USAS.ROM -ips USAS.IPS</code></td>
  410. <td>Insert ROM cartridge in slot A, with IPS patch applied to the ROM contents</td>
  411. </tr>
  412. <tr>
  413. <td><code>cartb NEMESIS.ROM -romtype Konami</code></td>
  414. <td>Insert ROM cartridge in slot B, and explicitly specify the mapper type (is normally auto detected)</td>
  415. </tr>
  416. <tr>
  417. <td><code>carta eject</code></td>
  418. <td>Eject the currently inserted cartridge from slot A</td>
  419. </tr>
  420. </table>
  421. <h3><a id="cassetteplayer">cassetteplayer</a></h3>
  422. <p>Controls the openMSX cassette player. The various subcommands can be used to insert, remove, create and rewind tape images.</p>
  423. <div class="subsectiontitle">
  424. usage:
  425. </div>
  426. <table>
  427. <tr>
  428. <td><code>cassetteplayer insert &lt;tape image&gt;</code></td>
  429. <td>Insert tape image (WAV or CAS format) in the cassette player</td>
  430. </tr>
  431. <tr>
  432. <td><code>cassetteplayer eject</code></td>
  433. <td>Remove tape from virtual cassette player</td>
  434. </tr>
  435. <tr>
  436. <td><code>cassetteplayer rewind</code></td>
  437. <td>Rewind the current tape</td>
  438. </tr>
  439. <tr>
  440. <td><code>cassetteplayer motorcontrol on|off</code></td>
  441. <td>Selects whether motor control signal (remote) is obeyed (default: on)</td>
  442. </tr>
  443. <tr>
  444. <td><code>cassetteplayer new [&lt;tape image&gt;]</code></td>
  445. <td>Create new tape image and go to record mode</td>
  446. </tr>
  447. <tr>
  448. <td><code>cassetteplayer play</code></td>
  449. <td>Go to play mode (when in record mode) and rewind the tape</td>
  450. </tr>
  451. </table>
  452. <h3><a id="cd">cd&lt;x&gt;</a></h3>
  453. <p>Change the CDROM image. The commands <code>cda</code>, <code>cdb</code> etc. are assigned to all available CDROM drives in the MSX. They will not
  454. correspond to drive names as used in MSX-DOS.</p>
  455. <div class="subsectiontitle">
  456. usage:
  457. </div>
  458. <table>
  459. <tr>
  460. <td><code>cda &lt;iso image&gt;</code></td>
  461. <td>Use ISO image for CDROM drive "cda"</td>
  462. </tr>
  463. <tr>
  464. <td><code>cda insert &lt;iso image&gt;</code></td>
  465. <td>Use ISO image for CDROM drive "cda"</td>
  466. </tr>
  467. <tr>
  468. <td><code>cda eject</code></td>
  469. <td>Eject CDROM from CDROM drive "cda"</td>
  470. </tr>
  471. <tr>
  472. <td><code>cda</code></td>
  473. <td>Show current ISO image for CDROM drive "cda"</td>
  474. </tr>
  475. </table>
  476. <h3><a id="cycle">cycle / cycle_back</a></h3>
  477. <p>Iterates through the values of an enumerated setting.</p>
  478. <p><code>cycle_back</code> does the same as <code>cycle</code>, but it goes in the opposite direction.</p>
  479. <div class="subsectiontitle">
  480. usage:
  481. </div>
  482. <table>
  483. <tr>
  484. <td><code>cycle &lt;setting&gt;</code></td>
  485. <td>Changes the specified setting to the next value in the cycle</td>
  486. </tr>
  487. <tr>
  488. <td><code>cycle_back &lt;setting&gt;</code></td>
  489. <td>Changes the specified setting to the previous value in the cycle</td>
  490. </tr>
  491. </table>
  492. <div class="subsectiontitle">
  493. examples:
  494. </div>
  495. <div class="examples">
  496. <code>cycle scale_algorithm</code><br />
  497. <code>cycle videosource</code>
  498. </div>
  499. <h3><a id="debug">debug</a></h3>
  500. <p>This command provides access to the debugger functionality of openMSX. It's meant to be used by an external debugger (see also <a class="external" href="openmsx-control.html">Controlling openMSX from External Applications</a>). The general format of the debug command is:</p>
  501. <p><code>debug &lt;subcommand&gt; [&lt;extra arguments&gt;]</code></p>
  502. <p>where 'extra arguments' are specific for each subcommand. Below is a list of all subcommands:</p>
  503. <table>
  504. <tr>
  505. <td><code>debug list</code></td>
  506. <td>Return a list of all debuggables.<br />
  507. A debuggable is (part of) the state of a MSX device that can be accessed
  508. via these debug commands.<br />
  509. Examples are:
  510. <ul>
  511. <li> the VDP registers </li>
  512. <li> the currently visible memory for the Z80</li>
  513. <li> the contents of the RAM </li>
  514. </ul>
  515. </td>
  516. </tr>
  517. <tr>
  518. <td><code>debug desc &lt;name&gt;</code></td>
  519. <td>Return a description of this debuggable</td>
  520. </tr>
  521. <tr>
  522. <td><code>debug size &lt;name&gt;</code></td>
  523. <td>Return the size of this debuggable</td>
  524. </tr>
  525. <tr>
  526. <td><code>debug read &lt;name&gt; &lt;addr&gt;</code></td>
  527. <td>Read a byte from a debuggable</td>
  528. </tr>
  529. <tr>
  530. <td><code>debug write &lt;name&gt; &lt;addr&gt; &lt;val&gt;</code></td>
  531. <td>Write a byte to a debuggable</td>
  532. </tr>
  533. <tr>
  534. <td><code>debug read_block &lt;name&gt; &lt;addr&gt; &lt;size&gt;</code></td>
  535. <td>Read a whole block at once</td>
  536. </tr>
  537. <tr>
  538. <td><code>debug write_block &lt;name&gt; &lt;addr&gt; &lt;values&gt;</code></td>
  539. <td>Write a whole block at once</td>
  540. </tr>
  541. <tr>
  542. <td><code>debug probe &lt;subcommand&gt;</code></td>
  543. <td>See below.</td>
  544. </tr>
  545. <tr>
  546. <td><code>debug break</code></td>
  547. <td>Break CPU at current position</td>
  548. </tr>
  549. <tr>
  550. <td><code>debug breaked</code></td>
  551. <td>Query CPU break status</td>
  552. </tr>
  553. <tr>
  554. <td><code>debug cont</code></td>
  555. <td>Continue execution after break</td>
  556. </tr>
  557. <tr>
  558. <td><code>debug step</code></td>
  559. <td>Execute one instruction</td>
  560. </tr>
  561. <tr>
  562. <td><code>debug list_bp</code></td>
  563. <td>List the active breakpoints</td>
  564. </tr>
  565. <tr>
  566. <td><code>debug set_bp [-once] &lt;addr&gt; [&lt;cond&gt;] [&lt;cmd&gt;]</code></td>
  567. <td>Insert a new breakpoint at the given address. Optionally you can specify a condition and a command. When
  568. the CPU is about to execute the instruction at the given address, the condition will be evaluated, if this
  569. evaluates to true then the command is executed. The condition can be any Tcl expression and the command can be
  570. any Tcl command. The default condition is 'true' and the default command is <code>"debug break"</code>.
  571. If the <code>-once</code> flag is passed, the breakpoint is automatically removed after it triggered.
  572. In other words: it will only trigger once.</td>
  573. </tr>
  574. <tr>
  575. <td><code>debug remove_bp &lt;id&gt;</code></td>
  576. <td>Remove a certain breakpoint</td>
  577. </tr>
  578. <tr>
  579. <td><code>debug list_watchpoints</code></td>
  580. <td>List all defined watchpoints</td>
  581. </tr>
  582. <tr>
  583. <td><code>debug set_watchpoint [-once] &lt;type&gt; &lt;region&gt; [&lt;cond&gt;] [&lt;cmd&gt;]</code></td>
  584. <td>Insert a new watchpoint. When the CPU is about to read or write to/from the specified memory or I/O region,
  585. the condition is evaluated. If the condition evaluated to true, the command is executed. The -once flag, the condition and the
  586. command are similar to the ones in the <code>set_bp</code> subcommand. A watchpoint can either be set on a single memory
  587. address or I/O port (specify a single value), or on a whole memory or I/O port range (specify a begin/end pair).
  588. For example: <code>debug set_watchpoint write_mem {0x8000 0x8FFF}</code>. During the execution of <code>&lt;cmd&gt;</code>, the following global Tcl variables are set: <code>::wp_last_address</code>, which is the actual address of the mem/io read/write that triggered the watchpoint and <code>::wp_last_value</code>, the actual value that was written by the mem/io write that triggered the watchpoint.</td>
  589. </tr>
  590. <tr>
  591. <td><code>debug remove_watchpoint &lt;id&gt;</code></td>
  592. <td>Remove a certain watchpoint</td>
  593. </tr>
  594. <tr>
  595. <td><code>debug list_conditions</code></td>
  596. <td>List the active conditions</td>
  597. </tr>
  598. <tr>
  599. <td><code>debug set_condition [-once] &lt;cond&gt; [&lt;cmd&gt;]</code></td>
  600. <td>Set a new debugger condition. Conditions are like breakpoints, but not
  601. tied to a specific address. Simulation is much slower when conditions
  602. are used (though generally while debugging this is not a problem).</td>
  603. </tr>
  604. <tr>
  605. <td><code>debug remove_condition &lt;id&gt;</code></td>
  606. <td>Remove a certain condition</td>
  607. </tr>
  608. <tr>
  609. <td><code>debug disasm [&lt;addr&gt;]</code></td>
  610. <td>Disassemble instructions at PC or given address</td>
  611. </tr>
  612. </table>
  613. <p>The probe subcommand again has subcommands:</p>
  614. <table>
  615. <tr>
  616. <td><code>debug probe list</code></td>
  617. <td>Returns a list of all probes.</td>
  618. </tr>
  619. <tr>
  620. <td><code>debug probe desc &lt;probe&gt;</code></td>
  621. <td>Returns a description of this probe.</td>
  622. </tr>
  623. <tr>
  624. <td><code>debug probe read &lt;probe&gt;</code></td>
  625. <td>Returns the current value of a probe. But note that not all probes have a value</td>
  626. </tr>
  627. <tr>
  628. <td><code>debug probe set_bp [-once] &lt;probe&gt; [&lt;cond&gt;] [&lt;cmd&gt;]</code></td>
  629. <td>Set a breakpoint on a probe. Like in the 'set_bp' subcommand you can optionally specify a condition and a command.</td>
  630. </tr>
  631. <tr>
  632. <td><code>debug probe remove_bp &lt;id&gt;</code></td>
  633. <td>Remove the given breakpoint.</td>
  634. </tr>
  635. <tr>
  636. <td><code>debug probe list_bp</code></td>
  637. <td>List the active breakpoints set on probes.</td>
  638. </tr>
  639. </table>
  640. <p>At first sight 'probes' and 'debuggables' are very similar. Though there are some important differences and that's why probes and debuggables use different subcommands:</p>
  641. <table>
  642. <tr>
  643. <td>A debuggable is an array of bytes.</td>
  644. <td>A probe is a single value and can have any type.</td>
  645. </tr>
  646. <tr>
  647. <td>A debuggable is readable and (usually) writable.</td>
  648. <td>A probe is always read-only.</td>
  649. </tr>
  650. <tr>
  651. <td>It's not possible to set breakpoints on a debuggable.</td>
  652. <td>You can set breakpoints on a probe (and sometimes this is the only purpose of a probe).</td>
  653. </tr>
  654. </table>
  655. <p>Many examples of usage of the debug command can be found in the scripts that come with openMSX (in the <code>share/scripts</code> directory). We also list a few here.
  656. </p>
  657. <div class="subsectiontitle">
  658. examples:
  659. </div>
  660. <div class="examples">
  661. <ul>
  662. <li>break (only!) after 0 is written to 0x8000):<br/>
  663. <code>debug set_watchpoint write_mem 0x8000 {[debug read "memory" 0x8000] ==
  664. 0x00}</code></li>
  665. <li>break on address 0xF37D, but only when Z80 register C has the value 0x2F:<br/>
  666. <code>debug set_bp 0xF37D {[reg C] == 0x2F}</code></li>
  667. <li>break when CPU reads from any addresses between 0xFBE5 and 0xFBEF:<br/>
  668. <code>debug set_watchpoint read_mem {0xFBE5 0xFBEF}</code></li>
  669. <li>break after a write was done to I/O port 0x99, but only when Z80 register A has a value of 0x81:<br/>
  670. <code>debug set_watchpoint write_io 0x99 {[reg A] == 0x81}</code></li>
  671. <li>break as soon as there is a pending Z80 IRQ (even when in DI mode):<br/>
  672. <code>debug probe set_bp z80.pendingIRQ</code></li>
  673. <li>break when register HL has the value 1234:<br/>
  674. <code>debug set_condition {[reg hl] == 1234}</code></li>
  675. </ul>
  676. </div>
  677. <div class="note">
  678. Note: Some of the commands are pretty low level. In the share/scripts directory you'll find some Tcl scripts that
  679. offer convenience wrappers around these commands. For example: <a class="internal" href="#other"><code>showmem</code></a>, <a class="internal" href="#other"><code>disasm</code></a>, <a class="internal" href="#other"><code>cpuregs</code></a>, <a class="internal" href="#other"><code>save_debuggable</code></a>, etc.
  680. </div>
  681. <h3><a id="disable_reversebar">disable_reversebar</a></h3>
  682. <p>Disables the bar on top of the gui to reverse the emulator status. Use also <code>toggle_reversebar</code> command to enable/disable this feature.</p>
  683. <div class="subsectiontitle">
  684. usage:
  685. </div>
  686. <table>
  687. <tr>
  688. <td><code>disable_reversebar</code></td>
  689. <td>Disables reverse status emulator bar.</td>
  690. </tr>
  691. </table>
  692. <h3><a id="disk">disk&lt;x&gt; / virtual_drive</a></h3>
  693. <p>Insert a disk image in a drive. Optionally apply an IPS patch to the disk image.
  694. The commands <code>diska</code>, <code>diskb</code> etc. are
  695. assigned to all available "physical" disk drives in the MSX. They might not correspond to drive names as used in
  696. MSX-DOS.</p>
  697. <p>In addition to the physical <code>disk&lt;x&gt;</code> drives, there is the <code>virtual_drive</code>. This fake drive does not correspond to any MSX hardware. It can be used as a source or target for <code><a class="internal" href="#diskmanipulator">diskmanipulator</a></code> operations just like physical drives.</p>
  698. <div class="subsectiontitle">
  699. usage:
  700. </div>
  701. <table>
  702. <tr>
  703. <td><code>diska &lt;disk image&gt;</code></td>
  704. <td>Insert disk image in drive "diska"</td>
  705. </tr>
  706. <tr>
  707. <td><code>diskb insert &lt;disk image&gt;</code></td>
  708. <td>Insert disk image in drive "diskb"</td>
  709. </tr>
  710. <tr>
  711. <td><code>diska &lt;disk image&gt; &lt;ips&gt;</code></td>
  712. <td>Insert disk image and apply IPS patch</td>
  713. </tr>
  714. <tr>
  715. <td><code>diska eject</code></td>
  716. <td>Remove disk from drive "diska"</td>
  717. </tr>
  718. <tr>
  719. <td><code>diska ramdsk</code></td>
  720. <td>Insert scratch disk in drive "diska"</td>
  721. </tr>
  722. </table>
  723. <h3><a id="diskmanipulator">diskmanipulator</a></h3>
  724. <p>A collection of commands to manipulate (the files on) a disk image.</p>
  725. <p>It can be used in so many different ways, that we wrote a separate manual for it: <a class="external" href="diskmanipulator.html">Using Diskmanipulator</a>.</p>
  726. <h3><a id="escape_grab">escape_grab</a></h3>
  727. <p>Only has effect in windowed mode and when the <code><a class="internal" href="#grabinput">grabinput</a></code> setting is active. Temporarily release the input grab.
  728. After the openMSX window has lost and regained the focus, the grab is again effective.</p>
  729. <div class="subsectiontitle">
  730. usage:
  731. </div>
  732. <table>
  733. <tr>
  734. <td><code>escape_grab</code></td>
  735. <td>Temporarily release the input grab</td>
  736. </tr>
  737. </table>
  738. <h3><a id="exit">exit</a></h3>
  739. <p>Terminate the openMSX application. Optionally you can pass an exit-code.</p>
  740. <div class="subsectiontitle">
  741. usage:
  742. </div>
  743. <table>
  744. <tr>
  745. <td><code>exit</code></td>
  746. <td>Exits the emulator</td>
  747. </tr>
  748. </table>
  749. <h3><a id="enable_reversebar">enable_reversebar</a></h3>
  750. <p>Enables a bar on top of the gui to reverse the emulator status. Use also <code>toggle_reversebar</code> command to enable/disable this feature.</p>
  751. <div class="subsectiontitle">
  752. usage:
  753. </div>
  754. <table>
  755. <tr>
  756. <td><code>enable_reversebar</code></td>
  757. <td>Enable reverse status emulator bar.</td>
  758. </tr>
  759. </table>
  760. <h3><a id="ext">ext / ext&lt;x&gt;</a></h3>
  761. <p>Insert an MSX extension in a running MSX machine. The <code>ext</code> command inserts the extension in the first available slot. The <code>exta</code>, <code>extb</code> etc. commands insert it in the specified slot. The extension can be removed again with the <code><a class="internal" href="#remove_extension">remove_extension</a></code>
  762. command. See also the commands <code><a class="internal" href="#cart">cart</a></code>, <code><a class="internal" href="#list_extensions">list_extensions</a></code> and <code><a class="internal" href="#remove_extension">remove_extension</a></code>.</p>
  763. <p>To get a list of possible extensions it's convenient to use the tab-completetion feature, i.e. type '<code>ext&lt;space&gt;&lt;tab&gt;</code>'. Alternatively the command '<code><a class="internal" href="#openmsx_info">openmsx_info</a> extensions</code>' gives you the same information (and is easier to use in a scripting context).</p>
  764. <p>Note that some extensions (i.e. those without any memory) will not physically occupy any slot when inserted, even when they were inserted in a specific slot.</p>
  765. <div class="subsectiontitle">
  766. usage:
  767. </div>
  768. <table>
  769. <tr>
  770. <td><code>ext fmpac</code></td>
  771. <td>Insert an FMPAC in a running MSX machine in the first free slot</td>
  772. </tr>
  773. <tr>
  774. <td><code>extb scc</code></td>
  775. <td>Insert the empty SCC cart in slot B of the running MSX machine</td>
  776. </tr>
  777. </table>
  778. <h3><a id="filepool">filepool</a></h3>
  779. <p>With this command you can manage your file pool settings. File pools are directories on your host system (PC/Mac/Dingoo/etc.). They are used by openMSX to search files in, which are referred to from machine or extension definition files, save states or replays which you are trying to load. First, the file will be searched at the path that was also used when the save state or replay was created. But if it isn't found there (which is usually the case if you load such a state or replay you got from someone else), it will use the file pools to search instead. In other words, if you are trying to load such replays, it's probably a good idea to put the media files referred to (ROMs, disks, tapes) in the (proper) filepool.</p>
  780. <p>File pools have the following properties:</p>
  781. <dl>
  782. <dt>path</dt>
  783. <dd>The path to the directory which is the actual file pool</dd>
  784. <dt>position</dt>
  785. <dd>There exists a list of file pools, which are searched in order of their position.</dd>
  786. <dt>type(s)</dt>
  787. <dd>A file pool can serve specific types. Currently, the valid types are
  788. <dl>
  789. <dt><code>system_rom</code></dt>
  790. <dd>for system ROMs, you are probably using this one already if you installed your system ROMs in the recommended place <code>share/systemroms</code>,</dd>
  791. <dt><code>rom</code></dt>
  792. <dd>for other ROM files,</dd>
  793. <dt><code>disk</code></dt>
  794. <dd>for disk images and</dd>
  795. <dt><code>tape</code></dt>
  796. <dd>for cassette/tape images.</dd>
  797. </dl>
  798. </dd>
  799. </dl>
  800. <p>Apart from the default system ROM file pool as mentioned above, the other default file pool is <code>share/software</code>, which is configured for all other (than type <code>system_rom</code>) software files.</p>
  801. <div class="subsectiontitle">
  802. usage:
  803. </div>
  804. <table>
  805. <tr>
  806. <td><code>filepool list</code></td>
  807. <td>Shows the currently defined file pool entries (see below for example output)</td>
  808. </tr>
  809. <tr>
  810. <td><code>filepool add -path &lt;path&gt; -types &lt;typelist&gt; [-position &lt;pos&gt;]</code></td>
  811. <td>Add a new entry with the given properties as explained above. For the types, use a format like <code>"rom tape disk"</code>. Optionally, you can also specify where in the list of existing file pools the new file pool should be added. By default, this is at the end.</td>
  812. </tr>
  813. <tr>
  814. <td><code>filepool remove &lt;position&gt;</code></td>
  815. <td>Remove the file pool at the given position</td>
  816. </tr>
  817. <tr>
  818. <td><code>filepool reset</code></td>
  819. <td>Reset the file pool settings to the default values</td>
  820. </tr>
  821. </table>
  822. <p>An example of the default file pools for a Windows 7 system with user Quibus:</p>
  823. <pre>
  824. 1: C:/Users/Quibus/Documents/openMSX/share/systemroms [system_rom]
  825. 2: C:/Users/Quibus/Documents/openMSX/share/software [rom disk tape]
  826. 3: C:/Program Files/openMSX/share/systemroms [system_rom]
  827. 4: C:/Program Files/openMSX/share/software [rom disk tape]
  828. </pre>
  829. <p>The first one is the system ROMs dir in the user's home directory. The second is the software file pool for other software in the user's home directory. The last two are similar, but then on system level. On a UNIX like system, you get something very similar.</p>
  830. <h3><a id="findcheat">findcheat</a></h3>
  831. <p>This is a tool to find new cheats, for example for a certain game it can help you find the memory location where the number of remaining lives is stored. These cheats can later be added to the <code><a class="internal" href="#trainer">trainer</a></code> command.</p>
  832. <p>It works more or less like this:</p>
  833. <ol>
  834. <li>Initialize the <code>findcheat</code> tool, this takes an initial snapshot of the MSX memory.</li>
  835. <li>Perform some action in the game that changes the variable that you're interested in. For example if you want to find the memory location where the number of lives is stored, you have to loose (or gain) a life in the game.</li>
  836. <li>Now use the <code>findcheat</code> tool to compare the current MSX memory state with the previous memory snapshot. <code>findcheat</code> offers a lot of possibilities here, for example you can search for memory locations that became bigger or smaller or locations whose value changed or didn't change.</li>
  837. <li><code>findcheat</code> will show a list of memory locations that still match the search criteria.</li>
  838. <li>If there still are still too many matches, repeat from step 2.</li>
  839. </ol>
  840. <p>Vampier made a video tutorial on how to use <code>findcheat</code>, you can find it <a class="external" href="http://www.youtube.com/watch?v=F11ltfkCtKo">here</a>.</p>
  841. <h3><a id="hd">hd&lt;x&gt;</a></h3>
  842. <p>Change the hard disk image. The commands <code>hda</code>, <code>hdb</code> etc. are assigned to all available hard disk drives in the MSX. They will not correspond to drive names as used in MSX-DOS.</p>
  843. <div class="subsectiontitle">
  844. usage:
  845. </div>
  846. <table>
  847. <tr>
  848. <td><code>hda &lt;disk image&gt;</code></td>
  849. <td>Use hard disk image for hard disk "hda"</td>
  850. </tr>
  851. <tr>
  852. <td><code>hda insert &lt;disk image&gt;</code></td>
  853. <td>Use hard disk image for hard disk "hda"</td>
  854. </tr>
  855. <tr>
  856. <td><code>hda</code></td>
  857. <td>Show current hard disk image for hard disk "hda"</td>
  858. </tr>
  859. </table>
  860. <div class="note">
  861. Note: Because of disk caching, changing the hard disk when the MSX is running can lead to corruption of the hard disk contents. Therefore openMSX blocks the <code>hd&lt;x&gt;</code> commands unless the MSX is powered off. See <code><a class="internal" href="#power">power</a></code> setting.
  862. </div>
  863. <h3><a id="help">help</a></h3>
  864. <p>Shows help info for console commands.</p>
  865. <div class="subsectiontitle">
  866. usage:
  867. </div>
  868. <table>
  869. <tr>
  870. <td><code>help</code></td>
  871. <td>Shows a list of all possible commands</td>
  872. </tr>
  873. <tr>
  874. <td><code>help &lt;command&gt;</code></td>
  875. <td>Shows help info for a specific command</td>
  876. </tr>
  877. <tr>
  878. <td><code>help &lt;command&gt; &lt;subcommand&gt;</code></td>
  879. <td>Some commands have more detailed help on subcommands</td>
  880. </tr>
  881. </table>
  882. <h3><a id="incr">incr</a></h3>
  883. <p>Increment an integer setting.</p>
  884. <div class="subsectiontitle">
  885. usage:
  886. </div>
  887. <table>
  888. <tr>
  889. <td><code>incr &lt;setting&gt;</code></td>
  890. <td>Increment the specified setting by one</td>
  891. </tr>
  892. <tr>
  893. <td><code>incr &lt;setting&gt; &lt;num&gt;</code></td>
  894. <td>Increment the specified setting by the given amount (can be negative)</td>
  895. </tr>
  896. </table>
  897. <div class="subsectiontitle">
  898. examples:
  899. </div>
  900. <div class="examples">
  901. <code>incr speed</code><br />
  902. <code>incr renshaturbo 10</code><br />
  903. <code>incr scanline -5</code>
  904. </div>
  905. <h3><a id="iomap">iomap</a></h3>
  906. <p>Shows what I/O ports are connected to which devices. The related command <code><a class="internal" href="#slotmap">slotmap</a></code> shows a similar overview, but for memory-mapped devices.</p>
  907. <div class="subsectiontitle">
  908. usage:
  909. </div>
  910. <table>
  911. <tr>
  912. <td><code>iomap</code></td>
  913. <td>Shows the I/O map of the current MSX machine</td>
  914. </tr>
  915. </table>
  916. <h3><a id="keymatrix">keymatrixdown / keymatrixup</a></h3>
  917. <p>Press or release keys in the MSX keyboard matrix. Can be used to make an external program or Tcl script press MSX keys. For some more information about the keymatrix, you could read the <a href="http://map.grauw.nl/articles/keymatrix.php">article on the MAP</a>.</p>
  918. <div class="subsectiontitle">
  919. usage:
  920. </div>
  921. <table>
  922. <tr>
  923. <td><code>keymatrixdown &lt;row&gt; &lt;mask&gt;</code></td>
  924. <td>Press the indicated MSX keys</td>
  925. </tr>
  926. <tr>
  927. <td><code>keymatrixup &lt;row&gt; &lt;mask&gt;</code></td>
  928. <td>Release the indicated MSX keys</td>
  929. </tr>
  930. </table>
  931. <div class="subsectiontitle">
  932. examples:
  933. </div>
  934. <div class="examples">
  935. <code>keymatrixdown 6 0x01</code><br />
  936. <code>keymatrixup 6 0x01</code>
  937. </div>
  938. <h3><a id="laserdiscplayer">laserdiscplayer</a></h3>
  939. <p>Controls the Laserdisc player; a Laserdisc can be inserted or ejected. When a real Laserdisc player is connected to an MSX, no other controls are available either.</p>
  940. <p>Note that this command is only available when the Pioneer PX-7 or Pioneer PX-V60 MSX machine is being emulated</p>
  941. <div class="subsectiontitle">
  942. usage:
  943. </div>
  944. <table>
  945. <tr>
  946. <td><code>laserdiscplayer insert &lt;filename&gt;</code></td>
  947. <td>Inserts the specified file into the virtual laserdisc player.</td>
  948. </tr>
  949. <tr>
  950. <td><code>laserdiscplayer eject</code></td>
  951. <td>Ejects the laserdisc from the virtual laserdisc player; this emulates pressing the eject button on a real Laserdisc Player.</td>
  952. </tr>
  953. </table>
  954. <h3><a id="list_extensions">list_extensions</a></h3>
  955. <p>Returns a list of inserted cartridges and extensions. These can be removed with the <code><a class="internal" href="#remove_extension">remove_extension</a></code> command or
  956. additional items can be added with the <code><a class="internal" href="#cart">cart</a></code> and <code><a class="internal" href="#ext">ext</a></code> commands.</p>
  957. <div class="subsectiontitle">
  958. usage:
  959. </div>
  960. <table>
  961. <tr>
  962. <td><code>list_extensions</code></td>
  963. <td>Lists all currently inserted cartridges and extensions</td>
  964. </tr>
  965. </table>
  966. <h3><a id="load_icons">load_icons</a></h3>
  967. <p>Load a different icon set (used for the On Screen Display (OSD) LEDs).</p>
  968. <p>Icon sets are stored in the share/skins directory.</p>
  969. <div class="subsectiontitle">
  970. usage:
  971. </div>
  972. <table>
  973. <tr>
  974. <td><code>load_icons &lt;name&gt;</code></td>
  975. <td>Load the given icon set, but don't change the position on the screen.</td>
  976. </tr>
  977. <tr>
  978. <td><code>load_icons &lt;name&gt; &lt;position&gt;</code></td>
  979. <td>Load the given icon set and place them at the requested position. Position can be <code>bottom</code>, <code>top</code>, <code>left</code> or <code>right</code>.</td>
  980. </tr>
  981. </table>
  982. <h3><a id="load_settings">load_settings</a></h3>
  983. <p>Load settings from a given settings XML file. The settings file does not have to be complete: settings that are not mentioned in the given file are left untouched. See also <code><a class="internal" href="#save_settings">save_settings</a></code>.</p>
  984. <div class="subsectiontitle">
  985. usage:
  986. </div>
  987. <table>
  988. <tr>
  989. <td><code>load_settings &lt;filename&gt;</code></td>
  990. <td>Load settings from the given file</td>
  991. </tr>
  992. </table>
  993. <h3><a id="machine">machine</a></h3>
  994. <p>Switch to a new MSX machine.</p>
  995. <div class="subsectiontitle">
  996. usage:
  997. </div>
  998. <table>
  999. <tr>
  1000. <td><code>machine</code></td>
  1001. <td>Returns the handle for the currently active machine</td>
  1002. </tr>
  1003. <tr>
  1004. <td><code>machine &lt;machine name&gt;</code></td>
  1005. <td>Switch to the specified machine, also returns the handle for that machine</td>
  1006. </tr>
  1007. </table>
  1008. <div class="note">
  1009. Note: The machine handle is mostly used by external applications controlling openMSX (see also <a class="external" href="openmsx-control.html">Controlling openMSX from External Applications</a>). For interactive use you can omit the machine handle to have the commands operate on the current machine.
  1010. </div>
  1011. <h3><a id="machines">create_machine / load_machine / activate_machine / list_machines / delete_machine</a></h3>
  1012. <p>openMSX has the possibility to have multiple MSX machines concurrently in memory. This is more or less like multiple tabs in a web browser: you only work with one at-a-time, but you can have multiple open at the same time and easily switch between them. These commands are low level commands to manage this.</p>
  1013. <p>Some commands are specific per machine, for example if you insert a disk image into the disk drive of the emulated MSX machine and if you have multiple MSX machines, you need to specify in which MSX machine you want to insert the disk. To solve this, we introduced the concept of the 'active' MSX machine (this is also the machine that is visible and audible). All unqualified machine-specific command will act on the active machine. If you want to execute the command in a specific machine, you can qualify the command with a machineID prefix.</p>
  1014. <table>
  1015. <tr>
  1016. <td><code>diska &lt;diskimage&gt;</code></td>
  1017. <td>execute the diska command in the active machine</td>
  1018. </tr>
  1019. <tr>
  1020. <td><code>&lt;machine-ID&gt;::diska &lt;diskimage&gt;</code></td>
  1021. <td>execute the diska command in the specified machine</td>
  1022. </tr>
  1023. </table>
  1024. <h4><code>create_machine</code>:</h4>
  1025. <p>This command returns a new machine-id. This machine-id can be used in the following commands. In the web browser analogy this command would open a new empty tab.</p>
  1026. <h4><code>load_machine</code>:</h4>
  1027. <p>This command loads a machine configuration (= MSX model) into the given machine-ID.
  1028. In the web browser analogy, this command would load a page in a previously created empty tab. And unlike a web browser, where you can reload a different page in the same tab, you can only load a machine configuration once in the same machine-ID.</p>
  1029. <h4><code>activate_machine</code>:</h4>
  1030. <p>This command activates the given machine-ID. At any time there can only be one active machine-ID. This is analogue to switching tabs in a web browser.</p>
  1031. <h4><code>list_machines</code>:</h4>
  1032. <p>Returns a list of all currently existing machine-IDs.</p>
  1033. <h4><code>delete_machine</code>:</h4>
  1034. <p>Deletes the given machine-ID. This is analogue to closing a tab in a web browser.</p>
  1035. <h4>examples:</h4>
  1036. <table>
  1037. <tr>
  1038. <td><code>set oldID [machineID]</code></td>
  1039. <td>get the current machineID</td>
  1040. </tr>
  1041. <tr>
  1042. <td><code>set newID [create_machine]</code></td>
  1043. <td>create a new machineID</td>
  1044. </tr>
  1045. <tr>
  1046. <td><code>$newID::load_machine Philips_NMS_8250</code></td>
  1047. <td>load an MSX2 configuration in that new machineID</td>
  1048. </tr>
  1049. <tr>
  1050. <td><code>activate_machine $newID</code></td>
  1051. <td>switch to the new machine</td>
  1052. </tr>
  1053. <tr>
  1054. <td><code>activate_machine $oldID</code></td>
  1055. <td>switch back to old machine</td>
  1056. </tr>
  1057. <tr>
  1058. <td><code>delete_machine $newID</code></td>
  1059. <td>delete new machine</td>
  1060. </tr>
  1061. </table>
  1062. <div class="note">
  1063. If you don't care about multiple active machines, the <code><a class="internal" href="#machine">machine</a></code> command is much more convenient to switch to a different MSX configuration.
  1064. </div>
  1065. <h3><a id="machine_info">machine_info</a></h3>
  1066. <p>Shows information about a certain topic. This command is similar to the <code><a class="internal" href="#openmsx_info">openmsx_info</a></code> command. The topics of
  1067. <code>machine_info</code> are all machine specific, while the topics of <code><a class="internal" href="#openmsx_info">openmsx_info</a></code> are generic.</p>
  1068. <div class="subsectiontitle">
  1069. usage:
  1070. </div>
  1071. <table>
  1072. <tr>
  1073. <td><code>machine_info</code></td>
  1074. <td>Shows a list of all possible topics</td>
  1075. </tr>
  1076. <tr>
  1077. <td><code>machine_info &lt;topic&gt;</code></td>
  1078. <td>Shows info on the given topic</td>
  1079. </tr>
  1080. </table>
  1081. <h3><a id="message">message</a></h3>
  1082. <p>Show a message, with optional level (info, warning, error). By default this message will be shown in a colored box at the top of the screen for a (short) duration and then fade away.</p>
  1083. <div class="subsectiontitle">
  1084. usage:
  1085. </div>
  1086. <table>
  1087. <tr>
  1088. <td><code>message &lt;text&gt; [&lt;level&gt;]</code></td>
  1089. </tr>
  1090. </table>
  1091. <div class="subsectiontitle">
  1092. examples:
  1093. </div>
  1094. <div class="examples">
  1095. <code>message "Hello world!"</code><br />
  1096. <code>message "Something bad happened" error</code><br />
  1097. </div>
  1098. <h3><a id="monitor_type">monitor_type</a></h3>
  1099. <p>Select a monitor color profile.</p>
  1100. <div class="subsectiontitle">
  1101. usage:
  1102. </div>
  1103. <table>
  1104. <tr>
  1105. <td><code>monitor_type</code></td>
  1106. <td>Shows the currently selected color profile</td>
  1107. </tr>
  1108. <tr>
  1109. <td><code>monitor_type -list</code></td>
  1110. <td>Lists all available color profiles</td>
  1111. </tr>
  1112. <tr>
  1113. <td><code>monitor_type &lt;profile&gt;</code></td>
  1114. <td>Selects a new color profile</td>
  1115. </tr>
  1116. </table>
  1117. <div class="note">
  1118. Note: This command is a convenience wrapper around the <code><a class="internal" href="#color_matrix">color_matrix</a></code> setting.
  1119. </div>
  1120. <h3><a id="mute_channels">mute_channels / unmute_channels / solo</a></h3>
  1121. <p>Mute or unmute specific individual channels of sound devices. The syntax is very similar to the <code><a class="internal" href="#record_channels">record_channels</a></code> command.</p>
  1122. <div class="subsectiontitle">
  1123. usage:
  1124. </div>
  1125. <table>
  1126. <tr>
  1127. <td><code>mute_channels &lt;device&gt; [&lt;channels&gt;]] [&lt;device&gt; [&lt;channels&gt;]]</code></td>
  1128. <td>Mute the specified channels of the specified device(s). If a device is given but no specific channels are specified, all channels of that device are muted. If no arguments are given at all, this command return a list of all currently muted channels.</td>
  1129. </tr>
  1130. <tr>
  1131. <td><code>unmute_channels &lt;device&gt; [&lt;channels&gt;]] [&lt;device&gt; [&lt;channels&gt;]]</code></td>
  1132. <td>Unmute the specified channels of the specified device(s). If a device is given but no specific channels are specified, all channels of that device are unmuted. If no arguments are given at all, this command unmutes all channels of all devices. </td>
  1133. </tr>
  1134. <tr>
  1135. <td><code>solo &lt;device&gt; [&lt;channels&gt;]] [&lt;device&gt; [&lt;channels&gt;]]</code></td>
  1136. <td>Mute all channels of all devices except for the specified channels.</td>
  1137. </tr>
  1138. </table>
  1139. <div class="subsectiontitle">
  1140. examples:
  1141. </div>
  1142. <div class="examples">
  1143. <code>mute_channels</code><br />
  1144. <code>mute_channels PSG</code><br />
  1145. <code>mute_channels SCC 2,4</code><br />
  1146. <code>unmute_channels</code><br />
  1147. <code>unmute_channels PSG 1 SCC 1,3-4</code><br />
  1148. <code>solo PSG 3</code>
  1149. </div>
  1150. <h3><a id="nowind">nowind&lt;x&gt;</a></h3>
  1151. <p>Similar to the <code><a class="internal" href="#disk">disk&lt;x&gt;</a></code>
  1152. commands there is a <code>nowind&lt;x&gt;</code> command for each nowind
  1153. interface. This command is modeled after the 'usbhost' command of the real
  1154. nowind interface. Though only a subset of the options is supported. Here's a
  1155. short overview of the command line options:</p>
  1156. <table>
  1157. <tr><th>long</th> <th>short</th><th>explanation</th></tr>
  1158. <tr><td>--image</td> <td>-i</td> <td>specify disk image</td></tr>
  1159. <tr><td>--hdimage</td> <td>-m</td> <td>specify harddisk image</td></tr>
  1160. <tr><td>--romdisk</td> <td>-j</td> <td>enable romdisk</td></tr>
  1161. <tr><td>--ctrl</td> <td>-c</td> <td>no phantom disks</td></tr>
  1162. <tr><td>--no-ctrl</td> <td>-C</td> <td>enable phantom disks</td></tr>
  1163. <tr><td>--allow</td> <td>-a</td> <td>allow other diskroms to initialize</td></tr>
  1164. <tr><td>--no-allow</td><td>-A</td> <td>don't allow other diskroms to initialize</td></tr>
  1165. </table>
  1166. <p>If you don't pass any arguments to this command, you'll get an overview of
  1167. the current nowind status.</p>
  1168. <p>This command will create a certain amount of drives on the nowind
  1169. interface and (optionally) insert diskimages in those drives. For each of
  1170. these drives there will also be a
  1171. <code><a class="internal" href="#disk">nowind&lt;x&gt;&lt;1..8&gt;</a></code>
  1172. command created. Those commands are similar to e.g. the
  1173. <code><a class="internal" href="#disk">diska</a></code>
  1174. command. They can be used to access the more advanced diskimage insertion
  1175. options.</p>
  1176. <p>In some cases it is needed to reboot the MSX before the changes take
  1177. effect. In those cases you'll get a message that warns about this.</p>
  1178. <div class="subsectiontitle">examples:</div>
  1179. <table>
  1180. <tr>
  1181. <td><code>nowinda -a image.dsk -j</code></td>
  1182. <td>Image.dsk is inserted into drive A: and the romdisk will be drive B:.
  1183. Other diskroms will be able to install drives as well. For example when
  1184. the MSX has an internal diskdrive, drive C: en D: will be available as
  1185. well.</td>
  1186. </tr>
  1187. <tr>
  1188. <td><code>nowinda disk1.dsk disk2.dsk</code></td>
  1189. <td>The two images will be inserted in A: and B: respectively.</td>
  1190. </tr>
  1191. <tr>
  1192. <td><code>nowinda -m hdimage.dsk</code></td>
  1193. <td>Inserts a harddisk image. All available partitions will be mounted
  1194. as drives.</td>
  1195. </tr>
  1196. <tr>
  1197. <td><code>nowinda -m hdimage.dsk:1</code></td>
  1198. <td>Inserts the first partition only.</td>
  1199. </tr>
  1200. <tr>
  1201. <td><code>nowinda -m hdimage.dsk:2-4</code></td>
  1202. <td>Inserts the 2nd, 3th and 4th partition as drive A: B: and C:.</td>
  1203. </tr>
  1204. </table>
  1205. <h3><a id="openmsx_info">openmsx_info</a></h3>
  1206. <p>Shows information about a certain topic. For machine-specific topics, use the related command <code><a class="internal" href="#machine_info">machine_info</a></code>.</p>
  1207. <div class="subsectiontitle">
  1208. usage:
  1209. </div>
  1210. <table>
  1211. <tr>
  1212. <td><code>openmsx_info</code></td>
  1213. <td>Shows a list of all possible topics</td>
  1214. </tr>
  1215. <tr>
  1216. <td><code>openmsx_info &lt;topic&gt;</code></td>
  1217. <td>Shows info on the given topic</td>
  1218. </tr>
  1219. </table>
  1220. <h3><a id="openmsx_update">openmsx_update</a></h3>
  1221. <p>Enable or disable update notifications of a certain type. This command is intended for external programs controlling openMSX. More about this in <a class="external" href="openmsx-control.html">Controlling openMSX from External Applications</a>.</p>
  1222. <div class="subsectiontitle">
  1223. usage:
  1224. </div>
  1225. <table>
  1226. <tr>
  1227. <td><code>openmsx_update enable &lt;type&gt;</code></td>
  1228. <td>enable notifications for this type</td>
  1229. </tr>
  1230. <tr>
  1231. <td><code>openmsx_update disable &lt;type&gt;</code></td>
  1232. <td>disable notifications for this type</td>
  1233. </tr>
  1234. </table>
  1235. <div class="subsectiontitle">
  1236. examples:
  1237. </div>
  1238. <div class="examples">
  1239. <code>openmsx_update enable led</code><br />
  1240. <code>openmsx_update disable setting</code>
  1241. </div>
  1242. <h3><a id="osd">osd</a></h3>
  1243. <p>openMSX has the possibility to show OSD (on screen display) elements. For example, the LEDs and the fps-indicator are implemented via OSD elements. This command allows to create new OSD elements, configure existing elements or delete elements.</p>
  1244. <p>This command is only useful if you plan to adjust or enhance the openMSX OSD, or create your own OSD widgets.</p>
  1245. <!-- do we really have to repeat the help text from the openmsx source code here? -->
  1246. <p>Execute "<code>help osd</code>" to get a detailed description of this command, which we will not repeat here.</p>
  1247. <h3><a id="palette">palette</a></h3>
  1248. <p>Shows the current VDP palette settings. Related command: <code><a class="internal" href="#vdpregs">vdpregs</a></code>.</p>
  1249. <div class="subsectiontitle">
  1250. usage:
  1251. </div>
  1252. <table>
  1253. <tr>
  1254. <td><code>palette</code></td>
  1255. <td>Show the currently active color palette</td>
  1256. </tr>
  1257. </table>
  1258. <h3><a id="plugunplug">plug / unplug</a></h3>
  1259. <p>Plugs or unplugs a plug into a connector, for example plug a virtual joystick into a virtual joystick port.</p>
  1260. <div class="subsectiontitle">
  1261. usage:
  1262. </div>
  1263. <table>
  1264. <tr>
  1265. <td><code>plug</code></td>
  1266. <td>Shows all currently connected plugs</td>
  1267. </tr>
  1268. <tr>
  1269. <td><code>plug &lt;connector&gt;</code></td>
  1270. <td>Shows currently connected plug for the specified connector</td>
  1271. </tr>
  1272. <tr>
  1273. <td><code>plug &lt;connector&gt; &lt;plug&gt;</code></td>
  1274. <td>Plugs the specified plug into the specified connector</td>
  1275. </tr>
  1276. <tr>
  1277. <td><code>unplug &lt;connector&gt;</code></td>
  1278. <td>Unplugs the plug connected to the specified connector</td>
  1279. </tr>
  1280. </table>
  1281. <div class="subsectiontitle">
  1282. examples:
  1283. </div>
  1284. <div class="examples">
  1285. <code>plug cassetteport cassetteplayer</code><br />
  1286. <code>plug joyporta mouse</code><br />
  1287. <code>plug printerport logger</code><br />
  1288. <code>unplug joyportb</code><br />
  1289. </div>
  1290. <h3><a id="psg_profile">psg_profile</a></h3>
  1291. <p>Select a PSG sound profile.</p>
  1292. <div class="subsectiontitle">
  1293. usage:
  1294. </div>
  1295. <table>
  1296. <tr>
  1297. <td><code>psg_profile</code></td>
  1298. <td>Shows the currently selected sound profile</td>
  1299. </tr>
  1300. <tr>
  1301. <td><code>psg_profile -list</code></td>
  1302. <td>Lists all available sound profiles</td>
  1303. </tr>
  1304. <tr>
  1305. <td><code>psg_profile &lt;profile&gt;</code></td>
  1306. <td>Selects a new sound profile</td>
  1307. </tr>
  1308. </table>
  1309. <div class="note">
  1310. Note: This command is a convenience wrapper around the <code><a class="internal" href="#soundchip_vibrato_frequency">PSG_vibrato_frequency</a></code>, <code><a class="internal" href="#soundchip_vibrato_percent">PSG_vibrato_percent</a></code>, <code><a class="internal" href="#soundchip_detune_frequency">PSG_detune_frequency</a></code> and <code><a class="internal" href="#soundchip_detune_percent">PSG_detune_percent</a></code> settings.
  1311. </div>
  1312. <h3><a id="record">record</a></h3>
  1313. <p>Controls video recording: write openMSX audio/video to an AVI file.</p>
  1314. <div class="subsectiontitle">
  1315. usage:
  1316. </div>
  1317. <table>
  1318. <tr>
  1319. <td><code>record start</code></td>
  1320. <td>Record to file "openmsxNNNN.avi"</td>
  1321. </tr>
  1322. <tr>
  1323. <td><code>record start &lt;filename&gt;</code></td>
  1324. <td>Record to indicated file</td>
  1325. </tr>
  1326. <tr>
  1327. <td><code>record start -prefix foo</code></td>
  1328. <td>Record to file "fooNNNN.avi"</td>
  1329. </tr>
  1330. <tr>
  1331. <td><code>record stop</code></td>
  1332. <td>Stop recording</td>
  1333. </tr>
  1334. <tr>
  1335. <td><code>record toggle</code></td>
  1336. <td>Toggle recording</td>
  1337. </tr>
  1338. </table>
  1339. <p>The <code>start</code> subcommand also accepts an optional <code>-audioonly</code>, <code>-videoonly</code>, <code>-doublesize</code> and a <code>-triplesize</code> flag. Videos are recorded in a 320&times;240 size by default, at 640&times;480 when the <code>-doublesize</code> flag is used and 960&times;720 when using the <code>-triplesize</code> flag.
  1340. If only audio is recorded, the created file will be a WAV file instead of an AVI file.</p>
  1341. <p>If any stereo sound devices are present or any sound device has an off-center balance, the recording will be made in stereo, otherwise it will be mono.
  1342. If a recording is made in mono and then a stereo sound device is added, you'll receive a warning that stereo sound has been detected and that the two channels will be mixed down to mono.
  1343. You can prevent this from happening by using the <code>-stereo</code> option to force a stereo recording even if no stereo devices are present at the time you enter the command.
  1344. You can also force a mono recording with <code>-mono</code> to save space.</p>
  1345. <p>The <code><a class="internal" href="#soundlog">soundlog</a></code> command is a shorthand for <code>record -audioonly</code>.</p>
  1346. <p>Use <code>record_chunks</code> if you want some extra options. You can control the maximum length (in seconds) to record and also set up multiple recordings of a certain length. This is very useful if you want to record for e.g. YouTube. The default length is 14:59 (to make sure YouTube will accept it). Using this command implies <code>-doublesize</code>.</p>
  1347. <p>Use <code>record_chunks_on_framerate_changes</code> if you want to split up the recording in several files, whenever the frame rate of the MSX changes. An AVI file cannot contain video of multiple frame rates, so sound and video will get out of sync if that happens without using this special version of the command. Do not specify the target filename with this variant, or openMSX will record all chunks to the same file.</p>
  1348. <h3><a id="record_channels">record_channels</a></h3>
  1349. <p>A high level command to record individual channels of sound chips to separate files. In the following variants of the command you can specify devices and channels. Multiple devices can be specified and multiple channels as well. If you want to specify channels of a device, put them right after the device. You can also specify <code>all</code> for the device, which means that all sound devices in the currently running MSX will be recorded. When starting recording, an option <code>-prefix</code> can be given to specify a filename prefix.</p>
  1350. <div class="subsectiontitle">
  1351. usage:
  1352. </div>
  1353. <table>
  1354. <tr>
  1355. <td><code>record_channels [start] &lt;device&gt; [&lt;channels&gt;] [&lt;device&gt; [&lt;channels&gt;]] [-prefix &lt;prefix&gt;]</code></td>
  1356. <td>Start recording the specified channel(s) of the specified device(s). If no channels are given, all channels of the device are recorded. </td>
  1357. </tr>
  1358. <tr>
  1359. <td><code>record_channels stop [&lt;device&gt; [&lt;channels&gt;]] [&lt;device&gt; [&lt;channels&gt;]]</code></td>
  1360. <td>Stop recording the specified channel(s) of the specified device(s). If no channels are given, recording for all channels is stopped for the given device(s). If no devices are given, all channel recording is stopped.</td>
  1361. </tr>
  1362. <tr>
  1363. <td><code>record_channels all -prefix justtesting</code></td>
  1364. <td>Record all channels of all sound devices and create the file names with prefix 'justtesting' (e.g. to quickly delete all these files again).</td>
  1365. </tr>
  1366. <tr>
  1367. <td><code>record_channels list</code></td>
  1368. <td>Lists which channels of which sound chips are currently being recorded.</td>
  1369. </tr>
  1370. </table>
  1371. <div class="subsectiontitle">
  1372. examples:
  1373. </div>
  1374. <div class="examples">
  1375. <code>record_channels start PSG</code><br />
  1376. <code>record_channels PSG</code><br />
  1377. <code>record_channels SCC 1,4-5</code><br />
  1378. <code>record_channels SCC PSG 1</code><br />
  1379. <code>record_channels "MSX Music" 7-9 SCC 3,5 PSG 2</code><br />
  1380. <code>record_channels stop</code><br />
  1381. <code>record_channels stop PSG</code><br />
  1382. <code>record_channels stop SCC 3,5</code><br />
  1383. <code>record_channels list</code>
  1384. </div>
  1385. <h3><a id="remove_extension">remove_extension</a></h3>
  1386. <p>Remove a cartridge or extension from a running MSX machine. See also the commands <code><a class="internal" href="#cart">cart</a></code>, <code><a class="internal" href="#ext">ext</a></code>, <code><a class="internal" href="#list_extensions">list_extensions</a></code>.</p>
  1387. <div class="subsectiontitle">
  1388. usage:
  1389. </div>
  1390. <table>
  1391. <tr>
  1392. <td><code>remove_extension fmpac</code></td>
  1393. <td>Removes the FMPAC extension from the running MSX</td>
  1394. </tr>
  1395. </table>
  1396. <h3><a id="reset">reset</a></h3>
  1397. <p>Emulates the pressing of the reset button on the MSX. This sends a reset pulse to all devices, but does not erase memory contents.</p>
  1398. <div class="subsectiontitle">
  1399. usage:
  1400. </div>
  1401. <table>
  1402. <tr>
  1403. <td><code>reset</code></td>
  1404. <td>Resets the current machine</td>
  1405. </tr>
  1406. </table>
  1407. <h3><a id="reverse">reverse</a></h3>
  1408. <p>Controls the reverse feature. When this feature is enabled (the default), openMSX will collect data while emulating, which enables you to go back (and forward) in MSX time. In other words: you cannot use the commands to go back and forward in time, if you disable the feature.</p>
  1409. <div class="subsectiontitle">
  1410. usage:
  1411. </div>
  1412. <table>
  1413. <tr>
  1414. <td><code>reverse start</code></td>
  1415. <td>Start collecting data (enable the reverse feature).</td>
  1416. </tr>
  1417. <tr>
  1418. <td><code>reverse stop</code></td>
  1419. <td>Stop collecting data (disable reverse feature) and remove all collected data.</td>
  1420. </tr>
  1421. <tr>
  1422. <td><code>reverse status</code></td>
  1423. <td>Gives information about the reverse feature and the data it collected. Mostly useful for scripts.</td>
  1424. </tr>
  1425. <tr>
  1426. <td><code>reverse goback &lt;n&gt;</code></td>
  1427. <td>Go back &lt;n&gt; seconds in time. Of course, you cannot go back to a time before the time the <code>reverse start</code> command was given.</td>
  1428. </tr>
  1429. <tr>
  1430. <td><code>reverse viewonlymode &lt;on|off&gt;</code></td>
  1431. <td>Control the view only mode of the reverse feature. In view only mode, the replay will never get interrupted by any user actions that normally would interrupt the replay. Use this to safely view a replay without accidentally ruining it by touching a key.</td>
  1432. </tr>
  1433. <tr>
  1434. <td><code>reverse goto &lt;time&gt;</code></td>
  1435. <td>Go to the indicated absolute moment in MSX time (given in seconds). If the time is before the time openMSX started collecting data (with the <code>reverse start</code> command) openMSX will jump to the time when collecting started.</td>
  1436. </tr>
  1437. <tr>
  1438. <td><code>reverse truncatereplay</code></td>
  1439. <td>Stop replaying and wipe all replay data that is in the future (so after <strong>now</strong>). This is useful if you are hindered by the future events somehow, for instance when you are playing a game and jumped too early and therefore reversed. Be careful with this, as there is no way to recover this future. If you are at time 0, it means your whole replay will be gone after executing this command!</td>
  1440. </tr>
  1441. <tr>
  1442. <td><code>reverse savereplay [&lt;filename&gt;]</code></td>
  1443. <td>Save the collected data (an initial savestate and all collected input events) to a file.</td>
  1444. </tr>
  1445. <tr>
  1446. <td><code>reverse loadreplay [-goto &lt;begin|end|savetime|&lt;n&gt;&gt;] [-viewonly] &lt;filename&gt;</code></td>
  1447. <td>Load the replay from the given file and start it. Loads the initial snapshot and starts replaying the recorded events. Enables the reverse feature automatically. With the <code>-goto</code> option, you can specify where to jump to in the replay after loading (<code>begin</code> is default), where <code>savetime</code> is the time at which the replay was saved and <code>n</code> is an absolute time in seconds in the replay. The <code>-viewonly</code> option is a shortcut to put the reverse feature in viewonly mode directly after loading the replay. Without this option, it will always go to normal mode.</td>
  1448. </tr>
  1449. </table>
  1450. <p>There are some extra helper commands to make the feature easier to use.</p>
  1451. <div class="subsectiontitle">
  1452. usage:
  1453. </div>
  1454. <table>
  1455. <tr>
  1456. <td><code>go_back_one_second</code> / <code>go_forward_one_second</code></td>
  1457. <td>Go back or forward one second in time (if possible). These are used for the default PageUp and PageDown key bindings.</td>
  1458. </tr>
  1459. <tr>
  1460. <td><code>reverse_prev [&lt;min&gt; [&lt;max&gt;]]</code></td>
  1461. <td>Go back in time to the previous (internal) snapshot. The further back in the past the less dense the amount of snapshots are. So, executing this command multiple times, will take successively bigger steps in the past. You can optionally specify a minimal and maximal step size. You will at least go back the minimal amount of time (even if there's a snapshot closer to the current time) and at most the maximal amount of time (even if there's no snapshot within the maximum specified time from the current time).</td>
  1462. </tr>
  1463. <tr>
  1464. <td><code>reverse_next [&lt;min&gt; [&lt;max&gt;]]</code></td>
  1465. <td>As <code>reverse_prev</code> but then it goes to the closest snapshot in the future (if possible).</td>
  1466. </tr>
  1467. </table>
  1468. <p>Because the reverse feature is very useful, it is automatically enabled via <code><a class="internal" href="#auto_enable_reverse">auto_enable_reverse</a></code> setting.</p>
  1469. <h3><a id="save_settings">save_settings</a></h3>
  1470. <p>Write the current openMSX settings to a settings XML file. See also <code><a class="internal" href="#load_settings">load_settings</a></code>.</p>
  1471. <p>If you disabled <code><a class="internal" href="#save_settings_on_exit">save_settings_on_exit</a></code>, you can use this command to save your preferences.</p>
  1472. <div class="subsectiontitle">
  1473. usage:
  1474. </div>
  1475. <table>
  1476. <tr>
  1477. <td><code>save_settings</code></td>
  1478. <td>Save settings to the default settings file</td>
  1479. </tr>
  1480. <tr>
  1481. <td><code>save_settings &lt;filename&gt;</code></td>
  1482. <td>Save settings to the given file</td>
  1483. </tr>
  1484. </table>
  1485. <h3><a id="savestate">savestate / loadstate / list_savestates / delete_savestate</a></h3>
  1486. <p>These commands can be used to manage savestates. These are much easier to use than the lowlevel <code><a class="internal" href="#store_machine">store_machine</a></code> and <code><a class="internal" href="#store_machine">restore_machine</a></code> commands.</p>
  1487. <h4><code>savestate [&lt;name&gt;]</code></h4>
  1488. <p>This creates a snapshot of the currently emulated MSX machine. Optionally you can specify a name for the savestate, if you omit this name, the default name <code>quicksave</code> will be taken.</p>
  1489. <h4><code>loadstate [&lt;name&gt;]</code></h4>
  1490. <p>This restores a previously created savestate. Like above you can specify a name which defaults to <code>quicksave</code> if omitted.</p>
  1491. <h4><code>list_savestates</code></h4>
  1492. <p>This returns the names of all previously created savestates.</p>
  1493. <h4><code>delete_savestate &lt;name&gt;</code></h4>
  1494. <p>Delete a previously created savestate.</p>
  1495. <h3><a id="screenshot">screenshot</a></h3>
  1496. <p>Take a screenshot of the openMSX screen. By default this takes a screenshot of the 'scaled' MSX screen (see <code><a class="internal" href="#scale_algorithm">scale_algorithm</a></code> setting) without OSD elements (e.g. console and icons). If you want to include the OSD elements pass the <code>-with-osd</code> option. If you want a screenshot of the 'unscaled' raw MSX screen, pass the <code>-raw</code> option. The screenshots are PNG files and (by default) are saved in the <code>screenshots</code> subdirectory of the openMSX data directory in your home directory. There's also an option <code>-no-sprites</code> to take a screenshot with sprite rendering disabled.</p>
  1497. <div class="subsectiontitle">
  1498. usage:
  1499. </div>
  1500. <table>
  1501. <tr>
  1502. <td>
  1503. <code>screenshot [-with-osd] [-raw [-doublesize]] [-no-sprites] [-prefix &lt;prefix&gt;] [&lt;filename&gt;]</code>
  1504. </td>
  1505. </tr>
  1506. </table>
  1507. <div class="subsectiontitle">
  1508. examples:
  1509. </div>
  1510. <table>
  1511. <tr>
  1512. <td><code>screenshot</code></td>
  1513. <td>Write screenshot to file "openmsxNNNN.png"</td>
  1514. </tr>
  1515. <tr>
  1516. <td><code>screenshot &lt;filename&gt;</code></td>
  1517. <td>Write screenshot to indicated file</td>
  1518. </tr>
  1519. <tr>
  1520. <td><code>screenshot -prefix foo</code></td>
  1521. <td>Write screenshot to file "fooNNNN.png"</td>
  1522. </tr>
  1523. <tr>
  1524. <td><code>screenshot -raw</code></td>
  1525. <td>Create screenshot of the raw MSX screen only (so no icons or console and no scaling)</td>
  1526. </tr>
  1527. <tr>
  1528. <td><code>screenshot -raw -doublesize</code></td>
  1529. <td>Create screenshot of the raw MSX screen only, with resolution 640&times;480</td>
  1530. </tr>
  1531. <tr>
  1532. <td><code>screenshot -with-osd</code></td>
  1533. <td>Create screenshot of the scaled screen, including OSD elements</td>
  1534. </tr>
  1535. <tr>
  1536. <td><code>screenshot -no-sprites</code></td>
  1537. <td>Create screenshot with sprite rendering disabled</td>
  1538. </tr>
  1539. </table>
  1540. <h3><a id="set">set</a></h3>
  1541. <p>Change or query the value of various settings. See also: <code><a class="internal" href="#unset">unset</a></code>.</p>
  1542. <div class="subsectiontitle">
  1543. usage:
  1544. </div>
  1545. <table>
  1546. <tr>
  1547. <td><code>set &lt;setting&gt;</code></td>
  1548. <td>Query the current value of the specified setting</td>
  1549. </tr>
  1550. <tr>
  1551. <td><code>set &lt;setting&gt; &lt;value&gt;</code></td>
  1552. <td>Change the specified setting to the given value</td>
  1553. </tr>
  1554. </table>
  1555. <p>The settings that can be adjusted with this command are listed and explained <a class="internal" href="#settings">later</a> in this document.</p>
  1556. <div class="subsectiontitle">
  1557. examples:
  1558. </div>
  1559. <div class="examples">
  1560. <code>set accuracy pixel</code><br />
  1561. <code>set blur 25</code><br />
  1562. <code>set scanline 20</code><br />
  1563. <code>set deinterlace on</code><br />
  1564. </div>
  1565. <h3><a id="slotmap">slotmap</a></h3>
  1566. <p>Shows what devices are inserted into which slots. The related command <code><a class="internal" href="#iomap">iomap</a></code> shows a similar overview, but for I/O mapped devices.</p>
  1567. <div class="subsectiontitle">
  1568. usage:
  1569. </div>
  1570. <table>
  1571. <tr>
  1572. <td><code>slotmap</code></td>
  1573. <td>Shows the slot map of the current MSX machine</td>
  1574. </tr>
  1575. </table>
  1576. <h3><a id="slotselect">slotselect</a></h3>
  1577. <p>Shows the currently selected slots. To see what devices are located in the slots, use the <code><a class="internal" href="#slotmap">slotmap</a></code> command.</p>
  1578. <div class="subsectiontitle">
  1579. usage:
  1580. </div>
  1581. <table>
  1582. <tr>
  1583. <td><code>slotselect</code></td>
  1584. <td>Shows the currently selected slot for each page</td>
  1585. </tr>
  1586. </table>
  1587. <h3><a id="soundlog">soundlog</a></h3>
  1588. <p>Controls sound logging: writing the openMSX sound to a WAV file.</p>
  1589. <p>This command is a shorthand for <code><a class="internal" href="#record">record</a> -audioonly</code>.</p>
  1590. <div class="subsectiontitle">
  1591. usage:
  1592. </div>
  1593. <table>
  1594. <tr>
  1595. <td><code>soundlog start</code></td>
  1596. <td>Log sound to file "openmsxNNNN.wav"</td>
  1597. </tr>
  1598. <tr>
  1599. <td><code>soundlog start &lt;filename&gt;</code></td>
  1600. <td>Log sound to indicated file</td>
  1601. </tr>
  1602. <tr>
  1603. <td><code>soundlog start -prefix foo</code></td>
  1604. <td>Log sound to file "fooNNNN.wav"</td>
  1605. </tr>
  1606. <tr>
  1607. <td><code>soundlog stop</code></td>
  1608. <td>Stop logging sound</td>
  1609. </tr>
  1610. <tr>
  1611. <td><code>soundlog toggle</code></td>
  1612. <td>Toggle sound logging state</td>
  1613. </tr>
  1614. </table>
  1615. <h3><a id="store_machine">store_machine / restore_machine</a></h3>
  1616. <p>These are low-level commands, used to implement savestates.</p>
  1617. <h4><code>store_machine</code>:</h4>
  1618. <p>Saves the state of the specified machine to a file.</p>
  1619. <table>
  1620. <tr>
  1621. <td><code>store_machine</code></td>
  1622. <td>Save state of current machine to file "openmsxNNNN.xml.gz"</td>
  1623. </tr>
  1624. <tr>
  1625. <td><code>store_machine &lt;machineID&gt;</code></td>
  1626. <td>Save state of indicated machine to file "openmsxNNNN.xml.gz"</td>
  1627. </tr>
  1628. <tr>
  1629. <td><code>store_machine &lt;machineID&gt; &lt;filename&gt;</code></td>
  1630. <td>Save state of indicated machine to specified file</td>
  1631. </tr>
  1632. </table>
  1633. <h4><code>restore_machine</code>:</h4>
  1634. <p>Load a previously saved machine in a new machine-ID, next to the already available machines. See the section on <code><a class="internal" href="#machines">activate_machine</a></code>.</p>
  1635. <table>
  1636. <tr>
  1637. <td><code>restore_machine</code></td>
  1638. <td>Load state from last saved state in default directory</td>
  1639. </tr>
  1640. <tr>
  1641. <td><code>restore_machine &lt;filename&gt;</code></td>
  1642. <td>Load state from indicated file</td>
  1643. </tr>
  1644. </table>
  1645. <div class="note">
  1646. Note: These commands are pretty low level. The <code><a class="internal" href="#savestate">savestate</a></code> and <code><a class="internal" href="#savestate">loadstate</a></code> scripts are built on top of this and are much more convenient to use.
  1647. </div>
  1648. <h3><a id="test_machine">test_machine / test_all_machines / test_all_extensions</a></h3>
  1649. <p>Test whether the given MSX machine configuration works. For example whether you have all required system ROMs for this machine. See also <code><a class="internal" href="#machines">load_machine</a></code>.</p>
  1650. <div class="subsectiontitle">
  1651. usage:
  1652. </div>
  1653. <table>
  1654. <tr>
  1655. <td><code>test_machine &lt;machine-config&gt;</code></td>
  1656. <td>Test whether the given machine configuration is OK.</td>
  1657. </tr>
  1658. </table>
  1659. <p>Use the convenience commands <code>test_all_machines</code> and <code>test_all_extensions</code> to get a full overview on which system ROMs you are still missing.</p>
  1660. <h3><a id="toggle">toggle</a></h3>
  1661. <p>Toggles any boolean (on/off) setting: if it was on, it will be turned off and vice versa.
  1662. See also: <code><a class="internal" href="#cycle">cycle</a></code>.</p>
  1663. <div class="subsectiontitle">
  1664. usage:
  1665. </div>
  1666. <table>
  1667. <tr>
  1668. <td><code>toggle &lt;setting&gt;</code></td>
  1669. <td>Toggles the specified setting</td>
  1670. </tr>
  1671. </table>
  1672. <div class="subsectiontitle">
  1673. examples:
  1674. </div>
  1675. <div class="examples">
  1676. <code>toggle mute</code><br />
  1677. <code>toggle throttle</code>
  1678. </div>
  1679. <h3><a id="trainer">trainer</a></h3>
  1680. <p>Control game trainers. You can enable or disable individual cheats of each trainer. Make use of the TAB key to see
  1681. what is available. When switching trainers, the currently active trainer will be deactivated.</p>
  1682. <div class="subsectiontitle">
  1683. usage:
  1684. </div>
  1685. <table>
  1686. <tr>
  1687. <td><code>trainer</code></td>
  1688. <td>See which trainer is currently active</td>
  1689. </tr>
  1690. <tr>
  1691. <td><code>trainer &lt;game&gt;</code></td>
  1692. <td>See which cheats are currently active in the trainer</td>
  1693. </tr>
  1694. <tr>
  1695. <td><code>trainer &lt;game&gt; all</code></td>
  1696. <td>Activate all cheats in the trainer of &lt;game&gt;</td>
  1697. </tr>
  1698. <tr>
  1699. <td><code>trainer &lt;game&gt; \[&lt;cheat&gt; ..\]</code></td>
  1700. <td>Toggle cheats of &lt;game&gt; on/off</td>
  1701. </tr>
  1702. <tr>
  1703. <td><code>trainer deactivate</code></td>
  1704. <td>Deactivate all trainers</td>
  1705. </tr>
  1706. </table>
  1707. <div class="subsectiontitle">
  1708. examples:
  1709. </div>
  1710. <div class="examples">
  1711. <code>trainer Frogger all</code><br />
  1712. <code>trainer "Circus Charlie" 1 2</code><br />
  1713. <code>trainer Pippols lives "jump shoes"</code>
  1714. </div>
  1715. <h3><a id="type">type / type_via_keyboard</a></h3>
  1716. <p>Type a string in the emulated MSX. This command automatically presses and
  1717. releases keys in the simulated MSX keyboard matrix. This command is useful
  1718. for demoing and for automating tasks in MSX-BASIC.</p>
  1719. <p>The command has a <code>-release</code> option, with which you can specify
  1720. that keys are always released before new ones are pressed. Some game input
  1721. routines need this, but it also makes typing twice as slow.</p>
  1722. <p>With the <code>-freq</code> option, you can tweak how fast typing goes and
  1723. how long the keys will be pressed (and released if the <code>-release</code>
  1724. option is used). Keys will be typed at the given frequency and will remain
  1725. pressed/released for 1/freq seconds.</p>
  1726. <p>This command should always work, because it is just like as if a user was
  1727. actually typing on the MSX keyboard. It is therefore a bit slow, though.
  1728. Check out the <code>type_via_keybuf</code> command if you're looking for
  1729. something faster (but more limited in where it works). With the
  1730. <code>default_type_proc</code> setting you can even make
  1731. <code>type_via_keybuf</code> the standard implementation for the
  1732. <code>type</code> command. Only do this if you really know what you're
  1733. doing!</p>
  1734. <div class="subsectiontitle">
  1735. usage:
  1736. </div>
  1737. <table>
  1738. <tr>
  1739. <td><code>type "Hello world!"</code></td>
  1740. <td>Yet another manifestation of the most famous program</td>
  1741. </tr>
  1742. <tr>
  1743. <td><code>type "PRINT \"Hi!\"\r"</code></td>
  1744. <td>Executes this basic command directly</td>
  1745. </tr>
  1746. </table>
  1747. <p>There are also a few scripts extending this command:</p>
  1748. <table>
  1749. <tr>
  1750. <td><code>type_from_file</code></td>
  1751. <td>With this command you can automatically type text which is stored in
  1752. the given (text) file. Mostly useful if you want to type in some
  1753. BASIC program fragment that you found somewhere and pasted in a
  1754. text file.
  1755. </td>
  1756. </tr>
  1757. <tr>
  1758. <td><code>type_password_from_file</code></td>
  1759. <td>A special version of <code>type_from_file</code>, made to type in
  1760. passwords of games, which you have stored in a file. The text
  1761. file should have a special format: one password per line, lines
  1762. starting with # are ignored. After the filename, you can give the
  1763. index of the password to type (which is the index of the first
  1764. non-comment and non-blank line in the file).
  1765. </td>
  1766. </tr>
  1767. </table>
  1768. <h3><a id="unset">unset</a></h3>
  1769. <p>Undefines a Tcl variable. When used on openMSX settings, they are reverted to their default value. See also: <code><a class="internal" href="#set">set</a></code>.</p>
  1770. <div class="subsectiontitle">
  1771. usage:
  1772. </div>
  1773. <table>
  1774. <tr>
  1775. <td><code>unset &lt;variable&gt;</code></td>
  1776. <td>Undefines the given variable</td>
  1777. </tr>
  1778. <tr>
  1779. <td><code>unset &lt;setting&gt;</code></td>
  1780. <td>Reverts the given setting to its default value</td>
  1781. </tr>
  1782. </table>
  1783. <h3><a id="user_setting">user_setting</a></h3>
  1784. <p>This command is only meant to be used in Tcl scripts. It allows to create Tcl variables that act very much like built-in openMSX settings. They have a description (can be queried with "<code>help set &lt;setting-name&gt;</code>") and their value is stored saved/restored when openMSX is quit/restarted.</p>
  1785. <!-- do we really have to repeat the help text from the openmsx source code here? -->
  1786. <p>Execute "<code>help user_setting</code>" to get a detailed description of this command.</p>
  1787. <h3><a id="vdpregs">vdpregs</a></h3>
  1788. <p>Shows the current register settings of the Video Display Processor (VDP). Related command: <code><a class="internal" href="#palette">palette</a></code>.</p>
  1789. <div class="subsectiontitle">
  1790. usage:
  1791. </div>
  1792. <table>
  1793. <tr>
  1794. <td><code>vdpregs</code></td>
  1795. <td>Shows the current VDP control register contents</td>
  1796. </tr>
  1797. </table>
  1798. <h3><a id="other">other</a></h3>
  1799. <p>Most commands described above are generally useful. openMSX also has a bunch of other more specialized commands. Some of these are intended for programmers who code MSX programs using openMSX as a tool. Other of these commands are more like toys or examples that show the openMSX scripting capabilities.</p>
  1800. <p>We've only listed a very brief overview of these commands. As always execute "<code>help &lt;command-name&gt;</code>" to get a more detailed description of the command.</p>
  1801. <table>
  1802. <tr>
  1803. <td><code>about</code></td>
  1804. <td>Search command and setting help-texts for the given keyword</td>
  1805. </tr>
  1806. <tr>
  1807. <td><code>cpuregs</code></td>
  1808. <td>Gives an overview of the CPU registers</td>
  1809. </tr>
  1810. <tr>
  1811. <td><code>data_file</code></td>
  1812. <td>Helps locate openMSX data files</td>
  1813. </tr>
  1814. <tr>
  1815. <td><code>disasm</code></td>
  1816. <td>Print disassembled instructions at the given memory location</td>
  1817. </tr>
  1818. <tr>
  1819. <td><code>getcolor</code></td>
  1820. <td>Query V99x8 palette settings</td>
  1821. </tr>
  1822. <tr>
  1823. <td><code>get_active_cpu</code></td>
  1824. <td>Returns the active cpu, z80 or r800</td>
  1825. </tr>
  1826. <tr>
  1827. <td><code>get_color_count</code></td>
  1828. <td>Gives an overview of the used colors in the current screen</td>
  1829. </tr>
  1830. <tr>
  1831. <td><code>get_screen</code></td>
  1832. <td>Capture the content of a MSX text screen in a Tcl string</td>
  1833. </tr>
  1834. <tr>
  1835. <td><code>get_screen_mode</code></td>
  1836. <td>Decodes the current screen mode from the VDP registers and returns it as a Tcl string. <code>get_screen_mode_number</code> returns it as a number which would also be used for the basic command <code>SCREEN</code>.</td>
  1837. </tr>
  1838. <tr>
  1839. <td><code>get_selected_slot</code></td>
  1840. <td>Returns the selected slot for the given memory page</td>
  1841. </tr>
  1842. <tr>
  1843. <td><code>guess_title</code></td>
  1844. <td>Use heuristics to guess the title of the current game (cartridge, disk or tape). For specific media use <code>guess_cassette_title</code>, <code>guess_disk_title</code> or <code>guess_rom_title</code>.</td>
  1845. </tr>
  1846. <tr>
  1847. <td><code>listing</code></td>
  1848. <td>Reimplementation of the BASIC LIST command in Tcl</td>
  1849. </tr>
  1850. <tr>
  1851. <td><code>load_debuggable</code></td>
  1852. <td>Write the content of a file to a openMSX debuggable</td>
  1853. </tr>
  1854. <tr>
  1855. <td><code>main_menu_open</code> / <code>main_menu_close</code> / <code>main_menu_toggle</code></td>
  1856. <td>Control the visibility of the default OSD menu</td>
  1857. </tr>
  1858. <tr>
  1859. <td><code>multi_screenshot</code></td>
  1860. <td>Take screenshots of multiple successive frames</td>
  1861. </tr>
  1862. <tr>
  1863. <td><code>pc_in_slot</code></td>
  1864. <td>Check whether CPU is executing from the specified slot (useful as breakpoint condition)</td>
  1865. </tr>
  1866. <tr>
  1867. <td><code>peek</code></td>
  1868. <td>Read a byte from the given memory location</td>
  1869. </tr>
  1870. <tr>
  1871. <td><code>peek16</code></td>
  1872. <td>Read a 16 bit word from the given memory location</td>
  1873. </tr>
  1874. <tr>
  1875. <td><code>poke</code></td>
  1876. <td>Write a byte to the given memory location. Use <code>dpoke</code> to only write if the to be written value is different from the current value.</td>
  1877. </tr>
  1878. <tr>
  1879. <td><code>poke16</code></td>
  1880. <td>Write a 16 bit word to the given memory location</td>
  1881. </tr>
  1882. <tr>
  1883. <td><code>psg_log</code></td>
  1884. <td>Log or replay PSG register values in binary format</td>
  1885. </tr>
  1886. <tr>
  1887. <td><code>ram_watch</code></td>
  1888. <td>Add or remove RAM watch addresses to/from the list on the right side of the screen, useful for debugging or TASing</td>
  1889. </tr>
  1890. <tr>
  1891. <td><code>reg</code></td>
  1892. <td>Read or write CPU registers</td>
  1893. </tr>
  1894. <tr>
  1895. <td><code>reg_log</code></td>
  1896. <td>Log or replay register values for the specified debuggable in ASCII format</td>
  1897. </tr>
  1898. <tr>
  1899. <td><code>rom_info</code></td>
  1900. <td>Gives information about the given ROM device, coming from the software database. If no argument is given, the first found (external) ROM device is assumed. This command replaces the info that was previously (before openMSX 0.8.1) automatically printed on stdout.</td>
  1901. </tr>
  1902. <tr>
  1903. <td><code>run_to</code></td>
  1904. <td>Execute instructions until the PC reaches the specified address</td>
  1905. </tr>
  1906. <tr>
  1907. <td><code>save_debuggable</code></td>
  1908. <td>Save the (partial) content of a debuggable to a file</td>
  1909. </tr>
  1910. <tr>
  1911. <td><code>save_msx_screen</code></td>
  1912. <td>Saves the current MSX screen into an MSX compatible binary file (BLOAD format).</td>
  1913. </tr>
  1914. <tr>
  1915. <td><code>save_to_file</code></td>
  1916. <td>Helper function to save data (e.g. the output of another command) to a file.</td>
  1917. </tr>
  1918. <tr>
  1919. <td><code>setcolor</code></td>
  1920. <td>Change V99x8 palette settings</td>
  1921. </tr>
  1922. <tr>
  1923. <td><code>set_help_text</code></td>
  1924. <td>Associate help text with a Tcl proc</td>
  1925. </tr>
  1926. <tr>
  1927. <td><code>set_tabcompletion_proc</code></td>
  1928. <td>Associate tab completion with a Tcl proc</td>
  1929. </tr>
  1930. <tr>
  1931. <td><code>showdebuggable</code></td>
  1932. <td>Print the content of a debuggable in a table</td>
  1933. </tr>
  1934. <tr>
  1935. <td><code>showmem</code></td>
  1936. <td>Print the content of memory in a table</td>
  1937. </tr>
  1938. <tr>
  1939. <td><code>show_osd</code></td>
  1940. <td>Print an overview of the defined OSD elements</td>
  1941. </tr>
  1942. <tr>
  1943. <td><code>skip_instruction</code></td>
  1944. <td>Skip the current CPU instruction</td>
  1945. </tr>
  1946. <tr>
  1947. <td><code>sprite_viewer</code></td>
  1948. <td>Show a widget with which you can view the sprite patterns</td>
  1949. </tr>
  1950. <tr>
  1951. <td><code>stack</code></td>
  1952. <td>Print the top of the CPU stack</td>
  1953. </tr>
  1954. <tr>
  1955. <td><code>step_in</code></td>
  1956. <td>Execute one CPU instruction, go into subroutines</td>
  1957. </tr>
  1958. <tr>
  1959. <td><code>step_over</code></td>
  1960. <td>Execute one CPU instruction, but don't go into subroutines</td>
  1961. </tr>
  1962. <tr>
  1963. <td><code>step_out</code></td>
  1964. <td>Step out of the current subroutine</td>
  1965. </tr>
  1966. <tr>
  1967. <td><code>step_back</code></td>
  1968. <td>Step one instruction back in time</td>
  1969. </tr>
  1970. <tr>
  1971. <td><code>text_echo</code></td>
  1972. <td>Echo all printed MSX text on stderr</td>
  1973. </tr>
  1974. <tr>
  1975. <td><code>toggle_cursors</code></td>
  1976. <td>Show (or hide) a widget which shows which keys are pressed</td>
  1977. </tr>
  1978. <tr>
  1979. <td><code>toggle_fps</code></td>
  1980. <td>Show (or hide) a frames-per-second (fps) indicator</td>
  1981. </tr>
  1982. <tr>
  1983. <td><code>toggle_frame_counter</code></td>
  1984. <td>Show (or hide) a widget which shows the current frame number since start-up</td>
  1985. </tr>
  1986. <tr>
  1987. <td><code>toggle_freq</code></td>
  1988. <td>Switch between PAL/NTSC</td>
  1989. </tr>
  1990. <tr>
  1991. <td><code>toggle_info_panel</code></td>
  1992. <td>Show (or hide) a panel with various types of info on the currently running MSX (emulation); similar to the info in the panel you get when using the DIGIblue theme in blueMSX</td>
  1993. </tr>
  1994. <tr>
  1995. <td><code>toggle_mog_overlay</code></td>
  1996. <td>Enable (or disable) graphical extra information and game hints when playing The Maze of Galious</td>
  1997. </tr>
  1998. <tr>
  1999. <td><code>toggle_mog_editor</code></td>
  2000. <td>Enable (or disable) wall drawing and Popolon-placement with the mouse when playing The Maze of Galious; needs to have the MoG overlay enabled, see <code>toggle_mog_overlay</code></td>
  2001. </tr>
  2002. <tr>
  2003. <td><code>toggle_music_keyboard</code></td>
  2004. <td>Enable (or disable) keyboard view of all existing music channels. EXPERIMENTAL! Be careful, it's very slow when many channels are present in the system</td>
  2005. </tr>
  2006. <tr>
  2007. <td><code>toggle_nemesis_1_shield</code></td>
  2008. <td>Enable (or disable) an OSD drawn shield in Nemesis (Gradius) 1, all enemy objects will repel from it</td>
  2009. </tr>
  2010. <tr>
  2011. <td><code>toggle_osd_keyboard</code></td>
  2012. <td>Show (or hide) an on-screen keyboard (mostly useful for devices without physical keyboard); only supports an international keyboard-layout for now</td>
  2013. </tr>
  2014. <tr>
  2015. <td><code>toggle_psg2scc</code></td>
  2016. <td>Enable (or disable) playing PSG sound on SCC</td>
  2017. </tr>
  2018. <tr>
  2019. <td><code>toggle_reversebar</code></td>
  2020. <td>Show (or hide) the reverse bar, which helps to control and view the data of the <a class="internal" href="#reverse">reverse</a> feature, which is automatically enabled when the bar is enabled</td>
  2021. </tr>
  2022. <tr>
  2023. <td><code>toggle_scc_editor</code></td>
  2024. <td>Show a graphical view of the SCC chip(s) of the system, showing waveforms and volume per channel and also enables you to edit the waveforms per channel</td>
  2025. </tr>
  2026. <tr>
  2027. <td><code>toggle_scc_viewer</code></td>
  2028. <td>Show a graphical view of the SCC chip(s) of the system, showing waveforms and volume per channel</td>
  2029. </tr>
  2030. <tr>
  2031. <td><code>toggle_show_palette</code></td>
  2032. <td>Show (or hide) a graphical view on the palette registers</td>
  2033. </tr>
  2034. <tr>
  2035. <td><code>toggle_tron</code></td>
  2036. <td>Show (or hide) an OSD implementation of the MSX-BASIC TRON command to trace what the current line number of the BASIC interpreter is</td>
  2037. </tr>
  2038. <tr>
  2039. <td><code>toggle_vdp_access_test</code></td>
  2040. <td>Enable (or disable) reporting in the console when VDP I/O is done which could possibly cause data corruption on the slowest VDP (TMS9xxx), which is not emulated</td>
  2041. </tr>
  2042. <tr>
  2043. <td><code>toggle_vdp_busy</code></td>
  2044. <td>Enable (or disable) display on the OSD how busy the VDP is</td>
  2045. </tr>
  2046. <tr>
  2047. <td><code>toggle_vdp_reg_viewer</code></td>
  2048. <td>Enable (or disable) a widget that shows an overview of all VDP registers and highlights changes in the values</td>
  2049. </tr>
  2050. <tr>
  2051. <td><code>toggle_vu_meters</code></td>
  2052. <td>Show (or hide) a graphical view of the volumes of the sound channels of several sound chips</td>
  2053. </tr>
  2054. <tr>
  2055. <td><code>type_via_keybuf</code></td>
  2056. <td>Alternative to the <code>type_via_keyboard</code> (the default <code><a class="internal" href="#type">type</a></code> command), that uses the keyboard buffer; only works if the running software uses the standard keyboard buffer functions to get keyboard input, but is much faster</td>
  2057. </tr>
  2058. <tr>
  2059. <td><code>umrcallback</code></td>
  2060. <td>Example proc to use with the umr_callback setting</td>
  2061. </tr>
  2062. <tr>
  2063. <td><code>vdpcmdinprogresscallback</code></td>
  2064. <td>Example proc to use with the vdpcmdinprogress_callback setting</td>
  2065. </tr>
  2066. <tr>
  2067. <td><code>v9990reg</code></td>
  2068. <td>Read or write a V9990 register</td>
  2069. </tr>
  2070. <tr>
  2071. <td><code>v9990regs</code></td>
  2072. <td>Print an overview of all V9990 registers</td>
  2073. </tr>
  2074. <tr>
  2075. <td><code>vdpreg</code></td>
  2076. <td>Read or write a V99x8 register</td>
  2077. </tr>
  2078. <tr>
  2079. <td><code>vdrive</code></td>
  2080. <td>Easily switch disks in multi-disk games</td>
  2081. </tr>
  2082. <tr>
  2083. <td><code>vgm_rec</code></td>
  2084. <td>Record the music played by PSG, MSX-MUSIC, MSX-AUDIO, OPL4 and SCC into a VGM file</td>
  2085. </tr>
  2086. <tr>
  2087. <td><code>vpeek/vpoke</code></td>
  2088. <td>Read/write bytes from/to video RAM</td>
  2089. </tr>
  2090. </table>
  2091. <p>The source code of all these scripts is located in <code>share/scripts</code> directory. Feel free to inspect these scripts and modify them to suit your needs.</p>
  2092. <h2><a id="settings">Settings</a></h2>
  2093. <p>Settings control many aspects of openMSX. Below, the available settings are listed and described. You can change setting values with the <code><a class="internal" href="#set">set</a></code> command.</p>
  2094. <h3><a id="accuracy">accuracy</a></h3>
  2095. <p>Sets the render accuracy. openMSX supports three levels of render accuracy:</p>
  2096. <dl>
  2097. <dt>screen accurate:</dt>
  2098. <dd>Changes in VDP state become effective only once per video frame. Works well for most MSX1 software, but will break a lot of MSX2 software (anything that does so-called raster effects).</dd>
  2099. <dt>line accurate:</dt>
  2100. <dd>Changes in VDP state become effective only once per display line. Works well for almost all software.</dd>
  2101. <dt>pixel accurate:</dt>
  2102. <dd>Changes in VDP state become effective immediately. In this mode even the 'Unknown Reality scope part' is rendered correctly.</dd>
  2103. </dl>
  2104. <p>In some cases switching to a lower accuracy level can speed up emulation, but in many cases the speed difference is negligible.</p>
  2105. <p>The default is pixel accuracy, since this is the most realistic. If the software you are running shows a jittery screen split and you would prefer a stable screen split, switching to line accuracy can help.</p>
  2106. <div class="subsectiontitle">
  2107. usage:
  2108. </div>
  2109. <table>
  2110. <tr>
  2111. <td><code>set accuracy</code></td>
  2112. <td>Shows the current setting</td>
  2113. </tr>
  2114. <tr>
  2115. <td><code>set accuracy screen</code></td>
  2116. <td>Selects screen accurate rendering</td>
  2117. </tr>
  2118. <tr>
  2119. <td><code>set accuracy line</code></td>
  2120. <td>Selects line accurate rendering</td>
  2121. </tr>
  2122. <tr>
  2123. <td><code>set accuracy pixel</code></td>
  2124. <td>Selects pixel accurate rendering</td>
  2125. </tr>
  2126. </table>
  2127. <h3><a id="audio-inputfilename">audio-inputfilename</a></h3>
  2128. <p>Sets the audio file from which the wave input is read for the sampler.</p>
  2129. <p>By default, it is read from "audio-input.wav" when available.</p>
  2130. <div class="subsectiontitle">
  2131. usage:
  2132. </div>
  2133. <table>
  2134. <tr>
  2135. <td><code>set audio-inputfilename</code></td>
  2136. <td>Shows the current setting</td>
  2137. </tr>
  2138. <tr>
  2139. <td><code>set audio-inputfilename mysample.wav</code></td>
  2140. <td>Read from "mysample.wav"</td>
  2141. </tr>
  2142. </table>
  2143. <div class="note">
  2144. Note: The file is fully read into memory, so under Linux/UNIX do not attempt to read from a device node such as <code>/dev/dsp</code>.
  2145. </div>
  2146. <h3><a id="autoruncassettes">autoruncassettes</a></h3>
  2147. <p>Switches the "auto-run cassettes" feature on or off. When it's enabled, openMSX will try to type the proper loading
  2148. instruction when a cassette is inserted.</p>
  2149. <div class="subsectiontitle">
  2150. usage:
  2151. </div>
  2152. <table>
  2153. <tr>
  2154. <td><code>set autoruncassettes</code></td>
  2155. <td>Shows the current setting</td>
  2156. </tr>
  2157. <tr>
  2158. <td><code>set autoruncassettes on</code></td>
  2159. <td>Try to run cassettes automatically</td>
  2160. </tr>
  2161. <tr>
  2162. <td><code>set autoruncassettes off</code></td>
  2163. <td>Do nothing when cassettes are inserted</td>
  2164. </tr>
  2165. </table>
  2166. <div class="note">
  2167. Note: Autorun is only supported for cassette images in the CAS format.
  2168. </div>
  2169. <h3><a id="autorunlaserdisc">autorunlaserdisc</a></h3>
  2170. <p>Switches the "auto-run laserdisc" feature on or off. When it's enabled, openMSX will try to type the proper loading
  2171. instruction when a laserdisc is inserted.</p>
  2172. <div class="subsectiontitle">
  2173. usage:
  2174. </div>
  2175. <table>
  2176. <tr>
  2177. <td><code>set autorunlaserdisc</code></td>
  2178. <td>Shows the current setting</td>
  2179. </tr>
  2180. <tr>
  2181. <td><code>set autorunlaserdisc on</code></td>
  2182. <td>Try to load Laserdiscs automatically</td>
  2183. </tr>
  2184. <tr>
  2185. <td><code>set autorunlaserdisc off</code></td>
  2186. <td>Do nothing when Laserdiscs are inserted</td>
  2187. </tr>
  2188. </table>
  2189. <h3><a id="auto_enable_reverse">auto_enable_reverse</a></h3>
  2190. <p>Using the <code><a class="internal" href="#reverse">reverse</a></code> feature has a small memory and performance cost. Therefore it has to be enabled before it can be used. This setting controls whether the reverse feature should automatically be activated when openMSX starts. On desktop computers this generally won't be a problem. But for small handheld devices it can be.</p>
  2191. <div class="subsectiontitle">
  2192. usage:
  2193. </div>
  2194. <table>
  2195. <tr>
  2196. <td><code>set auto_enable_reverse</code></td>
  2197. <td>Shows the current setting</td>
  2198. </tr>
  2199. <tr>
  2200. <td><code>set auto_enable_reverse off</code></td>
  2201. <td>Don't automatically enable the reverse feature</td>
  2202. </tr>
  2203. <tr>
  2204. <td><code>set auto_enable_reverse on</code></td>
  2205. <td>Enable the reverse feature when openMSX starts</td>
  2206. </tr>
  2207. <tr>
  2208. <td><code>set auto_enable_reverse gui</code></td>
  2209. <td>Enable the reverse feature and the reverse bar when openMSX starts. Default setting for Desktop/PC</td>
  2210. </tr>
  2211. </table>
  2212. <h3><a id="auto_save_replay">auto_save_replay</a></h3>
  2213. <p>Enable this setting to make automatic backups of your current replay. The replay is saved to the filename specified in the <code>auto_save_replay_filename</code> setting (default: "auto_save") at an interval as specified by the <code>auto_save_replay_interval</code> setting (default: 30 seconds). The interval is in real clock time, not in MSX time.</p>
  2214. <h3><a id="blur">blur</a></h3>
  2215. <p>Sets the amount of horizontal blur effect. A value of 0 turns off blur, while 100 selects maximum blur.</p>
  2216. <div class="subsectiontitle">
  2217. usage:
  2218. </div>
  2219. <table>
  2220. <tr>
  2221. <td><code>set blur</code></td>
  2222. <td>Shows the current setting</td>
  2223. </tr>
  2224. <tr>
  2225. <td><code>set blur &lt;value&gt;</code></td>
  2226. <td>Change the value</td>
  2227. </tr>
  2228. </table>
  2229. <div class="note">
  2230. Note: Only some <a class="internal" href="#scale_algorithm">scale algorithms</a> apply horizontal blur; the default algorithm "simple" does.
  2231. </div>
  2232. <h3><a id="bootsector">bootsector</a></h3>
  2233. <p>Sets the boot sector type for DirAsDSK. Default: DOS2. Only relevant on turboR, because it boots differently
  2234. depending on the type of boot sector on the disk in drive A.</p>
  2235. <div class="subsectiontitle">
  2236. usage:
  2237. </div>
  2238. <table>
  2239. <tr>
  2240. <td><code>set bootsector</code></td>
  2241. <td>Shows the current setting</td>
  2242. </tr>
  2243. <tr>
  2244. <td><code>set bootsector DOS1</code></td>
  2245. <td>Use a DOS1 boot sector</td>
  2246. </tr>
  2247. </table>
  2248. <h3><a id="brightness">brightness</a></h3>
  2249. <p>Controls the brightness of the video output. Can be between -100 and 100. Lower values are darker, higher values are brighter. The default is 0, which is neutral. This setting shifts the brightness of all colors, including black and white, while the <code><a class="internal" href="#gamma">gamma</a></code> setting changes the relative brightness of colors but does not change black and white.</p>
  2250. <p>The section about the <code><a class="internal" href="#noise">noise</a></code> setting describes a typical way of using <code>brightness</code>.</p>
  2251. <div class="subsectiontitle">
  2252. usage:
  2253. </div>
  2254. <table>
  2255. <tr>
  2256. <td><code>set brightness</code></td>
  2257. <td>Shows the current setting</td>
  2258. </tr>
  2259. <tr>
  2260. <td><code>set brightness 5</code></td>
  2261. <td>Make the video output a bit brighter than default</td>
  2262. </tr>
  2263. </table>
  2264. <h3><a id="cmdtiming">cmdtiming</a></h3>
  2265. <p>Controls VDP command execution timing.</p>
  2266. <p>This is useful for debugging and for speeding up games where the command engine performance is a bottleneck.</p>
  2267. <div class="subsectiontitle">
  2268. usage:
  2269. </div>
  2270. <table>
  2271. <tr>
  2272. <td><code>set cmdtiming</code></td>
  2273. <td>Shows the current setting</td>
  2274. </tr>
  2275. <tr>
  2276. <td><code>set cmdtiming broken</code></td>
  2277. <td>Make VDP commands finish instantly</td>
  2278. </tr>
  2279. <tr>
  2280. <td><code>set cmdtiming real</code></td>
  2281. <td>Make VDP commands take a realistic amount of time</td>
  2282. </tr>
  2283. </table>
  2284. <div class="note">
  2285. Note: When set to <code>broken</code> the emulated MSX acts different from a real MSX. This might cause some software to fail.
  2286. </div>
  2287. <h3><a id="color_matrix">color_matrix</a></h3>
  2288. <p>This setting represents a 3&times;3 matrix that is used to transform MSX RGB colors to host RGB colors. This setting can
  2289. be used to generate all kind of color schemes, see <code>scripts/monitor.tcl</code> for examples.</p>
  2290. <p>To get the following color transformation:</p>
  2291. <pre>
  2292. | a b c | | Rm | | Rh |
  2293. | d e f | &times; | Gm | = | Gh |
  2294. | g h i | | Bm | | Bh |
  2295. </pre>
  2296. <p>Use this command:</p>
  2297. <pre>
  2298. set color_matrix { { a b c } { d e f } { g h i } }
  2299. </pre>
  2300. <div class="subsectiontitle">
  2301. usage:
  2302. </div>
  2303. <table>
  2304. <tr>
  2305. <td><code>set color_matrix</code></td>
  2306. <td>Shows the current value</td>
  2307. </tr>
  2308. <tr>
  2309. <td><code>set color_matrix { { 1 0 0 } { 0 1 0 } { 0 0 1 } }</code></td>
  2310. <td>This is the default (no color transformation)</td>
  2311. </tr>
  2312. <tr>
  2313. <td><code>set color_matrix { { .33 .33 .33 } { .33 .33 .33 } { .33 .33 .33 } }</code></td>
  2314. <td>Transform to grey scale</td>
  2315. </tr>
  2316. </table>
  2317. <div class="note">
  2318. Note: It is often more convenient to use the <code><a class="internal" href="#monitor_type">monitor_type</a></code> command.
  2319. </div>
  2320. <h3><a id="console">console</a></h3>
  2321. <p>Turns the openMSX on-screen console on or off.</p>
  2322. <div class="subsectiontitle">
  2323. usage:
  2324. </div>
  2325. <table>
  2326. <tr>
  2327. <td><code>set console</code></td>
  2328. <td>Shows the current setting</td>
  2329. </tr>
  2330. <tr>
  2331. <td><code>set console on</code></td>
  2332. <td>Turns the console on</td>
  2333. </tr>
  2334. <tr>
  2335. <td><code>set console off</code></td>
  2336. <td>Turns the console off</td>
  2337. </tr>
  2338. </table>
  2339. <h3><a id="consolebackground">consolebackground</a></h3>
  2340. <p>Change the console background image. Only images in the PNG format are supported. Background images may also have an alpha channel (amount of transparency per pixel).</p>
  2341. <div class="subsectiontitle">
  2342. usage:
  2343. </div>
  2344. <table>
  2345. <tr>
  2346. <td><code>set consolebackground</code></td>
  2347. <td>Shows the current setting</td>
  2348. </tr>
  2349. <tr>
  2350. <td><code>set consolebackground &lt;image&gt;</code></td>
  2351. <td>Sets a new background image</td>
  2352. </tr>
  2353. </table>
  2354. <h3><a id="consolecolumns">consolecolumns</a></h3>
  2355. <p>Change the width of the console measured by the number of columns.</p>
  2356. <div class="subsectiontitle">
  2357. usage:
  2358. </div>
  2359. <table>
  2360. <tr>
  2361. <td><code>set consolecolumns</code></td>
  2362. <td>Shows the current setting</td>
  2363. </tr>
  2364. <tr>
  2365. <td><code>set consolecolumns &lt;value&gt;</code></td>
  2366. <td>Set the specified width</td>
  2367. </tr>
  2368. </table>
  2369. <h3><a id="consolefont">consolefont</a></h3>
  2370. <p>Change the console font. This should be the filename of a True Type Font. The default value is <code>skins/VeraMono.ttf.gz</code>.</p>
  2371. <p>Font files of other types than True Type Fonts (TTF) are not supported. The font must also be monospaced.</p>
  2372. <div class="subsectiontitle">
  2373. usage:
  2374. </div>
  2375. <table>
  2376. <tr>
  2377. <td><code>set consolefont</code></td>
  2378. <td>Shows the current setting</td>
  2379. </tr>
  2380. <tr>
  2381. <td><code>set consolefont &lt;myfont.ttf&gt;</code></td>
  2382. <td>Sets a new font</td>
  2383. </tr>
  2384. </table>
  2385. <h3><a id="consolefontsize">consolefontsize</a></h3>
  2386. <p>Set the size for the console font. The default value is 12.</p>
  2387. <div class="subsectiontitle">
  2388. usage:
  2389. </div>
  2390. <table>
  2391. <tr>
  2392. <td><code>set consolefontsize</code></td>
  2393. <td>Shows the current setting</td>
  2394. </tr>
  2395. <tr>
  2396. <td><code>set consolefontsize 16</code></td>
  2397. <td>Set a bigger than default font size</td>
  2398. </tr>
  2399. </table>
  2400. <h3><a id="console_history_size">console_history_size</a></h3>
  2401. <p>Determines how many commands are saved into the console history.</p>
  2402. <div class="subsectiontitle">
  2403. usage:
  2404. </div>
  2405. <table>
  2406. <tr>
  2407. <td><code>set console_history_size</code></td>
  2408. <td>Shows the current setting</td>
  2409. </tr>
  2410. <tr>
  2411. <td><code>set console_history_size 5000</code></td>
  2412. <td>Keep a maximum of 5000 commands in the console history</td>
  2413. </tr>
  2414. </table>
  2415. <h3><a id="consoleplacement">consoleplacement</a></h3>
  2416. <p>Changes the position of the console on the emulator screen.</p>
  2417. <div class="subsectiontitle">
  2418. usage:
  2419. </div>
  2420. <table>
  2421. <tr>
  2422. <td><code>set consoleplacement</code></td>
  2423. <td>Shows the current setting</td>
  2424. </tr>
  2425. <tr>
  2426. <td><code>set consoleplacement &lt;place&gt;</code></td>
  2427. <td>Moves the console to the specified location; <code>&lt;place&gt;</code> can be <code>topleft</code>, <code>top</code>, <code>topright</code>, <code>left</code>, <code>center</code>, <code>right</code>, <code>bottomleft</code>, <code>bottom</code> or <code>bottomright</code>.</td>
  2428. </tr>
  2429. </table>
  2430. <h3><a id="consolerows">consolerows</a></h3>
  2431. <p>Change the height of the console measured by the number of rows.</p>
  2432. <div class="subsectiontitle">
  2433. usage:
  2434. </div>
  2435. <table>
  2436. <tr>
  2437. <td><code>set consolerows</code></td>
  2438. <td>Shows the current setting</td>
  2439. </tr>
  2440. <tr>
  2441. <td><code>set consolerows &lt;value&gt;</code></td>
  2442. <td>Set the specified number of rows</td>
  2443. </tr>
  2444. </table>
  2445. <h3><a id="console_remove_doubles">console_remove_doubles</a></h3>
  2446. <p>Determines whether the console history remembers two identical subsequent commands.</p>
  2447. <div class="subsectiontitle">
  2448. usage:
  2449. </div>
  2450. <table>
  2451. <tr>
  2452. <td><code>set console_remove_doubles</code></td>
  2453. <td>Shows the current setting</td>
  2454. </tr>
  2455. <tr>
  2456. <td><code>set console_remove_doubles on</code></td>
  2457. <td>Remove (do not remember) the last command if it's the same as the previous (default)</td>
  2458. </tr>
  2459. <tr>
  2460. <td><code>set console_remove_doubles off</code></td>
  2461. <td>Allow double subsequent command entries in the console history</td>
  2462. </tr>
  2463. </table>
  2464. <h3><a id="contrast">contrast</a></h3>
  2465. <p>Controls the contrast of the video output. Can be between -100 and 100. Lower values are less contrast, higher values are more contrast. The default is 0, which is neutral.</p>
  2466. <p>The section about the <code><a class="internal" href="#noise">noise</a></code> setting describes a typical way of using <code>contrast</code>.</p>
  2467. <div class="subsectiontitle">
  2468. usage:
  2469. </div>
  2470. <table>
  2471. <tr>
  2472. <td><code>set contrast</code></td>
  2473. <td>Shows the current setting</td>
  2474. </tr>
  2475. <tr>
  2476. <td><code>set contrast -5</code></td>
  2477. <td>Reduce the video contrast a bit</td>
  2478. </tr>
  2479. </table>
  2480. <h3><a id="cputrace">cputrace</a></h3>
  2481. <p>Enable/disable CPU instruction tracing. When enabled, the state of the CPU (Z80/R800) is printed on stdout after every instruction. This creates a lot of output and slows down emulation considerably, but it can be very useful for debugging.</p>
  2482. <div class="subsectiontitle">
  2483. usage:
  2484. </div>
  2485. <table>
  2486. <tr>
  2487. <td><code>set cputrace</code></td>
  2488. <td>Shows the current setting</td>
  2489. </tr>
  2490. <tr>
  2491. <td><code>set cputrace on</code></td>
  2492. <td>Enables CPU tracing</td>
  2493. </tr>
  2494. <tr>
  2495. <td><code>set cputrace off</code></td>
  2496. <td>Disables CPU tracing</td>
  2497. </tr>
  2498. </table>
  2499. <h3><a id="debugoutput">debugoutput</a></h3>
  2500. <p>Selects the file to where the output from the debug device goes.</p>
  2501. <p>The User's Manual <a class="external" href="user.html#debugdevice">describes the debug device</a> in more detail.</p>
  2502. <div class="subsectiontitle">
  2503. usage:
  2504. </div>
  2505. <table>
  2506. <tr>
  2507. <td><code>set debugoutput</code></td>
  2508. <td>Shows the current output file name</td>
  2509. </tr>
  2510. <tr>
  2511. <td><code>set debugoutput stdout</code></td>
  2512. <td>Writes debug output to openMSX's standard output stream</td>
  2513. </tr>
  2514. <tr>
  2515. <td><code>set debugoutput stderr</code></td>
  2516. <td>Writes debug output to openMSX's standard error stream</td>
  2517. </tr>
  2518. <tr>
  2519. <td><code>set debugoutput &lt;output file&gt;</code></td>
  2520. <td>Writes debug output to the specified file</td>
  2521. </tr>
  2522. </table>
  2523. <div class="note">
  2524. Note: This setting only exists if the <code>debugdevice</code> extension is present in the current MSX machine.
  2525. </div>
  2526. <h3><a id="default_machine">default_machine</a></h3>
  2527. <p>Selects the default MSX model. openMSX uses this machine when it is started without the <code>-machine</code> option. This is a typical setting that should be saved, see also <a class="internal" href="#save_settings"><code>save_settings</code></a>.</p>
  2528. <div class="subsectiontitle">
  2529. usage:
  2530. </div>
  2531. <table>
  2532. <tr>
  2533. <td><code>set default_machine</code></td>
  2534. <td>Shows current setting</td>
  2535. </tr>
  2536. <tr>
  2537. <td><code>set default_machine Panasonic_FS-A1GT</code></td>
  2538. <td>Use the turboR GT the next time openMSX is started</td>
  2539. </tr>
  2540. </table>
  2541. <h3><a id="DirAsDSKmode">DirAsDSKmode</a></h3>
  2542. <p>Determine the behavior of the DirAsDSK when inserting a directory to be used as diskimage.</p>
  2543. <p>The possible values are <code>read_only</code> and <code>full</code>. The default mode is <code>full</code>.</p>
  2544. <table>
  2545. <tr>
  2546. <td><code>read_only</code></td>
  2547. <td>The MSX can not write to the virtual disk.<br/>Changes on the host-OS are still reflected on the virtual disk, however.</td>
  2548. </tr>
  2549. <tr>
  2550. <td><code>full</code></td>
  2551. <td>All changes are performed both ways, no restrictions apply.</td>
  2552. </tr>
  2553. </table>
  2554. <div class="subsectiontitle">
  2555. usage:
  2556. </div>
  2557. <table>
  2558. <tr>
  2559. <td><code>set DirAsDSKmode</code></td>
  2560. <td>Shows the current setting</td>
  2561. </tr>
  2562. <tr>
  2563. <td><code>set DirAsDSKmode read_only</code></td>
  2564. <td>Disk image will be read only</td>
  2565. </tr>
  2566. </table>
  2567. <div class="note">
  2568. Note: this setting is only used when the directory is inserted, it is not possible to change the behaviour of the current virtual disk by altering the setting. The new setting will become effective after the current virtual disk has been ejected.
  2569. </div>
  2570. <h3><a id="deflicker">deflicker</a></h3>
  2571. <p>Turns deflicker on/off. deflicker is a filter which tries to detect pixels
  2572. that alternate each frame between two different color values and replaces
  2573. those alternations with the average color. It gives a very nice result for
  2574. software (mostly demos) that use this technique to get the optical illusion
  2575. of more colors than are actually supported by the hardware. It also works
  2576. well in games with flickering sprites on a static background (like Maze of
  2577. Galious). This setting is disabled by default because there aren't that many
  2578. situations were it really improves video quality and it does have a
  2579. performance cost. </p>
  2580. <div class="subsectiontitle">
  2581. usage:
  2582. </div>
  2583. <table>
  2584. <tr>
  2585. <td><code>set deflicker</code></td>
  2586. <td>Shows the current setting</td>
  2587. </tr>
  2588. <tr>
  2589. <td><code>set deflicker on</code></td>
  2590. <td>Turns deflicker on</td>
  2591. </tr>
  2592. <tr>
  2593. <td><code>set deflicker off</code></td>
  2594. <td>Turns deflicker off</td>
  2595. </tr>
  2596. </table>
  2597. <h3><a id="deinterlace">deinterlace</a></h3>
  2598. <p>Turns deinterlacing on/off. Deinterlace is a filter which combines the even and odd field of interlaced video into a single frame which has double vertical resolution. It results in a sharp and stable image, but can show artifacts on fast animations.</p>
  2599. <div class="subsectiontitle">
  2600. usage:
  2601. </div>
  2602. <table>
  2603. <tr>
  2604. <td><code>set deinterlace</code></td>
  2605. <td>Shows the current setting</td>
  2606. </tr>
  2607. <tr>
  2608. <td><code>set deinterlace on</code></td>
  2609. <td>Turns deinterlacing on</td>
  2610. </tr>
  2611. <tr>
  2612. <td><code>set deinterlace off</code></td>
  2613. <td>Turns deinterlacing off</td>
  2614. </tr>
  2615. </table>
  2616. <div class="note">
  2617. Note: Deinterlacing is only supported for <code><a class="internal" href="#scale_factor">scale_factors</a></code> bigger or equal to 2.
  2618. </div>
  2619. <h3><a id="disablesprites">disablesprites</a></h3>
  2620. <p>Can be used to disable sprite rendering. Only the rendering itself is
  2621. disabled, all other MSX behaviour (like sprite collision detection) stays
  2622. the same.</p>
  2623. <div class="subsectiontitle">
  2624. usage:
  2625. </div>
  2626. <table>
  2627. <tr>
  2628. <td><code>set disablesprites</code></td>
  2629. <td>Shows the current setting</td>
  2630. </tr>
  2631. <tr>
  2632. <td><code>set disablesprites on</code></td>
  2633. <td>Disable sprite rendering</td>
  2634. </tr>
  2635. <tr>
  2636. <td><code>set disablesprites off</code></td>
  2637. <td>Enable sprite rendering (the default)</td>
  2638. </tr>
  2639. </table>
  2640. <h3><a id="display_deform">display_deform</a></h3>
  2641. <p>Select display deformation effect. This effect is only supported in the SDLGL-PP renderer.</p>
  2642. <div class="subsectiontitle">
  2643. usage:
  2644. </div>
  2645. <table>
  2646. <tr>
  2647. <td><code>set display_deform</code></td>
  2648. <td>Shows the current setting</td>
  2649. </tr>
  2650. <tr>
  2651. <td><code>set display_deform normal</code></td>
  2652. <td>Turns off display deform</td>
  2653. </tr>
  2654. <tr>
  2655. <td><code>set display_deform 3d</code></td>
  2656. <td>Deforms the image in 3D, to look like a CRT (like JEmu2)</td>
  2657. </tr>
  2658. </table>
  2659. <div class="note">
  2660. Note: In the past there was also a 'horizontal_stretch' mode. This is now replaced by the <code><a class="internal" href="#horizontal_stretch">horizontal_stretch</a></code> setting.
  2661. </div>
  2662. <h3><a id="di_halt_callback">di_halt_callback</a></h3>
  2663. <p>Selects the Tcl procedure to be called when the running MSX software has executed a HALT instruction while the interrupts are disabled (DI).</p>
  2664. <p>The default openmsx startup scripts initialize this setting with a proc that prints a warning message.</p>
  2665. <div class="subsectiontitle">
  2666. usage:
  2667. </div>
  2668. <table>
  2669. <tr>
  2670. <td><code>set di_halt_callback</code></td>
  2671. <td>Shows the current setting</td>
  2672. </tr>
  2673. <tr>
  2674. <td><code>set di_halt_callback my_callback_proc</code></td>
  2675. <td>Sets a new callback proc</td>
  2676. </tr>
  2677. </table>
  2678. <h3><a id="enable_session_management">enable_session_management</a></h3>
  2679. <p>Controls session management. When enabled, openMSX will store the state of all machines when you exit openMSX and restore that state again when starting it up next time. Note that the reverse history is not saved.
  2680. </p>
  2681. <p>Sessions can also be saved manually with the command <code>save_session</code>, and explicitly loaded with <code>load_session</code>. A list of saved sessions can be retrieved with <code>list_sessions</code>.
  2682. </p>
  2683. <h3><a id="fastforward">fastforward</a></h3>
  2684. <p>Chooses between normal speed (off) and fastforward speed (on).</p>
  2685. <div class="subsectiontitle">
  2686. usage:
  2687. </div>
  2688. <table>
  2689. <tr>
  2690. <td><code>set fastforward</code></td>
  2691. <td>Shows the current setting</td>
  2692. </tr>
  2693. <tr>
  2694. <td><code>set fastforward on</code></td>
  2695. <td>Run at fastforward speed: the <code><a class="internal" href="#fastforwardspeed">fastforwardspeed</a></code> setting determines how fast the emulated MSX runs compared to real time</td>
  2696. </tr>
  2697. <tr>
  2698. <td><code>set fastforward off</code></td>
  2699. <td>Run at normal speed: the <code><a class="internal" href="#speed">speed</a></code> setting determines how fast the emulated MSX runs compared to real time</td>
  2700. </tr>
  2701. </table>
  2702. <h3><a id="fastforwardspeed">fastforwardspeed</a></h3>
  2703. <p>Sets the emulation speed relative to the speed of a real MSX when we are running in <a class="internal" href="#fastforward">fastforward mode</a>. Speed 100 means as fast as a real MSX, lower values are slower than real MSX, higher values are faster than real MSX.</p>
  2704. <div class="subsectiontitle">
  2705. usage:
  2706. </div>
  2707. <table>
  2708. <tr>
  2709. <td><code>set fastforwardspeed</code></td>
  2710. <td>Shows current fastforward speed</td>
  2711. </tr>
  2712. <tr>
  2713. <td><code>set fastforwardspeed &lt;num&gt;</code></td>
  2714. <td>Sets new fastforward speed to &lt;num&gt;% of real time</td>
  2715. </tr>
  2716. </table>
  2717. <h3><a id="frequency">frequency</a></h3>
  2718. <p>Sets the sound mixer frequency. Sound hardware and sound APIs typically support a limited set of frequencies, such as 11025 Hz, 22050 Hz, 44100 Hz and 48000 Hz.</p>
  2719. <div class="subsectiontitle">
  2720. usage:
  2721. </div>
  2722. <table>
  2723. <tr>
  2724. <td><code>set frequency</code></td>
  2725. <td>Shows the current setting</td>
  2726. </tr>
  2727. <tr>
  2728. <td><code>set frequency 44100</code></td>
  2729. <td>Use 44.1 kHz mixing frequency (CD quality)</td>
  2730. </tr>
  2731. </table>
  2732. <h3><a id="firmwareswitch">firmwareswitch</a></h3>
  2733. <p>Some machines (e.g. turboR) have a switch on the front (or on the back) that controls if the machine should boot
  2734. 'normally' or start the built-in software, also called firmware. This setting controls the position of that
  2735. switch.</p>
  2736. <div class="subsectiontitle">
  2737. usage:
  2738. </div>
  2739. <table>
  2740. <tr>
  2741. <td><code>set firmwareswitch</code></td>
  2742. <td>Shows the current setting</td>
  2743. </tr>
  2744. <tr>
  2745. <td><code>set firmwareswitch on</code></td>
  2746. <td>Boot into the internal software</td>
  2747. </tr>
  2748. <tr>
  2749. <td><code>set firmwareswitch off</code></td>
  2750. <td>Boot into MSX-BASIC or on-disk software</td>
  2751. </tr>
  2752. </table>
  2753. <h3><a id="fullscreen">fullscreen</a></h3>
  2754. <p>Switch to/from fullscreen mode.</p>
  2755. <div class="subsectiontitle">
  2756. usage:
  2757. </div>
  2758. <table>
  2759. <tr>
  2760. <td><code>set fullscreen</code></td>
  2761. <td>Shows the current setting</td>
  2762. </tr>
  2763. <tr>
  2764. <td><code>set fullscreen on</code></td>
  2765. <td>Switch to fullscreen mode</td>
  2766. </tr>
  2767. <tr>
  2768. <td><code>set fullscreen off</code></td>
  2769. <td>Switch to windowed mode</td>
  2770. </tr>
  2771. </table>
  2772. <h3><a id="fullspeedwhenloading">fullspeedwhenloading</a></h3>
  2773. <p>When enabled, openMSX will try to detect when the MSX is loading from diskette, cassette or laserdisc. During loading openMSX will run at full speed (<code><a class="internal" href="#throttle">throttle</a></code> off). This can be convenient if you're not interested in the realistic but slow loading times on MSX. Default is off, because it is not according to the behaviour of a real MSX.</p>
  2774. <p>Unlike the fast loading features in for example fMSX, <code>fullspeedwhenloading</code> does not intercept BIOS calls. Instead, it speeds up the emulation of the entire MSX, including all hardware devices.</p>
  2775. <div class="subsectiontitle">
  2776. usage:
  2777. </div>
  2778. <table>
  2779. <tr>
  2780. <td><code>set fullspeedwhenloading</code></td>
  2781. <td>Shows the current setting</td>
  2782. </tr>
  2783. <tr>
  2784. <td><code>set fullspeedwhenloading on</code></td>
  2785. <td>Load as fast as possible</td>
  2786. </tr>
  2787. <tr>
  2788. <td><code>set fullspeedwhenloading off</code></td>
  2789. <td>Load at the same speed as a real MSX</td>
  2790. </tr>
  2791. </table>
  2792. <h3><a id="gamma">gamma</a></h3>
  2793. <p>Sets the amount of gamma correction. A value of 1.0 will turn off gamma correction. Lower values will result in a darker image, higher values in a brighter image.</p>
  2794. <p>If you want to get a realistic picture, set the openMSX gamma correction to <i>PC gamma / MSX gamma</i>. TVs use a standardised gamma of 2.5, let's take that as the value of <i>MSX gamma</i>. You can measure the gamma of your PC screen with a simple test such as the Gamma Measurement Image in <a class="external" href="https://web.archive.org/web/20150714015749/http://www.bberger.net/rwb/gamma.html">Robert W. Berger's "An Explanation of Monitor Gamma"</a>. If your <i>PC gamma</i> would be for example 2.0, the most realistic value for gamma correction would be 2.0 / 2.5 = 0.8.</p>
  2795. <p>Alternatively, you can just try a few values and see what you like.</p>
  2796. <div class="subsectiontitle">
  2797. usage:
  2798. </div>
  2799. <table>
  2800. <tr>
  2801. <td><code>set gamma</code></td>
  2802. <td>Shows the current value</td>
  2803. </tr>
  2804. <tr>
  2805. <td><code>set gamma &lt;num&gt;</code></td>
  2806. <td>Sets a new gamma correction amount</td>
  2807. </tr>
  2808. </table>
  2809. <h3><a id="glow">glow</a></h3>
  2810. <p>Sets the amount of afterglow effect: 0 is off and 100 is a very heavy afterglow.</p>
  2811. <div class="subsectiontitle">
  2812. usage:
  2813. </div>
  2814. <table>
  2815. <tr>
  2816. <td><code>set glow</code></td>
  2817. <td>Shows the current setting</td>
  2818. </tr>
  2819. <tr>
  2820. <td><code>set glow &lt;value&gt;</code></td>
  2821. <td>Change the amount of afterglow</td>
  2822. </tr>
  2823. </table>
  2824. <div class="note">
  2825. Note: Not all renderers support this.
  2826. </div>
  2827. <h3><a id="grabinput">grabinput</a></h3>
  2828. <p>Controls whether openMSX grabs all input events or not. When this setting is turned on, all input events are directly passed to openMSX. The mouse pointer can't leave the openMSX window and the window manager won't be able to react to keyboard shortcuts.</p>
  2829. <p>You can turn this setting on when you want to use mouse-controlled MSX software while openMSX is in windowed mode. It is best turned off in all other cases. See also <a class="internal" href="#escape_grab"><code>escape_grab</code></a>.</p>
  2830. <div class="subsectiontitle">
  2831. usage:
  2832. </div>
  2833. <table>
  2834. <tr>
  2835. <td><code>set grabinput</code></td>
  2836. <td>Shows the current setting</td>
  2837. </tr>
  2838. <tr>
  2839. <td><code>set grabinput on</code></td>
  2840. <td>Starts grabbing all input events</td>
  2841. </tr>
  2842. <tr>
  2843. <td><code>set grabinput off</code></td>
  2844. <td>Stops grabbing all input events</td>
  2845. </tr>
  2846. </table>
  2847. <h3><a id="horizontal_stretch">horizontal_stretch</a></h3>
  2848. <p>Sets the amount of horizontal stretch, thus also the aspect ratio of the screen. More specifically, a setting of <code>n</code> means stretch the center <code>n</code> MSX pixels to the full width of the host output window (at <code><a class="internal" href="#scale_factor">scale_factor</a></code> 1).</p>
  2849. <div class="subsectiontitle">
  2850. usage:
  2851. </div>
  2852. <table>
  2853. <tr>
  2854. <td><code>set horizontal_stretch</code></td>
  2855. <td>Shows the current setting</td>
  2856. </tr>
  2857. <tr>
  2858. <td><code>set horizontal_stretch &lt;value&gt;</code></td>
  2859. <td>Change the amount of horizontal stretch</td>
  2860. </tr>
  2861. </table>
  2862. <div class="subsectiontitle">
  2863. examples of typical useful values:
  2864. </div>
  2865. <div class="examples">
  2866. <code>set horizontal_stretch 320</code> (no horizontal stretch)<br />
  2867. <code>set horizontal_stretch 272</code> (approach real aspect ratio of MSX screen)<br />
  2868. <code>set horizontal_stretch 280</code> (default: show all generated border pixels, so that all border demo effects are still visible)<br />
  2869. <code>set horizontal_stretch 256</code> (borders are not visible at all; doesn't work well in combination with set-adjust)
  2870. </div>
  2871. <div class="note">
  2872. Note: when using the SDL renderer, this setting may cause a lot more CPU usage (e.g. on a Dingoo) when not using the value 320.
  2873. </div>
  2874. <h3><a id="inputdelay">inputdelay</a></h3>
  2875. <p>Input events for the MSX machine are delayed by this amount. Increase this value when the MSX machine misses keyboard presses when you type very fast. Decrease this value to reduce the latency between pressing a key on the host machine and seeing it being typed in the MSX machine.</p>
  2876. <div class="subsectiontitle">
  2877. usage:
  2878. </div>
  2879. <table>
  2880. <tr>
  2881. <td><code>set inputdelay</code></td>
  2882. <td>Shows the current value</td>
  2883. </tr>
  2884. <tr>
  2885. <td><code>set inputdelay &lt;time&gt;</code></td>
  2886. <td>Sets the input delay to the specified number of seconds</td>
  2887. </tr>
  2888. </table>
  2889. <div class="note">
  2890. Note: The default value of 0.0 seconds (no extra delay) should almost
  2891. always be OK. It only makes sense to increase this setting if you have
  2892. a slow host machine and you're typing text very fast and the emulated
  2893. MSX machine misses (some of) the keys you typed.
  2894. </div>
  2895. <h3><a id="interleave_black_frame">interleave_black_frame</a></h3>
  2896. <p>Insert a black frame in between each normal MSX frame. Useful on (100Hz+)
  2897. lightboost enabled monitors to reduce motion blur and double frame
  2898. artifacts.</p>
  2899. <p>Make sure you configure your monitor to use a refresh rate of 100Hz (for a
  2900. PAL MSX machine) or to 120Hz (for a NTSC machine). The brightness will
  2901. decrease, so adjust the <a class="internal" href="#gamma">gamma</a>,
  2902. <a class="internal" href="#brightness">brightness</a> and
  2903. <a class="internal" href="#contrast">contrast</a> settings to compensate.</p>
  2904. <div class="subsectiontitle">
  2905. usage:
  2906. </div>
  2907. <table>
  2908. <tr>
  2909. <td><code>set interleave_black_frame</code></td>
  2910. <td>Shows the current value</td>
  2911. </tr>
  2912. <tr>
  2913. <td><code>set interleave_black_frame true</code></td>
  2914. <td>Enable this feature.</td>
  2915. </tr>
  2916. </table>
  2917. <h3><a id="invalid_ppi_mode_callback">invalid_ppi_mode_callback</a></h3>
  2918. <p>Selects the Tcl procedure to be called when the running MSX software has selected an invalid PPI mode. Or at least a PPI mode that's not yet correctly emulated. Typically on a real machine these modes will hang the MSX.</p>
  2919. <p>The default openmsx startup scripts initialize this setting with a proc that prints a warning message just once. Though if you're a developer you may want to change this to always print the warning or automatically break emulation when this happens so you can debug the problem.</p>
  2920. <div class="subsectiontitle">
  2921. usage:
  2922. </div>
  2923. <table>
  2924. <tr>
  2925. <td><code>set invalid_ppi_mode_callback</code></td>
  2926. <td>Shows the current setting</td>
  2927. </tr>
  2928. <tr>
  2929. <td><code>set invalid_ppi_mode_callback my_callback_proc</code></td>
  2930. <td>Sets a new callback proc</td>
  2931. </tr>
  2932. </table>
  2933. <h3><a id="invalid_psg_directions_callback">invalid_psg_directions_callback</a></h3>
  2934. <p>Selects the Tcl procedure to be called when the running MSX software has selected invalid PSG port directions (port A should always be set as input).</p>
  2935. <p>The default openmsx startup scripts initialize this setting with a proc that prints a warning message just once. Though if you're a developer you may want to change this to always print the warning or automatically break emulation when this happens so you can debug the problem.</p>
  2936. <div class="subsectiontitle">
  2937. usage:
  2938. </div>
  2939. <table>
  2940. <tr>
  2941. <td><code>set invalid_psg_directions_callback</code></td>
  2942. <td>Shows the current setting</td>
  2943. </tr>
  2944. <tr>
  2945. <td><code>set invalid_psg_directions_callback my_callback_proc</code></td>
  2946. <td>Sets a new callback proc</td>
  2947. </tr>
  2948. </table>
  2949. <h3><a id="joystickN_config">joystick&lt;n&gt;_config</a></h3>
  2950. <p>This setting configures how the buttons/axis of the host joystick(s) are
  2951. mapped to the corresponding inputs of the emulated MSX joystick(s). For many
  2952. joysticks the initial value of this setting provides an acceptable default
  2953. mapping. But depending on your joystick type and taste you may want to tweak
  2954. it.</p>
  2955. <p>The value of this setting is a Tcl dictionary. This means it's a list of
  2956. key/value pairs where each even element is a key and each odd element is the
  2957. corresponding value. The keys in this dictionary represent the 6 possible MSX
  2958. joystick inputs. Possible key values are <code>LEFT</code>,
  2959. <code>RIGHT</code>, <code>UP</code>, <code>DOWN</code>, <code>A</code> and
  2960. <code>B</code>. The corresponding dictionary-values are lists of host
  2961. joystick inputs. Possible elements for these lists are
  2962. <code>button&lt;n&gt;</code>, <code>+axis&lt;n&gt;</code>,
  2963. <code>-axis&lt;n&gt;</code> and <code>{L,R,U,D}_hat&lt;n&gt;</code>.</p>
  2964. <p>Let's explain this with an example. The following is the default value for
  2965. this setting:<br/>
  2966. &nbsp;<code>LEFT -axis0 RIGHT +axis0 UP -axis1 DOWN +axis1 A {button0 button2} B {button1 button3}</code><br/>
  2967. Axis 0 is usually the primary X-axis of the host joystick. When that axis is
  2968. moved towards negative values the LEFT input switch on the emulated joystick
  2969. is activated. When it is moved towards positive values the RIGHT MSX input
  2970. switch is activated. Similarly host axis1 is mapped to the UP and DOWN MSX
  2971. inputs. The (default) configuration for the buttons is slightly more
  2972. complicated. Here both host button 0 and 2 will activate MSX button A, and
  2973. both button 1 and 3 will activate MSX button B. (This example shows a host
  2974. joystick with 4 buttons, but in general (by default) all even host buttons
  2975. will active MSX button A and all odd host buttons will active MSX button
  2976. B).</p>
  2977. <p>There are no restrictions on the possible mappings. For example it is
  2978. allowed to map host axis/buttons to MSX buttons/axis or vice-versa. This
  2979. allows to for example map a host joypad (which acts like 4 buttons) to the
  2980. MSX directional inputs. (Technically speaking the MSX axis inputs LEFT,
  2981. RIGHT, UP and DOWN are just 4 input switches, just like the buttons A and B
  2982. are just 2 input switches). It's also allowed to map the same host action to
  2983. multiple MSX inputs. This allows to for example make one specific host button
  2984. press both MSX buttons simultaneously (e.g. to have a 'crouch button' in
  2985. Metal Gear).</p>
  2986. <p>It is possible to set this setting directly using the <code>set</code>
  2987. command, but often using the Tcl <code>dict</code> command is more
  2988. convenient. See below for some examples.</p>
  2989. <div class="subsectiontitle">
  2990. usage:
  2991. </div>
  2992. <table>
  2993. <tr>
  2994. <td><code>set joystick1_config</code></td>
  2995. <td>Shows the current configuration of the first joystick</td>
  2996. </tr>
  2997. <tr>
  2998. <td><code>dict set joystick1_config A button5</code></td>
  2999. <td>(Re)map MSX button A to (only) host button 5. Leave the mapping of the
  3000. other MSX inputs unchanged.</td>
  3001. </tr>
  3002. <tr>
  3003. <td><code>dict set joystick1_config A {button0 button2}<br/>
  3004. dict set joystick1_config B {button1 button2}</code></td>
  3005. <td>Map button 0 to A, 1 to B and 2 to A+B. So pressing host button 2
  3006. will press both MSX buttons.</td>
  3007. </tr>
  3008. <tr>
  3009. <td><code>dict set joystick1_config LEFT {-axis0 -axis2 button10}<br/>
  3010. dict set joystick1_config RIGHT {+axis0 +axis2 button11}<br/>
  3011. dict set joystick1_config UP {-axis1 -axis3 button12}<br/>
  3012. dict set joystick1_config DOWN {+axis1 +axis3 button13}</code></td>
  3013. <td>Map 2 pairs of axis and 1 keypad (4 buttons) to the MSX direction inputs.</td>
  3014. </tr>
  3015. <tr>
  3016. <td><code>dict lappend joystick1_config LEFT L_hat0<br/>
  3017. dict lappend joystick1_config RIGHT R_hat0<br/>
  3018. dict lappend joystick1_config UP U_hat0<br/>
  3019. dict lappend joystick1_config DOWN D_hat0</code></td>
  3020. <td>Additionally map hat0 to the 4 MSX directions.</td>
  3021. </tr>
  3022. </table>
  3023. <h3><a id="joystickN_deadzone">joystick&lt;n&gt;_deadzone</a></h3>
  3024. <p>This setting configures how big the dead center zone of an (analogue)
  3025. joystick is. This is expressed as a percentage: 0 means no dead zone, 100
  3026. means everything falls inside the dead zone.</p>
  3027. <div class="subsectiontitle">
  3028. usage:
  3029. </div>
  3030. <table>
  3031. <tr>
  3032. <td><code>set joystick1_deadzone</code></td>
  3033. <td>Shows the current size of the dead zone of the first joystick</td>
  3034. </tr>
  3035. <tr>
  3036. <td><code>set joystick1_deadzone 25</code></td>
  3037. <td>Set the size of the dead zone to &frac14; of the total range</td>
  3038. </tr>
  3039. </table>
  3040. <h3><a id="kbd_auto_toggle_code_kana_lock">kbd_auto_toggle_code_kana_lock</a></h3>
  3041. <p>Switches the "Automatically toggle the CODE/KANA lock" feature on or off. When it's on, openMSX will
  3042. automatically toggle the CODE/KANA lock when a user enters a character for which the CODE/KANA lock
  3043. state must be changed.</p>
  3044. <div class="subsectiontitle">
  3045. usage:
  3046. </div>
  3047. <table>
  3048. <tr>
  3049. <td><code>set kbd_auto_toggle_code_kana_lock</code></td>
  3050. <td>Shows the current setting</td>
  3051. </tr>
  3052. <tr>
  3053. <td><code>set&nbsp;kbd_auto_toggle_code_kana_lock&nbsp;on</code></td>
  3054. <td>Automatically toggle the CODE/KANA lock when required</td>
  3055. </tr>
  3056. <tr>
  3057. <td><code>set&nbsp;kbd_auto_toggle_code_kana_lock&nbsp;off</code></td>
  3058. <td>Only toggle CODE/KANA lock status when user presses the CODE/KANA lock key</td>
  3059. </tr>
  3060. </table>
  3061. <div class="note">
  3062. Note: This only works on MSX models for which the CODE/KANA key locks (e.g. Japanese MSX models and the Philips VG8010). On other models, this setting is ignored.
  3063. </div>
  3064. <h3><a id="kbd_code_kana_host_key">kbd_code_kana_host_key</a></h3>
  3065. <p>Host key that maps to the MSX CODE/KANA key. By default right-ALT (RALT) key.</p>
  3066. <p>It is especially useful for
  3067. people with AZERTY host keyboard, on which the RALT key has a special function; on
  3068. azerty keyboards it is called the ALT-GR key and not the right-ALT key and it's used to
  3069. enter some special characters (some keys are tagged with 3 characters; normal, key+SHIFT, key+ALT-GR).</p>
  3070. <p>It is also useful for people with a Japanese (jp106) keyboard; they can map the HENKAN_MODE key (which is similar to the KANA Lock on Japanese MSX models) to the CODE/KANA key.</p>
  3071. <div class="subsectiontitle">
  3072. usage:
  3073. </div>
  3074. <table>
  3075. <tr>
  3076. <td><code>set&nbsp;kbd_code_kana_host_key</code></td>
  3077. <td>Shows the current setting</td>
  3078. </tr>
  3079. <tr>
  3080. <td><code>set&nbsp;kbd_code_kana_host_key&nbsp;MENU</code></td>
  3081. <td>Binds the <a class="external" href="http://en.wikipedia.org/wiki/Menu_key">MENU key</a> on the host keyboard to the MSX CODE/KANA key</td>
  3082. </tr>
  3083. <tr>
  3084. <td><code>set&nbsp;kbd_code_kana_host_key&nbsp;HENKAN_MODE</code></td>
  3085. <td>Binds the HENKAN_MODE key on the host keyboard to the MSX CODE/KANA key</td>
  3086. </tr>
  3087. </table>
  3088. <h3><a id="kbd_deadkey1_host_key">kbd_deadkey1_host_key</a></h3>
  3089. <p>Host key that maps to the (1st) dead key. By default right-CTRL (RCTRL) key.</p>
  3090. <p>Some MSX models have one dead key that can be used to enter accented charachters. For example the MSX
  3091. models sold in the Netherlands have a dead key that has following four accents printed on it: ` &#xb4; ^ &#xa8;.
  3092. On the other hand, the Brazilian Gradiente Expert XP-800 has following four accents on its
  3093. dead key: ` &#xb4; ^ <sup>~</sup>.</p>
  3094. <p>There are also some MSX models with multiple dead keys like for example the Brazilian Gradiente Expert Plus,
  3095. which has two dead keys and the different Sharp Hotbit models that have three dead keys. On such machines,
  3096. this setting is for the first dead key which can be used to enter following two accents: &#xb4; `.</p>
  3097. <p>In order to enter an accented character on the MSX, you first have to press and release the dead key, optionally
  3098. together with SHIFT, CODE or CODE+SHIFT and then the correct character. The combination with CODE or CODE+SHIFT is
  3099. only relevant for the MSX models with a single dead key that can be used to enter four different accents.</p>
  3100. <p>Following table shows for example how to
  3101. enter respectively &#xf9;, &#xfa;, &#xfb; or &#xfc; on the MSX models sold in the Netherlands:</p>
  3102. <table>
  3103. <tr><th>Key presses</th><th>Charachter</th></tr>
  3104. <tr><td>DEAD_KEY1 followed by u</td><td>&#xf9;</td></tr>
  3105. <tr><td>DEAD_KEY1+SHIFT followed by u</td><td>&#xfa;</td></tr>
  3106. <tr><td>DEAD_KEY1+CODE followed by u</td><td>&#xfb;</td></tr>
  3107. <tr><td>DEAD_KEY1+SHIFT+CODE followed by u</td><td>&#xfc;</td></tr>
  3108. </table>
  3109. <p>In order to use the dead key in openMSX, you must map an appropriate host key to the DEAD_KEY1 of the MSX and
  3110. another one to the CODE key of the MSX with respectively this <code>kbd_deadkey1_host_key</code> setting and the above
  3111. documented <code><a class="internal" href="#kbd_code_kana_host_key">kbd_code_kana_host_key</a></code> setting.</p>
  3112. <p>Note that especially the last key combination (DEAD_KEY1+SHIFT+CODE) can be impossible to enter on some
  3113. host systems; depending on the host operating system, keyboard type and keyboard driver it may be impossible
  3114. for the host system to send a combination of three keys at once to an application like openMSX. Unfortunately
  3115. openMSX or its developers can't do anything about that.</p>
  3116. <div class="subsectiontitle">
  3117. usage:
  3118. </div>
  3119. <table>
  3120. <tr>
  3121. <td><code>set&nbsp;kbd_deadkey1_host_key</code></td>
  3122. <td>Shows the current setting</td>
  3123. </tr>
  3124. <tr>
  3125. <td><code>set&nbsp;kbd_deadkey1_host_key&nbsp;PAGEUP</code></td>
  3126. <td>Binds the PAGEUP key on the host keyboard to the 1st dead key</td>
  3127. </tr>
  3128. </table>
  3129. <p>Note that to use for example PAGEUP as 1st dead key you will have to unbind it from the <code>go_back_one_step</code>
  3130. command in the console; by default openMSX has bound the PAGEUP key to the <code>go_back_one_step</code> command and such
  3131. a binding takes precedence over keyboard mappings, so if you want to use PAGEUP as the 1st dead key you will have
  3132. to enter following additional command in the console: <code>unbind PAGEUP</code>.</p>
  3133. <h3><a id="kbd_deadkey2_host_key">kbd_deadkey2_host_key</a></h3>
  3134. <p>Host key that maps to the 2nd dead key. By default Page Up (PAGEUP) key.</p>
  3135. <p>This is only applicable to MSX models that have at least two dead keys, like the Brazilian Hotbit models
  3136. or the Brazilian Gradiente Expert Plus or other Gradiente models with Gradiente basic version 1.1.</p>
  3137. <p>On the Hotbit models, the second dead key can be used to enter accent &#xa8; while on the Gradiente 1.1
  3138. models, the second dead key can be used to enter following accents: <sup>~</sup> ^.</p>
  3139. <p>It can be used in the same manner as the first dead key, explained in previous section.</p>
  3140. <div class="subsectiontitle">
  3141. usage:
  3142. </div>
  3143. <table>
  3144. <tr>
  3145. <td><code>set&nbsp;kbd_deadkey2_host_key</code></td>
  3146. <td>Shows the current setting</td>
  3147. </tr>
  3148. <tr>
  3149. <td><code>set&nbsp;kbd_deadkey2_host_key&nbsp;PAGEDOWN</code></td>
  3150. <td>Binds the PAGEDOWN key on the host keyboard to the 2nd dead key</td>
  3151. </tr>
  3152. </table>
  3153. <p>Note that to use for example PAGEUP or PAGEDOWN as a dead key you will have to unbind them from the
  3154. default functions in openMSX using the console; by default openMSX has bound the PAGEUP key to the
  3155. <code>go_back_one_step</code> command and the PAGEDOWN key to the <code>go_forward_one_step</code> command. Such a binding
  3156. takes precedence over keyboard mappings, so if you want to use PAGEUP or PAGEDOWN as the second dead key
  3157. you will have to enter following additional commands in the console: <code>unbind PAGEUP</code> or
  3158. <code>unbind PAGEDOWN</code>.</p>
  3159. <h3><a id="kbd_deadkey3_host_key">kbd_deadkey3_host_key</a></h3>
  3160. <p>Host key that maps to the 3rd dead key. By default Page Down (PAGEDOWN) key.</p>
  3161. <p>This is only applicable to MSX models with at least three dead keys, like the Sharp Hotbit models.</p>
  3162. <p>On the Hotbit models, the third dead key can be used to enter following two accents: <sup>~</sup> ^.</p>
  3163. <div class="subsectiontitle">
  3164. usage:
  3165. </div>
  3166. <table>
  3167. <tr>
  3168. <td><code>set&nbsp;kbd_deadkey3_host_key</code></td>
  3169. <td>Shows the current setting</td>
  3170. </tr>
  3171. <tr>
  3172. <td><code>set&nbsp;kbd_deadkey3_host_key&nbsp;RCTRL</code></td>
  3173. <td>Binds the Right CTRL (RCTRL) key on the host keyboard to the 3rd dead key</td>
  3174. </tr>
  3175. </table>
  3176. <p>Note that to use for example PAGEDOWN (default setting!) as the 3rd dead key you will have to unbind
  3177. it from the <code>go_forward_one_step</code> command in openMSX using the console; by default openMSX has bound
  3178. the PAGEUP key to the <code>go_back_one_step</code> command. It is a very useful setting for many openMSX users when
  3179. playing games but unfortunately it conflicts with the default set-up for the third dead key. Such a command
  3180. binding takes precedence over keyboard mappings, so if you want to use PAGEDOWN as the third dead key you
  3181. will have to enter following additional command in the console: <code>unbind PAGEDOWN</code>.</p>
  3182. <h3><a id="kbd_mapping_mode">kbd_mapping_mode</a></h3>
  3183. <p>The keyboard driver can work in several mapping modes: CHARACTER, POSITIONAL or KEY.</p>
  3184. <dl>
  3185. <dt>CHARACTER mapping:</dt>
  3186. <dd>A character entered by the user on the host keyboard is mapped to the correct key combination on the MSX keyboard to
  3187. enter that same character. For example, when the user enters an '!' character and openMSX is emulating an 'international'
  3188. MSX model, the keyboard driver will press SHIFT and '1' on the MSX keyboard. This will be done regardless of the key
  3189. or keys that the user pressed on the host keyboard to enter that '!' character.<br/>
  3190. This is especially useful when the user has an AZERTY host keyboard and is working on a QWERTY style MSX or
  3191. when he has a US-QWERTY keyboard and is working on a Japanese MSX.<br/>
  3192. In other words: in this mode openMSX is aware of both the host and the MSX keyboard layout and tries to remap host key-combinations to the corresponding MSX key-combinations that produce the same character.<br/>
  3193. Special host keys (like CURSOR keys or CAPSLOCK) are mapped directly to the corresponding MSX keys.<br/>
  3194. Note that CHARACTER mode isn't perfect (help to improve it is always appreciated). In some cases it may be more convenient or even required to use one of the other mapping modes.</dd>
  3195. <dt>POSITIONAL mapping:</dt>
  3196. <dd>In this mode both the host and the MSX keyboard layout are ignored. Host keys get mapped to MSX keys that are (approximately) in the same position on both keyboards. (More technically, host 'scan-codes' get mapped to MSX 'keyboard-matrix positions'.)</dd>
  3197. <dt>KEY mapping:</dt>
  3198. <dd>This mode is deprecated, it's superseded by the previous two modes and may get removed in a future openMSX release.<br/>
  3199. This mode has rudimentary knowledge about the host keyboard layout, but no knowledge about the MSX keyboard layout. It remaps individual keys, not key combinations. Take for example a french AZERTY host keyboard and an emulated MSX with 'international' keyboard layout. Pressing the 'A' host key correctly maps to the 'A' MSX key. But pressing SHIFT+'3' on the host (which produces '3'), maps to SHIFT+'3' on the MSX keyboard (which produces '#').</dd>
  3200. </dl>
  3201. <div class="subsectiontitle">
  3202. usage:
  3203. </div>
  3204. <table>
  3205. <tr>
  3206. <td><code>set&nbsp;kbd_mapping_mode</code></td>
  3207. <td>Shows the current mode</td>
  3208. </tr>
  3209. <tr>
  3210. <td><code>set&nbsp;kbd_mapping_mode&nbsp;CHARACTER</code></td>
  3211. <td>Set the CHARACTER mapping mode</td>
  3212. </tr>
  3213. <tr>
  3214. <td><code>set&nbsp;kbd_mapping_mode&nbsp;POSITIONAL</code></td>
  3215. <td>Set the POSITIONAL mapping mode</td>
  3216. </tr>
  3217. </table>
  3218. <h3><a id="kbd_numkeypad_always_enabled">kbd_numkeypad_always_enabled</a></h3>
  3219. <p>Some real MSX computers do not have a numeric keypad. openMSX will ignore
  3220. key presses on the host numeric keypad when emulating such an MSX model.
  3221. With this parameter, you can indicate that even on such MSX models, presses
  3222. on the host numeric keypad must be mapped to the MSX numeric keypad. So, you
  3223. can override accurate behaviour with it, which is the reason that by default,
  3224. this setting is set to 'off'.</p>
  3225. <div class="subsectiontitle">
  3226. usage:
  3227. </div>
  3228. <table>
  3229. <tr>
  3230. <td><code>set kbd_numkeypad_always_enabled</code></td>
  3231. <td>Shows the current setting</td>
  3232. </tr>
  3233. <tr>
  3234. <td><code>set kbd_numkeypad_always_enabled on</code></td>
  3235. <td>Enables numeric keypad, even if the emulated MSX does not have one</td>
  3236. </tr>
  3237. </table>
  3238. <h3><a id="kbd_numkeypad_enter_key">kbd_numkeypad_enter_key</a></h3>
  3239. <p>There is a subtle difference between numeric keypad of MSX computers and
  3240. of most host computers; the MSX computers have a '.' and a ',' on the numeric
  3241. keypad. On the other hand, the host computers have a '.' and an 'ENTER' key
  3242. on the keypad.</p>
  3243. <p>In some respect it is logical that the 'ENTER' key on the host numeric
  3244. keypad is mapped to the 'normal' MSX 'ENTER' key. On the other hand, that
  3245. would make it impossible to enter the ',' on the MSX numeric keypad.
  3246. Therefore, the user can choose whether the host numeric keypad ENTER key
  3247. should be mapped to the MSX numeric keypad ',' (which is the default) or to
  3248. the main 'ENTER' key.</p>
  3249. <div class="subsectiontitle">
  3250. usage:
  3251. </div>
  3252. <table>
  3253. <tr>
  3254. <td><code>set&nbsp;kbd_numkeypad_enter_key</code></td>
  3255. <td>Shows the current value</td>
  3256. </tr>
  3257. <tr>
  3258. <td><code>set&nbsp;kbd_numkeypad_enter_key&nbsp;ENTER</code></td>
  3259. <td>Maps the keypad enter key to the main 'ENTER' key, instead of the comma key on the MSX keypad</td>
  3260. </tr>
  3261. </table>
  3262. <h3><a id="kbd_trace_key_presses">kbd_trace_key_presses</a></h3>
  3263. <p>Log SDL key code, SDL modifiers and Unicode value for each key that gets
  3264. pressed on the host keyboard on stderr. Also show Unicode value and
  3265. corresponding MSX key-presses for characters that get 'pasted' into the MSX
  3266. by the console <code><a class="internal" href="#type">type</a></code>
  3267. command. This setting is especially useful when defining unicode keymap
  3268. files, so that you can find out the unicode values belonging to certain
  3269. keys/characters.</p>
  3270. <div class="subsectiontitle">
  3271. usage:
  3272. </div>
  3273. <table>
  3274. <tr>
  3275. <td><code>set kbd_trace_key_presses</code></td>
  3276. <td>Shows the current setting</td>
  3277. </tr>
  3278. <tr>
  3279. <td><code>set kbd_trace_key_presses on</code></td>
  3280. <td>Turn logging of key presses on</td>
  3281. </tr>
  3282. </table>
  3283. <h3><a id="keyjoystick_n_button">keyjoystick&lt;n&gt;.&lt;button&gt;</a></h3>
  3284. <p>Configure the keys of the keyjoysticks. It's likely this will change in the future.</p>
  3285. <p>Valid values for <code>&lt;n&gt;</code>: <code>1</code>, <code>2</code>.</p>
  3286. <p>Valid values for <code>&lt;button&gt;</code>: <code>up</code>, <code>down</code>, <code>left</code>, <code>right</code>, <code>triga</code>, <code>trigb</code>.</p>
  3287. <div class="subsectiontitle">
  3288. usage:
  3289. </div>
  3290. <table>
  3291. <tr>
  3292. <td><code>set keyjoystick1.up W</code></td>
  3293. </tr>
  3294. <tr>
  3295. <td><code>set keyjoystick1.down S</code></td>
  3296. </tr>
  3297. <tr>
  3298. <td><code>set keyjoystick1.left A</code></td>
  3299. </tr>
  3300. <tr>
  3301. <td><code>set keyjoystick1.right D</code></td>
  3302. </tr>
  3303. <tr>
  3304. <td><code>set keyjoystick1.triga SPACE</code></td>
  3305. </tr>
  3306. </table>
  3307. <h3><a id="led">led_&lt;name&gt;</a></h3>
  3308. <p>These are read-only settings. Their value reflects the current status of the corresponding LED on the emulated MSX machine. The currently supported LED names are: <code>power</code>, <code>caps</code>, <code>kana</code>, <code>pause</code>, <code>turbo</code> and <code>FDD</code>.</p>
  3309. <p>As for any setting you can use the native <code>trace</code> Tcl command to trigger a callback when the value of these settings changes. (In fact this possibility was the main motivation to make these read-only settings instead of topics of the <code><a class="internal" href="#machine_info">machine_info</a></code> command.)</p>
  3310. <h3><a id="limitsprites">limitsprites</a></h3>
  3311. <p>Controls whether the VDP has a limit on the number of sprites it can display per line. The default is on, because the real VDP has such a limit. You can turn off the limit to reduce sprite flashing in games such as Aleste. Note that some games (Penguin Adventure, among others) make use of this limitation, so they will display incorrectly if the limit is turned off.</p>
  3312. <p>The 5th/9th sprite status flag of the VDP is not influenced by the <code>limitsprites</code> setting: the flag always takes the limit into account.</p>
  3313. <div class="subsectiontitle">
  3314. usage:
  3315. </div>
  3316. <table>
  3317. <tr>
  3318. <td><code>set limitsprites</code></td>
  3319. <td>Shows the current value</td>
  3320. </tr>
  3321. <tr>
  3322. <td><code>set limitsprites on</code></td>
  3323. <td>Limits number of sprites per line</td>
  3324. </tr>
  3325. <tr>
  3326. <td><code>set limitsprites off</code></td>
  3327. <td>Turns off number of sprites per line limit</td>
  3328. </tr>
  3329. </table>
  3330. <h3><a id="master_volume">master_volume</a></h3>
  3331. <p>Controls the overall openMSX volume. The volume of individual sound devices can be controlled with the <code><a class="internal" href="#soundchip_volume">&lt;soundchip&gt;_volume</a></code> settings.</p>
  3332. <div class="subsectiontitle">
  3333. usage:
  3334. </div>
  3335. <table>
  3336. <tr>
  3337. <td><code>set master_volume</code></td>
  3338. <td>Shows current setting</td>
  3339. </tr>
  3340. <tr>
  3341. <td><code>set master_volume 50</code></td>
  3342. <td>Sets master volume to 50%</td>
  3343. </tr>
  3344. </table>
  3345. <h3><a id="maxframeskip">maxframeskip</a></h3>
  3346. <p>Sets the maximum amount of frames to skip: show a frame and then skip at most &lt;number&gt; frames. So 0 means show everything (no frame skipping), 1 means show at least every second frame etc.</p>
  3347. <p>Frame skipping is done on demand, as a way to keep the flow of time for the emulated MSX in sync with the flow of real time. You can set limits on the amount of frame skipping with the <code><a class="internal" href="#minframeskip">minframeskip</a></code> and <code>maxframeskip</code> setting.</p>
  3348. <p>In a situation where the number of consecutive frames specified by <code>maxframeskip</code> has been skipped, openMSX will display the next frame, even if that means emulation will start lagging behind real time.</p>
  3349. <div class="subsectiontitle">
  3350. usage:
  3351. </div>
  3352. <table>
  3353. <tr>
  3354. <td><code>set maxframeskip</code></td>
  3355. <td>Shows the current setting</td>
  3356. </tr>
  3357. <tr>
  3358. <td><code>set maxframeskip &lt;number&gt;</code></td>
  3359. <td>Sets the maximum number of consecutive frame skips</td>
  3360. </tr>
  3361. </table>
  3362. <h3><a id="midi-in-readfilename">midi-in-readfilename</a></h3>
  3363. <p>Sets the file from which the MIDI input is read. By default, it is set to <code>/dev/midi</code> when available.</p>
  3364. <div class="subsectiontitle">
  3365. usage:
  3366. </div>
  3367. <table>
  3368. <tr>
  3369. <td><code>set midi-in-readfilename</code></td>
  3370. <td>Shows the current setting</td>
  3371. </tr>
  3372. <tr>
  3373. <td><code>set midi-in-readfilename mymidilog.dat</code></td>
  3374. <td>Read MIDI events from "mymidilog.dat"</td>
  3375. </tr>
  3376. </table>
  3377. <h3><a id="midi-out-logfilename">midi-out-logfilename</a></h3>
  3378. <p>Sets the file to which the MIDI output is logged. By default, it logs to <code>/dev/midi</code> when available.</p>
  3379. <div class="subsectiontitle">
  3380. usage:
  3381. </div>
  3382. <table>
  3383. <tr>
  3384. <td><code>set midi-out-logfilename</code></td>
  3385. <td>Shows the current setting</td>
  3386. </tr>
  3387. <tr>
  3388. <td><code>set midi-out-logfilename mymidilog.dat</code></td>
  3389. <td>Log MIDI events to "mymidilog.dat"</td>
  3390. </tr>
  3391. </table>
  3392. <h3><a id="minframeskip">minframeskip</a></h3>
  3393. <p>Sets the minimum amount of frames to skip: show a frame and then skip at least &lt;number&gt; frames.
  3394. So 0 means no forced frame skipping, 1 means skip at least every second frame etc.</p>
  3395. <p>Frame skipping is done on demand, as a way to keep the flow of time for the emulated MSX in sync with the flow of real time. You can set limits on the amount of frame skipping with the <code>minframeskip</code> and <code><a class="internal" href="#maxframeskip">maxframeskip</a></code> setting.</p>
  3396. <p>The <code>minframeskip</code> setting can be useful if you want to ease the burden on your PC processor, for example for longer battery life on a laptop. It can also be useful if your PC is consistently too slow to run without frame skipping: in such cases video might be smoother with a low but constant frame rate than with a fluctuating frame rate.</p>
  3397. <div class="subsectiontitle">
  3398. usage:
  3399. </div>
  3400. <table>
  3401. <tr>
  3402. <td><code>set minframeskip</code></td>
  3403. <td>Shows the current setting</td>
  3404. </tr>
  3405. <tr>
  3406. <td><code>set minframeskip &lt;number&gt;</code></td>
  3407. <td>Sets the number of frame skips</td>
  3408. </tr>
  3409. </table>
  3410. <h3><a id="mode">mode</a></h3>
  3411. <p>Sets the active mode. A mode is a set of settings (mostly key bindings, but also OSD widgets that are activated) that are most suitable for a certain task. Currently only mode 'normal' and 'tas' exist.</p>
  3412. <div class="subsectiontitle">
  3413. usage:
  3414. </div>
  3415. <table>
  3416. <tr>
  3417. <td><code>set mode</code></td>
  3418. <td>Shows the current setting</td>
  3419. </tr>
  3420. <tr>
  3421. <td><code>set mode tas</code></td>
  3422. <td>Change mode to TAS mode</td>
  3423. </tr>
  3424. <tr>
  3425. <td><code>set mode normal</code></td>
  3426. <td>Set mode back to normal, which is the default (all purpose) mode</td>
  3427. </tr>
  3428. </table>
  3429. <h4>TAS mode</h4>
  3430. <p>So far, the only special mode is the TAS mode, which is made for doing Tool Assisted Speedruns, with TAS widgets and easier ways to save replays. It is still experimental, but already very useful for doing a TAS. This mode enables the following widgets:</p>
  3431. <ul>
  3432. <li>frame counter (can also be toggled with <code>toggle_frame_counter</code>), which shows the VDP (not V9990) frame number on screen</li>
  3433. <li>cursors (can also be toggled with <code>toggle_cursors</code>), shows which keys (important for games) are pressed</li>
  3434. </ul>
  3435. <p>It also (re)enables the reverse bar widget.</p>
  3436. <p>The mode configures the following key bindings, overriding any existing key bindings (note: Mac key bindings are not proper yet...):</p>
  3437. <table>
  3438. <tr> <th>keys (PC)</th> <th>keys (Mac)</th> <th>function</th> </tr>
  3439. <tr> <td>F6</td> <td>(F6)</td> <td>Load replay from current slot</td></tr>
  3440. <tr> <td>F7</td> <td>(F7)</td> <td>Open slot select menu</td></tr>
  3441. <tr> <td>F8</td> <td>(F8)</td> <td>Save replay to current slot</td></tr>
  3442. <tr> <td>End</td> <td>(End)</td> <td>Advance one frame (<code>advance_frame</code>)</td></tr>
  3443. <tr> <td>ScrollLock</td><td>(ScrollLock)</td><td>Reverse one frame (<code>reverse_frame</code>)</td></tr>
  3444. </table>
  3445. <p>Note that this mode may change in future releases!</p>
  3446. <h3><a id="mute">mute</a></h3>
  3447. <p>Mute/unmute all sound output.</p>
  3448. <div class="subsectiontitle">
  3449. usage:
  3450. </div>
  3451. <table>
  3452. <tr>
  3453. <td><code>set mute</code></td>
  3454. <td>Shows the current setting</td>
  3455. </tr>
  3456. <tr>
  3457. <td><code>set mute on</code></td>
  3458. <td>Mute sound</td>
  3459. </tr>
  3460. <tr>
  3461. <td><code>set mute off</code></td>
  3462. <td>Unmute sound</td>
  3463. </tr>
  3464. </table>
  3465. <h3><a id="noise">noise</a></h3>
  3466. <p>Controls the amount of Gaussian noise that is added to the video output. A small amount of noise can give a more authentic look to the video output on TFTs. Values can be between 0 and 100, where 0 is no noise and 100 is lots of noise.</p>
  3467. <p>This setting is best combined with <code><a class="internal" href="#brightness">brightness</a></code> and <code><a class="internal" href="#contrast">contrast</a></code>: noise creates small random fluctuations in the brightness of pixels. When noise is applied to pure black, it is not possible to make it any darker, so half of the time the noise is ineffective. The same happens with pure white. By setting the <code><a class="internal" href="#brightness">brightness</a></code> slightly above 0 and <code><a class="internal" href="#contrast">contrast</a></code> slightly below 0, you will get a better looking noise effect.</p>
  3468. <div class="subsectiontitle">
  3469. usage:
  3470. </div>
  3471. <table>
  3472. <tr>
  3473. <td><code>set noise</code></td>
  3474. <td>Shows the current setting</td>
  3475. </tr>
  3476. <tr>
  3477. <td><code>set noise 7</code></td>
  3478. <td>Add a moderate amount of noise</td>
  3479. </tr>
  3480. </table>
  3481. <h3><a id="pause">pause</a></h3>
  3482. <p>Pauses the emulation.</p>
  3483. <div class="subsectiontitle">
  3484. usage:
  3485. </div>
  3486. <table>
  3487. <tr>
  3488. <td><code>set pause</code></td>
  3489. <td>Shows the current setting</td>
  3490. </tr>
  3491. <tr>
  3492. <td><code>set pause on</code></td>
  3493. <td>Pauses emulation</td>
  3494. </tr>
  3495. <tr>
  3496. <td><code>set pause off</code></td>
  3497. <td>Unpauses emulation</td>
  3498. </tr>
  3499. </table>
  3500. <div class="note">
  3501. Note: Some video settings cannot be applied to an already rendered frame and will therefore not take effect until openMSX is unpaused.
  3502. </div>
  3503. <h3><a id="pause_on_lost_focus">pause_on_lost_focus</a></h3>
  3504. <p>When this setting is enabled, the emulation will be paused when the
  3505. openMSX window loses focus.</p>
  3506. <div class="subsectiontitle">
  3507. usage:
  3508. </div>
  3509. <table>
  3510. <tr>
  3511. <td><code>set pause_on_lost_focus</code></td>
  3512. <td>Shows the current setting</td>
  3513. </tr>
  3514. <tr>
  3515. <td><code>set pause_on_lost_focus on</code></td>
  3516. <td>Emulation will be paused when the openMSX window loses focus</td>
  3517. </tr>
  3518. <tr>
  3519. <td><code>set pause_on_lost_focus off</code></td>
  3520. <td>Emulation will continue when the openMSX window loses focus (default)</td>
  3521. </tr>
  3522. </table>
  3523. <h3><a id="pointer_hide_delay">pointer_hide_delay</a></h3>
  3524. <p>The amount of seconds before the mouse pointer will be automatically
  3525. hidden after it got shown due to mouse activity. A negative amount means that
  3526. it will never be hidden, an amount of 0 means that it will be always hidden.
  3527. By default the pointer is hidden 1 second after the last mouse activity.</p>
  3528. <div class="subsectiontitle">
  3529. usage:
  3530. </div>
  3531. <table>
  3532. <tr>
  3533. <td><code>set pointer_hide_delay</code></td>
  3534. <td>Shows the current setting</td>
  3535. </tr>
  3536. <tr>
  3537. <td><code>set pointer_hide_delay -1</code></td>
  3538. <td>Never hide the mouse pointer</td>
  3539. </tr>
  3540. <tr>
  3541. <td><code>set pointer_hide_delay 0</code></td>
  3542. <td>Always hide the mouse pointer</td>
  3543. </tr>
  3544. <tr>
  3545. <td><code>set pointer_hide_delay 3.4</code></td>
  3546. <td>Hide the mouse pointer after 3.4 seconds of inactivity</td>
  3547. </tr>
  3548. </table>
  3549. <h3><a id="power">power</a></h3>
  3550. <p>Turn the power of the emulated MSX machine on or off.</p>
  3551. <div class="subsectiontitle">
  3552. usage:
  3553. </div>
  3554. <table>
  3555. <tr>
  3556. <td><code>set power</code></td>
  3557. <td>Shows the current setting</td>
  3558. </tr>
  3559. <tr>
  3560. <td><code>set power on</code></td>
  3561. <td>Turns the MSX machine on (the default)</td>
  3562. </tr>
  3563. <tr>
  3564. <td><code>set power off</code></td>
  3565. <td>Turns the MSX machine off</td>
  3566. </tr>
  3567. </table>
  3568. <h3><a id="printerlogfilename">printerlogfilename</a></h3>
  3569. <p>Sets the file to which the printer logger writes.</p>
  3570. <div class="subsectiontitle">
  3571. usage:
  3572. </div>
  3573. <table>
  3574. <tr>
  3575. <td><code>set printerlogfilename</code></td>
  3576. <td>Shows the current setting</td>
  3577. </tr>
  3578. <tr>
  3579. <td><code>set printerlogfilename myprinterlog.txt</code></td>
  3580. <td>Log to "myprinterlog.txt"</td>
  3581. </tr>
  3582. </table>
  3583. <h3><a id="print-resolution">print-resolution</a></h3>
  3584. <p>Sets the resolution (in dpi) for the emulated dot-matrix printer.</p>
  3585. <p>The emulated printer 'prints' pages as PNG files. This settings determines the resolution of those images.</p>
  3586. <div class="subsectiontitle">
  3587. usage:
  3588. </div>
  3589. <table>
  3590. <tr>
  3591. <td><code>set print-resolution</code></td>
  3592. <td>Shows the current setting</td>
  3593. </tr>
  3594. <tr>
  3595. <td><code>set print-resolution 600</code></td>
  3596. <td>Sets resolution to 600 dpi</td>
  3597. </tr>
  3598. </table>
  3599. <h3><a id="r800_freq">r800_freq / r800_freq_locked</a></h3>
  3600. <p>These two settings control the R800 clock frequency. See <code><a class="internal" href="#z80_freq">z80_freq / z80_freq_locked</a></code> for details.</p>
  3601. <h3><a id="renderer">renderer</a></h3>
  3602. <p>Switch to a different video renderer. See the User's Manual for <a class="external" href="user.html#renderers">a description of the available renderers</a>.</p>
  3603. <div class="subsectiontitle">
  3604. usage:
  3605. </div>
  3606. <table>
  3607. <tr>
  3608. <td><code>set renderer</code></td>
  3609. <td>Shows the current setting</td>
  3610. </tr>
  3611. <tr>
  3612. <td><code>set renderer &lt;name&gt;</code></td>
  3613. <td>Switches to the given renderer</td>
  3614. </tr>
  3615. </table>
  3616. <h3><a id="renshaturbo">renshaturbo</a></h3>
  3617. <p>Sets the speed of the built-in auto fire on some Japanese MSX models, for example the turboR machines. A value of 0 turns off auto fire, while 100 selects the most rapid auto fire.</p>
  3618. <div class="subsectiontitle">
  3619. usage:
  3620. </div>
  3621. <table>
  3622. <tr>
  3623. <td><code>set renshaturbo</code></td>
  3624. <td>Shows the current renshaturbo value</td>
  3625. </tr>
  3626. <tr>
  3627. <td><code>set renshaturbo &lt;num&gt;</code></td>
  3628. <td>Sets speed to value &lt;num&gt;</td>
  3629. </tr>
  3630. </table>
  3631. <div class="note">
  3632. Note: This setting is only available if the current MSX machine has hardware Rensha Turbo support.
  3633. </div>
  3634. <h3><a id="resampler">resampler</a></h3>
  3635. <p>Sets the method to resample the sound of sound chips from their native frequency to the <a class="internal" href="#frequency">desired output frequency</a>.</p>
  3636. <div class="subsectiontitle">
  3637. usage:
  3638. </div>
  3639. <table>
  3640. <tr>
  3641. <td><code>set resampler</code></td>
  3642. <td>Shows the currently active resampler</td>
  3643. </tr>
  3644. <tr>
  3645. <td><code>set resampler fast</code></td>
  3646. <td>Sets a fast, but low quality resampler. This uses simple linear interpolation, which can result in very audible aliasing effects in some cases. Although this is a relatively low quality algorithm, it's the algorithm that was used in pre-0.6.3 openMSX versions (and most other MSX emulators).</td>
  3647. </tr>
  3648. <tr>
  3649. <td><code>set resampler blip</code></td>
  3650. <td>Sets the <a href="http://slack.net/~ant/libs/audio.html#Blip_Buffer">Blip_Buffer</a> based resampler, which has the best quality per CPU usage ratio (this is the default value).</td>
  3651. </tr>
  3652. <tr>
  3653. <td><code>set resampler hq</code></td>
  3654. <td>Sets the highest quality resampler, but it also takes the most CPU time. It's based on the <a href="http://www.mega-nerd.com/SRC/">libsamplerate</a> algorithm.</td>
  3655. </tr>
  3656. </table>
  3657. <h3><a id="rs232-inputfilename">rs232-inputfilename</a></h3>
  3658. <p>Sets the file from which the RS232-tester reads data. Note that the
  3659. <code>rs232-tester</code> has to be plugged in the <code>msx-rs232</code>
  3660. connector for this to become useful. When plugging the tester, this setting
  3661. needs to point to a valid file.</p>
  3662. <div class="subsectiontitle">
  3663. usage:
  3664. </div>
  3665. <table>
  3666. <tr>
  3667. <td><code>set rs232-inputfilename</code></td>
  3668. <td>Shows the current setting</td>
  3669. </tr>
  3670. <tr>
  3671. <td><code>set rs232-inputfilename myrs232input.txt</code></td>
  3672. <td>Reads from "myrs232input.txt"</td>
  3673. </tr>
  3674. </table>
  3675. <h3><a id="rs232-outputfilename">rs232-outputfilename</a></h3>
  3676. <p>Sets the file to which the RS232-tester writes the data. Note that the
  3677. <code>rs232-tester</code> has to be plugged in the <code>msx-rs232</code>
  3678. connector for this to become useful. When plugging the tester, this setting
  3679. needs to point to a valid file.</p>
  3680. <div class="subsectiontitle">
  3681. usage:
  3682. </div>
  3683. <table>
  3684. <tr>
  3685. <td><code>set rs232-outputfilename</code></td>
  3686. <td>Shows the current setting</td>
  3687. </tr>
  3688. <tr>
  3689. <td><code>set rs232-outputfilename myrs232output.txt</code></td>
  3690. <td>Write to "myrs232output.txt"</td>
  3691. </tr>
  3692. </table>
  3693. <h3><a id="rtcmode">rtcmode</a></h3>
  3694. <p>Sets the Real Time Clock mode. Can be either <code>RealTime</code> or <code>EmuTime</code>.</p>
  3695. <p>In <code>RealTime</code> mode the MSX clock is always synchronized with the host clock, even when for example emulation is paused for a while or when emulation is run at 200% of real speed.</p>
  3696. <p>In <code>EmuTime</code> mode the time is only synchronized with the host clock when openMSX starts. From then on the clock ticks at the same pace as the emulated machine. So when emulation is paused, the clock is paused as well. If emulation is run at 200% speed, the clock also ticks twice as fast.</p>
  3697. <p>In <code>EmuTime</code> mode it's not possible for a MSX program to detect whether it's running on a real or on an emulated machine. That's why this is the default mode. On the other hand the <code>RealTime</code> mode might be better if for example you care that timestamps of files written by the emulated MSX machine are in sync with the host machine time.</p>
  3698. <div class="subsectiontitle">
  3699. usage:
  3700. </div>
  3701. <table>
  3702. <tr>
  3703. <td><code>set rtcmode</code></td>
  3704. <td>Shows the current mode</td>
  3705. </tr>
  3706. <tr>
  3707. <td><code>set rtcmode EmuTime</code></td>
  3708. <td>Set EmuTime mode (the default)</td>
  3709. </tr>
  3710. <tr>
  3711. <td><code>set rtcmode RealTime</code></td>
  3712. <td>Set RealTime mode</td>
  3713. </tr>
  3714. </table>
  3715. <h3><a id="samples">samples</a></h3>
  3716. <p>Sets the size of the sound mixer buffer. Higher values help against buffer underruns (hickups), but increase the latency of the sound output.</p>
  3717. <div class="subsectiontitle">
  3718. usage:
  3719. </div>
  3720. <table>
  3721. <tr>
  3722. <td><code>set samples</code></td>
  3723. <td>Shows the current setting</td>
  3724. </tr>
  3725. <tr>
  3726. <td><code>set samples 1024</code></td>
  3727. <td>Use a mixing buffer of 1024 samples</td>
  3728. </tr>
  3729. </table>
  3730. <h3><a id="save_settings_on_exit">save_settings_on_exit</a></h3>
  3731. <p>Automatically save the current settings when openMSX exits: execute a <code><a class="internal" href="#save_settings">save_settings</a></code> command on exit.</p>
  3732. <div class="subsectiontitle">
  3733. usage:
  3734. </div>
  3735. <table>
  3736. <tr>
  3737. <td><code>set save_settings_on_exit</code></td>
  3738. <td>Show current setting</td>
  3739. </tr>
  3740. <tr>
  3741. <td><code>set save_settings_on_exit on</code></td>
  3742. <td>Enable auto save</td>
  3743. </tr>
  3744. <tr>
  3745. <td><code>set save_settings_on_exit off</code></td>
  3746. <td>Disable auto save</td>
  3747. </tr>
  3748. </table>
  3749. <h3><a id="scale_algorithm">scale_algorithm</a></h3>
  3750. <p>Selects the algorithm used to transform MSX pixels to host pixels. The User's Manual contains <a class="external" href="user.html#scalers">more information about scalers</a>.
  3751. </p>
  3752. <div class="subsectiontitle">
  3753. usage:
  3754. </div>
  3755. <table>
  3756. <tr>
  3757. <td><code>set scale_algorithm</code></td>
  3758. <td>Shows the current setting</td>
  3759. </tr>
  3760. <tr>
  3761. <td><code>set scale_algorithm simple</code></td>
  3762. <td>Selects the default scale algorithm</td>
  3763. </tr>
  3764. <tr>
  3765. <td><code>set scale_algorithm hq</code></td>
  3766. <td>Selects the HQ2x/3x/4x scale algorithm</td>
  3767. </tr>
  3768. </table>
  3769. <div class="note">
  3770. Note: Not all renderers support all scale algorithms.
  3771. </div>
  3772. <h3><a id="scale_factor">scale_factor</a></h3>
  3773. <p>Selects the scale factor. Scale factor &lt;n&gt; means the typical MSX pixel (MSX resolution 256&times;212) is mapped on &lt;n&gt; by &lt;n&gt; host pixels. For the moment the possible values are 1 to 4. In the future we may support a wider range or even non-integer values. The User's Manual contains <a class="external" href="user.html#scalers">more information about scalers</a>.</p>
  3774. <div class="subsectiontitle">
  3775. usage:
  3776. </div>
  3777. <table>
  3778. <tr>
  3779. <td><code>set scale_factor</code></td>
  3780. <td>Shows the current setting</td>
  3781. </tr>
  3782. <tr>
  3783. <td><code>set scale_factor &lt;n&gt;</code></td>
  3784. <td>Sets a new scale factor</td>
  3785. </tr>
  3786. </table>
  3787. <div class="note">
  3788. Note: Not all renderers support all scale factors.
  3789. </div>
  3790. <h3><a id="scanline">scanline</a></h3>
  3791. <p>Sets the amount of scanline effect.</p>
  3792. <div class="subsectiontitle">
  3793. usage:
  3794. </div>
  3795. <table>
  3796. <tr>
  3797. <td><code>set scanline</code></td>
  3798. <td>Shows the current setting</td>
  3799. </tr>
  3800. <tr>
  3801. <td><code>set scanline &lt;value&gt;</code></td>
  3802. <td>Changes the value</td>
  3803. </tr>
  3804. </table>
  3805. <div class="note">
  3806. Note: Some scalers will not render scanlines at all.
  3807. </div>
  3808. <h3><a id="sound_driver">sound_driver</a></h3>
  3809. <p>Select the sound output driver. The list of available sound drivers is platform specific.</p>
  3810. <div class="subsectiontitle">
  3811. usage:
  3812. </div>
  3813. <table>
  3814. <tr>
  3815. <td><code>set sound_driver sdl</code></td>
  3816. <td>Selects the SDL sound driver</td>
  3817. </tr>
  3818. <tr>
  3819. <td><code>set sound_driver null</code></td>
  3820. <td>Selects the null sound driver (no sound)</td>
  3821. </tr>
  3822. </table>
  3823. <h3><a id="speed">speed</a></h3>
  3824. <p>Sets the emulation speed relative to the speed of a real MSX. Speed 100 means as fast as a real MSX, lower values are slower than real MSX, higher values are faster than real MSX.</p>
  3825. <div class="subsectiontitle">
  3826. usage:
  3827. </div>
  3828. <table>
  3829. <tr>
  3830. <td><code>set speed</code></td>
  3831. <td>Shows current emulation speed</td>
  3832. </tr>
  3833. <tr>
  3834. <td><code>set speed &lt;num&gt;</code></td>
  3835. <td>Sets new emulation speed to &lt;num&gt;% of real time</td>
  3836. </tr>
  3837. </table>
  3838. <h3><a id="soundchip_balance">&lt;soundchip&gt;_balance</a></h3>
  3839. <p>Sets the balance (distribution over the left and right channel) for individual sound chips. It replaces the previously available <code>&lt;soundchip&gt;_mode</code> setting. The range is between -100 (totally left) and 100 (totally right).</p>
  3840. <div class="subsectiontitle">
  3841. usage:
  3842. </div>
  3843. <table>
  3844. <tr>
  3845. <td><code>set &lt;soundchip&gt;_balance</code></td>
  3846. <td>Shows the current setting</td>
  3847. </tr>
  3848. <tr>
  3849. <td><code>set &lt;soundchip&gt;_balance 0</code></td>
  3850. <td>Plays the output of this chip on both the left and right channel</td>
  3851. </tr>
  3852. <tr>
  3853. <td><code>set &lt;soundchip&gt;_balance -100</code></td>
  3854. <td>Plays the output of this chip on only the left channel</td>
  3855. </tr>
  3856. <tr>
  3857. <td><code>set &lt;soundchip&gt;_balance 75</code></td>
  3858. <td>Plays the output of this chip mostly on the right channel, but also a bit on the left channel</td>
  3859. </tr>
  3860. </table>
  3861. <div class="subsectiontitle">
  3862. examples:
  3863. </div>
  3864. <div class="examples">
  3865. <code>set PSG_balance</code><br />
  3866. <code>set PSG_balance -100</code><br />
  3867. <code>set FMPAC_balance 0</code>
  3868. </div>
  3869. <h3><a id="soundchip_channel_record">&lt;soundchip&gt;_ch&lt;channel&gt;_record</a></h3>
  3870. <p>Sets the filename to which the sound of an individual channel of
  3871. individual sound chips should be recorded. When this setting is not set, no
  3872. recording takes place and recording starts as soon as the setting is set.
  3873. Normally, you would probably prefer to use the <code><a class="internal"
  3874. href="#record_channels">record_channels</a></code> command to set up channel
  3875. recording instead of this low level setting.</p>
  3876. <div class="subsectiontitle">
  3877. usage:
  3878. </div>
  3879. <table>
  3880. <tr>
  3881. <td><code>set &lt;soundchip&gt;_ch&lt;channel&gt;_record</code></td>
  3882. <td>Shows the current setting</td>
  3883. </tr>
  3884. <tr>
  3885. <td><code>set &lt;soundchip&gt;_ch&lt;channel&gt;_record filename</code></td>
  3886. <td>Starts recording the sound of the specified chip and channel to the file with name &lt;filename&gt;</td>
  3887. </tr>
  3888. </table>
  3889. <div class="subsectiontitle">
  3890. examples:
  3891. </div>
  3892. <div class="examples">
  3893. <code>set SCC_ch1_record</code><br />
  3894. <code>set PSG_ch3_record /tmp/PSG_ch3.wav</code>
  3895. </div>
  3896. <h3><a id="soundchip_channel_mute">&lt;soundchip&gt;_ch&lt;channel&gt;_mute</a></h3>
  3897. <p>Use to mute a specific channel of an individual sound chip.
  3898. Normally, you would probably prefer to use the <code><a class="internal"
  3899. href="#mute_channels">mute_channels</a></code> command to set up channel
  3900. muting instead of this low level setting.</p>
  3901. <div class="subsectiontitle">
  3902. usage:
  3903. </div>
  3904. <table>
  3905. <tr>
  3906. <td><code>set &lt;soundchip&gt;_ch&lt;channel&gt;_mute</code></td>
  3907. <td>Shows the current setting</td>
  3908. </tr>
  3909. <tr>
  3910. <td><code>set &lt;soundchip&gt;_ch&lt;channel&gt;_mute on</code></td>
  3911. <td>Mutes the sound of the specified channel of the specified chip</td>
  3912. </tr>
  3913. <tr>
  3914. <td><code>set &lt;soundchip&gt;_ch&lt;channel&gt;_mute off</code></td>
  3915. <td>Unmutes the sound of the specified channel of the specified chip</td>
  3916. </tr>
  3917. </table>
  3918. <div class="subsectiontitle">
  3919. examples:
  3920. </div>
  3921. <div class="examples">
  3922. <code>set SCC_ch1_mute</code><br />
  3923. <code>set PSG_ch3_mute on</code><br />
  3924. <code>set SCC_ch5_mute off</code>
  3925. </div>
  3926. <h3><a id="soundchip_detune_frequency">&lt;soundchip&gt;_detune_frequency</a></h3>
  3927. <p>Sets the frequency of the detune (a random variation in a sound's frequency) effect. It makes a sound fatter and more natural, as if played by a human being.
  3928. </p>
  3929. <div class="subsectiontitle">
  3930. usage:
  3931. </div>
  3932. <table>
  3933. <tr>
  3934. <td><code>set &lt;soundchip&gt;_detune_frequency</code></td>
  3935. <td>Shows the current setting</td>
  3936. </tr>
  3937. <tr>
  3938. <td><code>set &lt;soundchip&gt;_detune_frequency &lt;num&gt;</code></td>
  3939. <td>Sets new detune frequency in Hz; 1 is minimum, 100 is maximum</td>
  3940. </tr>
  3941. </table>
  3942. <div class="subsectiontitle">
  3943. examples:
  3944. </div>
  3945. <div class="examples">
  3946. <code>set PSG_detune_frequency</code><br />
  3947. <code>set PSG_detune_frequency 5</code> (default)<br />
  3948. </div>
  3949. <div class="note">
  3950. Note: For now, this setting is only available for the PSG soundchip.
  3951. </div>
  3952. <div class="note">
  3953. Note: It is often more convenient to use the <code><a class="internal" href="#psg_profile">psg_profile</a></code> command.
  3954. </div>
  3955. <h3><a id="soundchip_detune_percent">&lt;soundchip&gt;_detune_percent</a></h3>
  3956. <p>Sets the strength of the detune effect. By default it is 0, which means the effect is switched off.
  3957. </p>
  3958. <div class="subsectiontitle">
  3959. usage:
  3960. </div>
  3961. <table>
  3962. <tr>
  3963. <td><code>set &lt;soundchip&gt;_detune_percent</code></td>
  3964. <td>Shows the current setting</td>
  3965. </tr>
  3966. <tr>
  3967. <td><code>set &lt;soundchip&gt;_detune_percent &lt;num&gt;</code></td>
  3968. <td>Sets new detune strength; 0 is minimum, 10 is maximum</td>
  3969. </tr>
  3970. </table>
  3971. <div class="subsectiontitle">
  3972. examples:
  3973. </div>
  3974. <div class="examples">
  3975. <code>set PSG_detune_percent</code><br />
  3976. <code>set PSG_detune_percent 0</code> (switched off, default)<br />
  3977. <code>set PSG_detune_percent 0.5</code> (recommended)<br />
  3978. </div>
  3979. <div class="note">
  3980. Note: For now, this setting is only available for the PSG soundchip.
  3981. </div>
  3982. <div class="note">
  3983. Note: It is often more convenient to use the <code><a class="internal" href="#psg_profile">psg_profile</a></code> command.
  3984. </div>
  3985. <h3><a id="soundchip_vibrato_frequency">&lt;soundchip&gt;_vibrato_frequency</a></h3>
  3986. <p>Sets the frequency of the vibrato (a periodic variation in a sound's frequency) effect.
  3987. </p>
  3988. <div class="subsectiontitle">
  3989. usage:
  3990. </div>
  3991. <table>
  3992. <tr>
  3993. <td><code>set &lt;soundchip&gt;_vibrato_frequency</code></td>
  3994. <td>Shows the current setting</td>
  3995. </tr>
  3996. <tr>
  3997. <td><code>set &lt;soundchip&gt;_vibrato_frequency &lt;num&gt;</code></td>
  3998. <td>Sets new vibrato frequency in Hz; 1 is minimum, 10 is maximum</td>
  3999. </tr>
  4000. </table>
  4001. <div class="subsectiontitle">
  4002. examples:
  4003. </div>
  4004. <div class="examples">
  4005. <code>set PSG_vibrato_frequency</code><br />
  4006. <code>set PSG_vibrato_frequency 5</code> (default)<br />
  4007. </div>
  4008. <div class="note">
  4009. Note: For now, this setting is only available for the PSG soundchip.
  4010. </div>
  4011. <div class="note">
  4012. Note: It is often more convenient to use the <code><a class="internal" href="#psg_profile">psg_profile</a></code> command.
  4013. </div>
  4014. <h3><a id="soundchip_vibrato_percent">&lt;soundchip&gt;_vibrato_percent</a></h3>
  4015. <p>Sets the strength of the vibrato effect. By default it is 0, which means the effect is switched off.
  4016. </p>
  4017. <div class="subsectiontitle">
  4018. usage:
  4019. </div>
  4020. <table>
  4021. <tr>
  4022. <td><code>set &lt;soundchip&gt;_vibrato_percent</code></td>
  4023. <td>Shows the current setting</td>
  4024. </tr>
  4025. <tr>
  4026. <td><code>set &lt;soundchip&gt;_vibrato_percent &lt;num&gt;</code></td>
  4027. <td>Sets new vibrato strength; 0 is minimum, 10 is maximum</td>
  4028. </tr>
  4029. </table>
  4030. <div class="subsectiontitle">
  4031. examples:
  4032. </div>
  4033. <div class="examples">
  4034. <code>set PSG_vibrato_percent</code><br />
  4035. <code>set PSG_vibrato_percent 0</code> (switched off, default)<br />
  4036. <code>set PSG_vibrato_percent 1</code> (recommended)<br />
  4037. </div>
  4038. <div class="note">
  4039. Note: For now, this setting is only available for the PSG soundchip.
  4040. </div>
  4041. <div class="note">
  4042. Note: It is often more convenient to use the <code><a class="internal" href="#psg_profile">psg_profile</a></code> command.
  4043. </div>
  4044. <h3><a id="soundchip_volume">&lt;soundchip&gt;_volume</a></h3>
  4045. <p>Sets the volume for individual sound chips. The overall volume is controlled by the <code><a class="internal" href="#master_volume">master_volume</a></code> setting.
  4046. </p>
  4047. <div class="subsectiontitle">
  4048. usage:
  4049. </div>
  4050. <table>
  4051. <tr>
  4052. <td><code>set &lt;soundchip&gt;_volume</code></td>
  4053. <td>Shows the current setting</td>
  4054. </tr>
  4055. <tr>
  4056. <td><code>set &lt;soundchip&gt;_volume &lt;num&gt;</code></td>
  4057. <td>Sets new volume; 0 is off, 100 is maximum</td>
  4058. </tr>
  4059. </table>
  4060. <div class="subsectiontitle">
  4061. examples:
  4062. </div>
  4063. <div class="examples">
  4064. <code>set PSG_volume</code><br />
  4065. <code>set PSG_volume 60</code><br />
  4066. <code>set "FMPAC_volume" 50</code>
  4067. </div>
  4068. <h3><a id="throttle">throttle</a></h3>
  4069. <p>Sets throttle mode. In throttle mode the emulator tries to run at the specified speed relative to a real MSX (see <a class="internal" href="#speed">speed</a> command). When throttling is turned off the emulator runs as fast as possible.</p>
  4070. <div class="subsectiontitle">
  4071. usage:
  4072. </div>
  4073. <table>
  4074. <tr>
  4075. <td><code>set throttle</code></td>
  4076. <td>Shows the current setting</td>
  4077. </tr>
  4078. <tr>
  4079. <td><code>set throttle on</code></td>
  4080. <td>Turn throttle mode on (normal operation)</td>
  4081. </tr>
  4082. <tr>
  4083. <td><code>set throttle off</code></td>
  4084. <td>Turn throttle mode off (fast forward)</td>
  4085. </tr>
  4086. </table>
  4087. <h3><a id="too_fast_vram_access">too_fast_vram_access</a></h3>
  4088. <p>How should software that accesses the VDP-VRAM too fast be emulated?
  4089. Most existing MSX software should not access VRAM too fast, and in that case
  4090. this setting has no effect. But you may want to change it when you e.g.
  4091. emulate an overclocked Z80 (see <a class="internal" href="#z80_freq">
  4092. z80_freq</a>).</p>
  4093. <div class="subsectiontitle">
  4094. usage:
  4095. </div>
  4096. <table>
  4097. <tr>
  4098. <td><code>set too_fast_vram_access</code></td>
  4099. <td>Shows the current setting</td>
  4100. </tr>
  4101. <tr>
  4102. <td><code>set too_fast_vram_access real</code></td>
  4103. <td>Accessing the VRAM too fast results in dropped VRAM accesses, just like on a real machine.</td>
  4104. </tr>
  4105. <tr>
  4106. <td><code>set too_fast_vram_access ignore</code></td>
  4107. <td>All VRAM accesses are executed, so timing of VRAM access is ignored.</td>
  4108. </tr>
  4109. </table>
  4110. <h3><a id="too_fast_vram_access_callback">too_fast_vram_access_callback</a></h3>
  4111. <p>Selects the Tcl procedure to be called when a too-fast-VRAM-access (read
  4112. or write) has been detected. This is useful for debugging MSX programs that
  4113. show certain kinds of VRAM corruption, especially on MSX1.</p>
  4114. <p>By default this setting is empty, which means that nothing is done when a
  4115. too-fast-VRAM-access is detected. We ship a few example procedures called
  4116. <code>warn_too_fast_vram_access</code> and
  4117. <code>debug_too_fast_vram_access</code> which respectively print a warning or
  4118. break CPU emulation when this condition occurs. You can find the source code
  4119. for these procedures in <code>scripts/callbackprocs.tcl</code>. Feel free to
  4120. write your own procedure that does exactly what you need.</p>
  4121. <div class="subsectiontitle">
  4122. usage:
  4123. </div>
  4124. <table>
  4125. <tr>
  4126. <td><code>set VDP.too_fast_vram_access_callback</code></td>
  4127. <td>Shows the currently installed callback</td>
  4128. </tr>
  4129. <tr>
  4130. <td><code>set VDP.too_fast_vram_access_callback warn_too_fast_vram_access</code></td>
  4131. <td>Print warning when too fast VRAM access is detected</td>
  4132. </tr>
  4133. <tr>
  4134. <td><code>set VDP.too_fast_vram_access_callback debug_too_fast_vram_access</code></td>
  4135. <td>Print warning and also break emulation right after the Z80 instruction that triggered this callback</td>
  4136. </tr>
  4137. <tr>
  4138. <td><code>set VDP.too_fast_vram_access_callback my_custom_callback_handler</code></td>
  4139. <td>Install a custom callback handler</td>
  4140. </tr>
  4141. <tr>
  4142. <td><code>set VDP.too_fast_vram_access_callback ""</code></td>
  4143. <td>Remove any installed callback handler</td>
  4144. </tr>
  4145. </table>
  4146. <h3><a id="touchpad_transform_matrix">touchpad_transform_matrix</a></h3>
  4147. <p>Specify a 2&times;3 transformation matrix that maps host mouse coordinates
  4148. to MSX touchpad coordinates.
  4149. To get the following coordinate transformation:</p>
  4150. <pre>
  4151. | a b c | | host-X | | touchpad-X |
  4152. | d e f | &times; | host-Y | = | touchpad-Y |
  4153. | 1 |
  4154. </pre>
  4155. <p>Use this command:</p>
  4156. <pre>
  4157. set touchpad_transform_matrix {{a b c} {d e f}}
  4158. </pre>
  4159. <div class="subsectiontitle">
  4160. usage:
  4161. </div>
  4162. <table>
  4163. <tr>
  4164. <td><code>set touchpad_transform_matrix</code></td>
  4165. <td>Shows the current value</td>
  4166. </tr>
  4167. <tr>
  4168. <td><code>set touchpad_transform_matrix {{256 0 0} {0 256 0}}</code></td>
  4169. <td>This is the default, map the full host window to 256&times;256 touchpad input</td>
  4170. </tr>
  4171. <tr>
  4172. <td><code>set touchpad_transform_matrix {{320 0 -64} {0 240 -14}}</code></td>
  4173. <td>Attempt to map touch coordinates to corresponding MSX pixel coordinates.</td>
  4174. </tr>
  4175. </table>
  4176. <!-- TODO write Tcl scripts to setup this matrix
  4177. <div class="note">
  4178. Note: It is often more convenient to use the <code><a class="internal" href="#monitor_type">monitor_type</a></code> command.
  4179. </div>
  4180. -->
  4181. <h3><a id="turborpause">turborpause</a></h3>
  4182. <p>Controls the pause key on a MSX turboR machine.</p>
  4183. <div class="subsectiontitle">
  4184. usage:
  4185. </div>
  4186. <table>
  4187. <tr>
  4188. <td><code>set turborpause</code></td>
  4189. <td>Shows the current setting</td>
  4190. </tr>
  4191. <tr>
  4192. <td><code>set turborpause on</code></td>
  4193. <td>Activate the pause key</td>
  4194. </tr>
  4195. <tr>
  4196. <td><code>set turborpause off</code></td>
  4197. <td>Deactivate the pause key</td>
  4198. </tr>
  4199. </table>
  4200. <div class="note">
  4201. Note: If you use this setting often, it may be useful to bind it to a key on your PC keyboard. See the <code><a class="internal" href="#bind">bind</a></code> and <code><a class="internal" href="#toggle">toggle</a></code> commands.
  4202. </div>
  4203. <h3><a id="umr_callback">umr_callback</a></h3>
  4204. <p>Selects the Tcl procedure to be called when an Uninitialized Memory Read has been detected. This is useful for debugging MSX programs: uninitialized memory is not guaranteed to have any particular value, so reading it is most likely a bug.</p>
  4205. <p>By default this setting is empty, which means that nothing is done when an Uninitialized Memory Read is detected. We ship a useful procedure called <code>umrcallback</code> which logs all UMRs. You can activate it with <code>set umr_callback umrcallback</code>. You can find the source code for this procedure in <code>scripts/callbackprocs.tcl</code>.</p>
  4206. <div class="subsectiontitle">
  4207. usage:
  4208. </div>
  4209. <table>
  4210. <tr>
  4211. <td><code>set umr_callback</code></td>
  4212. <td>Shows the current UMR callback setting</td>
  4213. </tr>
  4214. <tr>
  4215. <td><code>set umr_callback umrcallback</code></td>
  4216. <td>Sets callback proc to <code>umrcallback</code></td>
  4217. </tr>
  4218. </table>
  4219. <h3><a id="vdpcmdinprogress_callback">vdpcmdinprogress_callback</a></h3>
  4220. <p>Selects the Tcl procedure to be called when a write to a VDP command engine register is detected while there is still a VDP command in progress. Often this is an indication of a bug in the running MSX program. Note that writes to VDP register R#44 with a command in progress are normal behaviour, so the callback is not triggered for such writes.</p>
  4221. <p>By default this setting is empty, which means that nothing is done when a suspicious VDP command engine write is detected. We ship an example proc called <code>vdpcmdinprogresscallback</code> which simply logs all occurrences. You can activate it with <code>set vdpcmdinprogress_callback vdpcmdinprogresscallback</code>. You can find the source code for this proc in <code>scripts/callbackprocs.tcl</code>. Feel free to write your own proc that does exactly what you need. For example it might be a good idea to execute <code>debug break</code> in your callback, so that you can easily examine what code triggered this write.</p>
  4222. <div class="subsectiontitle">
  4223. usage:
  4224. </div>
  4225. <table>
  4226. <tr>
  4227. <td><code>set vdpcmdinprogress_callback</code></td>
  4228. <td>Shows the current value. Default is "" (meaning no action)</td>
  4229. </tr>
  4230. <tr>
  4231. <td><code>set vdpcmdinprogress_callback vdpcmdinprogresscallback</code></td>
  4232. <td>Sets callback to <code>vdpcmdinprogresscallback</code></td>
  4233. </tr>
  4234. </table>
  4235. <h3><a id="vdpcmdtrace">vdpcmdtrace</a></h3>
  4236. <p>Enable/disable VDP command tracing. When enabled, every VDP command is logged on stdout. This is useful when debugging MSX programs that use the VDP command engine.</p>
  4237. <div class="subsectiontitle">
  4238. usage:
  4239. </div>
  4240. <table>
  4241. <tr>
  4242. <td><code>set vdpcmdtrace</code></td>
  4243. <td>Shows the current setting</td>
  4244. </tr>
  4245. <tr>
  4246. <td><code>set vdpcmdtrace on</code></td>
  4247. <td>Enables VDP command tracing</td>
  4248. </tr>
  4249. <tr>
  4250. <td><code>set vdpcmdtrace off</code></td>
  4251. <td>Disables VDP command tracing</td>
  4252. </tr>
  4253. </table>
  4254. <h3><a id="videosource">videosource</a></h3>
  4255. <p>Switch between video sources: <code>MSX</code> (V99x8, default when no
  4256. Video 9000 is available), <code>GFX9000</code> (V9990),
  4257. <code>Video9000</code> (V9990 superimposed on top of V99x8, default if
  4258. available) and <code>Laserdisc</code> (for Palcom machines). There can be
  4259. even more video sources, e.g. due to cartridges with a built in VDP like
  4260. the Neos MA-20(V).
  4261. </p>
  4262. <div class="subsectiontitle">
  4263. usage:
  4264. </div>
  4265. <table>
  4266. <tr>
  4267. <td><code>set videosource</code></td>
  4268. <td>Shows the current setting</td>
  4269. </tr>
  4270. <tr>
  4271. <td><code>set videosource MSX</code></td>
  4272. <td>Switch to normal MSX screen</td>
  4273. </tr>
  4274. <tr>
  4275. <td><code>set videosource GFX9000</code></td>
  4276. <td>Switch to GFX9000 screen</td>
  4277. </tr>
  4278. </table>
  4279. <div class="note">
  4280. Note: This setting is only available if multiple videosources are present.
  4281. </div>
  4282. <h3><a id="vsync">vsync</a></h3>
  4283. <p>Enables or disables vsync. This setting determines whether the SDLGL-PP renderer should synchronize its frames to your host monitors frame rate (e.g. 60fps).</p>
  4284. <p>The default value is not to synchronize ("<code>off</code>"). When enabled, adaptive vsync is attempted if your hardware and driver support it, which means that if a frame is too late, it will be output immediately anyway. If not supported, normal vsync will be used, which may mean a frame is output later, when the sync is missed.</p>
  4285. <p>Enable this if your MSX is running at about the same frame rate as your monitor (e.g. 60Hz MSX output on a 60Hz host monitor) and you want to avoid (or reduce) tearing, which can be quite visible in smooth horizontal scrolling demos. Keep in mind <a class="internal" href="#throttle">throttle mode</a> off works a bit differently if vsync is enabled (see there).</p>
  4286. <div class="subsectiontitle">
  4287. usage:
  4288. </div>
  4289. <table>
  4290. <tr>
  4291. <td><code>set vsync</code></td>
  4292. <td>Shows the current setting</td>
  4293. </tr>
  4294. <tr>
  4295. <td><code>set vsync off</code></td>
  4296. <td>No synchronization to monitor frame rate: draw immediately</td>
  4297. </tr>
  4298. <tr>
  4299. <td><code>set vsync on</code></td>
  4300. <td>Synchronize to monitor frame rate when possible, otherwise draw immediately. Or, when this is not available on the host hardware/driver, synchronize to monitor frame rate always (default)</td>
  4301. </tr>
  4302. </table>
  4303. <div class="note">
  4304. Note: This setting only has effect when the SDLGL-PP renderer is used.
  4305. </div>
  4306. <h3><a id="v9990cmdtrace">v9990cmdtrace</a></h3>
  4307. <p>Enable/disable V9990 command tracing. This is the V9990 equivalent of <code><a class="internal" href="#vdpcmdtrace">vdpcmdtrace</a></code>.</p>
  4308. <div class="subsectiontitle">
  4309. usage:
  4310. </div>
  4311. <table>
  4312. <tr>
  4313. <td><code>set v9990cmdtrace</code></td>
  4314. <td>Shows the current setting</td>
  4315. </tr>
  4316. <tr>
  4317. <td><code>set v9990cmdtrace on</code></td>
  4318. <td>Enables V9990 command tracing</td>
  4319. </tr>
  4320. <tr>
  4321. <td><code>set v9990cmdtrace off</code></td>
  4322. <td>Disables V9990 command tracing</td>
  4323. </tr>
  4324. </table>
  4325. <div class="note">
  4326. Note: This setting is only available if the <code>gfx9000</code> or
  4327. <code>video9000</code> extension is present.
  4328. </div>
  4329. <h3><a id="z80_freq">z80_freq / z80_freq_locked</a></h3>
  4330. <p>These two settings control the Z80 clock frequency. When <code>z80_freq_locked</code> is true the emulated Z80 runs at the normal 3.579545 MHz (or possibly 5.369318 MHz on machines that are able to switch the CPU to 'turbo' mode, e.g. the Panasonic MSX2+ models). When <code>z80_freq_locked</code> is false the value of <code>z80_freq</code> is taken as the Z80 clock frequency. Note: the value of <code>z80_freq</code> is by default the MSX Z80 standard of 3579545, so when <code>z80_freq</code> is untouched, setting <code>z80_freq_locked</code> to false will set the clock frequency of a CPU in 5.37 Mhz turbo mode back to 3.58 Mhz.</p>
  4331. <p>WARNING: be careful when changing these settings. When saving the settings in which a different clock is activated, this will be applied for all machines, as these are global settings. Some software (like demos) may stop working properly with a changed CPU clock frequency. Specifically, using a value (just) below the normal value may cause problems loading CAS images, as these are converted to a high baud rate WAV file internally and when the MSX becomes slower it cannot handle that high baud rate.</p>
  4332. <div class="subsectiontitle">
  4333. examples:
  4334. </div>
  4335. <div class="examples">
  4336. Overclock Z80 to 14 MHz:<br />
  4337. <code>set z80_freq 14318180</code><br />
  4338. <code>set z80_freq_locked false</code><br />
  4339. <br />
  4340. F8 switches between 3.5 MHz and 7 MHz:<br />
  4341. <code>set Z80_freq 7159090</code><br />
  4342. <code>bind F8 "toggle z80_freq_locked"</code><br />
  4343. </div>
  4344. <h3><a id="othersettings">other settings</a></h3>
  4345. <p>Like with the commands, there are also some specialized settings, for which we only list a very brief overview. As always execute "<code>help setting &lt;setting-name&gt;</code>" to get a more detailed description of the setting.</p>
  4346. <table>
  4347. <tr>
  4348. <td><code>fast_cas_load_hack_enabled</code></td>
  4349. <td>Enable a hack that lets you quickly load CAS files, without having openMSX convert them to WAV</td>
  4350. </tr>
  4351. </table>
  4352. <p>The source code of all these scripts is located in <code>share/scripts</code> directory. Feel free to inspect these scripts and modify them to suit your needs.</p>
  4353. </body>
  4354. </html>