Welcome Guest, you are in: Login

Fruit Of The Shed

Navigation (MMBasic)






Search the wiki

»


Search Engine

Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.



Filter by Category

Select allNoneInvert









































This search, performed through 3.39 MB (230 documents, 12918 words), completed in 0.0 seconds and yielded 30 results.

TIC-TAC-TOE 1 PLAYER — 6.8%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). TICTAC.BAS : ' TIC-TAC-TOE 1 PLAYER Mode 4 f=7 background: b=random(6) If b=6 Or b=3 Or b=2 Then f=0 Color f,b Dim pk(9) Cls For x=0 To 99:t=Val(Inkey$):Next x Font 2,1:Print " Tic-Tac-Toe" Font [...]

MMBasic Source Code Formatter — 6.7%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). MMBasic Source Formatter ver 2.3 20/4/2013 Format.bas is a program to indent lines of MMBasic source code in order to highlight the program structure. Four methods [...]

MOON.BAS lunar calendar with graphics and simple GUI — 3.3%

[...] WeekDay$(d$);" ";Month$(d$);" ";Day$(d$);", ";RIGHT$(d$,4) ' compute phase d = Days(d$)+19 p = d/29.530588 p = p-INT(p) phase = 4*p ' display moon phase CenterTitle 0,h1+8,w2,bg,MoonPhase$(phase) DrawMoon w2\2,h1+w2,w2\3,7,bg,phase CenterTitle 0,h1+w2+w2\3+20,w2,bg,"View from Earth" DrawEarthMoonSun w2+w3\2-h2\4,h1+h2\2,h2\16,phase ' use a PRNG sequence to twinkle the night sky, no array needed stars = 0 prn2 = prn1 [...]

sinput - String input, with edit functions — 2.8%

[...] Cursor 20,10:Print "0123456789012345678901234567890123456789" ' --- test sinput Dim xs As string Dim p As integer Dim ekey As integer Dim c As integer p=10 ' set cursor position c=1 ' index counter Do For i=2 To 6:Cursor 20,i:Print Space$(50):Next i ' show all five index strings to screen Cursor 20,2:Print m$(1) Cursor 20,3:Print m$(2) Cursor 20,4:Print m$(3) Cursor 20,5:Print m$(4) Cursor 20,6:Print m$(5) xs=m$(c) sinput xs,20,12,p,40,ekey ' edit string m$(c)=xs ' save string to index If ekey=128 And c>1 Then [...]

MMBasic Source Compression Utility — 2.8%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). MMBasic Source Compression Utility CRUNCH.bas v2.4 Author: Hugh Buckle June 2013 Updated: Dec 2014 to v2.4 This suite of programs takes an MMBasic program, reduces its [...]

Sprite Demonstration — 2.8%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). '------------------------------------------------------------------------------ ' [...]

Bug in code (Sprite Demonstration) — 2.5%

[...] ' Load backdrop image SPRITE LOAD "sprites" ' Load sprite definitions DIM p(8,4) ' Define array size FOR n=1 TO 8 ' Set all 8 sprites data p(n,1)=n*25+125 ' X co-ordinate p(n,2)=216 ' Y co-ordinate p(n,3)=FIX(RND*4)+1 ' Random 4 direction SPRITE on n,n*25+125,216 ' Turn on sprite NEXT n GAMELOOP: FOR n=1 TO 8 ' Start of [...]

Driving a Parallel Printer — 2.3%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). Printer.bas '============================================================================= 'DOT-MATRIX [...]

uFormat$() and StrE$() provide flexible formatting of numeric values — 2.3%

Some languages provide the FORMAT$() function - indeed this features in MMBasic for the MaxiMite but has been dropped from versions intended for the MicroMite (V4.5 onward). It can be an intensive function for some often quite fringe functions. A fully fledged version is documented here . I think you'll agree it is a lot of work for often little payback... fine on PC's with multi-gigabyte memories but not really worth the flash in confined systems when the function is rarely used. In MMBasic, the STR$() function does provide a lot of the [...]

HAMURABI — 2.1%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). HAMURABI.BAS 10 REM *** CONVERTED FROM THE ORIGINAL FOCAL PROGRAM AND MODIFIED 20 REM *** FOR EDUSYSTEM 70 BY DAVID AHL, DIGITAL 30 REM *** MODIFIED FOR 8K MICROSOFT BASIC BY PETER TURNBULL 40 [...]

Hi-IQ (Solitaire) — 1.8%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). HIGHIQ.BAS 5 CLS 10 PRINT TAB(33);"HIGH - IQ" 15 PRINT:PRINT 20 PRINT TAB(15);"CREATIVE COMPUTING - MODIFIED BY BILL BROWN" 40 DIM B(70),T(9,9) 50 LOCATE 40,70:INPUT"DO YOU REQUIRE INSTRUCTIONS - (Y/N) ";Q$ 60 [...]

MMX - time of the seasons — 1.8%

[...] ''''''''''''''''''''''''''' local eps, a, b, c, d, e, fa, fb, fcc, tol1 local xm, p, q, r, s, xmin, tmp eps = 2.23e-16 e = 0.0 a = x1 b = x2 esfunc(a, fa) esfunc(b, fb) fcc = fb for iter% = 1 to 50 if (fb * fcc > 0.0) then c = a fcc = fa d = b - a e = d end if if (abs(fcc) < abs(fb)) then a = b b = c c = a fa = fb fb = fcc fcc = fa end if tol1 = 2.0 * eps * abs(b) + [...]

A Simple GUI pack — 1.8%

A purely MMBasic GUI pack to provide a WindowsCE/95 look-a-like LCD panel interface for your projects. This is a work in progress in my spare time. This document has lots of improvements required - and I'll do them... just need a bit more time. Still to come: Lists, Drop-down Lists, tab strips, pop-up windows (if I can work out a way to do it). As it is now, it provides a lot of functionality and is usable. If you only need the simpler end of the GUI - buttons, checkboxes, radio buttons and text boxes etc, it is good to go. Let's face it; they probably cover 100% of [...]

Colour Demos — 1.7%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). Demonstration programs for the Colour Maximite: CMM4_TST.BAS A test program that demonstrates various graphics on the Colour Maximite running in MODE 4. These include coloured lines, boxes, circles and moving images on the screen [...]

Short range radio network (not WiFi). SLAVE module. Uses cheapie 433MHz modules or HC-12 — 1.6%

[...] String$(DoPreamble,Chr$(&HFE))+qq$; Pause Len(qq$)' wait For the packet To go End Sub Function ENCRYPT$(A$) Local Integer N,P Local B$ P=1 For [...]

Simple Encryption — 1.6%

[...] key$=">4!"+chr$(202)+"1x+chr$(188)+4+chr$(240)+3z4+7%4{9?5\3+chr$(222)+^+chr$(221)+5$9=6@1~6,+chr$(193)+|1)7:8<3*8S9I9l7Z1eT0r1" Function Encrypt$(a$) Local Integer n,p,t Local b$ p=1:t=Len(key$) For [...]

TOWERS of HANOI — 1.4%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). This program plays the game of Towers of Hanoi for you. It is a programming exercise in recursion, that is, where a subroutine, in this case "TOWER", calls itself. It plays on a MicroMite using a VT100 terminal .eg Tera Term. [...]

Cube Root of Two Sort - fast sort — 1.4%

[...] swaps) but it is essentially the same code as the bubble sort here: Bubble Sort (part of the original MMBasic library) . For completeness, here is a Shell Sort in MMBasic. Assumptions : Option Base 1 Dim xx As Integer xx=my_arraysize 'lack of UBOUND() means we have to manually track the array size Dim SP$(xx) Usage : CR2Sort my_arraysize The Routine : It uses the string array SP$ and you must pass in the number of elements to sort (this is usually the whole array size but you might only want to sort the first 20 [...]

RENUM.BAS — 1.3%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). RENUM.BAS RENUM.BAS is written in MMBasic and requires at least version 4.3a. Renum.bas renumbers basic files, the same way the RENUMBER command used to work in version of MMBasic [...]

LCD Panels Summary — 1.3%

[...] page is an attempt to summarise and link to the various LCDPANEL drivers available for the various MMBasic platforms. These can be built in (OPTION LCDPANEL xxxx), Cfunction loadable drivers or MMBasic drivers implemented with the OPTION LCDPANEL USER method. The scope includes links to various TBS threads that discuss supporting PCB designs, drivers etc, where to purchase. In general this page will try to link to relevant threads on TBS rather than reproduce the information here. This page initially inspired by @panky's TBS post . TBS [...]

_MMBasic Code Library — 1.3%

Welcome to the {NAMESPACE} namespace (zone) of MMBasic is an interpreter for members of the PIC 32MX & 32MZ, STM H7 & L4 micro-controllers, the Raspberry Pi and a DOS version. Principally developed by Geoff Graham for PIC32MX and later Peter Mather's eXtreme version for the PIC32MZ and versions for the STM H7 and L4, you can get it and read all about it here:  http://mmbasic.com/ It provides a rich programming interface that harks back to the "feel" of the original (and widespread) MicroSoft Basic languages with definite influence from [...]

MMFOUR.BAS (Connect Four) — 1.2%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). MMFOUR.BAS 10: REM This program was originally found on a demo 20: REM tape for the MicroBee computer. It was ported 30: REM to GWbasic and then Qbasic for use on a BBS 40: REM in 1995. 50: [...]

Some Hints & Tips for writing efficient code. — 1.2%

[...] aimed at the MicroMite range of micro-controllers but the ideas are fully migrate-able across all the MMBasic platforms and beyond. On the smaller micromites, some tasks can be a big ask for an interpreter at 48MHz (or slower). Some of the following tips got an RC4 encryption algorithm usable - it was struggling to do un-encrypt >> process >> encrypt in under 1.5 seconds. It's still tight for long strings but it's usable now. So these tips can help and even have proved vital in some instances - do not dismiss as mere pedantry too lightly. This isn't an exhaustive list; [...]

ARMMite H7 Pin Aliases — 0.9%

The ARMMite H7 is a new MicroMite running MMBasic on the powerful STM32H743ZI and STM32H753ZI MicroController. You can grab the complete firmware and join the discussion here: backshed forums . The previous discussion is 18 pages(!) but worth reading to get the full story, but bear in mind it has been superseded by the former and is no longer updated: old thread It seems a popular way of utilizing this processor for small production/hobbyist is ST's Nucleo evaluation board. There are several suppliers but Farnell/Element14 seem to be well priced with good availability. [...]

Sort algorithms - A comparison — 0.9%

[...] the most desirable are ease/compactness of coding and speed. Note . This article and the referenced MMBasic sort routines are really academic on the Micromite MkII. CSubs for sorting the relevant data-type are included in the MMBasic download and attached top right and these should be used for single dimension arrays on the MX platform. Counterpart routines are not yet available for the MMX. Discussions have raged for decades over which is the "best" and the reasons for the camps can be as varied as the sort methods. One thing is almost [...]

DCF77 DigiClock — 0.9%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : The required file(s) are available in the attachments tab (top right). ' -------------------------------------------------------------------------- ' ' [...]

BIN8.BAS — 0.9%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Although MMBasic contains a function to return a binary string of any length from an argument, this module is interesting because it contains a number of useful function beyond simple conversion. BIN8.BAS ReadMe - crackerjack, March 2012 The BIN8.BAS "library" of byte-wide [...]

MMSudoku — 0.9%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). Hello all. Here's SUDOKU for Maximite version 1.0 (final?). Features: Requires MMbasic v3.1. Three types of difficulty: Easy, Medium and Hard. In the empty grid you can enter numbers and key lock. [...]

Battery Capacity Test — 0.9%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). BATTERY.BAS 100 ' BATTERY.BAS 105 ' Program to test the capacity of a battery 110 ' See Silicon Chip May 2011 for circuit details 115 ' V1.0 120 ' 125 ' 130 ' Measured resistance of the four load resistors 135 ' These [...]

CSV format parsing — 0.8%

This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). CSVPARS1.BAS ' CSV Parsing routine ' CircuitGizmos March 2013 ' ------------------------ ' A routine to parse a CSV [...]