stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. Day 362

Day 362 of 365 · Expert · Month 12: Masterpieces

Exam preparation expert

Exam preparation expert: what the final exam covers, the instructions of the level and the hardest traps – with a calculation exercise and practice questions.

Lesson 25 min Week 52

What you learn today

  • Instructions of the level
  • Tricky traps
  • Practice questions

In three days is the final exam: 20 questions from months 10 to 12, 45 minutes, passed from 70 %. Today you go through the syllabus and work out the traps once yourself.

What is covered

Areacheck yourself
bits and dataand, or, xor, not, shifts, rotations, ext/ins, STR, HASH, 53 bits
chip networksone writer per address, protocol with acknowledgement, watchdog
algorithmslookup tables, lerp between points, sorting, statistics
optimisation128 lines, 4096 characters, 128 instructions per tick
debuggingerror numbers, silent errors, test cases
systemsrobustness, restart, rockets, big projects

The hardest traps

Trapcorrect is
not 0−1, all 64 bits set
srl on negative numbersbecomes huge – sra keeps the sign
sra -100 3−13, because sra rounds down, not −12
rol and rorrotate within 54 bits
ext/insfield at most 53 bits
STRat most 6 ASCII characters
define with another definegives NaN, without an error message
lbn … Countignores the name
lbn … Maximum without a match−inf, not 0
130 linestoo long, 128 is the maximum
300 instructions without yieldno error, the chip continues in the next tick
program endchip stands still, without an error
error numbers16 ChipCatchingFire, 17 StackOverFlow, 18 StackUnderFlow, 9 UnrecognisedInstruction

Clearing one bit on purpose is a typical exam task:

not tmp 1                    # all bits except bit 0
and cleared wort tmp        # bit 0 cleared, the rest stays
sra divided value 3          # -100 becomes -13: sra rounds down
Tip

Work out the bit questions on paper in binary. $F0 and $3C: 1111_0000 and 0011_1100 share 0011_0000, so 48. Whoever calculates in decimal in their head miscalculates.

Exercise

Task

Calculation exercise without devices. r0 holds a status word, r5 a value (set by the test).

  • r1 = bits 4 to 7 of r0 as a number
  • r2 = r0 with bit 2 set
  • r3 = r0 with bit 0 cleared
  • r4 = r5 divided by 8 keeping the sign, by shifting
  • r6 = r5 limited to −50 to 50

Hints

Hint 1

r1: ext with start 4 and length 4.

Hint 2

r2: or with %100. r3: not tmp 1, then and.

Hint 3

r4: sra by 3 places. r6: clamp.

Quiz

5 questions. You pass from 60 % – the server does the grading.

Complete the day

  • Passed the simulator exercise
  • Passed the quiz with at least 60 %

Without an account progress is saved in this browser only.

Report a mistake in this lesson

Please sign in to report. Sign in

Esc
↑ ↓ selectEnter open/ opens search anywhere