; --------------------------------------------------
; module23.asm
;
; teaching a machine to think
; --------------------------------------------------
...
; artificial neural network
mov rax, num1
mov rbx, num2
.learn_add: mov rcx, rax
xor rax, rbx
and rcx, rbx
shl rcx, 1
mov rbx, rcx
jnz .learn_add
mov result, rax
...