Download MMBasic Language Manual

Transcript
MMBasic is a Microsoft BASIC compatible implementation of the BASIC language with floating point and
string variables, long variable names, arrays of floats or strings with multiple dimensions and powerful string
handling.
MMBasic was originally written for the Maximite, a small computer based on the PIC32 microcontroller from
Microchip. It now runs on a variety of hardware platforms including DOS.
This manual describes the MMBasic language. For details of running MMBasic on specific platforms please
refer to the following documentation:
Maximite and mini Maximite: Maximite Hardware Manual
from: http://geoffg.net/maximite.html
UBW32 experimenter board: UBW32 MMBasic User Manual from: http://geoffg.net/ubw32.html
CGMMSTICK1 board:
http://www.circuitgizmos.com/products/cgmmstick1/cgmmstick1.shtml
DuinoMite hardware:
DuinoMite MMBasic ReadMe included with the DuinoMite update.
DOS:
DOS MMBasic ReadMe
from: http://mmbasic.com/downloads.html
Throughout this manual Maximite or MM refers to the Maximite family (Maximite, mini Maximite, UBW32,
CGMMSTICK1, DuinoMite and others that run the standard Maximite firmware). DOS refers to the version
that runs in a DOS box under Windows.
Contents
Functional Summary............................................................................................................... 3
Implementation Details ........................................................................................................... 7
Predefined Read Only Variables ............................................................................................ 9
Commands ........................................................................................................................... 10
Functions.............................................................................................................................. 25
Obsolete Commands and Functions .................................................................................... 31
Appendix A Serial Communications ..................................................................................... 32
Appendix B I2C Communications......................................................................................... 34
Appendix C 1-Wire Communications.................................................................................... 38
Appendix D SPI Communications......................................................................................... 39
Appendix E Loadable Fonts ................................................................................................. 41
Appendix F Special Keyboard Keys ..................................................................................... 42
Appendix G Tera Term Setup............................................................................................... 43
MMBasic Language Manual
Page 2