Last modified by Max on 2025/03/02 15:18

From version 2.21
edited by Max
on 2025/02/25 13:31
Change comment: (Autosaved)
To version 2.14
edited by Max
on 2025/02/25 12:56
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -382,50 +382,46 @@
382 382  Command code 013, the command reads the TOC record into the internal memory area and switches the pointer to it for data transfer via DR. The TOC must be open before this.
383 383  
384 384  The procedure is as follows:
385 -• Reset the controller.
386 -• Issue the command "Read the table of contents entry" to the CSR and wait for it to finish.
387 -• Issue the command "Read from controller memory" to the CSR
388 -• Read 11 words of the table of contents entry from DR
389 -\\The table of contents entry has the format:
390 -
391 -(% style="width:686px" %)
392 -|=(% style="width: 136px;" %)Offset (octal)|=(% style="width: 305px;" %)Name|=(% style="width: 242px;" %)Value
393 -|(% style="width:136px" %)0|(% style="width:305px" %)fSize|(% style="width:242px" %)File size in bytes, low word
394 -|(% style="width:136px" %)2|(% style="width:305px" %)fSize|(% style="width:242px" %)File size in bytes, high word
395 -|(% style="width:136px" %)4|(% style="width:305px" %)fDate|(% style="width:242px" %)Date in MS-DOS format
396 -|(% style="width:136px" %)6|(% style="width:305px" %)fTime|(% style="width:242px" %)Time in MS-DOS format
397 -|(% style="width:136px" %)10|(% style="width:305px" %)fAttr|(% style="width:242px" %)Attributes 1 byte
398 -|(% style="width:136px" %)10|(% style="width:305px" %)fName|(% style="width:242px" %)NAME.FILE TYPE, 8+1+3+1 = 13 bytes
399 -
400 -
401 -The offsets are specified in octal. The formula in the fName line means that there must first be a name, maximum of eight characters, then a period, then a type, up to three characters, and a terminating zero byte 0x00. If the type is not specified, the period is also not needed.
402 -\\File attributes in fAttr byte (octal):
385 +• Сбросить контроллер.
386 +• Выдать в CSR команду "Прочитать запись оглавления" и дождаться ее окончания.
387 +• Выдать в CSR команду "Прочитать из памяти контроллера"
388 +• Прочитать из DR 11 слов записи оглавления
389 +\\Запись оглавления имеет формат:
390 +\\См. Имя Значение
391 +0 fSize Размер файла в байтах, младшее слово
392 +2 старшее слово
393 +4 fDate Дата в формате MS-DOS
394 +6 fTime Время в формате MS-DOS
395 +10 fAttr Атрибуты 1 байт
396 +11 fName ИМЯ.ТИП файла, 8+1+3+1 = 13 байт
397 +\\Смещения указаны восьмеричные. Формула в строке fName означает, что там сначала должно быть имя, максимально из восьми символов, далее должна быть точка, далее тип, до трёх символов, и завершающий нулевой байт 0х00. Если тип не указан, точка тоже не нужна.
398 +\\Атрибуты файлов в байте fAttr (восьмеричные):
403 403  \\001 - Read Only
404 404  002 - Hidden
405 405  004 - System
406 406  020 - Directory
407 407  040 - Archive
408 -\\Example program
404 +\\Пример программы.
409 409  
410 410  {{code language="assembler"}}
411 411  ;......................................
412 -RdDir = 013; command code "Read table of contents entry"
408 +RdDir = 013; код команды "Читать запись оглавления"
413 413  RdBuf = 015
414 414  
415 415   MOV #AZ$CSR,R3
416 416  
417 417  15$: CLR @R3;
418 - TSTB @R3; Reset the controller
414 + TSTB @R3; Сбросим контроллер
419 419   BPL 15$;
420 420  
421 - MOV #RdDir,@R3; Ask the controller
422 -16$: TSTB @R3; to read into its memory
423 - BPL 16$; table of contents entry
417 + MOV #RdDir,@R3; Попросим контроллер
418 +16$: TSTB @R3; прочитать в свою память
419 + BPL 16$; запись оглавления
424 424  
425 425   MOV @RdBuf,(R3)+;
426 - MOV DIRREC,R2; And transfer it to itself in
427 - MOV #11.,R1; memory area, pointer
428 -17$: MOV @R3,(R2)+; to which lies in cell
422 + MOV DIRREC,R2; И перенесем ее к себе в
423 + MOV #11.,R1; область памяти, указатель
424 +17$: MOV @R3,(R2)+; на которую лежит в ячейке
429 429   SOB R1,17$; DIRREC.
430 430  
431 431  ;......................................
... ... @@ -432,9 +432,9 @@
432 432  {{/code}}
433 433  
434 434  
435 -== 014: Unmount disk ==
431 +== **014: Размонтировать диск** ==
436 436  
437 -Command code 014, to unmount the disk, you should reset the controller, send the AZ drive number to the controller DR, which should be unmounted, and send the 014 code to the controller CSR, then wait for the operation to complete (it takes a long time) and check for an error. An error is issued if the drive has not been mounted.
433 +Код команды 014, чтобы размонтировать диск, следует сбросить контроллер, переслать в DR контроллера номер привода AZ, который следует размонтировать, и послать в CSR контроллера код 014, после чего дождаться окончания операции (она длительная) и проверить на ошибку. Ошибка выдается, если привод не был смонтирован.
438 438  [[**//пример утилиты AZUMNT//**>>url:https://forum.maxiol.com/index.php?showtopic=5605&st=0&p=59418&#entry59418]]
439 439  
440 440