equal
deleted
inserted
replaced
515 |
515 |
516 Write another function \texttt{start} that calls \texttt{run} with a |
516 Write another function \texttt{start} that calls \texttt{run} with a |
517 given brainfu** program and memory, and the program counter and memory counter |
517 given brainfu** program and memory, and the program counter and memory counter |
518 set to~$0$. Like \texttt{run} it returns the memory after the execution |
518 set to~$0$. Like \texttt{run} it returns the memory after the execution |
519 of the program finishes. You can test your brainf**k interpreter with the |
519 of the program finishes. You can test your brainf**k interpreter with the |
520 Sierpinski triangle or the Hello world programs.\\\mbox{}\hfill[2 Marks] |
520 Sierpinski triangle or the Hello world programs or have a look at |
|
521 |
|
522 \begin{center} |
|
523 \url{https://esolangs.org/wiki/Brainfuck} |
|
524 \end{center}\hfill[2 Marks] |
521 |
525 |
522 \begin{figure}[p] |
526 \begin{figure}[p] |
523 \begin{center} |
527 \begin{center} |
524 \begin{tabular}{|@{}p{0.8cm}|l|} |
528 \begin{tabular}{|@{}p{0.8cm}|l|} |
525 \hline |
529 \hline |