Type your ugBASIC program here (remember: keywords like PRINT must be UPPERCASE!).
Click on Build menu to select the target: you will download the compiled binary file!

PROCEDURE example ON COCO3, C64REU IF BANK COUNT = 0 THEN PRINT "Sorry, this target " PRINT " does not have any memory bank" ELSE CLS VAR x AS WORD = 12345 VAR y AS WORD = 54321 PRINT "x = ";x;" y = ";y BANK WRITE ( BANK COUNT - 1 ) FROM VARPTR(x) TO $0100 SIZE 2 BANK WRITE ( BANK COUNT - 1 ) FROM VARPTR(y) TO $0200 SIZE 2 BANK READ ( BANK COUNT - 1 ) FROM $0200 TO VARPTR(x) SIZE 2 BANK READ ( BANK COUNT - 1 ) FROM $0100 TO VARPTR(y) SIZE 2 PRINT "x = ";x;" y = ";y ENDIF END PROCEDURE example[] ON COCO3, C64REU

Welcome to the ugBASIC sandbox!

This tool was designed to quickly test whether the code you are writing compiles correctly and determines the desired results. Since the source is compiled thanks to dedicated servers, separate from the browser you are using, some commands are not available: for example, you cannot load external files or resources by using the LOAD command. If you need to develop a program with a complete tool, we recommend installing the executables or the UGBASIC-IDE.

Unless required by applicable law or agreed to in writing, this website is given on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.