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

Commit

Permalink
Last changes, I think
Browse files Browse the repository at this point in the history
  • Loading branch information
dluman committed Sep 22, 2023
1 parent 97b9129 commit 394bfb1
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 2 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,22 @@ In order to recieve credit for the Hack, you must fill out the [hack.md](docs/ha

> Note: The hacks this week are _exploratory_ in nature; they ask you to, effectively, break the programs to discover the conditions surrounding various failure modes.
#### `basic_addition`

We've successfully added two (`2`) numbers: `100` and `128`. Reading ahead in our future discussion of binary (see [our slides](https://github.com/allegheny-college-cmpsc-200-fall-2023/course-materials/blob/main/slides/CMPSC%20200%20-%20ARM%20Assembly.pdf)), characterize these numbers:

* how "big" are they?
* what happens if we try to add `254` and `254`?
* what about `355`, and `420`?

#### `moon_rocks` or `basalt_bonanza`

Here, we've printed a string. Normally, not so daring a feat. But, this is space: the final frontier (or is it the unknown country?). What happens if we mess with our `.data` section:

* the length of the space-saving string or the `.fill`
* what happens if we add or subtract too many numbers from our registers?

> If you didn't get either of the jokes in the previous description add watching Star Trek VI to your weekend plans. I mean, Hamlet also says it somewhere, but it's not as cool as Star Trek.
### Changes to files in `.vscode`

Expand Down
40 changes: 38 additions & 2 deletions gatorgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
options:
regex: 'STRB(\s)+?R[0-7],(\s)+?\[R[0-7]\]'
count: 7
exact: true
- moon_rocks/program.S:
- description: moon_rocks/program.S uses the LDR instruction to load from a memory location to register
category: ARMv6 Assembly
Expand All @@ -86,10 +85,47 @@
fragment: TODO
count: 0
exact: true
- basalt_bonanza/program.S:
- description: basalt_bonanza.program.S contains STRB commands
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: 'STRB(\s|\t)r|R[0-8],(\s|\t)+?[=a-z]+'
count: 2
- basalt_bonanza/program.S:
- description: basalt_bonanza.program.S contains LDRB commands
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: 'LDRB(\s|\t)r|R[0-8],(\s|\t)+?[=a-z]+'
count: 2
- basalt_bonanza/program.S:
- description: basalt_bonanza.program.S contains ADD commands
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: 'ADD(\s|\t)r|R[0-8],r|R[#0-8]'
count: 2
- basalt_bonanza/program.S:
- description: basalt_bonanza.program.S contains SUB commands
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: 'SUB(\s|\t)r|R[0-8],r|R[#0-8]'
count: 2
- basalt_bonanza/program.S:
- description: basalt_bonanza.program.S contains ADD commands
category: ARMv6 Assembly
check: MatchFileRegex
options:
regex: 'BL(\s)+?printf'
count: 1
exact: true
- docs/report.md:
- description: docs/report.md answers all questions
category: Documentation
check: MatchFileFragment
options:
fragment: TODO
count: 0
exact: true
exact: true

0 comments on commit 394bfb1

Please sign in to comment.