Skip to content
Clement Potteck edited this page Nov 25, 2020 · 2 revisions

Misc details on evaluation and hints given by TA:

  • README.md should include any compilation/execution prerequisites and instructions (NOT in the report)
  • Github repo should be public for submission, TA will just git clone
  • Only things graded are code and the report document as deliverables, nothing about process
  • use switch to evaluate opcodes, NOT if-else
  • we should be provided the set of tests that will be used for grading at some point

Task 6:

  • SaveAndDisable:
    1. save next program counter to hold
    2. disable interrupts
    3. get ISR address for interrupt and push that as next instruction
  • Restore (reverse SaveAndDisable):
    1. clear out interrupt vector
    2. reenable interrupts
    3. restore program counter to before interrupt (held value from SaveAndDisable)
  • Set Vector: initial setup, define u8 vector number associated with interrupts, build interrupt library
  • GetVector: get number for a given vector

Task 7:

TA unsure, probably implement as I/O interrupts which go through trap instructions via the interrupts manager? depending how many registers are accessible, we could use their memory address instead of the register name, see avr source code for definition

Clone this wiki locally