; CPUINFO - the strings, UTF-8; the ones the layout measures with their ; length in characters, the captions of the buttons also with the ; scancodes of their first letters in the layout of the language, for ; ru_RU their keys in QWERTY at the right. The caption of the window ; starts with its encoding, 3: UTF-8. The texts for @notify are in cp866, ; its font has no accents. ; a string and its length in characters, .chars: the bytes but the ones ; that go on with a character, 10xxxxxx struc utf8 text { local n, b . db text, 0 n = 0 repeat $ - . - 1 ; without the zero load b byte from . + % - 1 if b shr 6 <> 10b n = n + 1 end if end repeat .chars = n } ; a label of the rows or of the features; label_max: the longest one, ; for the layout of window.inc label_max = 0 struc utf8_label text { . utf8 text if .chars > label_max label_max = .chars end if } ; a caption of a button: the string, .chars, and .key, the scancode of ; its first letter struc utf8_button key, text { . utf8 text .key = key } ; ==================================================================== if lang eq ru_RU sz_title db 3, "Информация о процессоре", 0 sz_processor db "Процессор", 0 sz_cores_cache db "Ядра и кэш", 0 sz_features db "Возможности", 0 sz_report utf8_button 0x24, "Отчёт" ; J sz_taskman utf8_button 0x2F, "Мониторинг" ; V sz_bench utf8_button 0x33, "Бенчмарк" ; , sz_notify_title cp866 "Информация о процессоре\n", 0 sz_save_failed cp866 "Не удалось сохранить отчёт в ", 0 sz_run_failed cp866 "Не удалось запустить ", 0 sz_family utf8_label "Семейство" sz_model utf8_label "Модель" sz_stepping utf8_label "Степпинг" sz_signature utf8_label "Сигнатура" sz_freq utf8_label "Частота" sz_mult utf8_label "Множитель" sz_bus utf8_label "Частота шины" sz_temp utf8_label "Макс. темп." sz_cores utf8_label "Ядра" sz_threads utf8_label "Потоки" sz_l1d utf8_label "L1 данных" sz_l1i utf8_label "L1 инстр." sz_line utf8_label "L1 строка" sz_vector utf8_label "Векторные" sz_instructions utf8_label "Инструкции" sz_system utf8_label "Система" sz_platform utf8_label "Платформа" sz_mhz db " МГц", 0 sz_way db " кан.", 0 sz_bytes db " байт", 0 sz_units db " КБ", 0, " МБ", 0, " ГБ", 0 else if lang eq es_ES sz_title db 3, "Información del procesador", 0 sz_processor db "Procesador", 0 sz_cores_cache db "Núcleos y caché", 0 sz_features db "Características", 0 sz_report utf8_button 0x17, "Informe" sz_taskman utf8_button 0x32, "Monitorización" sz_bench utf8_button 0x30, "Benchmark" sz_notify_title db "Informacion del procesador\n", 0 sz_save_failed db "No se pudo guardar el informe en ", 0 sz_run_failed db "No se pudo iniciar ", 0 sz_family utf8_label "Familia" sz_model utf8_label "Modelo" sz_stepping utf8_label "Revisión" sz_signature utf8_label "Firma" sz_freq utf8_label "Frecuencia" sz_mult utf8_label "Multiplicador" sz_bus utf8_label "Frec. de bus" sz_temp utf8_label "Temp. máx." sz_cores utf8_label "Núcleos" sz_threads utf8_label "Hilos" sz_l1d utf8_label "L1 datos" sz_l1i utf8_label "L1 instr." sz_line utf8_label "L1 línea" sz_vector utf8_label "Vectoriales" sz_instructions utf8_label "Instrucciones" sz_system utf8_label "Sistema" sz_platform utf8_label "Plataforma" sz_mhz db " MHz", 0 sz_way db " vías", 0 sz_bytes db " bytes", 0 sz_units db " KB", 0, " MB", 0, " GB", 0 else sz_title db 3, "Processor Information", 0 sz_processor db "Processor", 0 sz_cores_cache db "Cores and cache", 0 sz_features db "Features", 0 sz_report utf8_button 0x13, "Report" sz_taskman utf8_button 0x32, "Monitoring" sz_bench utf8_button 0x30, "Benchmark" sz_notify_title db "Processor Information\n", 0 sz_save_failed db "Could not save the report to ", 0 sz_run_failed db "Could not start ", 0 sz_family utf8_label "Family" sz_model utf8_label "Model" sz_stepping utf8_label "Stepping" sz_signature utf8_label "Signature" sz_freq utf8_label "Frequency" sz_mult utf8_label "Multiplier" sz_bus utf8_label "Bus clock" sz_temp utf8_label "Max. temp." sz_cores utf8_label "Cores" sz_threads utf8_label "Threads" sz_l1d utf8_label "L1 data" sz_l1i utf8_label "L1 instr." sz_line utf8_label "L1 line" sz_vector utf8_label "Vector" sz_instructions utf8_label "Instructions" sz_system utf8_label "System" sz_platform utf8_label "Platform" sz_mhz db " MHz", 0 sz_way db "-way", 0 sz_bytes db " bytes", 0 sz_units db " KB", 0, " MB", 0, " GB", 0 end if sz_l2 utf8_label "L2" sz_l3 utf8_label "L3" sz_levels utf8_label "CPUID" sz_avx512 db "AVX-512", 0 ; a label only in the report sz_deg db " °C", 0 sz_times db " x ", 0 sz_ext_leaves db ", 8..", 0