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

From version 1.2
edited by Max
on 2025/02/25 10:51
Change comment: (Autosaved)
To version 1.3
edited by Max
on 2025/02/25 10:56
Change comment: (Autosaved)

Summary

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 остался адрес DR
125 -; (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); Посылаем команду в CSR
135 -; не забываем, адрес в 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"]]