Changes for page API контроллеров AZ®
Last modified by Max on 2025/03/02 15:18
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -472,36 +472,36 @@ 472 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 474 475 -== 016: Receivedatablockintobuffer==475 +== **016: Принять блок данных в буфер** == 476 476 477 - Commandcode016.Thecommandsetsthecontrollertoreceiveablockofdataand place it in the buffer.Thenext256writecyclestoDRwillplacethedatatransferredviathe QBUS in the buffer.478 -\\ Exampleprogram:477 +Код команды 016. Команда настраивает контроллер на прием блока данных и помещении его в буфер. Следующие 256 циклов записи в DR поместят данные, переданные через МПИ, в буфер. 478 +\\Пример программы. 479 479 480 480 {{code language="assembler"}} 481 481 ;.................................. 482 482 483 -WrBuf=016; Symbolicnameof the command483 +WrBuf=016; Символическое наименование команды 484 484 485 -; Beforewriting,youneedtoperformthesameactionsas in486 -; pp. 3.1.-3.3.Usually,thisisthesameprogram,487 -; justafterpoint3.3.acheckis performed"What488 -; is required:readingorwriting?"andabranch is made to the489 -; readingorwritingprogram.485 +; Перед записью нужно выполнить те же действия, что и в 486 +; пп. 3.1.-3.3. Обычно, это одна и та же программа, 487 +; просто после пункта 3.3. выполняется проверка "Что 488 +; требуется: чтение или запись?" и разветвление на 489 +; программу чтения или записи. 490 490 491 -; Afterthefragmentinpoint3.3.,theCSRaddress492 -; (177220) remains in R3.WewillassumethatR2containstheaddress in the CPU493 -; memorywheretheblocktobewritten is located.494 -; Theprogramforobtainingthisaddress is not shown.491 +; После фрагмента в п. 3.3. в R3 остался адрес CSR 492 +; (177220). Будем считать, что в R2 находится адрес в 493 +; памяти ЦП, где находится блок, подлежащий записи. 494 +; Программа получения этого адреса не показана. 495 495 496 - MOV #400,R1; Preparing the counter496 + MOV #400,R1; Готовим счетчик 497 497 498 - MOV #WrBuf,(R3)+; Let'sforwardthe command to theCSRand499 - ;switchtheaddressinR3to500 -; DR 498 + MOV #WrBuf,(R3)+; Перешлем команду в CSR и 499 + ; переключим адрес в R3 на 500 + ; DR 501 501 502 -4$: MOV (R2)+,@R3; Let'sforward the next word503 -; data504 - SOB R1,4$; andrepeatthis256times502 +4$: MOV (R2)+,@R3; Перешлем очередное слово 503 + ; данных 504 + SOB R1,4$; и повторим это 256 раз 505 505 ;.................................. 506 506 {{/code}} 507 507