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

From version 2.21
edited by Max
on 2025/02/25 13:31
Change comment: (Autosaved)
To version 2.47
edited by Max
on 2025/02/25 15:12
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -435,93 +435,94 @@
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//**>>url:https://forum.maxiol.com/index.php?showtopic=5605&st=0&p=59418&#entry59418]]
438 +[[AZUMNT utility example>>url:https://forum.maxiol.com/index.php?showtopic=5605&st=0&p=59418&#entry59418]]
439 439  
440 440  
441 -== **015: Начать передачу считанного блока** ==
441 +== 015: Start transferring the read block ==
442 442  
443 -Код команды - 015. Получив эту команду, контроллер настраивается на пословную выдачу содержимого того самого встроенного буфера на 256 слов, которые будут выданы последовательно через регистр DR. Никаких ожиданий не требуется, просто пересылаем 256 раз слово из DR в последовательные ячейки памяти, и все. Если нужно меньше, чем 256 слов (последний укороченный блок файла), то остаток можно просто бросить, не считывая, сброс контроллера в начале следующей операции сбросит и этот остаток.
444 -\\Пример программы:
443 +The command code is 015. Having received this command, the controller is configured to output word by word the contents of the same built-in buffer for 256 words, which will be output sequentially through the DR register. No waiting is required, we simply send a word from DR to sequential memory cells 256 times, and that's it. If less than 256 words are needed (the last shortened block of the file), then the remainder can simply be discarded without reading, resetting the controller at the beginning of the next operation will also reset this remainder.
444 +\\Example program:
445 445  
446 446  {{code language="assembler"}}
447 447  ;..................................
448 -RdBuf=015; символическое наименование команды
448 +RdBuf=015; symbolic name of the command
449 449  
450 -; В R3 от предыдущего фрагмента остался адрес CSR
450 +; In R3 from the previous fragment there is the address of the CSR
451 451  ; (177220)
452 452  
453 -; Считаем, что у нас в R2 находится адрес первого слова
454 -; памяти, куда следует разместить прочитанный блок.
455 -; Программа получения этого адреса не приводится.
453 +; We assume that in R2 we have the address of the first word
454 +; of memory, where the read block should be placed.
455 +; The program for obtaining this address is not given.
456 456  
457 - MOV #400,R1; Готовим счетчик слов
457 + MOV #400,R1; Prepare the word counter
458 458   ; 0400 oct = 256 dec
459 459  
460 - MOV #RdBuf,(R3)+; и пересылаем команду
461 -; RdBuf в CSR. Адрес в R3 укажет на DR (177222).
460 + MOV #RdBuf,(R3)+; and send the command
461 +; RdBuf to the CSR. The address in R3 will point to DR (177222).
462 462  
463 -3$: MOV @R3,(R2)+;перешлем очередное слово в
464 - ; память
465 - SOB R1,3$; и повторим это 256 (0400)
466 - ; раз
463 +3$: MOV @R3,(R2)+we will send the next word to
464 +; memory
465 + SOB R1,3$; and repeat this 256 (0400)
466 + ; times
467 467  ;..................................
468 468  {{/code}}
469 469  
470 -Всё, чтение закончено.
471 -\\Для записи наоборот, требуется сначала перенести весь блок данных из памяти ЦП в контроллер и потом выдать команду "Записать содержимое буфера на диск"
470 +That's it, reading is complete.
472 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 -== **016: Принять блок данных в буфер** ==
475 475  
476 -Код команды 016. Команда настраивает контроллер на прием блока данных и помещении его в буфер. Следующие 256 циклов записи в DR поместят данные, переданные через МПИ, в буфер.
477 -\\Пример программы.
475 +== 016: Receive data block into buffer ==
478 478  
477 +Command code 016. The command sets the controller to receive a block of data and place it in the buffer. The next 256 write cycles to DR will place the data transferred via the QBUS in the buffer.
478 +\\Example program:
479 +
479 479  {{code language="assembler"}}
480 480  ;..................................
481 481  
482 -WrBuf=016; Символическое наименование команды
483 +WrBuf=016; Symbolic name of the command
483 483  
484 -; Перед записью нужно выполнить те же действия, что и в
485 -; пп. 3.1.-3.3. Обычно, это одна и та же программа,
486 -; просто после пункта 3.3. выполняется проверка "Что
487 -; требуется: чтение или запись?" и разветвление на
488 -; программу чтения или записи.
485 +; Before writing, you need to perform the same actions as in
486 +; pp. 3.1.-3.3. Usually, this is the same program,
487 +; just after point 3.3. a check is performed "What
488 +; is required: reading or writing?" and a branch is made to the
489 +; reading or writing program.
489 489  
490 -; После фрагмента в п. 3.3. в R3 остался адрес CSR
491 -; (177220). Будем считать, что в R2 находится адрес в
492 -; памяти ЦП, где находится блок, подлежащий записи.
493 -; Программа получения этого адреса не показана.
491 +; After the fragment in point 3.3., the CSR address
492 +; (177220) remains in R3. We will assume that R2 contains the address in the CPU
493 +; memory where the block to be written is located.
494 +; The program for obtaining this address is not shown.
494 494  
495 - MOV #400,R1; Готовим счетчик
496 + MOV #400,R1; Preparing the counter
496 496  
497 - MOV #WrBuf,(R3)+; Перешлем команду в CSR и
498 - ; переключим адрес в R3 на
499 - ; DR
498 + MOV #WrBuf,(R3)+; Let's forward the command to the CSR and
499 +; switch the address in R3 to
500 +; DR
500 500  
501 -4$: MOV (R2)+,@R3; Перешлем очередное слово
502 - ; данных
503 - SOB R1,4$; и повторим это 256 раз
502 +4$: MOV (R2)+,@R3; Let's forward the next word
503 +; data
504 + SOB R1,4$; and repeat this 256 times
504 504  ;..................................
505 505  {{/code}}
506 506  
507 -== **017: Получить размер псевдодиска, большой** ==
508 +== 017: Get ramdisk size, large ==
508 508  
509 -Есть две команды получения размера псевдодиска, т.е. смонтированного на выбранный псевдопривод AZn файл-образа.
510 -\\Если используемая ОС (или программа, работающая с дисками без ОС) умеет работать с большими (больше 32М) дисками, следует пользоваться командой с кодом 017. Последовательность действий: сбросить контроллер (п. 3.1), выбрать накопитель (п. 3.2) и переслать в CSR код 017, а затем, без каких-либо ожиданий, считать из DR сначала младшее, и следом за ним старшее слово размера выбранного накопителя (файл-образа).
511 -\\Если используемая ОС не умеет работать с дисками бОльшими, чем 32М (RT-11), следует пользоваться командой 007 - получить размер псевдодиска с ограничением до 32М. Действия похожие: сбрасываем контроллер, выбираем диск, посылаем в CSR код [[007>>doc:||anchor="H007:41F43E43B44344743844244C44043043743C43544043F44143543243443E43443844143A430"]] и считываем из DR одно слово размера псевдодиска. Если размер файл-образа, смонтированного на выбранный псевдопривод, больше 65534 блоков, вместо этого "большого" размера, контроллер возвращает число 65534. Напоминаем, что число 65535 кое-где используется в специальных целях и не может быть размером диска.
512 -\\Также напоминаем, что если на этот накопитель не смонтирован файл-образ, последовательность действий не пройдет (команда 001 выбор устройства) и исполнение программы до этого места просто не дойдет. Поэтому ошибок у этих команд не предусмотрено.
513 -\\Пример программы с большими дисками
510 +There are two commands to get the size of a pseudo-disk, i.e. the AZn file-image mounted on the selected pseudo-drive.
511 +\\If the OS being used (or a program working with disks without an OS) can work with large (more than 32M) disks, you should use the command with the code 017. The sequence of actions: reset the controller (p. 3.1), select the drive (p. 3.2) and send the code 017 to the CSR, and then, without any waiting, read from DR first the lower word, and then the higher word of the size of the selected drive (image file).
512 +\\If the OS you are using cannot work with disks larger than 32M (RT-11), you should use the 007 command - get the pseudo-disk size with a limit of up to 32M. The steps are similar: reset the controller, select the disk, send the 007 code to the CSR and read one word of the pseudo-disk size from DR. If the size of the image file mounted on the selected pseudo-drive is larger than 65534 blocks, the controller returns the number 65534 instead of this "large" size. We remind you that the number 65535 is used in some places for special purposes and cannot be the disk size.
513 +\\We also remind you that if the image file is not mounted on this drive, the sequence of actions will not work (command 001 select device) and the program execution will simply not reach this point. Therefore, these commands do not provide for errors.
514 +\\Example of a program with large disks
514 514  
515 515  {{code language="assembler"}}
516 516  ;......................................
517 517  
518 -GetBig=017; Получить "большой" размер диска
519 +GetBig=017; Get the "big" disk size
519 519  
520 -; От фрагмента 3.2 (выбор диска) у нас в R3 остался
521 -; адрес DR (177222)
521 +; From fragment 3.2 (disk selection) we have in R3
522 +; DR address (177222)
522 522  
523 - MOV #GetBig,-(R3); пошлем команду
524 - TST (R3)+; вернем адрес в R3 назад, на DR
524 + MOV #GetBig,-(R3); send the command
525 + TST (R3)+; return the address in R3 back to DR
525 525   MOV @R3,BigSiz
526 526   MOV @R3,BigSiz+2
527 527  ;......................................
... ... @@ -528,27 +528,26 @@
528 528  {{/code}}
529 529  
530 530  
531 -== **020: Получить расширенный код диагностики** ==
532 +== 020: Get extended diagnostic code ==
532 532  
533 -Код команды 020, после сброса контроллера следует выдать эту команду в CSR и затем прочитать два слова расширенной диагностики из DR. Команда мгновенная, ожидание не требуется.
534 +Command code 020, after resetting the controller, you should issue this command in the CSR and then read two words of extended diagnostics from DR. The command is instant, no waiting is required.
534 534  
535 535  
536 -== **027: Получить версию firmware AZ STM32** ==
537 +== 027: Get firmware version AZ STM32 ==
537 537  
538 -Код команды 027, возвращает 2 слова
539 -\\первое слово - 06404 = старший байт 13. это версия прошивки, младший байт 4. это версия железа - те AZБК в данном случае
540 -второе слово - 037 = это максимальный монтируемый диск - 31.
539 +Command code 027, returns 2 words
540 +\\first word - 06404 = high byte 13. this is the firmware version, low byte 4. this is the hardware version - i.e. AZБК in this case second word - 037 = this is the maximum mountable disk - 31.
541 541  
542 542  
543 543  {{code language="assembler"}}
544 544  ;-------------------------------------------------------------
545 -; получение версии прошивки STM32 - результат в R1 R1=0 ошибка
545 +; getting STM32 firmware version - result in R1 R1=0 error
546 546  GTSTMV: MOV #AZ$CSR,R1
547 -1$: CLR (R1) ; Пошлем команду "Сброс"
548 - TSTB (R1) ; Проверим готовность контроллера
549 - BPL 1$ ; Если не готов, сбрасываем еще
547 +1$: CLR (R1) ; Send "Reset" command
548 + TSTB (R1) ;Check controller readinessконтроллера
549 + BPL 1$ ; If not ready, reset again
550 550   mov #27,(R1)
551 - TST (R1)+ ; Проверяем на ошибку
551 + TST (R1)+ ; Check for error
552 552   BMI 2$
553 553   mov (R1),R1
554 554   return
... ... @@ -558,45 +558,45 @@
558 558  {{/code}}
559 559  
560 560  
561 -== **030:  Нет операции** ==
561 +== 030: No operation ==
562 562  
563 -Основное назначение этой команды - устанавливать бит разрешения прерываний от контроллера. Команда передает бит разрешения прерывания, который находится с ней в одном слове, но не входит в ее состав (напоминаем, команда располагается в битах D0 - D5, а бит разрешения прерываний - D6), в соответствующий триггер контроллера и больше никак не влияет на процессы в контроллере. Управление этим триггером работает даже в состоянии "Думаю, прошу не мешать", и это главная особенность команды "нет операции".
564 -\\Команда имеет код 0030. Посылка в CSR кода 0130 разрешит прерывания от контроллера, посылка кода 0030 запретит их. Пример не приводится вследствие тривиальности его.
563 +The main purpose of this command is to set the interrupt enable bit from the controller. The command transfers the interrupt enable bit, which is in the same word with it, but is not part of it (remember, the command is located in bits D0 - D5, and the interrupt enable bit is D6), to the corresponding trigger of the controller and does not affect the processes in the controller in any other way. Control of this trigger works even in the "Thinking, please do not interfere" state, and this is the main feature of the "no operation" command.
564 +\\The command has the code 0030. Sending the code 0130 to the CSR will enable interrupts from the controller, sending the code 0030 will disable them. An example is not given due to its triviality.
565 565  
566 566  
567 -= **Блок команд работы с энергонезависимой памятью** =
567 += Command block for working with non-volatile memory =
568 568  
569 -Интерфейс предоставляет любому AZ-контроллеру доступ к 255 словам энергонезависимой памяти, все команды устанавливают бит готовности по завершению. Это позволяет сохранять пользовательские настройки в энергонезависимой памяти, к примеру это используется в AZБК - там сохраняются настройки для более комфортной работы контроллера.
569 +The interface provides any AZ controller with access to 255 words of non-volatile memory, all commands set the ready bit upon completion. This allows you to save user settings in non-volatile memory, for example, this is used in AZBK ??- there are saved settings for more comfortable operation of the controller.
570 570  
571 -Все команды этого блока используют буфер энергонезависимой памяти для своей работы.
571 +All commands in this block use a non-volatile memory buffer for their operation.
572 572  
573 -== **021: Cчитать блок энергонезависимой памяти в буфер** ==
573 +== 021: Read non-volatile memory block into buffer ==
574 574  
575 575  (% class="wikigeneratedid" %)
576 -Код команды 021, данная команда вызывает чтение блока энергонезависимой памяти в буфер энергонезависимой памяти.
576 +Command code 021, this command causes a block of non-volatile memory to be read into the non-volatile memory buffer.
577 577  
578 578  
579 -== **022: Отдать на шину считанный блок энергонезависимой памяти из буфера** ==
579 +== 022: Transfer the read block of non-volatile memory from the buffer to the bus ==
580 580  
581 581  (% class="wikigeneratedid" %)
582 -Код команды 022, данная команда обеспечивает передачу буфера энергонезависимой памяти в регистр DR для считывания.
582 +Command code 022, this command ensures that the non-volatile memory buffer is transferred to the DR register for reading.
583 583  
584 584  (% class="wikigeneratedid" %)
585 -Пример программы
585 +Example program
586 586  
587 587  {{code language="assembler"}}
588 -AZ$CSR = 177220; регистр команд и состояния (CSR)
589 -AZ$DR = 177222; регистр данных (DR)
588 +AZ$CSR = 177220; command and status register (CSR)
589 +AZ$DR = 177222; data register (DR)
590 590  
591 591  
592 -; trap 50 - cброс AZ
592 +; trap 50 - reset AZ
593 593  ; результат в R1 =0 ok
594 594  AZreset: MOV #AZ$CSR,R1
595 -1$: CLR (R1); Пошлем команду "Сброс"
596 - TSTB (R1); Проверим готовность контроллера
597 - BPL 1$; Если не готов, сбрасываем еще
598 - ; раз и проверяем снова
599 - TST (R1); Проверим на ошибку,
595 +1$: CLR (R1); Send the "Reset" command
596 + TSTB (R1); Check the controller readiness
597 + BPL 1$; If not ready, reset again
598 +; once and check again
599 + TST (R1); Check for an error,
600 600   BMI 0ERR$
601 601   CLR R1
602 602   return
... ... @@ -605,30 +605,30 @@
605 605   return
606 606  
607 607  
608 -; trap 54 - чтение энергонезависимой памяти блока 1 EEPROM в буфер с адреса ADREEPROMMEM
609 -; результат R3 - адрес, если R3=0 ошибка
610 -; статус чтения в R1 0 - ok
611 -; 1 - размер не соответствует сохраненному
612 -; 2 - oшибка версии
613 -; 3 - oшибка контрольной суммы
608 +; trap 54 - reading non-volatile memory of block 1 EEPROM to the buffer from the address ADREEPROMMEM
609 +; result R3 - address, if R3=0 error
610 +; read status in R1 0 - ok
611 +; 1 - size does not match saved
612 +; 2 - version error
613 +; 3 - checksum error
614 614  ReadEEPROM: push R2
615 - call AZreset; сбросим
615 + call AZreset; reset
616 616   tst R1
617 617   bne 0ERR$
618 618  ; теперь читаем
619 619   MOV #AZ$CSR,R1
620 - mov #21,(R1); считать блок 1 энергонезависимой памяти в буфер
621 -0$: TSTB (R1); проверяем результат выполнения
622 - BPL 0$; ждем
623 - mov #22,(R1); отдать на шину считанный блок энергонезависимой памяти из буфера
624 -1$: TSTB (R1); проверяем результат выполнения
625 - BPL 1$; ждем
626 - TST (R1)+; инкрементируем
620 + mov #21,(R1); read block 1 of non-volatile memory into buffer
621 +0$: TSTB (R1); check execution result
622 + BPL 0$; wait
623 + mov #22,(R1); send read block of non-volatile memory from buffer to bus
624 +1$: TSTB (R1); check execution result
625 + BPL 1$; wait
626 + TST (R1)+; increment
627 627   mov #ADREEPROMMEM,R3
628 - mov #256.,R2; читаем 256. слов; первое слово - результат чтения
629 -2$: mov (R1),(R3)+; читаем блок слов в память
628 + mov #256.,R2; read 256. words; first word is reading result
629 +2$: mov (R1),(R3)+; read block of words into memory
630 630   sob R2,2$
631 - mov #ADREEPROMMEM,R3; успешно
631 + mov #ADREEPROMMEM,R3; successful
632 632   mov (R3),R1
633 633   br 0END$
634 634  0ERR$: CLR R3
... ... @@ -636,41 +636,39 @@
636 636   return
637 637  {{/code}}
638 638  
639 -очевидно, после считывания памяти необходимо проверить код результата в первом слове - см расшифровку кодов ошибок
640 -\\Примеры возвращаемых данных по командам
641 -\\последовательная подача команды 021 и затем 022 позволит считать 256. слов
642 -из энергонезависимой памяти
643 -**Внимание! **первое слово это будет статус успешности чтения
644 -
639 +obviously, after reading the memory, it is necessary to check the result code in the first word - see the decoding of error codes
640 +\\Examples of returned data for commands
641 +\\sequentially issuing the command 021 and then 022 will allow reading 256 words from non-volatile memory
642 +Attention! The first word will be the reading success status
645 645  
646 646  * 0 - ok
647 -* 1 - размер не соответствует сохраненному
648 -* 2 - oшибка версии
649 -* 3 - oшибка контрольной суммы
645 +* 1 - size does not match saved
646 +* 2 - version error
647 +* 3 - checksum error
650 650  
651 -== **023: Принять с шины в буфер данные для последующей записи в буфер** ==
649 +== 023: Receive data from the bus into the buffer for subsequent writing into the buffer ==
652 652  
653 -Код команды 023, данная команда позволяет наполнить буфер энергонезависимой памяти
651 +Command code 023, this command allows you to fill the non-volatile memory buffer
654 654  
655 -== **024: Записать из буфера в блок энергонезависимой памяти** ==
653 +== 024: Write from buffer to non-volatile memory block ==
656 656  
657 -Код команды 024, данная команда вызывает запись блока энергонезависимой памяти из буфера энергонезависимой памяти.
655 +Command code 024, this command causes a non-volatile memory block to be written from the non-volatile memory buffer.
658 658  
659 -Пример программы
657 +Example program
660 660  
661 661  {{code language="assembler"}}
662 -AZ$CSR = 177220; регистр команд и состояния (CSR)
663 -AZ$DR = 177222; регистр данных (DR)
660 +AZ$CSR = 177220; Command and Status Register (CSR)
661 +AZ$DR = 177222; Data Register (DR)
664 664  
665 665  
666 -; trap 50 - cброс AZ
664 +; trap 50 - reset AZ
667 667  ; результат в R1 =0 ok
668 668  AZreset: MOV #AZ$CSR,R1
669 -1$: CLR (R1); Пошлем команду "Сброс"
670 - TSTB (R1); Проверим готовность контроллера
671 - BPL 1$; Если не готов, сбрасываем еще
672 - ; раз и проверяем снова
673 - TST (R1); Проверим на ошибку,
667 +1$: CLR (R1); Send the "Reset" command
668 + TSTB (R1); Check the controller readiness
669 + BPL 1$; If not ready, reset again
670 +; once and check again
671 + TST (R1); Check for an error,
674 674   BMI 0ERR$
675 675   CLR R1
676 676   return
... ... @@ -678,27 +678,27 @@
678 678   COM R1
679 679   return
680 680  
681 -; trap 55 - запись энергонезависимой памяти из буфера с адреса ADREEPROMMEM в блок 1 EEPROM
679 +; trap 55 - write non-volatile memory from the buffer at address ADREEPROMMEM в блок 1 EEPROM
682 682  WriteEEPROM: push R1
683 683   push R2
684 684   push R3
685 - call AZreset; сбросим
683 + call AZreset; reset
686 686   tst R1
687 687   bne 0ERR$
688 688  
689 689   MOV #AZ$CSR,R1
690 - mov #23,(R1); командуем что будем писать данные в буфер
691 -0$: TSTB (R1); проверяем результат выполнения
692 - BPL 0$; ждем
693 - TST (R1)+; инкрементируем
688 + mov #23,(R1);command that we will write data to the buffer
689 +0$: TSTB (R1); check the result of executio
690 + BPL 0$; wait
691 + TST (R1)+; increment
694 694   mov #ADREEPROMMEM+2,R3
695 - mov #255.,R2; пишем 255. слов; первое слово пропускаем - результат чтения
696 -1$: mov (R3)+,(R1); отдаем в контроллер
693 + mov #255.,R2; write 255. words; skip the first word - the result of reading
694 +1$: mov (R3)+,(R1); send to the controller
697 697   sob R2,1$
698 - tst -(R1); декрементируем
699 - mov #24,(R1); записать из буфера в блок 1 энергонезависимой памяти
700 -2$: TSTB (R1); проверяем результат выполнения
701 - BPL 2$; ждем
696 + tst -(R1); decrement
697 + mov #24,(R1); write from the buffer to block 1 of non-volatile memory
698 +2$: TSTB (R1); check the result of execution
699 + BPL 2$; we are waiting
702 702   br 0END$
703 703  0ERR$: CLR R3
704 704  0END$: pop R3
... ... @@ -707,23 +707,21 @@
707 707   return
708 708  {{/code}}
709 709  
710 -**Обращаю внимание**, при записи, буфер идет сразу с данными, те нет первого слова со статусом.
708 +**Please note** that when recording, the buffer immediately comes with the data, i.e. there is no first word with the statu
711 711  
712 712  
713 713  
714 -= Блок команд для работы с RTC и NTP =
712 += Block of commands for working with RTC and NTP =
715 715  
716 -В контроллере AZ®  есть 2 источника получения даты-времени, первый это RTC встроенный в STM32, второй это часы в стеке TCP/IP.  Часы RTC работают автономно при наличии установленной батарейки 2032. Часы в стеке TCP/IP устанавливаются на основании данных с NTP-сервера.
714 +The AZ® controller has 2 sources of date-time, the first is the RTC built into the STM32, the second is the clock in the TCP/IP stack. The RTC clock works autonomously with a 2032 battery installed. The clock in the TCP/IP stack is set based on data from the NTP server.
717 717  
718 718  
719 -== Формат буфера timestamp (доступен по чтению) ==
717 +== Buffer format timestamp (readable) ==
720 720  
721 -API контроллера сразу готовит время в нескольких форматах, дабы его было удобно применить на стороне PDP-11
719 +The controller API immediately prepares time in several formats, so that it can be conveniently used on the PDP-11 side
722 722  
723 723  {{info}}
724 -формат буфера даты-времени
725 -offset в восьмеричной системе - те слова
726 -формат буфера даты-времени
722 +datetime buffer format octal offset - those words datetime buffer format
727 727  \\[0]=rtc_rt11date();
728 728  [2]=rt11 time 50Hz big word;
729 729  [4]=rt11 time 50Hz little word;
... ... @@ -741,47 +741,47 @@
741 741  {{/info}}
742 742  
743 743  
744 -== Формат буфера SimpleIN (при записи) ==
740 +== SimpleIN buffer format (when writing) ==
745 745  
746 -формат максимально упрощен, для работы со стороны PDP-11
742 +the format is simplified as much as possible, for work with PDP-11
747 747  
748 748  {{info}}
749 -offset в восьмеричной системе - те слова
745 +offset in octal - those words
750 750  
751 -[0]=year       год, младшие две цифры - те 22 а не 2022(!)
752 -[2]=month;     месяц
753 -[4]=day;       день
754 -[6]=wday;      день недели =0 не установлен, 1- понедельник 2 - вторник итд
755 -[10]=hour;     час
756 -[12]=min;      минута
757 -[14]=sec;      секунда
747 +[0]=year, the lower two digits are 22 and not 2022(!)
748 +[2]=month; month
749 +[4]=day; day
750 +[6]=wday; day of the week =0 not set, 1 - Monday 2 - Tuesday etc.
751 +[10]=hour; hour
752 +[12]=min; minute
753 +[14]=sec; second
758 758  {{/info}}
759 759  
760 760  
761 -== **031:  Получить время из RTC в буфер timestamp** ==
757 +== 031: Get time from RTC to timestamp buffer ==
762 762  
763 -Код команды 031, данная команда использует RTC часы как источник заполнения буфера timestamp
759 +Command code 031, this command uses RTC clock as a source of filling the timestamp buffer
764 764  
765 -Пример программы:
761 +Example program:
766 766  
767 767  {{code language="assembler"}}
768 -; trap 61 - чтение данных часов из автономных часов RTC
769 -; R3 - адрес буфера куда надо считать
770 -; результат в R3 адрес, если успешно. R3=0 если ошибка
764 +; trap 61 - reading clock data from autonomous RTC clock
765 +; R3 - buffer address where to read
766 +; result in R3 address if successful. R3=0 if error
771 771  GetDateFromRTC: push R0
772 772   push R1
773 773   push R2
774 - call AZreset; сбросим
770 + call AZreset; reset
775 775   tst R1
776 776   bne G60ERR
777 777   MOV #AZ$CSR,R1
778 778   mov #31,(R1)
779 - br G60; идем туда тк дальше код одинаковый
775 + br G60; let's go there because further code is the same
780 780  {{/code}}
781 781  
782 -== **032:  Получить время из буфера timestamp** ==
778 +== 032: Get time from timestamp buffer ==
783 783  
784 -Код команды 032, данная команда отдает на шину содержимое буфера timestamp
780 +Command code 032, this command sends the contents of the timestamp buffer to the bus
785 785  
786 786  {{code language="assembler"}}
787 787  ; работа с часами