Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 24 lines (16 sloc) 0.301 kB
54f7bb5 @dharmatech add compare-ints
authored
1
2 # Compare two ints
3
4 # C
5
6 ```c
7 #include file="compare-ints.c"
8 ```
9
10 # Assembly
11
12 ```s
13 #include file="compare-ints.s"
14 ```
15
16 # Assemble and run
17
18 $ gcc compare-ints.s && ./a.out 1 2
19 less than
20 $ gcc compare-ints.s && ./a.out 2 1
21 greater than
22 $ gcc compare-ints.s && ./a.out 1 1
23 equal
Something went wrong with that request. Please try again.