;
***Dynamic replacing of Provider name v2***;© avkiev 14.02.2005
;® Bennie, arsh0r
;
S65 v41 /*
The name of the Provider replaced with dynamic changed string.
The Frequency of the renovation is a frequency of the questioning to network by telephone.
16 bytes in area 800100-80010F are two cyclic buffers, which define content of the screen.
First buffer (800100-800107) defines strings in mainscreen mode.
Second (800108-80010F) - in screensaver mode.
Replacing string consist of two parts, separated with Space.
Example N1: (800100) = 34h.
It means, that ProviderName will changed with results of
function N3 and function N4, separated by Space.
In our example it will be "Time + Date".
Because of next byte is 06h, then next string will be "Date"
It's cycle, 8 times, after this cycle we again return to byte (800100)=34h
Example N2: if you want always "Time+Temperature" fill this area with 3Bh.
If total length of string more than 16 (?) chars - string will be truncated
Screenshots:
http://avkiev.kiev.ua/Siemens/Patches/s65/...ov/dyn_prov.htmAvaliable functions:
+---+------------------+-----------------------+-------+----------------------------------+
| N | Íàçâàíèå | Ôîðìàò | Äëèíà| Êîììåíòàðèè |
+---+------------------+-----------------------+-------+----------------------------------+
| 0 | Empty | | 0 | |
| 1 | String 1 | | | |
| 2 | String 2 | | | |
| 3 | Time | 15:56 | 5 | |
| 4 | Date | 11.02.2005 | 10 | |
| 5 | Date | 02/11/20 | 10 | |
| 6 | Date | Fr, 11 Feb 2005 | 15 | |
| 7 | Date | February, 11 | | |
| 8 | Day of the week | Wednes. | | No more than 8 chars |
| 9 | Day of the week | Wednesday | | |
| A | Accumulator | 3,685 = 70% | 11,12| Voltage and capacity of acc|
| B | Temperature | 31,9'C | 6 | |
| C | Provider | UMC | | |
| D | Net level | -65 dB | 6,7 |"-" - 900, "=" - 1800 |
| E | Net info | 05513:804 | 9 |CI:CH - Current cell and channel |
| F | HWord in memory | 65535 | 5 |Monitor of word in memor |
+---+------------------+-----------------+------+----------------------------------+
*/
16B99B0: FDFCB8A0 710180A0 ; call from mainscreen
16A0BBC: F7B52E4E0C1CB079 004B9F467D0180A0 ; call from screenasaver
#pragma enable old_equal_ff
#pragma disable warn_no_old_on_apply
;Two cyclic 8-bytes buffers, adjust their at your own
0800100: 34,06,78,09,BA,CD,CE,0F ; Mainscreen
0800108: 34,06,78,09,BA,CD,CE,0F ; Screensaver
0800110: 'Unicode-ñòðîêà1<!--POST BOX-->' ; String #1. MaxLen = 16 (including 0)
0800130: 'Unicode-string2<!--POST BOX-->' ; String #2. MaxLen = 16 (including 0)
#pragma enable warn_no_old_on_apply
0800150: 44796E2E2070726F7669646572207632
0800160: A961766B6965762031342E30322E3035
0800170: 00B50068002100F007F800BD00B50868
0800180: 082100F001F800BDF0B5041C0025B24F
0800190: 381C103003680133072213400360AD4E
08001A0: 7618F6183678A64B381C391C08319847
08001B0: 381C25F032FBF871330900F00AF82023
08001C0: 023563530F23334000F003F86D082580
08001D0: F0BD00B5F8795B009F4400BDFDE70DE0
08001E0: 10E01AE021E02AE033E04AE05AE05DE0
08001F0: 63E083E099E0A7E0C2E0D0E0C0469548
0800200: 103002E0C04693483030038802300235
0800210: 6353002BF9D1023D00BD397A00F0E5F8
0800220: 3A2302356353797AE0E000F0DDF82E23
0800230: 02356353397900F0D8F82E231DE03979
0800240: 00F0D3F82F230235635300F0CDF82F23
0800250: 13E082490D3100F0A4F82C2302356353
0800260: 20230235635300F0BFF8202302356353
0800270: 38797A4900F095F82023023563533988
0800280: C0E03879112109028B3100F08AF82C23
0800290: 63532023023563537979A7E0D6E2D7D8
08002A0: D9DAD50079460C39085C03E001300728
08002B0: 00D100200421090274E000200921624A
08002C0: 9047023500F09CF8063D00F0AFF80635
08002D0: 202363533D23023563535C4920230235
08002E0: 63530968642903D33123023563530021
08002F0: 00F07BF825230235635300BD0120524A
0800300: 032190470A210902AA31401A003000F0
0800310: 77F8043D00F08AF800F088F827230235
0800320: 635343230235635300BD381C14306119
0800330: 01600A8804B48FF3E1FC04BC60190188
0800340: 028049006D1800BD2D23414806380188
0800350: FF2900D33D23023563538179642903D3
0800360: 312302356353643900F03FF820230235
0800370: 635364230235635342230235635300BD
0800380: C0463348043800F046F8314806380188
0800390: 00F037F8063D3A236353063500BD3048
08003A0: 3AE000B54018254B391C20319847381C
08003B0: 203000210A0103780130002B13D0A42B
08003C0: 11D0952BF5D00821962BF3D01021972B
08003D0: F0D038219A2BEDD040219B2BEAD09B18
08003E0: 02356353E7E700BD797900B50A20154A
08003F0: 904730300235605330310235615300BD
0800400: 011C00B564200F4A904702B4011CFFF7
0800410: ECFF02BCEAE700B501880A4A27200002
0800420: 10309047303002356053EBE700B5605B
0800430: 2C216153023D6053043500BDA9BE40A1
0800440: 5782C3A03C8B83A04C0624A1680567A8
0800450: 62CE67A8000180A0000077A897120000
0800460: 0xA867CE5C ; Address of HWord in function F
#pragma disable old_equal_ff
;Adjust temperature in function B by 0.1'C: 000 - TBA, 030 - TEN, 015 - (TBA+TEN)/2
080030C: 00 0i030