This shows you the differences between two versions of the page.
converting_20a_20number_20to_20a_20string [2018/03/31 14:19] 127.0.0.1 external edit |
converting_20a_20number_20to_20a_20string [2018/04/13 11:37] (current) richardrussell |
||
---|---|---|---|
Line 10: | Line 10: | ||
pop eax | pop eax | ||
mov byte [edx+ecx],0 | mov byte [edx+ecx],0 | ||
- | On completion a NUL-terminated string is stored in the supplied buffer.\\ \\ To illustrate the use of this code here is a complete program which prints the value of PI using assembly language:\\ | + | On completion a NUL-terminated string is stored in the supplied buffer.\\ \\ To illustrate the use of this code here is a complete program which prints the value of PI using assembly language: |
+ | |||
+ | <code bb4w> | ||
DIM Buffer% 255, P% 100, L% -1 | DIM Buffer% 255, P% 100, L% -1 | ||
[OPT 10 | [OPT 10 | ||
Line 37: | Line 39: | ||
CALL ppi | CALL ppi | ||
+ | </code> | ||
+ |