Help

ZXNet echo conference «code.zx»

From Dmitry Zaytsev To All 11 August 2004

Hello, All! Please tell me, if anyone knows how Scorpion-ovsky, Prof-ROM calculates the checksum of CMOS memory, and where stores, otherwise I have an idea to use an alarm clock. And according to the sad work of Real Commandera, in my opinion, when he is in I tried to store the state of the panels for hours, until the first reboot, after which an unpleasant message was displayed CMOS CheckSum Error, after which the entire CMOS acquired inner virgin purity. Also, if it’s not difficult, tell me the procedure, transformations time into an ASCII string, I get the time in registers: S-seconds B-minutes E-clock Maybe someone has already encountered this problem. Best regards, Dmitry Zaytsev.

From Eugene Palenock To Dmitry Zaytsev 13 August 2004

Hello Dmitry! 11 Aug 04 12:02, Dmitry Zaytsev -> All: DZ> Please tell me if anyone knows how to use Scorpion DZ> Prof-ROM calculates the checksum of CMOS memory, and where DZ> stores, otherwise I have an idea to use an alarm clock. And the alarm clock is supposedly stored in a block of CMOS clock cells, there are 3 cells allocated specifically for this ;) It's actually stupid to calculate CRC for them. Best regards, Evgeniy.

From Kirill Frolov To Dmitry Zaytsev 14 August 2004

Hемедленно нажми на RESET, Dmitry Zaytsev! On Wed, 11 Aug 04 11:02:01 +0400, Dmitry Zaytsev wrote: DZ> Подскажите please, если кто знает, как Scorpion-овский, DZ> Проф-ПЗУ высчитывает контрольную сумму CMOS-памяти, и где DZ> хранит, а то у меня задумка вертится будильничик использовать. Вполне возможно, что он это делает точно также, как и писюковские BIOS. А в общем случае, не факт, что там сумма хранится. Только вот вопрос -- с каких пор считается контрольный код от ячеек хранящих дату, время, будильник и регистры статуса? Что-то здесь не так. Время же каждую секунду меняется. Считать контрольный код есть смысл начиная с адреса 0x0E и далее. DZ> Так-же если не сложно подскажите процедурку, преобразования DZ> времени в ASCII-строку, время я получаю в регистрах: DZ> С- секунды DZ> B- минуты DZ> E- часы DZ> Может кто уже сталкивался с такой проблемой. #include ; определение системы счисления, ; двоичная или двоично-десятичная ; -- часы могут использовать одну из ; двух. Типично, в ПЦ используется ; двоично-десятичная, на спектрум -- двоичная, ; у MOA (в SMUC) тоже, вроде, двоично-десятичная... ; Используемая система определается по регистру управления, ; не помню уже какому... ... jr z, binary ; переход если двоичная ; используется двоично-десятичная система ld a, e call bcd2bin ld e, a ld a, c call bcd2bin ld c, a ld a, b call bcd2bin ld b, a jr binary ; перевод числа заданного в рег.A из двоично-десятичной ; в двоичную систему счисления bcd2bin: ld l, a rra rra rra rra and 0x0f ld h, a add a, a add a, a add a, h add a, a ; умножение на 10 add a, l ret binary: ld a, e ld hl, -9 ; sizeof("hh:mm:ss") add hl, sp ld sp, hl push hl push bc call htoa ld (hl), ":" inc hl pop af push af call htoa ld (hl), ":" inc hl pop bc ld a, c call htoa pop hl ; HL = указатель на строку вида "HH:MM:SS" ... Функция записывает безнаковое число заданное в регистре A в строку заданную регистром HL, в шестнадцатеричной системе счисления. Будет записано 2 цифры (ведущий ноль присутствует) и символ с кодом 0 заканчивающий строку. Таким образом, HL должен указывать на строку с минимальной длиной в 3 байта. По завершению функции регистр HL будет указывать на последний символ строки (завершающий 0). EXPORT global htoa ; hex2ascii A=0..0ffh, HL=str[3] -> HL=*0(str) ; a=0..FF, HL=str[3] -> hl=*0 psect text htoa: push af rra rra rra rra call nib2hex pop af nib2hex: and 0x0f cp 0x0a sbc a, 0x69 daa ld (hl), a inc hl ld (hl), 0 ret EXPORT end

From Dmitry Zaytsev To All 3 April 2005

Hello, All! I went offline for a while, but I'm back. It seems that the source codes that I sent did not arrive: TCP/IP, UZIX. If you haven't received it again, please write. I have a small request to the coders who have a description PPP, SLIP protocol, please share, preferably on Russian, unfortunately my English is bad. Just like him interacts with the modem. I will also be grateful for information about ATAPI commands regarding working with CD-ROM. Unfortunately I have access to There is no I-net, and ZX-Net only once a week, so hope is only in you. Thanks in advance. Best regards, Dmitry Zaytsev.