Skip to content

Commit

Permalink
Fixed typo documentation, fixed Mailbox.IsAvailable
Browse files Browse the repository at this point in the history
Mailbox.IsAvailable did not compile to the EV3 at all. I seem to never
have tested this...
  • Loading branch information
c0pperdragon committed Nov 7, 2015
1 parent b97ca40 commit b8e37a6
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CompilerTest/Program.cs
Expand Up @@ -17,7 +17,7 @@ static void Main(string[] args)
// TestWiFiReceiveBroadcast();
// TestWiFi();
TestCompile();
// TestAssemble();
TestAssemble();
// TestDisassemble();
}

Expand All @@ -35,7 +35,7 @@ static void TestDisassemble()

static void TestCompile()
{
String f = "C:/Users/Reinhard/Documents/GitHub/EV3Basic/Examples/TowersOfHanoi.sb";
String f = "C:/Users/Reinhard/Documents/GitHub/EV3Basic/Examples/MailboxReceive.sb";
FileStream fs = new FileStream(f, FileMode.Open, FileAccess.Read);
FileStream ofs = new FileStream("c:/temp/compiledbasic.lms", FileMode.Create, FileAccess.Write);

Expand Down
2 changes: 1 addition & 1 deletion Documentation/SmallBasicEV3Extension.de.XML

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified Documentation/SmallBasicEV3Extension.es.XML
Binary file not shown.
2 changes: 1 addition & 1 deletion Documentation/ev3basic_handbuch.html
Expand Up @@ -1175,7 +1175,7 @@ <H3 class="operation">Thread.Yield ()</H3>
<H2 class="object">Vector</H2>
<P class="objectsummary">Dieses Objekt bietet verschiedene Operationen zur Manipulation größerer Zahlenmengen.<BR>Sie werden Vektoren genannt und werden in normalen Arrays mit fortlaufendem Index, beginnend bei 0, abgelegt.<BR>Wenn Operationen mit Arrays mit einer abweichenden Struktur aufgerufen werden, wird jedes fehlende Array-Element als 0 angenommen.</P>
<H3 class="operation">Vector.Add (size, A, B)</H3>
<P class="operationsummary">Addiert zwei Vektoren elementweise (C[0]=A[0]+B[0], C[1]=A[1]+B[2]...)</P>
<P class="operationsummary">Addiert zwei Vektoren elementweise (C[0]=A[0]+B[0], C[1]=A[1]+B[1]...)</P>
<H4 class="parameter">size</H4>
<P class="parametersummary">Anzahl der Elemente von jedem Vektor für die Berechnung</P>
<H4 class="parameter">A</H4>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/ev3basic_manual.html
Expand Up @@ -1187,7 +1187,7 @@ <H3 class="operation">Thread.Yield ()</H3>
<H2 class="object">Vector</H2>
<P class="objectsummary">This object allows direct manipulation of larger quantities of numbers. <BR>These are called vectors and will be stored using arrays with consecutive indices (starting at 0).<BR>When arrays with different content are given to the operations, every missing array <BR>element with be treated as being 0.</P>
<H3 class="operation">Vector.Add (size, A, B)</H3>
<P class="operationsummary">Adds two vectors by adding the individual elements (C[0]=A[0]+B[0], C[1]=A[1]+B[2]...)</P>
<P class="operationsummary">Adds two vectors by adding the individual elements (C[0]=A[0]+B[0], C[1]=A[1]+B[1]...)</P>
<H4 class="parameter">size</H4>
<P class="parametersummary">That many numbers are taken for computation</P>
<H4 class="parameter">A</H4>
Expand Down
2 changes: 1 addition & 1 deletion Documentation/ev3basic_manual_es.html
Expand Up @@ -1253,7 +1253,7 @@ <H3 class="operation">Thread.Yield ()</H3>
<H2 class="object">Vector</H2>
<P class="objectsummary">Este objeto permite la manipulación directa de grandes cantidades de números. Estos se llaman vectores y se almacenarán utilizando matrices con índices consecutivos (comenzando en 0). Cuando se pasen a las operaciones matrices con diferente tamaño, cada elemento que falte será tratado como 0.</P>
<H3 class="operation">Vector.Add (tamaño, A, B)</H3>
<P class="operationsummary">Adds two vectors by adding the individual elements (C[0]=A[0]+B[0], C[1]=A[1]+B[2]...)</P>
<P class="operationsummary">Adds two vectors by adding the individual elements (C[0]=A[0]+B[0], C[1]=A[1]+B[1]...)</P>
<H4 class="parameter">tamaño</H4>
<P class="parametersummary">That many numbers are taken for computation</P>
<H4 class="parameter">A</H4>
Expand Down
10 changes: 5 additions & 5 deletions EV3BasicCompiler/Resources/Mailbox.txt
Expand Up @@ -37,14 +37,14 @@ subcall MAILBOX.ISAVAILABLE // FS
DATA8 busy
MOVEF_8 id id8

MAILBOX_TEST id busy
JR_EQ8 busy 0 available:
MAILBOX_TEST id8 busy
JR_EQ8 busy 0 available

STRINGS DUPLICATE "False" result
return
STRINGS DUPLICATE 'False' result
RETURN

available:
STRINGS DUPLICATE "True" result
STRINGS DUPLICATE 'True' result
}

inline MAILBOX.RECEIVE // FS
Expand Down
2 changes: 1 addition & 1 deletion SmallBasicEV3Extension/Vector.cs
Expand Up @@ -54,7 +54,7 @@ public static Primitive Init(Primitive size, Primitive value)


/// <summary>
/// Adds two vectors by adding the individual elements (C[0]=A[0]+B[0], C[1]=A[1]+B[2]...)
/// Adds two vectors by adding the individual elements (C[0]=A[0]+B[0], C[1]=A[1]+B[1]...)
/// </summary>
/// <param name="size">That many numbers are taken for computation</param>
/// <param name="A">First vector</param>
Expand Down

0 comments on commit b8e37a6

Please sign in to comment.