Rev 4666 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4666 | Rev 5483 | ||
---|---|---|---|
Line 163... | Line 163... | ||
163 | AL=symbol; |
163 | AL=symbol; |
164 | } |
164 | }='f'))>='F'))>='9'))>2;j++) |
165 | 165 | > |
|
Line 166... | Line -... | ||
166 | - | ||
167 | :dword ConvertSize(unsigned int bytes) |
- | |
168 | { |
- | |
169 | unsigned char size_prefix[8], size_nm[4]; |
- | |
170 | if (bytes>=1073741824) strcpy(#size_nm, " Gb"); |
- | |
171 | else if (bytes>=1048576) strcpy(#size_nm, " Mb"); |
- | |
172 | else if (bytes>=1024) strcpy(#size_nm, " Kb"); |
- | |
173 | else strcpy(#size_nm, " b "); |
- | |
174 | while (bytes>1023) bytes/=1024; |
- | |
175 | itoa_(#size_prefix, bytes); |
- | |
176 | strcat(#size_prefix, #size_nm); |
- | |
177 | return #size_prefix; |
- | |
178 | }='f'))>='F'))>='9'))>2;j++) |
166 | >=>=>=> |