Rev 4076 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4076 | Rev 4225 | ||
---|---|---|---|
Line 73... | Line 73... | ||
73 | int i, fill_h; |
73 | int i, fill_h; |
74 | if (h <= 14) fill_h = h; else fill_h = 14; |
74 | if (h <= 14) fill_h = h; else fill_h = 14; |
75 | for (i=0; i |
75 | for (i=0; i |
76 | DrawBar(x, y+i, w, h-fill_h, col_palette[14-i]); |
76 | DrawBar(x, y+i, w, h-fill_h, col_palette[14-i]); |
77 | }=>>13;>13;>20)>=0) |
77 | } |
78 | > |
78 | |
- | 79 | ||
- | 80 | ||
- | 81 | ||
- | 82 | ||
- | 83 | ||
- | 84 | struct rd_info |
|
- | 85 | { |
|
- | 86 | dword function_number, reserved[4]; |
|
- | 87 | char path[4]; |
|
- | 88 | } rd_info; |
|
- | 89 | ||
- | 90 | #define ALL_RD_CLUSTERS 2847 |
|
- | 91 | int GetFreeRamDiskClusters() |
|
- | 92 | { |
|
- | 93 | dword free_size; |
|
- | 94 | static dword old_free_size; |
|
- | 95 | ||
- | 96 | rd_info.function_number = 15; |
|
- | 97 | strcpy(#rd_info.path, "/rd"); |
|
- | 98 | $mov eax,58 |
|
- | 99 | $mov ebx, #rd_info; |
|
- | 100 | $int 0x40 |
|
- | 101 | if (EAX==0) |
|
- | 102 | { |
|
- | 103 | free_size=ECX; |
|
- | 104 | old_free_size = ECX; |
|
- | 105 | } |
|
- | 106 | else |
|
- | 107 | { |
|
- | 108 | debugi(EAX); |
|
- | 109 | free_size = old_free_size; |
|
- | 110 | } |
|
- | 111 | return free_size; |
|
- | 112 | }=>>13;>13;>20)>=0) |
|
- | 113 | > |
|
79 | 114 |