The goal of this task is to code a simplistic spell checker in assembly language
ID: 655732 • Letter: T
Question
The goal of this task is to code a simplistic spell checker in assembly language for the 8052 microcontroller. The program should compare a word saved in the code memory (ROM) with another three words which are also saved in the code memory (ROM). The three words should be separated by a comma (,) to indicate separation of words and a full stop (.) to indicate end of dictionary. If correct spelling is found, the string should be written in IDATA memory starting from 90H. Design a state chart for this spell checker:Explanation / Answer
import java.io.*;
class SpellBox : ElementBox
{
public SpellBox()
{
box = new TextBox();
base.Child = box;
box.TextChanged += (s, e) => OnTextChanged(EventArgs.Empty);
box.SpellCheck.IsEnabled = true;
box.VerticalScrollBarVisibility = ScrollBarVisibility.Auto;
this.Size = new System.Drawing.Size(100, 20);
}
public override string Text]
{
get
{
return box.Text;
}
set
{
box.Text = value;
}
}
public bool Multiline
{
get
{
return box.AcceptsReturn;
}
set
{
box.AcceptsReturn = value;
}
}
public bool WordWrap
{
get
{
return box.TextWrapping != TextWrapping.NoWrap;
}
set
{
box.TextWrapping = value ? TextWrapping.Wrap : TextWrapping.NoWrap;
}
}
public new System.Windows.UIElement Child {
get
{ return base.Child;
}
set { }
}
private TextBox box;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.