Today: Let's print numbers! Maybe we could get numbers from the user too! A Print Number function: write requires a memory location NOT a register with a value in it Actually makes it kind of a pain to call So what we need to do: Convert our number to ASCII and put it in memory Call write on that memory We'll allocate memory on the stack Subtract from the stack pointer Convert to ASCII in a loop Figure out the digit, add 48 Why call write just once Think about clobbering registers If we have time: How about reading in a number? read, into a buffer Convert from ASCII into an actual number Active Learning: Something involving using one or the other Maybe a loop that counts up until you use ctrl+c? Next time: project 2 files records (we'll save and restore something or other)