Booping around with kauffman assembly basics

https://www-users.cse.umn.edu/~kauffman/2021/06-assembly-basics.pdf
This commit is contained in:
Dan Buch 2023-11-08 12:42:46 -05:00
parent 9d36627e87
commit 9109e3a3dc
Signed by: meatballhat
GPG Key ID: A12F782281063434
4 changed files with 28 additions and 0 deletions

1
umn-kauffman/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*.s

7
umn-kauffman/exchange.c Normal file
View File

@ -0,0 +1,7 @@
long
exchange(long *xp, long y)
{
long x = *xp;
*xp = y;
return x;
}

11
umn-kauffman/goop.c Normal file
View File

@ -0,0 +1,11 @@
#include <stdio.h>
int
main(int argc, char *argv[])
{
for (int i = argc; i > -1; i--) {
printf("(%d): %s\n", i, argv[i]);
}
return 0;
}

9
umn-kauffman/mstore.c Normal file
View File

@ -0,0 +1,9 @@
long
mult2(long a, long b);
void
multstore(long x, long y, long *dest)
{
long t = mult2(x, y);
*dest = t;
}