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
-
... ... @@ -388,44 +388,49 @@ 388 388 • Read 11 words of the table of contents entry from DR 389 389 \\The table of contents entry has the format: 390 390 391 -(% style="width:686px" %) 392 -|=(% style="width: 136px;" %)Offset (octal)|=(% style="width: 305px;" %)Name|=(% style="width: 242px;" %)Value 393 -|(% style="width:136px" %)0|(% style="width:305px" %)fSize|(% style="width:242px" %)File size in bytes, low word 394 -|(% style="width:136px" %)2|(% style="width:305px" %)fSize|(% style="width:242px" %)File size in bytes, high word 395 -|(% style="width:136px" %)4|(% style="width:305px" %)fDate|(% style="width:242px" %)Date in MS-DOS format 396 -|(% style="width:136px" %)6|(% style="width:305px" %)fTime|(% style="width:242px" %)Time in MS-DOS format 397 -|(% style="width:136px" %)10|(% style="width:305px" %)fAttr|(% style="width:242px" %)Attributes 1 byte 398 -|(% style="width:136px" %)10|(% style="width:305px" %)fName|(% style="width:242px" %)NAME.FILE TYPE, 8+1+3+1 = 13 bytes 391 +|= |= |= 392 +| | | 393 +| | | 394 +| | | 395 +| | | 396 +| | | 399 399 400 400 401 -The offsets are specified in octal. The formula in the fName line means that there must first be a name, maximum of eight characters, then a period, then a type, up to three characters, and a terminating zero byte 0x00. If the type is not specified, the period is also not needed. 402 -\\File attributes in fAttr byte (octal): 399 +Смещение Имя Значение 400 +0 fSize Размер файла в байтах, младшее слово 401 +2 старшее слово 402 +4 fDate Дата в формате MS-DOS 403 +6 fTime Время в формате MS-DOS 404 +10 fAttr Атрибуты 1 байт 405 +11 fName ИМЯ.ТИП файла, 8+1+3+1 = 13 байт 406 +\\Смещения указаны восьмеричные. Формула в строке fName означает, что там сначала должно быть имя, максимально из восьми символов, далее должна быть точка, далее тип, до трёх символов, и завершающий нулевой байт 0х00. Если тип не указан, точка тоже не нужна. 407 +\\Атрибуты файлов в байте fAttr (восьмеричные): 403 403 \\001 - Read Only 404 404 002 - Hidden 405 405 004 - System 406 406 020 - Directory 407 407 040 - Archive 408 -\\ Exampleprogram413 +\\Пример программы. 409 409 410 410 {{code language="assembler"}} 411 411 ;...................................... 412 -RdDir = 013; commandcode"Readtableof contents entry"417 +RdDir = 013; код команды "Читать запись оглавления" 413 413 RdBuf = 015 414 414 415 415 MOV #AZ$CSR,R3 416 416 417 417 15$: CLR @R3; 418 - TSTB @R3; Resetthe controller423 + TSTB @R3; Сбросим контроллер 419 419 BPL 15$; 420 420 421 - MOV #RdDir,@R3; Askthe controller422 -16$: TSTB @R3; toreadintoits memory423 - BPL 16$; tableof contents entry426 + MOV #RdDir,@R3; Попросим контроллер 427 +16$: TSTB @R3; прочитать в свою память 428 + BPL 16$; запись оглавления 424 424 425 425 MOV @RdBuf,(R3)+; 426 - MOV DIRREC,R2; Andtransferittoitselfin427 - MOV #11.,R1; memoryarea,pointer428 -17$: MOV @R3,(R2)+; towhichliesincell431 + MOV DIRREC,R2; И перенесем ее к себе в 432 + MOV #11.,R1; область памяти, указатель 433 +17$: MOV @R3,(R2)+; на которую лежит в ячейке 429 429 SOB R1,17$; DIRREC. 430 430 431 431 ;...................................... ... ... @@ -432,9 +432,9 @@ 432 432 {{/code}} 433 433 434 434 435 -== 014: Unmountdisk==440 +== **014: Размонтировать диск** == 436 436 437 - Commandcode014,tounmountthe disk,youshouldreset the controller,sendtheAZ drive number to the controllerDR,whichshouldbeunmounted,andsendthe014codetothe controllerCSR,thenwaitfortheoperationtocomplete(ittakes a long time)andcheckforan error.Anerrorisissuedifthedrive has not been mounted.442 +Код команды 014, чтобы размонтировать диск, следует сбросить контроллер, переслать в DR контроллера номер привода AZ, который следует размонтировать, и послать в CSR контроллера код 014, после чего дождаться окончания операции (она длительная) и проверить на ошибку. Ошибка выдается, если привод не был смонтирован. 438 438 [[**//пример утилиты AZUMNT//**>>url:https://forum.maxiol.com/index.php?showtopic=5605&st=0&p=59418&#entry59418]] 439 439 440 440