From b80b805721461b9562d49db78aca00c0c6bc13fd Mon Sep 17 00:00:00 2001 From: Joseph Rogers Date: Thu, 19 Nov 2020 09:55:29 +0100 Subject: [PATCH] Update theory2.org --- theory2.org | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/theory2.org b/theory2.org index 5c5aabb..2c731a0 100644 --- a/theory2.org +++ b/theory2.org @@ -48,8 +48,18 @@ * TODO Question 1 - Hazards - Write programs here that are less of a crapshoot. Clarify dependency vs hazards etc etc and - *enforce* a format that is easy to grade. + For the following programs describe each hazard with type (data or control), line number and a + small (max one sentence) description. + + ** program 1 + #+begin_src asm +1 addi t0, zero, 10 +2 addi t1, zero, 20 + L2: +3 sub t1, t1, t0 +4 beq t1, zero, .L2 +5 jr ra + #+end_src * Question 2 - Handling hazards