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
-
... ... @@ -113,46 +113,46 @@ 113 113 114 114 115 115 To perform these actions, you must send the required part of the block number bits to DR and then send the command code to CSR, after which you must check for an error. The commands are instantaneous, i.e. they are executed in one QBUS access cycle. 116 -\\Example of a program - 16-bit version : 116 +\\Example of a program - 16-bit version block number: 117 117 118 118 {{code language="assembler"}} 119 119 ;....................................... 120 120 121 -SetBlk=002; Символическоенаименованиекоманды122 -; " Установитьмладшие16разрядовномераблока"121 +SetBlk=002; Symbolic name of the command 122 +; "Set the lower 16 bits of the block number" 123 123 124 -; Отпредыдущегофрагмента в R3 остался адресDR125 -; (177222) 126 -; Считаем,чтовячейкесметкойBLCURнаходится16-127 -; разрядныйдисковыйадрес(номерблока,подлежащего128 -; вводуиливыводу).Процедураполученияэтогономеране129 -; показана124 +; The address DR 125 +; (177222) remained in R3 from the previous fragment 126 +; We assume that the cell labeled BLCUR contains the 16- 127 +; bit disk address (the block number to be 128 +; input or output). The procedure for obtaining this number is not 129 +; shown 130 130 131 - MOV BLCUR,@R3; ПомещаемвDRномерблока,132 - ; подлежащего обмену.131 + MOV BLCUR,@R3;We place the block number to be exchanged in DR. 132 + 133 133 134 - MOV #SetBlk,-(R3); ПосылаемкомандувCSR135 -; незабываем,адресвR3передпересылкойуменьшится на136 -; 2 итакимостанется134 + MOV #SetBlk,-(R3); We send the command to the CSR 135 +; do not forget that the address in R3 will decrease by 136 +; 2 before sending and will remain so 137 137 138 - TST @R3; Проверяемнаошибку138 + TST @R3; We check for an error 139 139 140 140 BMI ERR3 141 141 142 -; В32-разрядномвариантетежедействияследует143 -; повторитьдлястарших16разрядов(на самом деле,144 -; старших7,остальныедолжныбытьнулями,ибомаксимум145 -; размерапсевдодиска-4Г)дисковогоадреса.142 +; In the 32-bit version, the same actions should be 143 +; repeat for the senior 16 bits (actually, 144 +; senior 7, the rest should be zeros, because the maximum 145 +; size of a pseudo disk is 4G) of the disk address. 146 146 147 -; Обратитевнимание,чтовR3осталсяадресCSR,ане148 -; DR, каквдвухпредыдущихфрагментах.Этосделано149 -; специально.147 +; Note that in R3 the CSR address remains, and not 148 +; DR, as in the two previous fragments. This is done 149 +; on purpose. 150 150 151 151 ;....................................... 152 152 {{/code}} 153 153 154 154 155 -== **003:ОткрытьоглавлениеHFS**==155 +== 003: Open HFS Table of Contents == 156 156 157 157 Последовательность действий 158 158 \\• [[сбросить контроллер>>doc:||anchor="H000:A042143144043E44143A43E43D44244043E43B43B435440430"]]