Change example so that its expected output falls in ASCII range.
Chris Pressey
2 years ago
0 | 0 | ; Compute a factorial, in ZOWIE |
1 | 1 | ; This example source is in the public domain. |
2 | 2 | |
3 | ; Expected output is MODIFIER LETTER TRIANGULAR COLON (Unicode character 720). | |
3 | ; Expected output is LATIN SMALL LETTER X (Unicode character 120). | |
4 | 4 | ; NOTE: this code is also able to properly compute 0! = 1. |
5 | 5 | |
6 | MOV R11, 6 ; let's find 6! | |
6 | MOV R11, 5 ; let's find 5! | |
7 | 7 | MOV R10, 1 ; accumulator |
8 | 8 | |
9 | 9 | MOV R8, R11 ; increase multiplicand |