AArch64 and x86_64 assembler code

AArch64 .text .globl _start min = 0 /* starting value for the loop index; **note that this is a symbol (constant)**, not a variable */ max = 30 /* loop exits when the index hits this number (loop condition is i<max) * _start: mov x19, min loop: /* Convert loop counter to char */ add x15, x19, 0x30 adr x14, msg+6 mov x12, 10 udiv x13, x19, x12 add x16, x13, 0x30 cmp x16, 0x30 b.eq ones ...