git @ Cat's Eye Technologies ZOWIE / b672b70
Change example so that its expected output falls in ASCII range. Chris Pressey 2 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
00 ; Compute a factorial, in ZOWIE
11 ; This example source is in the public domain.
22
3 ; Expected output is MODIFIER LETTER TRIANGULAR COLON (Unicode character 720).
3 ; Expected output is LATIN SMALL LETTER X (Unicode character 120).
44 ; NOTE: this code is also able to properly compute 0! = 1.
55
6 MOV R11, 6 ; let's find 6!
6 MOV R11, 5 ; let's find 5!
77 MOV R10, 1 ; accumulator
88
99 MOV R8, R11 ; increase multiplicand