Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
string 0; \use zero-terminated string convention
|
||||
code Text=12;
|
||||
|
||||
func StrLen(A); \Return number of characters in an ASCIIZ string
|
||||
char A;
|
||||
int I;
|
||||
for I:= 0 to -1>>1-1 do
|
||||
if A(I) = 0 then return I;
|
||||
|
||||
proc IncStr(S); \Increment a numeric string
|
||||
char S;
|
||||
int I;
|
||||
[for I:= StrLen(S)-1 downto 0 do
|
||||
[S(I):= S(I)+1;
|
||||
if S(I) > ^9 then S(I):= S(I)-10 else return;
|
||||
];
|
||||
];
|
||||
|
||||
char Str;
|
||||
[Str:= "0123999999999"; \MSD first (big endian)
|
||||
IncStr(Str); IncStr(Str);
|
||||
Text(0, Str);
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue