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

From version 2.28
edited by Max
on 2025/02/25 13:58
Change comment: There is no comment for this version
To version 2.21
edited by Max
on 2025/02/25 13:31
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -435,73 +435,72 @@
435 435  == 014: Unmount disk ==
436 436  
437 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.
438 -[[AZUMNT utility example>>url:https://forum.maxiol.com/index.php?showtopic=5605&st=0&p=59418&#entry59418]]
438 +[[**//пример утилиты AZUMNT//**>>url:https://forum.maxiol.com/index.php?showtopic=5605&st=0&p=59418&#entry59418]]
439 439  
440 440  
441 -== 015: Start transferring the read block ==
441 +== **015: Начать передачу считанного блока** ==
442 442  
443 -The command code is 015. Having received this command, the controller is configured to output word by word the contents of the same built-in buffer for 256 words, which will be output sequentially through the DR register. No waiting is required, we simply send a word from DR to sequential memory cells 256 times, and that's it. If less than 256 words are needed (the last shortened block of the file), then the remainder can simply be discarded without reading, resetting the controller at the beginning of the next operation will also reset this remainder.
444 -\\Example program:
443 +Код команды - 015. Получив эту команду, контроллер настраивается на пословную выдачу содержимого того самого встроенного буфера на 256 слов, которые будут выданы последовательно через регистр DR. Никаких ожиданий не требуется, просто пересылаем 256 раз слово из DR в последовательные ячейки памяти, и все. Если нужно меньше, чем 256 слов (последний укороченный блок файла), то остаток можно просто бросить, не считывая, сброс контроллера в начале следующей операции сбросит и этот остаток.
444 +\\Пример программы:
445 445  
446 446  {{code language="assembler"}}
447 447  ;..................................
448 -RdBuf=015; symbolic name of the command
448 +RdBuf=015; символическое наименование команды
449 449  
450 -; In R3 from the previous fragment there is the address of the CSR
450 +; В R3 от предыдущего фрагмента остался адрес CSR
451 451  ; (177220)
452 452  
453 -; We assume that in R2 we have the address of the first word
454 -; of memory, where the read block should be placed.
455 -; The program for obtaining this address is not given.
453 +; Считаем, что у нас в R2 находится адрес первого слова
454 +; памяти, куда следует разместить прочитанный блок.
455 +; Программа получения этого адреса не приводится.
456 456  
457 - MOV #400,R1; Prepare the word counter
457 + MOV #400,R1; Готовим счетчик слов
458 458   ; 0400 oct = 256 dec
459 459  
460 - MOV #RdBuf,(R3)+; and send the command
461 -; RdBuf to the CSR. The address in R3 will point to DR (177222).
460 + MOV #RdBuf,(R3)+; и пересылаем команду
461 +; RdBuf в CSR. Адрес в R3 укажет на DR (177222).
462 462  
463 -3$: MOV @R3,(R2)+we will send the next word to
464 -; memory
465 - SOB R1,3$; and repeat this 256 (0400)
466 - ; times
463 +3$: MOV @R3,(R2)+;перешлем очередное слово в
464 + ; память
465 + SOB R1,3$; и повторим это 256 (0400)
466 + ; раз
467 467  ;..................................
468 468  {{/code}}
469 469  
470 -That's it, reading is complete.
470 +Всё, чтение закончено.
471 +\\Для записи наоборот, требуется сначала перенести весь блок данных из памяти ЦП в контроллер и потом выдать команду "Записать содержимое буфера на диск"
471 471  
472 -To write the opposite way, you first need to transfer the entire data block from the CPU memory to the controller and then issue the command "Write the contents of the buffer to disk"
473 473  
474 +== **016: Принять блок данных в буфер** ==
474 474  
475 -== 016: Receive data block into buffer ==
476 +Код команды 016. Команда настраивает контроллер на прием блока данных и помещении его в буфер. Следующие 256 циклов записи в DR поместят данные, переданные через МПИ, в буфер.
477 +\\Пример программы.
476 476  
477 -Command code 016. The command sets the controller to receive a block of data and place it in the buffer. The next 256 write cycles to DR will place the data transferred via the QBUS in the buffer.
478 -\\Example program:
479 -
480 480  {{code language="assembler"}}
481 481  ;..................................
482 482  
483 -WrBuf=016; Symbolic name of the command
482 +WrBuf=016; Символическое наименование команды
484 484  
485 -; Before writing, you need to perform the same actions as in
486 -; pp. 3.1.-3.3. Usually, this is the same program,
487 -; just after point 3.3. a check is performed "What
488 -; is required: reading or writing?" and a branch is made to the
489 -; reading or writing program.
484 +; Перед записью нужно выполнить те же действия, что и в
485 +; пп. 3.1.-3.3. Обычно, это одна и та же программа,
486 +; просто после пункта 3.3. выполняется проверка "Что
487 +; требуется: чтение или запись?" и разветвление на
488 +; программу чтения или записи.
490 490  
491 -; After the fragment in point 3.3., the CSR address
492 -; (177220) remains in R3. We will assume that R2 contains the address in the CPU
493 -; memory where the block to be written is located.
494 -; The program for obtaining this address is not shown.
490 +; После фрагмента в п. 3.3. в R3 остался адрес CSR
491 +; (177220). Будем считать, что в R2 находится адрес в
492 +; памяти ЦП, где находится блок, подлежащий записи.
493 +; Программа получения этого адреса не показана.
495 495  
496 - MOV #400,R1; Preparing the counter
495 + MOV #400,R1; Готовим счетчик
497 497  
498 - MOV #WrBuf,(R3)+; Let's forward the command to the CSR and
499 -; switch the address in R3 to
500 -; DR
497 + MOV #WrBuf,(R3)+; Перешлем команду в CSR и
498 + ; переключим адрес в R3 на
499 + ; DR
501 501  
502 -4$: MOV (R2)+,@R3; Let's forward the next word
503 -; data
504 - SOB R1,4$; and repeat this 256 times
501 +4$: MOV (R2)+,@R3; Перешлем очередное слово
502 + ; данных
503 + SOB R1,4$; и повторим это 256 раз
505 505  ;..................................
506 506  {{/code}}
507 507