ChrisOS/Referência de fonte: SYS/DRV/INSTALL.CC
Referência de fonte: SYS/DRV/INSTALL.CC
Registro determinístico da fonte. O conteúdo completo do arquivo é reproduzido abaixo; esta página não substitui a interpretação arquitetural dos capítulos autorais.
Identidade do arquivo
| Campo |
Valor |
| Path |
SYS/DRV/INSTALL.CC |
| Lines |
66 |
| Bytes |
1352 |
| SHA-256 |
4fdabbd026fd0e8b841a399737ab3e052b6b57eca176824a9f6d25f78e06ea44 |
| ChrisOS revision |
da3df29cb397932c43d32373871fb9380e688ade |
Dependências sintáticas detectadas
| Linha |
Include |
| — |
Nenhum include de preprocessor detectado. |
Símbolos detectados
Fonte completa
O bloco seguinte é o arquivo textual integral na revisão indicada. Não há elisão, abreviação ou paráfrase.
| void main() {
int i;
int n;
int k;
int f;
int y;
viewport(280, 200);
text(4, 4, "Install ChrisOS", 0x00E0FFE0);
n = disk_count();
i = 0;
y = 20;
while (i < n) {
k = disk_kind(i);
f = disk_flags(i);
if (k == 6) {
i = i + 1;
} else {
if (k == 1) {
text(4, y, "ATA", 0x00E0E0E0);
}
if (k == 2) {
text(4, y, "AHCI", 0x00E0E0E0);
}
if (k == 3) {
text(4, y, "NVMe", 0x00E0E0E0);
}
if (k == 4) {
text(4, y, "VirtIO", 0x00E0E0E0);
}
if (k == 5) {
text(4, y, "USB", 0x00E0E0E0);
}
if (f != 0) {
text(80, y, "SYSTEM", 0x00FF8080);
}
y = y + 14;
i = i + 1;
}
}
text(4, 160, "keys 1-9 pick target", 0x00C0C0C0);
while (1) {
if (key(2) == 1) {
if (disk_install(1) == 0) {
text(4, 176, "installed", 0x00E0FFE0);
} else {
text(4, 176, "refused", 0x00FF8080);
}
}
if (key(3) == 1) {
if (disk_install(2) == 0) {
text(4, 176, "installed", 0x00E0FFE0);
} else {
text(4, 176, "refused", 0x00FF8080);
}
}
if (key(4) == 1) {
if (disk_install(3) == 0) {
text(4, 176, "installed", 0x00E0FFE0);
} else {
text(4, 176, "refused", 0x00FF8080);
}
}
wait(80);
}
}
|
Papel deste registro
O atlas garante rastreabilidade arquivo-a-arquivo. Responsabilidade, invariantes, ownership, concorrência, segurança, desempenho e interação entre subsistemas pertencem aos capítulos autorais e devem citar este arquivo quando aplicável.
Registro do documento
ID: source-4fdabbd026fd0e8b
Reviewed source: da3df29cb397
Class: generated-source-reference