w1.2: assginment1.1

This commit is contained in:
2024-09-14 22:35:24 +02:00
parent 03bb6650dd
commit 5e4222e130
7 changed files with 44 additions and 0 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

View File

@@ -0,0 +1,15 @@
/* main.c simple program to test assembler program */
#include <stdio.h>
extern int test(int a, int b);
int main(void)
{
extern void initialise_monitor_handles(void);
initialise_monitor_handles();
int a = test(3, 5);
printf("Result of test(3, 5) = %d\n", a);
return 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -0,0 +1,9 @@
.cpu cortex-m4
.thumb
.syntax unified
.globl test
.text
.thumb_func
test:
ADD.N R0, R0, R1
BX.N LR

View File

@@ -0,0 +1,20 @@
# Assembly Assignment
## opdrachten
Ik moest de volgende assignment maken:
- Assignment 1: Testing a simple LEGv7 Pinky program
- Assignment 2: Writeting a simple multiplication program
- Assignment 5: A smarter tail recursive multiply algorithm
- Assignment 7: A smarter power algorithm
## Testing a simple LEGv7 Pinky program
Er is een project gegeven die tegevoerd en getest moet worden. De eerste keer dat ik door de stappen heen ging kreeg een een error dat de openOCD.exe fout ging. Dit is logiesh voor mij, omdat ik linux gebruikt als OS en .exe alleen voor Windows zijn.
![openOCD error](assignment1/first_error.png)
Het opnieuw selecteeren van de OpenOCD debug probe in het 'Debug Configurations' venster werdt de linux variant corect ingesteld en werkte het.
Voor de zekerheid heb ik het nog een keer geprobeerd terwel ik alle weizigingen in het project bij hou ik git. Hier zag ik dat er instellingen aangepast werden die er niet uitzaken dat aangepast moet worden

BIN
lab1.1/opdr_1_1.zip Normal file

Binary file not shown.