Booping around with kauffman assembly basics
https://www-users.cse.umn.edu/~kauffman/2021/06-assembly-basics.pdf
This commit is contained in:
parent
9d36627e87
commit
9109e3a3dc
1
umn-kauffman/.gitignore
vendored
Normal file
1
umn-kauffman/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.s
|
7
umn-kauffman/exchange.c
Normal file
7
umn-kauffman/exchange.c
Normal 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
11
umn-kauffman/goop.c
Normal 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
9
umn-kauffman/mstore.c
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user