TDT4258 - Lowlevel Programming
For this exercise, we were tasked with writing a palindrome finder in assembly.
ARM Assembly Resources
Source: Azeria Labs
Exercise 2 - Cache Simulator
In this exercise, we were tasked with writing a cache simulator.
This should run on almost any machine with a proper C compiler.
There is a Makefile and a python script included, which builds both release and debug versions of the program, and tests it with some hardcoded values.
Run the tests by executing:
user@<...>/ex2 $ make test
I tried writing a haskell clone of this program just for fun, but I ended up never finishing it.
The code exists within a separate folder.
Exercise 3 - Tetris on Raspberry Pi
NOTE: You will need a Raspberry Pi with a sense hat to run this code.
For this exercise, we were tasked with making an existing tetris program run on a sense hat, by writing directly to a Linux framebuffer, and reading joystick input from the Linux input driver.
Move both the Makefile and the code over to the raspberry pi before running.