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
-
... ... @@ -435,43 +435,42 @@ 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: Starttransferringtheread block==441 +== **015: Начать передачу считанного блока** == 442 442 443 - Thecommandcodeis015.Havingreceivedthis command,thecontrollerisconfiguredtooutputwordbywordthecontentsof the same built-in buffer for256words,whichwillbeoutputsequentiallythroughtheDRregister.Nowaitingisrequired,wesimplysendawordfromDRtosequentialmemorycells 256 times,andthat's it.Iflessthan256wordsare needed(thelastshortenedblock of the file),thentheremaindercansimplybediscarded without reading,resettingthecontrolleratthebeginningofthenextoperation will also reset this remainder.444 -\\ Exampleprogram:443 +Код команды - 015. Получив эту команду, контроллер настраивается на пословную выдачу содержимого того самого встроенного буфера на 256 слов, которые будут выданы последовательно через регистр DR. Никаких ожиданий не требуется, просто пересылаем 256 раз слово из DR в последовательные ячейки памяти, и все. Если нужно меньше, чем 256 слов (последний укороченный блок файла), то остаток можно просто бросить, не считывая, сброс контроллера в начале следующей операции сбросит и этот остаток. 444 +\\Пример программы: 445 445 446 446 {{code language="assembler"}} 447 447 ;.................................. 448 -RdBuf=015; symbolicnameof the command448 +RdBuf=015; символическое наименование команды 449 449 450 -; InR3fromthepreviousfragmentthereis the address of theCSR450 +; В R3 от предыдущего фрагмента остался адрес CSR 451 451 ; (177220) 452 452 453 -; WeassumethatinR2wehavetheaddress of the first word454 -; of memory,wherethereadblockshould be placed.455 -; Theprogramforobtainingthisaddress is not given.453 +; Считаем, что у нас в R2 находится адрес первого слова 454 +; памяти, куда следует разместить прочитанный блок. 455 +; Программа получения этого адреса не приводится. 456 456 457 - MOV #400,R1; Preparetheword counter457 + MOV #400,R1; Готовим счетчик слов 458 458 ; 0400 oct = 256 dec 459 459 460 - MOV #RdBuf,(R3)+; andsendthe command461 -; RdBuf totheCSR.TheaddressinR3willpointtoDR (177222).460 + MOV #RdBuf,(R3)+; и пересылаем команду 461 +; RdBuf в CSR. Адрес в R3 укажет на DR (177222). 462 462 463 -3$: MOV @R3,(R2)+ wewillsendthe next word to464 -; memory465 - SOB R1,3$; andrepeatthis256 (0400)466 - ; times463 +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 - 475 475 == **016: Принять блок данных в буфер** == 476 476 477 477 Код команды 016. Команда настраивает контроллер на прием блока данных и помещении его в буфер. Следующие 256 циклов записи в DR поместят данные, переданные через МПИ, в буфер.