Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
elenderg committed Oct 23, 2023
1 parent 6eaaab8 commit 7a74deb
Show file tree
Hide file tree
Showing 3 changed files with 15,407 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,57 @@ A fruit is a thing with a name.
To run:
Start up.
Create some fruits.
Write the step and the fruits on the console (on a single line).
\Write the step and the fruits on the console (on a single line).
Write the fruits on the console.
Skip a line on the console.
Sort the fruits.
Write the fruits on the console.
Destroy the fruits.
Wait for the escape key.
Shut down.

To write the step and some fruits on the console (on a single line):
Convert the step to a string.
Write the string then " " on the console without advancing.
Write the fruits on the console.
Skip a line on the console.

\To run:
\Start up.
\Write "Working�" on the console.
\Put 10000 into a count.
\Create some fruits using "apple" and the count.
\Start a timer. Sort the fruits. Stop the timer.
\Write the timer then " milliseconds for " then the count on the console.
\Destroy the fruits.
\Put 100000 into the count.
\Create the fruits using "apple" and the count.
\Start the timer. Sort the fruits. Stop the timer.
\Write the timer then " milliseconds for " then the count on the console.
\Destroy the fruits.
\Put 1000000 into the count.
\Create the fruits using "apple" and the count.
\Start the timer. Sort the fruits. Stop the timer.
\Write the timer then " milliseconds for " then the count on the console.
\Destroy the fruits.
\Wait for the escape key.
\Shut down.


The linebreak string is a hex string equal to $0D0A.

To skip a line on the console:
Write the linebreak string on the console.

To write some fruits on the console:
Loop.
Get a fruit from the fruits.
Write the fruit's name then " " on the console.\ without advancing.
If the fruit is the fruits' last fruit, exit.
Repeat.



\ descomente a rotina abaixo, e comente a rorina acima para obter o tempo de compila��o do programa:
\To run:
\Start up.
Expand Down Expand Up @@ -67,4 +110,16 @@ move the right fruit from the right fruits to the fruits; repeat.
Move the left fruit from the left fruits to the fruits.
Repeat.
Add 1 to the step.
Write the step and the fruits on the console (on a single line).
\Write the step and the fruits on the console (on a single line).

To create some fruits given a name and a count:
Privatize the count.
Loop.
Convert the count to a string.
Zero fill the string given 7.
Prepend the name then " " to the string.
Add the string to the fruits.
Subtract 1 from the count.
If the count is greater than 0, repeat.


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The cipher is a string equal to "NNNNNOOOOOOOPP�".
The cipher is a string equal to "NNNNNOOOOOOOPP�". \ It�s much longer, of course. 82,944 bytes, to be exact

To display a cipher in a box (as a picture):
Put the cipher's first into a byte pointer.
Expand Down
Loading

0 comments on commit 7a74deb

Please sign in to comment.