Function definition: Difference between revisions

m
Line 137:
 
<lang asm>start:
mov axal, 0x04000x04
mov bxbl, 0x05000x05
call sumdomultiply
;at this point in execution, the AX register contains 0x0900.
;more code goes here, ideally with some sort of guard against "fallthrough" into sum.
Line 145:
; somewhere far away from start
sum:
mul bl ;outputs 0x0014 to ax
add ax,bx
ret</lang>
 
1,489

edits