In class and in the Simple Machine handout, the instructions for Simple Machine
ID: 3870660 • Letter: I
Question
In class and in the Simple Machine handout, the instructions for Simple Machine were detailed, as well as the specification for our register transfer language (rtl). Parts of the algorithm necessary for simulating (or microprogramming) the operation of our Simple Machine using rtl was also provided. In this assignment, you will finish this algorithm by adding the clauses necessary for each of the Simple Machine's instructions. We have already written rtl for the JEQ, LOAD, and SUB instructions in class and exercises so you get those ones for free. You should refer to the Simple Machine Datapaths handout for details on which registers can be transferred to which other registers and in what directions (although you should only have to use this for checking your work). Also remember that each instruction cycle is limited to a single instruction memory cycle and a single data memory cycle.Explanation / Answer
The ‘direction’ attribute in CSS tells the browser the direction of the page. For RTL languages, you want to set it to ‘rtl’. There’s another ‘magic’ attribute that you should set for proper RTL display. It’s called ‘unicode-bidi’. That ‘magic’ attribute is pretty simple to understand, when you’re used to writing in RTL. It controls the way characters are displayed inside the line.
For proper RTL display, add the following to the .body selector:
{
direction:rtl;
unicode-bidi:embed;
}
And, you’re done! Your theme now displays in RTL. Almost. These two statements will make most of the page look correct. Now, you need to handle exceptions.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.