CS 220 - More Chapter 2 Solutions - Functions
2.19.1 part b:
Here is my solution
. It is not the only one. The
positive
function takes 12 instructions to run if the return value is 0, otherwise it takes 13 instructions.
2.22.1 part a:
68 65 6C 6C 6F 20 77 6F 72 6C 64
2.22.1 part b:
48 49 50 51 52 53 54 55 56 57
2.25.1:
Here is my solution
.