I hava a question regarding assembly. How could I take a number from register and find out how many hundreds, tens and ones it has. For example a number 412 has 4 hundreds 1 dozens i 2ones. Ive tried with looping a sub with a BRMI branch, but the problem is how could I LDI a number like 412 in a 8bit reg. Also how could I potentiate a register to a power of 3.
Thank you for any given help