Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (16 sloc) 301 Bytes
# Compare two ints
# C
```c
#include file="compare-ints.c"
```
# Assembly
```s
#include file="compare-ints.s"
```
# Assemble and run
$ gcc compare-ints.s && ./a.out 1 2
less than
$ gcc compare-ints.s && ./a.out 2 1
greater than
$ gcc compare-ints.s && ./a.out 1 1
equal