• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

BASIC compiler/interpreter for PIC32MX/MZ-80K


Commit MetaInfo

修訂15216e085388af2b3a1213ee5bf2f042ff37ec94 (tree)
時間2019-03-30 05:58:35
作者Katsumi <kmorimatsu@sour...>
CommiterKatsumi

Log Message

KM-BASIC web ver 0.6

Change Summary

差異

--- a/web/basic.js
+++ b/web/basic.js
@@ -261,6 +261,7 @@ basic.compileCommand=function(command){
261261 case "USEPCG":
262262 case "PCG":
263263 case "DEBUG":
264+ case "LOG":
264265 return [{"command": m[1], "param": m[2]}];
265266 case "LABEL":
266267 if (!m[2].match(/^[A-Z][A-Z0-9]{0,5}$/)) {
@@ -598,6 +599,10 @@ basic.run=function(){
598599 param=runenv.eval(param);
599600 alert(""+(typeof param)+"\n"+param);
600601 };
602+ runenv.LOG=function(param){
603+ param=runenv.eval(param);
604+ console.log(""+(typeof param)+": "+param);
605+ };
601606 // Functions
602607 var INT=function(param){
603608 if ((typeof param)!='number') return param;
--- a/web/kmbasic.html
+++ b/web/kmbasic.html
@@ -19,7 +19,7 @@
1919 <script type="text/javascript" src="./audio.js"></script>
2020 <script type="text/javascript" src="./music.js"></script>
2121 <script type="text/javascript" src="./basic.js"></script>
22- <title>KM-BASIC web v0.5 for KM-1120</title>
22+ <title>KM-BASIC web v0.6 for KM-1120</title>
2323 </head>
2424 <body>
2525 <div class="side" id="side">
@@ -34,12 +34,12 @@
3434 <div class="buttons">
3535 <input id="RUNbutton" value="Run" type="button" onclick="button.run();"/>
3636 <input id="STOPbutton" value="Stop" type="button" onclick="button.stop();" /><br />
37- <input id="Sbutton" value="S" type="button" onmousedown="button.start(1);" onmouseout="button.start(0);" onmouseup="button.start(0);"/>
38- <input id="Fbutton" value="F" type="button" onmousedown="button.fire(1);" onmouseout="button.fire(0);" onmouseup="button.fire(0);"/>
39- <input id="Lbutton" value="←" type="button" onmousedown="button.left(1);" onmouseout="button.left(0);" onmouseup="button.left(0);"/>
40- <input id="Ubutton" value="↑" type="button" onmousedown="button.up(1);" onmouseout="button.up(0);" onmouseup="button.up(0);"/>
41- <input id="Dbutton" value="↓" type="button" onmousedown="button.down(1);" onmouseout="button.down(0);" onmouseup="button.down(0);"/>
42- <input id="Rbutton" value="→" type="button" onmousedown="button.right(1);" onmouseout="button.right(0);" onmouseup="button.right(0);"/>
37+ <input id="Sbutton" value="S" type="button" ontouchstart="button.start(1);" ontouchend="button.start(0);" onmousedown="button.start(1);" onmouseout="button.start(0);" onmouseup="button.start(0);"/>
38+ <input id="Fbutton" value="F" type="button" ontouchstart="button.fire(1);" ontouchend="button.fire(0);" onmousedown="button.fire(1);" onmouseout="button.fire(0);" onmouseup="button.fire(0);"/>
39+ <input id="Lbutton" value="←" type="button" ontouchstart="button.left(1);" ontouchend="button.left(0);" onmousedown="button.left(1);" onmouseout="button.left(0);" onmouseup="button.left(0);"/>
40+ <input id="Ubutton" value="↑" type="button" ontouchstart="button.up(1);" ontouchend="button.up(0);" onmousedown="button.up(1);" onmouseout="button.up(0);" onmouseup="button.up(0);"/>
41+ <input id="Dbutton" value="↓" type="button" ontouchstart="button.down(1);" ontouchend="button.down(0);" onmousedown="button.down(1);" onmouseout="button.down(0);" onmouseup="button.down(0);"/>
42+ <input id="Rbutton" value="→" type="button" ontouchstart="button.right(1);" ontouchend="button.right(0);" onmousedown="button.right(1);" onmouseout="button.right(0);" onmouseup="button.right(0);"/>
4343 </div>
4444 <!-- BASIC Source -->
4545 <textarea id="basicsource" class="basicsource">REM Write BASIC code here.</textarea>
--- a/web/readme.txt
+++ b/web/readme.txt
@@ -1,6 +1,6 @@
11 ********************************************
22
3- KM-BASIC web ver 0.5.0-beta
3+ KM-BASIC web ver 0.6.0-beta
44
55 Copyright (C) 2012 Katsumi Morimatsu
66
@@ -73,6 +73,9 @@ INPUT$()
7373 パレット番号は、15迄が有効です。
7474
7575 <バージョン履歴>
76+・ver 0.6
77+ ・一部の環境でボタンが動作しない不具合を解消
78+<バージョン履歴>
7679 ・ver 0.5
7780  ・WAITステートメントを追加
7881  ・SCROLLステートメントを追加