CPSC 2310 - DAY 9 SEPTEMBER 12, 2016 ================================================================================ .type main, %function - may be necessary on RPi push {lr} - save the link register, useful if printing out, saves the return statement. cmp r0, r1 - sets all condition flags ble comp2 ldr r0, =fmt bl printf mov r0, #0 pop {pc} .section .rodata .align 2 fmt: .ascii "\nsum = %d\n\n"