2 years ago

#52164

test-img

David Pupaza

How to raise a number to a power in assembly x86

So i have two variables a and b and I need to raise a to the power b in assembly code.

I know I can do this by multiplying a by b times in a loop (it only needs to work on 16 bits) but I dont know how to do it with variables.

Thanks in advance :)

assembly

tasm

dosbox

0 Answers

Your Answer

Accepted video resources