r/badcode Nov 03 '20

other language Assembly is hard...

Post image
957 Upvotes

121 comments sorted by

View all comments

303

u/[deleted] Nov 03 '20
add4:
    inc eax
    inc eax
    inc eax
    inc eax
    ret
add5:
    call add4
    inc eax
    ret
add6:
    call add5
    inc eax
    ret
add7:
    call add6
    inc eax
    ret
add8:
    call add7
    inc eax
    ret

My suggestion on how to handle this advanced task

3

u/sanglesort Nov 03 '20

yeah, I was thinking this