Some Problems
Notes
- Multiplication
- There are two forms of integer multiplication
- mul is for unsigned integer multiplication
- imul is for signed integer multiplication
- Both support the extend format
- Place a value in the a register
-
mul operand
- The result is stored in the *a register and the *d register.
- This allows for the full range of multiplication for two n bit numbers -> one 2n bit number
-
- imul also supports a multiple argument format
-
imul src *a = *a * src
-
imul dest, src dest = dest * src
-
imul dest, src, imm dest = src * imm
- Write a program that produces the n! table to the accuracy of the machine
- fact.asm
- Write a program that produces the first ten integer powers of 1 - 5
- powers.asm
- For now: indexing [base address + register + constant] will index into an array.
- Write a program that will read in a string and convert it to lower case letters.
- wordFixer.asm