Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Fixing grader
Browse files Browse the repository at this point in the history
  • Loading branch information
dluman committed Oct 13, 2023
1 parent aa77a06 commit 915eb10
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dynamo/dispatch.S
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dispatch:
@ TODO: Load release format string
BL printf
@ TODO: POP the value from the link register to lo register
@ TODO: Branch and eXecute (BX) to location POP'd above
@ TODO: Branch and eXecute to location POP'd above

get_msb:
@ TODO: Evaluate if number is 0
Expand All @@ -32,7 +32,7 @@ return_to_launcher:
@ TODO: Finish this label's functionality to return to the main
@ loop (i.e. the launcher) in order to grab the next number
@ from the array (it's 2 instructions)
@ HINT: This will likely require POP'ing a value and then BX to glo
@ HINT: This will likely require POP'ing a value and then branch and eXecute
@ back to the original location; keep track of these values in the
@ stack on paper -- it's the only way
.data
Expand Down
68 changes: 66 additions & 2 deletions gatorgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
check: MatchFileRegex
options:
regex: '[bx|BX](\s|\t)+[a-zA-Z0-9_]+'
count: 6
count: 5
exact: false
- dynamo/dispatch.S:
- description: dynamo/dispatch.S uses CMP instructions to evaluate conditional logic
Expand All @@ -118,11 +118,75 @@
fragment: 'TODO'
count: 0
exact: true
- sifter/program.S:
- description: sifter/program.S branches and links to sifter
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: '[bl|BL](\s|\t)+sifter'
count: 1
exact: true
- sifter/sifter.S:
- description: sifter/sifter.S POPs from the stack
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: '[pop|POP](\s|\t)+\{'
count: 1
exact: false
- sifter/sifter.S:
- description: sifter/sifter.S PUSHes from the stack
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: '[push|PUSH](\s|\t)+\{'
count: 1
exact: false
- sifter/sifter.S:
- description: sifter/sifter.S uses BX to jump to appropriate point
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: '[bx|BX](\s|\t)+[a-zA-Z0-9]+'
count: 1
exact: false
- sifter/sifter.S:
- description: sifter/sifter.S contains no TODOs
category: TODOs
check: MatchFileFragment
options:
fragment: 'TODO'
count: 0
exact: true
- sifter/program.S:
- description: sifter/program.S contains no TODOs
category: TODOs
check: MatchFileFragment
options:
fragment: 'TODO'
count: 0
exact: true
- sifter/sifter.S:
- description: sifter/sifter.S compares values to branch appropriately
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: 'CMP(\s|\t)+[r|R][0-7],(\s)+[r|R][0-7]'
count: 0
exact: true
- sifter/sifter.S:
- description: sifter/sifter.S compares uses branch and link to return to appropriate point in previous subroutine
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: 'BL(\s|\t)+[a-zA-z0-9]+'
count: 3
exact: false
- docs/report.md:
- description: docs/report.md contains no TODOs
check: MatchFileFragment
category: TODOs
options:
fragment: 'TODO'
count: 0
exact: true
exact: true

0 comments on commit 915eb10

Please sign in to comment.