Question: How do i assemble this code in DOSbox!? help!!! please show me step by step assembly code: LCO: string %d main: ; main method pushq
assembly code: LCO: string "%d" main: ; main method pushq %rbp movq %rsp, %rbp subq $ 16, %rsp movl $0,-4(%rbp) movl $5,-8(%rbp) L3 : cmpl $10,-80%rbp) Jg .L2 mov|-8(%rbp), %eax addl %eax,-4(%rbp) addl $1,-8(%rbp) mp .L3 L2: mov|-4(%rbp), %eax movl %eax, %esi mov! $.LC0. %edi movl $0, %eax call printf movl $0, %eax leave ret
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
