Compare commits

...

30 Commits

Author SHA1 Message Date
1e074c2c0a programs/system: Post-SVN tidy
- Tidy `build_all.bat` build file; comment out absent programs.
2025-06-18 12:20:07 +02:00
8c0325139a system/eskin: Post-SVN clean up
- Update ASM include paths. Minimal changes to ensure git maintains file history.
- Note: file still has ‘odd’ line endings with many trailing whitespaces.
2025-06-18 12:20:07 +02:00
a3f17cb830 Revert "system/eskin: Post-SVN clean up"
This reverts commit e01add279b.
2025-06-18 12:20:07 +02:00
391f9c3b48 system/board: Post-SVN clean up
- Fix ASM include paths.
- Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
2025-06-18 12:20:07 +02:00
4686290da4 system/run: Post-SVN clean up
- Fix ASM include paths.
2025-06-18 12:20:07 +02:00
bf72f5defd system/end: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
8cd163f8dd system/zkey: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
da4a5717d2 system/skincfg: Post-SVN clean up
- Fix ASM include paths; code reused in more places.
- Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
2025-06-18 12:20:07 +02:00
391705a3f2 system/taskbar: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
9dcf050e9f system/skincfg: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
bae8139296 system/setup: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
bd1b1fcb15 system/run: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
a23e80eead system/MyKey: Post-SVN clean up
- Fix ASM include paths.
- Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
2025-06-18 12:20:07 +02:00
d22eff4ac3 Sync build files with main
- Fix merge conflicts.
2025-06-18 12:20:07 +02:00
8849914097 system/rdsave: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
a1b2070639 system/MyKey: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
18b0e1f6ff system/mousemul: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
- Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
2025-06-18 12:20:07 +02:00
0dcffe1fe4 system/menu: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
10632f5e07 system/launcher: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
1a1accd8c0 system/launch: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files.
2025-06-18 12:20:07 +02:00
118b50e850 system/kobra: Post-SVN clean up
- Move source code from `trunk` into program root directory.
2025-06-18 12:20:07 +02:00
6780bccac0 system/icon: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
265c75a53e system/hdd_info: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
- Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
2025-06-18 12:20:07 +02:00
61528dc102 system/eskin: Post-SVN clean up
- Update ASM include paths.
- Note: Line endings standardised to `LF`, so best to view diffs with whitespace changes hidden.
2025-06-18 12:20:07 +02:00
d352d32ef0 system/eskin: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files.
2025-06-18 12:20:07 +02:00
5fc992251e system/docpack: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
fa6ddc1e19 system/docky: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
- Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
2025-06-18 12:20:07 +02:00
6b5eb1c58c system/cpu: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
834f6c468e system/calendar: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
b291fa6b0a system/board: Post-SVN clean up
- Move source code from `trunk` into program root directory.
- Update build files and ASM include paths.
2025-06-18 12:20:07 +02:00
171 changed files with 10002 additions and 9898 deletions

View File

@@ -1,3 +1,6 @@
; SPDX-License-Identifier: NOASSERTION
;
format coff format coff
use32 ; Tell compiler to use 32 bit instructions use32 ; Tell compiler to use 32 bit instructions
@@ -8,7 +11,7 @@ include '../../../programs/macros.inc'
purge section,mov,add,sub purge section,mov,add,sub
include '../../../programs/develop/libraries/box_lib/trunk/box_lib.mac' include '../../../programs/develop/libraries/box_lib/trunk/box_lib.mac'
include '../../../programs/system/run/trunk/txtbut.inc' include '../../../programs/system/run/txtbut.inc'
include '../../../programs/dll.inc' include '../../../programs/dll.inc'
public init_boxlib as '_kolibri_boxlib_init' public init_boxlib as '_kolibri_boxlib_init'
@@ -159,8 +162,8 @@ public path_show_draw as '_path_show_draw'
public fb_draw_panel as '_filebrowse_draw' public fb_draw_panel as '_filebrowse_draw'
public fb_mouse as '_filebrowse_mouse' public fb_mouse as '_filebrowse_mouse'
public fb_key as '_filebrowse_key' public fb_key as '_filebrowse_key'
public ted_but_sumb_upper as '_ted_but_sumb_upper' public ted_but_sumb_upper as '_ted_but_sumb_upper'
public ted_but_sumb_lover as '_ted_but_sumb_lover' public ted_but_sumb_lover as '_ted_but_sumb_lover'
public ted_but_convert_by_table as '_ted_but_convert_by_table' public ted_but_convert_by_table as '_ted_but_convert_by_table'

View File

@@ -61,7 +61,7 @@ img_files = {
{"SETTINGS/FB2READ.INI", "common/settings/fb2read.ini"}, {"SETTINGS/FB2READ.INI", "common/settings/fb2read.ini"},
{"SETTINGS/HA.CFG", SRC_PROGS .. "/other/ha/SETTINGS/HA.CFG"}, {"SETTINGS/HA.CFG", SRC_PROGS .. "/other/ha/SETTINGS/HA.CFG"},
{"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"}, {"SETTINGS/ICON.INI", build_type .. "/settings/icon.ini"},
{"SETTINGS/KEYMAP.KEY", SRC_PROGS .. "/system/taskbar/trunk/KEYMAP.KEY"}, {"SETTINGS/KEYMAP.KEY", SRC_PROGS .. "/system/taskbar/KEYMAP.KEY"},
{"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"}, {"SETTINGS/KOLIBRI.LBL", build_type .. "/settings/kolibri.lbl"},
{"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"}, {"SETTINGS/LANG.INI", build_type .. "/settings/lang.ini"},
{"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"}, {"SETTINGS/MENU.DAT", build_type .. "/settings/menu.dat"},
@@ -80,7 +80,7 @@ if build_type == "ru_RU" then tup.append_table(img_files, {
{"GAMES/DESCENT", build_type .. "/games/descent"}, {"GAMES/DESCENT", build_type .. "/games/descent"},
{"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/rus/.shell"}, {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/rus/.shell"},
{"SETTINGS/GAMES.INI", "ru_RU/settings/games.ini"}, {"SETTINGS/GAMES.INI", "ru_RU/settings/games.ini"},
{"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/mykey.ini"},
{"SETTINGS/SYSPANEL.INI", "ru_RU/settings/syspanel.ini"}, {"SETTINGS/SYSPANEL.INI", "ru_RU/settings/syspanel.ini"},
}) elseif build_type == "en_US" then tup.append_table(img_files, { }) elseif build_type == "en_US" then tup.append_table(img_files, {
{"WELCOME.HTM", VAR_DATA .. "/" .. build_type .. "/welcome.htm.kpack"}, {"WELCOME.HTM", VAR_DATA .. "/" .. build_type .. "/welcome.htm.kpack"},
@@ -90,7 +90,7 @@ if build_type == "ru_RU" then tup.append_table(img_files, {
{"GAMES/DESCENT", "common/games/descent"}, {"GAMES/DESCENT", "common/games/descent"},
{"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"},
{"SETTINGS/GAMES.INI", "common/settings/games.ini"}, {"SETTINGS/GAMES.INI", "common/settings/games.ini"},
{"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/mykey.ini"},
{"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"},
}) elseif build_type == "es_ES" then tup.append_table(img_files, { }) elseif build_type == "es_ES" then tup.append_table(img_files, {
{"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"}, {"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"},
@@ -99,7 +99,7 @@ if build_type == "ru_RU" then tup.append_table(img_files, {
{"GAMES/DESCENT", "common/games/descent"}, {"GAMES/DESCENT", "common/games/descent"},
{"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"},
{"SETTINGS/GAMES.INI", "common/settings/games.ini"}, {"SETTINGS/GAMES.INI", "common/settings/games.ini"},
{"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/mykey.ini"},
{"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"},
}) elseif build_type == "it_IT" then tup.append_table(img_files, { }) elseif build_type == "it_IT" then tup.append_table(img_files, {
{"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"}, {"EXAMPLE.ASM", SRC_PROGS .. "/develop/examples/example/trunk/example.asm"},
@@ -107,7 +107,7 @@ if build_type == "ru_RU" then tup.append_table(img_files, {
{"File Managers/KFAR.INI", "common/File Managers/kfar.ini"}, {"File Managers/KFAR.INI", "common/File Managers/kfar.ini"},
{"GAMES/DESCENT", "common/games/descent"}, {"GAMES/DESCENT", "common/games/descent"},
{"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"},
{"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey_it.ini"}, {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/mykey_it.ini"},
{"SETTINGS/GAMES.INI", "common/settings/games.ini"}, {"SETTINGS/GAMES.INI", "common/settings/games.ini"},
{"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"},
}) else tup.append_table(img_files, { }) else tup.append_table(img_files, {
@@ -117,7 +117,7 @@ if build_type == "ru_RU" then tup.append_table(img_files, {
{"GAMES/DESCENT", "common/games/descent"}, {"GAMES/DESCENT", "common/games/descent"},
{"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"}, {"SETTINGS/.shell", SRC_PROGS .. "/system/shell/bin/eng/.shell"},
{"SETTINGS/GAMES.INI", "common/settings/games.ini"}, {"SETTINGS/GAMES.INI", "common/settings/games.ini"},
{"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/trunk/mykey.ini"}, {"SETTINGS/MYKEY.INI", SRC_PROGS .. "/system/MyKey/mykey.ini"},
{"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"}, {"SETTINGS/SYSPANEL.INI", "common/settings/syspanel.ini"},
}) end }) end
@@ -316,14 +316,14 @@ if build_type == "ru_RU" then tup.append_table(extra_files, {
{"Docs/cp866/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"}, {"Docs/cp866/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"},
{"Docs/cp866/Install.txt", build_type .. "/docs/Install.txt"}, {"Docs/cp866/Install.txt", build_type .. "/docs/Install.txt"},
{"Docs/cp866/Credits.txt", build_type .. "/docs/Credits.txt"}, {"Docs/cp866/Credits.txt", build_type .. "/docs/Credits.txt"},
{"Docs/cp866/SysFuncr.txt", VAR_PROGS .. "/system/docpack/trunk/SysFuncr.txt"}, {"Docs/cp866/SysFuncr.txt", VAR_PROGS .. "/system/docpack/SysFuncr.txt"},
{"Docs/cp1251/Config.txt", VAR_DATA .. "/" .. build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/Config.txt"}, {"Docs/cp1251/Config.txt", VAR_DATA .. "/" .. build_type .. "/docs/CONFIG.WIN.TXT", cp1251_from = build_type .. "/docs/Config.txt"},
{"Docs/cp1251/Copying.txt", "$(VAR_DATA)/$(build_type)/docs/COPYING.WIN.TXT", cp1251_from = build_type .. "/docs/Copying.txt"}, {"Docs/cp1251/Copying.txt", "$(VAR_DATA)/$(build_type)/docs/COPYING.WIN.TXT", cp1251_from = build_type .. "/docs/Copying.txt"},
{"Docs/cp1251/History.txt", "$(VAR_DATA)/$(build_type)/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/History.txt"}, {"Docs/cp1251/History.txt", "$(VAR_DATA)/$(build_type)/docs/HISTORY.WIN.TXT", cp1251_from = build_type .. "/docs/History.txt"},
{"Docs/cp1251/Hot_Keys.txt", "$(VAR_DATA)/$(build_type)/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/Hot_Keys.txt"}, {"Docs/cp1251/Hot_Keys.txt", "$(VAR_DATA)/$(build_type)/docs/HOT_KEYS.WIN.TXT", cp1251_from = build_type .. "/docs/Hot_Keys.txt"},
{"Docs/cp1251/Install.txt", "$(VAR_DATA)/$(build_type)/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/Install.txt"}, {"Docs/cp1251/Install.txt", "$(VAR_DATA)/$(build_type)/docs/INSTALL.WIN.TXT", cp1251_from = build_type .. "/docs/Install.txt"},
{"Docs/cp1251/credits.txt", "$(VAR_DATA)/$(build_type)/docs/CREDITS.WIN.TXT", cp1251_from = build_type .. "/docs/Credits.txt"}, {"Docs/cp1251/credits.txt", "$(VAR_DATA)/$(build_type)/docs/CREDITS.WIN.TXT", cp1251_from = build_type .. "/docs/Credits.txt"},
{"Docs/cp1251/SysFuncr.txt", "$(VAR_DATA)/$(build_type)/docs/SYSFUNCR.WIN.TXT", cp1251_from = SRC_PROGS .. "/system/docpack/trunk/SysFuncr.txt"}, {"Docs/cp1251/SysFuncr.txt", "$(VAR_DATA)/$(build_type)/docs/SYSFUNCR.WIN.TXT", cp1251_from = SRC_PROGS .. "/system/docpack/SysFuncr.txt"},
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_dos.txt"}, {"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_dos.txt"},
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_win.txt"}, {"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme_win.txt"},
{"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/install.txt"}, {"HD_Load/mtldr/", SRC_PROGS .. "/hd_load/mtldr/install.txt"},
@@ -346,7 +346,7 @@ if build_type == "ru_RU" then tup.append_table(extra_files, {
{"Docs/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"}, {"Docs/Hot_Keys.txt", build_type .. "/docs/Hot_Keys.txt"},
{"Docs/Install.txt", build_type .. "/docs/Install.txt"}, {"Docs/Install.txt", build_type .. "/docs/Install.txt"},
{"Docs/Credits.txt", build_type .. "/docs/Credits.txt"}, {"Docs/Credits.txt", build_type .. "/docs/Credits.txt"},
{"Docs/SysFuncs.txt", VAR_PROGS .. "/system/docpack/trunk/SysFuncs.txt"}, {"Docs/SysFuncs.txt", VAR_PROGS .. "/system/docpack/SysFuncs.txt"},
{"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme.txt"}, {"HD_Load/9x2klbr/", SRC_PROGS .. "/hd_load/9x2klbr/readme.txt"},
{"HD_Load/mtldr/install.txt", SRC_PROGS .. "/hd_load/mtldr/install_eng.txt"}, {"HD_Load/mtldr/install.txt", SRC_PROGS .. "/hd_load/mtldr/install_eng.txt"},
{"HD_Load/USB_Boot/readme.txt", SRC_PROGS .. "/hd_load/usb_boot/readme_eng.txt"}, {"HD_Load/USB_Boot/readme.txt", SRC_PROGS .. "/hd_load/usb_boot/readme_eng.txt"},
@@ -397,13 +397,13 @@ tup.append_table(iso_extra_files, {
if tup.getconfig('NO_FASM') ~= 'full' then if tup.getconfig('NO_FASM') ~= 'full' then
tup.append_table(img_files, { tup.append_table(img_files, {
{"KERNEL.MNT", VAR_PROGS .. "/../kernel/trunk/kernel.mnt"}, {"KERNEL.MNT", VAR_PROGS .. "/../kernel/trunk/kernel.mnt"},
{"@DOCKY", VAR_PROGS .. "/system/docky/trunk/docky"}, {"@DOCKY", VAR_PROGS .. "/system/docky/docky"},
{"@HA", VAR_PROGS .. "/other/ha/HA"}, {"@HA", VAR_PROGS .. "/other/ha/HA"},
{"@ICON", VAR_PROGS .. "/system/icon_new/icon"}, {"@ICON", VAR_PROGS .. "/system/icon_new/icon"},
{"@MENU", VAR_PROGS .. "/system/menu/trunk/menu"}, {"@MENU", VAR_PROGS .. "/system/menu/menu"},
{"@NOTIFY", VAR_PROGS .. "/system/notify3/notify"}, {"@NOTIFY", VAR_PROGS .. "/system/notify3/notify"},
{"@OPEN", VAR_PROGS .. "/system/open/open"}, {"@OPEN", VAR_PROGS .. "/system/open/open"},
{"@TASKBAR", VAR_PROGS .. "/system/taskbar/trunk/TASKBAR"}, {"@TASKBAR", VAR_PROGS .. "/system/taskbar/TASKBAR"},
{"@SS", VAR_PROGS .. "/system/scrsaver/scrsaver"}, {"@SS", VAR_PROGS .. "/system/scrsaver/scrsaver"},
{"@VOLUME", VAR_PROGS .. "/media/volume/volume"}, {"@VOLUME", VAR_PROGS .. "/media/volume/volume"},
{"HACONFIG", VAR_PROGS .. "/other/ha/HACONFIG"}, {"HACONFIG", VAR_PROGS .. "/other/ha/HACONFIG"},
@@ -411,42 +411,42 @@ tup.append_table(img_files, {
{"APM", VAR_PROGS .. "/system/apm/apm"}, {"APM", VAR_PROGS .. "/system/apm/apm"},
{"CALC", VAR_PROGS .. "/other/calc/calc"}, {"CALC", VAR_PROGS .. "/other/calc/calc"},
{"CALCPLUS", VAR_PROGS .. "/other/calcplus/calcplus"}, {"CALCPLUS", VAR_PROGS .. "/other/calcplus/calcplus"},
{"CALENDAR", VAR_PROGS .. "/system/calendar/trunk/calendar"}, {"CALENDAR", VAR_PROGS .. "/system/calendar/calendar"},
{"COLRDIAL", VAR_PROGS .. "/system/colrdial/color_dialog"}, {"COLRDIAL", VAR_PROGS .. "/system/colrdial/color_dialog"},
{"CROPFLAT", VAR_PROGS .. "/system/cropflat/cropflat"}, {"CROPFLAT", VAR_PROGS .. "/system/cropflat/cropflat"},
{"CPU", VAR_PROGS .. "/system/cpu/trunk/cpu"}, {"CPU", VAR_PROGS .. "/system/cpu/cpu"},
{"CPUID", VAR_PROGS .. "/testing/cpuid/trunk/CPUID"}, {"CPUID", VAR_PROGS .. "/testing/cpuid/trunk/CPUID"},
{"DOCPACK", VAR_PROGS .. "/system/docpack/trunk/docpack"}, {"DOCPACK", VAR_PROGS .. "/system/docpack/docpack"},
{"DEFAULT.SKN", VAR_SKINS .. "/../skins/Leency/Shkvorka/Shkvorka.skn"}, {"DEFAULT.SKN", VAR_SKINS .. "/../skins/Leency/Shkvorka/Shkvorka.skn"},
{"DISPTEST", VAR_PROGS .. "/testing/disptest/trunk/disptest"}, {"DISPTEST", VAR_PROGS .. "/testing/disptest/trunk/disptest"},
{"END", VAR_PROGS .. "/system/end/light/end"}, {"END", VAR_PROGS .. "/system/end/light/end"},
{"ESKIN", VAR_PROGS .. "/system/eskin/trunk/eskin"}, {"ESKIN", VAR_PROGS .. "/system/eskin/eskin"},
{"FSPEED", VAR_PROGS .. "/testing/fspeed/fspeed"}, {"FSPEED", VAR_PROGS .. "/testing/fspeed/fspeed"},
{"GMON", VAR_PROGS .. "/system/gmon/gmon"}, {"GMON", VAR_PROGS .. "/system/gmon/gmon"},
{"HDD_INFO", VAR_PROGS .. "/system/hdd_info/trunk/hdd_info"}, {"HDD_INFO", VAR_PROGS .. "/system/hdd_info/hdd_info"},
{"KBD", VAR_PROGS .. "/testing/kbd/trunk/kbd"}, {"KBD", VAR_PROGS .. "/testing/kbd/trunk/kbd"},
{"KPACK", VAR_PROGS .. "/other/kpack/trunk/kpack"}, {"KPACK", VAR_PROGS .. "/other/kpack/trunk/kpack"},
{"LAUNCHER", VAR_PROGS .. "/system/launcher/trunk/launcher"}, {"LAUNCHER", VAR_PROGS .. "/system/launcher/launcher"},
{"LOADDRV", VAR_PROGS .. "/system/loaddrv/loaddrv"}, {"LOADDRV", VAR_PROGS .. "/system/loaddrv/loaddrv"},
{"MAGNIFY", VAR_PROGS .. "/system/magnify/magnify"}, {"MAGNIFY", VAR_PROGS .. "/system/magnify/magnify"},
{"MGB", VAR_PROGS .. "/testing/mgb/trunk/mgb"}, {"MGB", VAR_PROGS .. "/testing/mgb/trunk/mgb"},
{"MOUSEMUL", VAR_PROGS .. "/system/mousemul/trunk/mousemul"}, {"MOUSEMUL", VAR_PROGS .. "/system/mousemul/mousemul"},
{"MADMOUSE", VAR_PROGS .. "/other/madmouse/madmouse"}, {"MADMOUSE", VAR_PROGS .. "/other/madmouse/madmouse"},
{"MYKEY", VAR_PROGS .. "/system/MyKey/trunk/MyKey"}, {"MYKEY", VAR_PROGS .. "/system/MyKey/MyKey"},
{"PCIDEV", VAR_PROGS .. "/testing/pcidev/trunk/PCIDEV"}, {"PCIDEV", VAR_PROGS .. "/testing/pcidev/trunk/PCIDEV"},
{"RDSAVE", VAR_PROGS .. "/system/rdsave/trunk/rdsave"}, {"RDSAVE", VAR_PROGS .. "/system/rdsave/rdsave"},
{"RTFREAD", VAR_PROGS .. "/other/rtfread/rtfread"}, {"RTFREAD", VAR_PROGS .. "/other/rtfread/rtfread"},
{"SEARCHAP", VAR_PROGS .. "/system/searchap/searchap"}, {"SEARCHAP", VAR_PROGS .. "/system/searchap/searchap"},
{"SCRSHOOT", VAR_PROGS .. "/media/scrshoot/scrshoot"}, {"SCRSHOOT", VAR_PROGS .. "/media/scrshoot/scrshoot"},
{"SETUP", VAR_PROGS .. "/system/setup/trunk/setup"}, {"SETUP", VAR_PROGS .. "/system/setup/setup"},
{"SKINCFG", VAR_PROGS .. "/system/skincfg/trunk/skincfg"}, {"SKINCFG", VAR_PROGS .. "/system/skincfg/skincfg"},
{"TERMINAL", VAR_PROGS .. "/system/terminal/terminal"}, {"TERMINAL", VAR_PROGS .. "/system/terminal/terminal"},
{"TEST", VAR_PROGS .. "/testing/protection/trunk/test"}, {"TEST", VAR_PROGS .. "/testing/protection/trunk/test"},
{"TINYPAD", VAR_PROGS .. "/develop/tinypad/trunk/tinypad"}, {"TINYPAD", VAR_PROGS .. "/develop/tinypad/trunk/tinypad"},
{"TINFO", VAR_PROGS .. "/system/tinfo/tinfo"}, {"TINFO", VAR_PROGS .. "/system/tinfo/tinfo"},
{"TIMER", VAR_PROGS .. "/other/Timer/Timer"}, {"TIMER", VAR_PROGS .. "/other/Timer/Timer"},
{"UNZ", VAR_PROGS .. "/fs/unz/unz"}, {"UNZ", VAR_PROGS .. "/fs/unz/unz"},
{"ZKEY", VAR_PROGS .. "/system/zkey/trunk/ZKEY"}, {"ZKEY", VAR_PROGS .. "/system/zkey/ZKEY"},
{"3D/3DWAV", VAR_PROGS .. "/demos/3dwav/trunk/3dwav"}, {"3D/3DWAV", VAR_PROGS .. "/demos/3dwav/trunk/3dwav"},
{"3D/CROWNSCR", VAR_PROGS .. "/demos/crownscr/trunk/crownscr"}, {"3D/CROWNSCR", VAR_PROGS .. "/demos/crownscr/trunk/crownscr"},
{"3D/3DCUBE2", VAR_PROGS .. "/demos/3dcube2/trunk/3DCUBE2"}, {"3D/3DCUBE2", VAR_PROGS .. "/demos/3dcube2/trunk/3DCUBE2"},
@@ -467,7 +467,7 @@ tup.append_table(img_files, {
{"DEMOS/UNVWATER", VAR_PROGS .. "/demos/unvwater/unvwater"}, {"DEMOS/UNVWATER", VAR_PROGS .. "/demos/unvwater/unvwater"},
{"DEMOS/WEB", VAR_PROGS .. "/demos/web/trunk/web"}, {"DEMOS/WEB", VAR_PROGS .. "/demos/web/trunk/web"},
{"DEMOS/ZEROLINE", VAR_PROGS .. "/demos/zeroline/trunk/zeroline"}, {"DEMOS/ZEROLINE", VAR_PROGS .. "/demos/zeroline/trunk/zeroline"},
{"DEVELOP/BOARD", VAR_PROGS .. "/system/board/trunk/board"}, {"DEVELOP/BOARD", VAR_PROGS .. "/system/board/board"},
{"DEVELOP/DBGBOARD", VAR_PROGS .. "/system/dbgboard/dbgboard"}, {"DEVELOP/DBGBOARD", VAR_PROGS .. "/system/dbgboard/dbgboard"},
{"DEVELOP/CEDIT", SRC_PROGS .. "/develop/cedit/CEDIT"}, {"DEVELOP/CEDIT", SRC_PROGS .. "/develop/cedit/CEDIT"},
{"DEVELOP/CHARSETS", VAR_PROGS .. "/develop/charsets/charsets"}, {"DEVELOP/CHARSETS", VAR_PROGS .. "/develop/charsets/charsets"},

View File

@@ -1,7 +1,10 @@
@@unpack$qqspvt1 equ unpack ; SPDX-License-Identifier: NOASSERTION
;
include "..\..\system\skincfg\trunk\kglobals.inc"
include "..\..\system\skincfg\trunk\unpacker.inc" @@unpack$qqspvt1 equ unpack
IncludeIGlobals include "..\..\system\skincfg\kglobals.inc"
IncludeUGlobals include "..\..\system\skincfg\unpacker.inc"
IncludeIGlobals
IncludeUGlobals

View File

@@ -56,32 +56,32 @@ for %%i in (%BIN% %BIN%\demos %BIN%\develop %BIN%\lib %BIN%\games %BIN%\network
echo * echo *
echo Building system echo Building system
echo * echo *
fasm system\calendar\trunk\calendar.asm %BIN%\calendar fasm system\calendar\calendar.asm %BIN%\calendar
fasm system\board\trunk\board.asm %BIN%\develop\board fasm system\board\board.asm %BIN%\develop\board
fasm system\commouse\trunk\commouse.asm %BIN%\commouse rem fasm system\commouse\trunk\commouse.asm %BIN%\commouse
fasm system\cpu\trunk\cpu.asm %BIN%\cpu fasm system\cpu\cpu.asm %BIN%\cpu
fasm system\cpuid\trunk\cpuid.asm %BIN%\cpuid rem fasm system\cpuid\trunk\cpuid.asm %BIN%\cpuid
fasm system\skincfg\trunk\skincfg.asm %BIN%\skincfg fasm system\skincfg\skincfg.asm %BIN%\skincfg
fasm system\docpack\trunk\docpack.asm %BIN%\docpack fasm system\docpack\docpack.asm %BIN%\docpack
fasm system\end\trunk\end.asm %BIN%\end fasm system\end\end.asm %BIN%\end
fasm system\gmon\gmon.asm %BIN%\gmon fasm system\gmon\gmon.asm %BIN%\gmon
fasm system\icon\trunk\icon.asm %BIN%\icon fasm system\icon\icon.asm %BIN%\icon
fasm system\kbd\trunk\kbd.ASM %BIN%\kbd rem fasm system\kbd\trunk\kbd.ASM %BIN%\kbd
fasm system\launcher\trunk\launcher.asm %BIN%\launcher fasm system\launcher\launcher.asm %BIN%\launcher
fasm system\menu\trunk\menu.asm %BIN%\@menu fasm system\menu\menu.asm %BIN%\@menu
fasm system\mgb\trunk\mgb.asm %BIN%\mgb rem fasm system\mgb\trunk\mgb.asm %BIN%\mgb
fasm system\mousemul\trunk\mousemul.asm %BIN%\mousemul fasm system\mousemul\mousemul.asm %BIN%\mousemul
fasm system\PANEL\trunk\@TASKBAR.ASM %BIN%\@TASKBAR fasm system\PANEL\@TASKBAR.ASM %BIN%\@TASKBAR
fasm system\pcidev\trunk\pcidev.asm %BIN%\pcidev rem fasm system\pcidev\trunk\pcidev.asm %BIN%\pcidev
fasm system\RB\trunk\@RB.ASM %BIN%\@RB rem fasm system\RB\trunk\@RB.ASM %BIN%\@RB
fasm system\rdsave\trunk\rdsave.asm %BIN%\rdsave fasm system\rdsave\rdsave.asm %BIN%\rdsave
fasm system\run\trunk\run.asm %BIN%\run fasm system\run\run.asm %BIN%\run
fasm system\setup\trunk\setup.asm %BIN%\setup fasm system\setup\setup.asm %BIN%\setup
fasm system\skinsel\skinsel.asm %BIN%\skinsel rem fasm system\skinsel\skinsel.asm %BIN%\skinsel
fasm system\ss\trunk\@ss.asm %BIN%\@ss rem fasm system\ss\trunk\@ss.asm %BIN%\@ss
fasm system\vrr\trunk\vrr.asm %BIN%\vrr rem fasm system\vrr\trunk\vrr.asm %BIN%\vrr
fasm system\vrr_m\trunk\vrr_m.asm %BIN%\vrr_m rem fasm system\vrr_m\trunk\vrr_m.asm %BIN%\vrr_m
fasm system\zkey\trunk\zkey.asm %BIN%\zkey fasm system\zkey\zkey.asm %BIN%\zkey
echo * echo *
echo Building develop echo Building develop
@@ -237,10 +237,10 @@ fasm media\animage\animage.asm %BIN%\nightbuild\animage
fasm media\midamp\trunk\midamp.asm %BIN%\nightbuild\midamp fasm media\midamp\trunk\midamp.asm %BIN%\nightbuild\midamp
fasm develop\heed\trunk\heed.asm %BIN%\nightbuild\heed fasm develop\heed\trunk\heed.asm %BIN%\nightbuild\heed
fasm develop\tinypad\trunk\tinypad.asm %BIN%\nightbuild\tinypad fasm develop\tinypad\trunk\tinypad.asm %BIN%\nightbuild\tinypad
fasm system\skincfg\trunk\skincfg.asm %BIN%\nightbuild\skincfg fasm system\skincfg\skincfg.asm %BIN%\nightbuild\skincfg
fasm system\hdd_info\trunk\hdd_info.asm %BIN%\nightbuild\hdd_info fasm system\hdd_info\hdd_info.asm %BIN%\nightbuild\hdd_info
fasm system\mgb\trunk\mgb.asm %BIN%\nightbuild\mgb rem fasm system\mgb\trunk\mgb.asm %BIN%\nightbuild\mgb
fasm system\rdsave\trunk\rdsave.asm %BIN%\nightbuild\rdsave fasm system\rdsave\rdsave.asm %BIN%\nightbuild\rdsave
fasm other\kpack\trunk\kpack.asm %BIN%\nightbuild\kpack fasm other\kpack\trunk\kpack.asm %BIN%\nightbuild\kpack
fasm other\rtfread\rtfread.asm %BIN%\nightbuild\rtfread fasm other\rtfread\rtfread.asm %BIN%\nightbuild\rtfread
;restore ;restore

File diff suppressed because it is too large Load Diff

View File

@@ -1,410 +1,416 @@
;***************************************************************************** ; SPDX-License-Identifier: NOASSERTION
; Box_Lib - library of graphical components ;
; Copyright (C) KolibriOS team 2008-2020. All rights reserved.
; ; Text encoded with Code Page Windows 1251 - Cyrillic
; Authors:
; Alexey Teplov aka <Lrz>
; Marat Zakiyanov aka Mario79, aka Mario ;*****************************************************************************
; Evtikhov Maxim aka Maxxxx32 ; Box_Lib - library of graphical components
; Eugene Grechnikov aka Diamond ; Copyright (C) KolibriOS team 2008-2020. All rights reserved.
; hidnplayr ;
; Igor Afanasiev aka IgorA ; Authors:
;***************************************************************************** ; Alexey Teplov aka <Lrz>
; Marat Zakiyanov aka Mario79, aka Mario
format MS COFF ; Evtikhov Maxim aka Maxxxx32
; Eugene Grechnikov aka Diamond
public EXPORTS ; hidnplayr
; Igor Afanasiev aka IgorA
section '.flat' code readable align 16 ;*****************************************************************************
include '../../../../macros.inc'
include '../../../../proc32.inc' format MS COFF
include '../../../../KOSfuncs.inc'
include 'box_lib.mac' ;macro which should make life easier :) public EXPORTS
;include '../../../../debug.inc'
include 'keys.inc' section '.flat' code readable align 16
include '../../../../system/skincfg/trunk/kglobals.inc' include '../../../../macros.inc'
include '../../../../system/skincfg/trunk/unpacker.inc' include '../../../../proc32.inc'
include '../../../../KOSfuncs.inc'
;----------------------------------------------------------------------------- include 'box_lib.mac' ;macro which should make life easier :)
mem.alloc dd ? ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ;include '../../../../debug.inc'
mem.free dd ? ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> include 'keys.inc'
mem.realloc dd ? ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> include '../../../../system/skincfg/kglobals.inc'
dll.load dd ? include '../../../../system/skincfg/unpacker.inc'
;---------------------------------------------------- ;-----------------------------------------------------------------------------
include 'editbox.asm' ;editbox mem.alloc dd ? ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
include 'checkbox.asm' ;checkbox mem.free dd ? ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
include 'optionbox.asm' ;optionbox mem.realloc dd ? ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
include 'scrollbar.asm' ;scrollbar dll.load dd ?
include 'd_button.asm' ;dinamic_button
include 'menubar.asm' ;menubar ;----------------------------------------------------
include 'filebrowser.asm' ;filebrowser include 'editbox.asm' ;editbox
include 'tree_list.asm' ;tree_list, list_box include 'checkbox.asm' ;checkbox
include 'pathshow.asm' ;pathshow include 'optionbox.asm' ;optionbox
include 't_edit.asm' ;text_editor include 'scrollbar.asm' ;scrollbar
include 'frame.asm' ;frame include 'd_button.asm' ;dinamic_button
include 'progressbar.asm' ;progressbar include 'menubar.asm' ;menubar
include 'tooltip.asm' ;tooltip include 'filebrowser.asm' ;filebrowser
;-------------------------------------------------- include 'tree_list.asm' ;tree_list, list_box
include 'pathshow.asm' ;pathshow
;input: include 't_edit.asm' ;text_editor
; eax = <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> include 'frame.asm' ;frame
; ebx = ... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> include 'progressbar.asm' ;progressbar
; ecx = ... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> include 'tooltip.asm' ;tooltip
; edx = ... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>) ;--------------------------------------------------
align 16
lib_init: ;input:
mov [mem.alloc], eax ; eax = <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
mov [mem.free], ebx ; ebx = ... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
mov [mem.realloc], ecx ; ecx = ... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
mov [dll.load], edx ; edx = ... <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
ret align 16
lib_init:
mov [mem.alloc], eax
align 4 mov [mem.free], ebx
proc draw_edge uses eax ebx ecx edx edi esi, box_l:dword, box_t:dword, box_w:dword, box_h:dword,\ mov [mem.realloc], ecx
col_0:dword, col_1:dword, col_2:dword mov [dll.load], edx
ret
mov esi,[col_1]
and esi,111111101111111011111110b
align 4
mov eax,SF_DRAW_RECT proc draw_edge uses eax ebx ecx edx edi esi, box_l:dword, box_t:dword, box_w:dword, box_h:dword,\
;bottom line col_0:dword, col_1:dword, col_2:dword
mov edx,[col_2]
mov ebx,[box_l] mov esi,[col_1]
shl ebx,16 and esi,111111101111111011111110b
add ebx,[box_w]
inc ebx ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> mov eax,SF_DRAW_RECT
mov ecx,[box_t] ;bottom line
add ecx,[box_h] mov edx,[col_2]
shl ecx,16 mov ebx,[box_l]
inc ecx shl ebx,16
add ebx,[box_w]
mov edi,3 ;for cycle inc ebx ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@@: mov ecx,[box_t]
;calculate colors add ecx,[box_h]
and edx,111111101111111011111110b shl ecx,16
add edx,esi inc ecx
shr edx,1
;line move up and ->...<- mov edi,3 ;for cycle
sub ecx,1 shl 16 ;move up @@:
add ebx,1 shl 16 ;->... ;calculate colors
sub ebx,2 ;...<- and edx,111111101111111011111110b
;draw line add edx,esi
int 0x40 shr edx,1
dec edi ;line move up and ->...<-
jnz @b sub ecx,1 shl 16 ;move up
add ebx,1 shl 16 ;->...
;right line sub ebx,2 ;...<-
mov edx,[col_2] ;draw line
mov ebx,[box_l] int 0x40
add ebx,[box_w] dec edi
shl ebx,16 jnz @b
inc ebx
mov ecx,[box_t] ;right line
shl ecx,16 mov edx,[col_2]
add ecx,[box_h] mov ebx,[box_l]
add ebx,[box_w]
mov edi,3 ;for cycle shl ebx,16
@@: inc ebx
;calculate colors mov ecx,[box_t]
and edx,111111101111111011111110b shl ecx,16
add edx,esi add ecx,[box_h]
shr edx,1
;line move left and ... mov edi,3 ;for cycle
sub ebx,1 shl 16 ;move left @@:
add ecx,1 shl 16 ;calculate colors
sub ecx,2 and edx,111111101111111011111110b
;draw line add edx,esi
int 0x40 shr edx,1
dec edi ;line move left and ...
jnz @b sub ebx,1 shl 16 ;move left
add ecx,1 shl 16
;top line sub ecx,2
mov edx,[col_0] ;draw line
mov ebx,[box_l] int 0x40
shl ebx,16 dec edi
add ebx,[box_w] jnz @b
mov ecx,[box_t]
shl ecx,16 ;top line
inc ecx mov edx,[col_0]
mov ebx,[box_l]
mov edi,3 ;for cycle shl ebx,16
@@: add ebx,[box_w]
;calculate colors mov ecx,[box_t]
and edx,111111101111111011111110b shl ecx,16
add edx,esi inc ecx
shr edx,1
;line move down and ->...<- mov edi,3 ;for cycle
add ecx,1 shl 16 ;move down @@:
add ebx,1 shl 16 ;->... ;calculate colors
sub ebx,2 ;...<- and edx,111111101111111011111110b
;draw line add edx,esi
int 0x40 shr edx,1
dec edi ;line move down and ->...<-
jnz @b add ecx,1 shl 16 ;move down
add ebx,1 shl 16 ;->...
;left line sub ebx,2 ;...<-
mov edx,[col_0] ;draw line
mov ebx,[box_l] int 0x40
shl ebx,16 dec edi
inc ebx jnz @b
mov ecx,[box_t]
shl ecx,16 ;left line
add ecx,[box_h] mov edx,[col_0]
mov ebx,[box_l]
mov edi,3 ;for cycle shl ebx,16
@@: inc ebx
;calculate colors mov ecx,[box_t]
and edx,111111101111111011111110b shl ecx,16
add edx,esi add ecx,[box_h]
shr edx,1
;line move left and ... mov edi,3 ;for cycle
add ebx,1 shl 16 ;move left @@:
add ecx,1 shl 16 ;calculate colors
sub ecx,2 and edx,111111101111111011111110b
;draw line add edx,esi
int 0x40 shr edx,1
dec edi ;line move left and ...
jnz @b add ebx,1 shl 16 ;move left
add ecx,1 shl 16
ret sub ecx,2
endp ;draw line
int 0x40
dec edi
;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> KPCK jnz @b
IncludeIGlobals
IncludeUGlobals ret
endp
align 16
EXPORTS:
;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> KPCK
IncludeIGlobals
dd sz_init, lib_init IncludeUGlobals
dd sz_version, 0x00000001
align 16
dd sz_edit_box, edit_box_draw ;old function name EXPORTS:
dd sz_edit_box_draw, edit_box_draw
dd sz_edit_box_key, edit_box_key
dd sz_edit_box_key_safe, edit_box_key_safe dd sz_init, lib_init
dd sz_edit_box_mouse, edit_box_mouse dd sz_version, 0x00000001
dd sz_edit_box_set_text, edit_box_set_text
dd szVersion_ed, 0x00000001 dd sz_edit_box, edit_box_draw ;old function name
dd sz_edit_box_draw, edit_box_draw
dd sz_init_checkbox, init_checkbox dd sz_edit_box_key, edit_box_key
dd sz_check_box_draw, check_box_draw dd sz_edit_box_key_safe, edit_box_key_safe
dd sz_check_box_mouse, check_box_mouse dd sz_edit_box_mouse, edit_box_mouse
dd szVersion_ch2, 0x00000002 dd sz_edit_box_set_text, edit_box_set_text
dd szVersion_ed, 0x00000001
dd sz_option_box_draw, option_box_draw
dd sz_option_box_mouse, option_box_mouse dd sz_init_checkbox, init_checkbox
dd szVersion_op, 0x00000001 dd sz_check_box_draw, check_box_draw
dd sz_check_box_mouse, check_box_mouse
dd sz_Scrollbar_ver_draw, scroll_bar_vertical.draw dd szVersion_ch2, 0x00000002
dd sz_Scrollbar_ver_mouse, scroll_bar_vertical.mouse
dd sz_Scrollbar_hor_draw, scroll_bar_horizontal.draw dd sz_option_box_draw, option_box_draw
dd sz_Scrollbar_hor_mouse, scroll_bar_horizontal.mouse dd sz_option_box_mouse, option_box_mouse
dd szVersion_scrollbar, 0x00010001 dd szVersion_op, 0x00000001
dd sz_Dbutton_draw, dinamic_button.draw dd sz_Scrollbar_ver_draw, scroll_bar_vertical.draw
dd sz_Dbutton_mouse, dinamic_button.mouse dd sz_Scrollbar_ver_mouse, scroll_bar_vertical.mouse
dd szVersion_dbutton, 0x00010001 dd sz_Scrollbar_hor_draw, scroll_bar_horizontal.draw
dd sz_Scrollbar_hor_mouse, scroll_bar_horizontal.mouse
dd sz_Menu_bar_draw, menu_bar.draw dd szVersion_scrollbar, 0x00010001
dd sz_Menu_bar_mouse, menu_bar.mouse
dd sz_Menu_bar_activate, menu_bar.activate dd sz_Dbutton_draw, dinamic_button.draw
dd szVersion_menu_bar, 0x00010002 dd sz_Dbutton_mouse, dinamic_button.mouse
dd szVersion_dbutton, 0x00010001
dd sz_FileBrowser_draw, fb_draw_panel
dd sz_FileBrowser_mouse, fb_mouse dd sz_Menu_bar_draw, menu_bar.draw
dd sz_FileBrowser_key, fb_key dd sz_Menu_bar_mouse, menu_bar.mouse
dd szVersion_FileBrowser, 0x00010001 dd sz_Menu_bar_activate, menu_bar.activate
dd szVersion_menu_bar, 0x00010002
dd sz_tl_data_init, tl_data_init
dd sz_tl_data_clear, tl_data_clear dd sz_FileBrowser_draw, fb_draw_panel
dd sz_tl_info_clear, tl_info_clear dd sz_FileBrowser_mouse, fb_mouse
dd sz_tl_key, tl_key dd sz_FileBrowser_key, fb_key
dd sz_tl_mouse, tl_mouse dd szVersion_FileBrowser, 0x00010001
dd sz_tl_draw, tl_draw
dd sz_tl_info_undo, tl_info_undo dd sz_tl_data_init, tl_data_init
dd sz_tl_info_redo, tl_info_redo dd sz_tl_data_clear, tl_data_clear
dd sz_tl_node_add, tl_node_add dd sz_tl_info_clear, tl_info_clear
dd sz_tl_node_set_data, tl_node_set_data dd sz_tl_key, tl_key
dd sz_tl_node_get_data, tl_node_get_data dd sz_tl_mouse, tl_mouse
dd sz_tl_node_delete, tl_node_delete dd sz_tl_draw, tl_draw
dd sz_tl_cur_beg, tl_cur_beg dd sz_tl_info_undo, tl_info_undo
dd sz_tl_cur_next, tl_cur_next dd sz_tl_info_redo, tl_info_redo
dd sz_tl_cur_perv, tl_cur_perv dd sz_tl_node_add, tl_node_add
dd sz_tl_node_close_open, tl_node_close_open dd sz_tl_node_set_data, tl_node_set_data
dd sz_tl_node_lev_inc, tl_node_lev_inc dd sz_tl_node_get_data, tl_node_get_data
dd sz_tl_node_lev_dec, tl_node_lev_dec dd sz_tl_node_delete, tl_node_delete
dd sz_tl_node_move_up, tl_node_move_up dd sz_tl_cur_beg, tl_cur_beg
dd sz_tl_node_move_down, tl_node_move_down dd sz_tl_cur_next, tl_cur_next
dd sz_tl_node_poi_get_info, tl_node_poi_get_info dd sz_tl_cur_perv, tl_cur_perv
dd sz_tl_node_poi_get_next_info, tl_node_poi_get_next_info dd sz_tl_node_close_open, tl_node_close_open
dd sz_tl_node_poi_get_data, tl_node_poi_get_data dd sz_tl_node_lev_inc, tl_node_lev_inc
dd sz_tl_save_mem, tl_save_mem dd sz_tl_node_lev_dec, tl_node_lev_dec
dd sz_tl_load_mem, tl_load_mem dd sz_tl_node_move_up, tl_node_move_up
dd sz_tl_get_mem_size, tl_get_mem_size dd sz_tl_node_move_down, tl_node_move_down
dd sz_tl_version_tree_list, 0x00000001 dd sz_tl_node_poi_get_info, tl_node_poi_get_info
dd sz_tl_node_poi_get_next_info, tl_node_poi_get_next_info
dd sz_PathShow_prepare, path_show.prepare dd sz_tl_node_poi_get_data, tl_node_poi_get_data
dd sz_PathShow_draw, path_show.draw dd sz_tl_save_mem, tl_save_mem
dd szVersion_path_show, 0x00010001 dd sz_tl_load_mem, tl_load_mem
dd sz_tl_get_mem_size, tl_get_mem_size
dd sz_ted_but_sumb_upper, ted_but_sumb_upper dd sz_tl_version_tree_list, 0x00000001
dd sz_ted_but_sumb_lover, ted_but_sumb_lover
dd sz_ted_but_convert_by_table, ted_but_convert_by_table dd sz_PathShow_prepare, path_show.prepare
dd sz_ted_can_save, ted_can_save dd sz_PathShow_draw, path_show.draw
dd sz_ted_clear, ted_clear dd szVersion_path_show, 0x00010001
dd sz_ted_delete, ted_delete
dd sz_ted_draw, ted_draw dd sz_ted_but_sumb_upper, ted_but_sumb_upper
dd sz_ted_init, ted_init dd sz_ted_but_sumb_lover, ted_but_sumb_lover
dd sz_ted_init_scroll_bars, ted_init_scroll_bars dd sz_ted_but_convert_by_table, ted_but_convert_by_table
dd sz_ted_init_syntax_file, ted_init_syntax_file dd sz_ted_can_save, ted_can_save
dd sz_ted_is_select, ted_is_select dd sz_ted_clear, ted_clear
dd sz_ted_key, ted_key dd sz_ted_delete, ted_delete
dd sz_ted_mouse, ted_mouse dd sz_ted_draw, ted_draw
dd sz_ted_open_file, ted_open_file dd sz_ted_init, ted_init
dd sz_ted_save_file, ted_save_file dd sz_ted_init_scroll_bars, ted_init_scroll_bars
dd sz_ted_text_add, ted_text_add dd sz_ted_init_syntax_file, ted_init_syntax_file
dd sz_ted_but_select_word, ted_but_select_word dd sz_ted_is_select, ted_is_select
dd sz_ted_but_cut, ted_but_cut dd sz_ted_key, ted_key
dd sz_ted_but_copy, ted_but_copy dd sz_ted_mouse, ted_mouse
dd sz_ted_but_paste, ted_but_paste dd sz_ted_open_file, ted_open_file
dd sz_ted_but_undo, ted_but_undo dd sz_ted_save_file, ted_save_file
dd sz_ted_but_redo, ted_but_redo dd sz_ted_text_add, ted_text_add
dd sz_ted_but_reverse, ted_but_reverse dd sz_ted_but_select_word, ted_but_select_word
dd sz_ted_but_find, ted_but_find dd sz_ted_but_cut, ted_but_cut
dd sz_ted_but_replace, ted_but_replace dd sz_ted_but_copy, ted_but_copy
dd sz_ted_text_colored, ted_text_colored dd sz_ted_but_paste, ted_but_paste
dd sz_ted_go_to_position, ted_go_to_position dd sz_ted_but_undo, ted_but_undo
dd sz_ted_version, 6 dd sz_ted_but_redo, ted_but_redo
dd sz_ted_but_reverse, ted_but_reverse
dd sz_Frame_draw, frame.draw dd sz_ted_but_find, ted_but_find
dd szVersion_frame, 0x00010001 dd sz_ted_but_replace, ted_but_replace
dd sz_ted_text_colored, ted_text_colored
dd sz_progressbar_draw, progressbar_draw dd sz_ted_go_to_position, ted_go_to_position
dd sz_progressbar_progress, progressbar_progress dd sz_ted_version, 6
dd sz_tooltip_init, tooltip_init dd sz_Frame_draw, frame.draw
dd sz_tooltip_delete, tooltip_delete dd szVersion_frame, 0x00010001
dd sz_tooltip_test_show, tooltip_test_show
dd sz_tooltip_mouse, tooltip_mouse dd sz_progressbar_draw, progressbar_draw
dd sz_get_font_size, get_font_size dd sz_progressbar_progress, progressbar_progress
dd 0,0 dd sz_tooltip_init, tooltip_init
dd sz_tooltip_delete, tooltip_delete
dd sz_tooltip_test_show, tooltip_test_show
sz_init db 'lib_init',0 dd sz_tooltip_mouse, tooltip_mouse
sz_version db 'version',0 dd sz_get_font_size, get_font_size
sz_edit_box db 'edit_box',0 dd 0,0
sz_edit_box_draw db 'edit_box_draw',0
sz_edit_box_key db 'edit_box_key',0
sz_edit_box_key_safe db 'edit_box_key_safe',0 sz_init db 'lib_init',0
sz_edit_box_mouse db 'edit_box_mouse',0 sz_version db 'version',0
sz_edit_box_set_text db 'edit_box_set_text',0
szVersion_ed db 'version_ed',0 sz_edit_box db 'edit_box',0
sz_edit_box_draw db 'edit_box_draw',0
sz_init_checkbox db 'init_checkbox2',0 sz_edit_box_key db 'edit_box_key',0
sz_check_box_draw db 'check_box_draw2',0 sz_edit_box_key_safe db 'edit_box_key_safe',0
sz_check_box_mouse db 'check_box_mouse2',0 sz_edit_box_mouse db 'edit_box_mouse',0
szVersion_ch2 db 'version_ch2',0 sz_edit_box_set_text db 'edit_box_set_text',0
szVersion_ed db 'version_ed',0
sz_option_box_draw db 'option_box_draw',0
sz_option_box_mouse db 'option_box_mouse',0 sz_init_checkbox db 'init_checkbox2',0
szVersion_op db 'version_op',0 sz_check_box_draw db 'check_box_draw2',0
sz_check_box_mouse db 'check_box_mouse2',0
sz_Scrollbar_ver_draw db 'scrollbar_v_draw',0 szVersion_ch2 db 'version_ch2',0
sz_Scrollbar_ver_mouse db 'scrollbar_v_mouse',0
sz_Scrollbar_hor_draw db 'scrollbar_h_draw',0 sz_option_box_draw db 'option_box_draw',0
sz_Scrollbar_hor_mouse db 'scrollbar_h_mouse',0 sz_option_box_mouse db 'option_box_mouse',0
szVersion_scrollbar db 'version_scrollbar',0 szVersion_op db 'version_op',0
sz_Dbutton_draw db 'dbutton_draw',0 sz_Scrollbar_ver_draw db 'scrollbar_v_draw',0
sz_Dbutton_mouse db 'dbutton_mouse',0 sz_Scrollbar_ver_mouse db 'scrollbar_v_mouse',0
szVersion_dbutton db 'version_dbutton',0 sz_Scrollbar_hor_draw db 'scrollbar_h_draw',0
sz_Scrollbar_hor_mouse db 'scrollbar_h_mouse',0
sz_Menu_bar_draw db 'menu_bar_draw',0 szVersion_scrollbar db 'version_scrollbar',0
sz_Menu_bar_mouse db 'menu_bar_mouse',0
sz_Menu_bar_activate db 'menu_bar_activate',0 sz_Dbutton_draw db 'dbutton_draw',0
szVersion_menu_bar db 'version_menu_bar',0 sz_Dbutton_mouse db 'dbutton_mouse',0
szVersion_dbutton db 'version_dbutton',0
sz_FileBrowser_draw db 'FileBrowser_draw',0
sz_FileBrowser_mouse db 'FileBrowser_mouse',0 sz_Menu_bar_draw db 'menu_bar_draw',0
sz_FileBrowser_key db 'FileBrowser_key',0 sz_Menu_bar_mouse db 'menu_bar_mouse',0
szVersion_FileBrowser db 'version_FileBrowser',0 sz_Menu_bar_activate db 'menu_bar_activate',0
szVersion_menu_bar db 'version_menu_bar',0
sz_tl_data_init db 'tl_data_init',0
sz_tl_data_clear db 'tl_data_clear',0 sz_FileBrowser_draw db 'FileBrowser_draw',0
sz_tl_info_clear db 'tl_info_clear',0 sz_FileBrowser_mouse db 'FileBrowser_mouse',0
sz_tl_key db 'tl_key',0 sz_FileBrowser_key db 'FileBrowser_key',0
sz_tl_mouse db 'tl_mouse',0 szVersion_FileBrowser db 'version_FileBrowser',0
sz_tl_draw db 'tl_draw',0
sz_tl_info_undo db 'tl_info_undo',0 sz_tl_data_init db 'tl_data_init',0
sz_tl_info_redo db 'tl_info_redo',0 sz_tl_data_clear db 'tl_data_clear',0
sz_tl_node_add db 'tl_node_add',0 sz_tl_info_clear db 'tl_info_clear',0
sz_tl_node_set_data db 'tl_node_set_data',0 sz_tl_key db 'tl_key',0
sz_tl_node_get_data db 'tl_node_get_data',0 sz_tl_mouse db 'tl_mouse',0
sz_tl_node_delete db 'tl_node_delete',0 sz_tl_draw db 'tl_draw',0
sz_tl_cur_beg db 'tl_cur_beg',0 sz_tl_info_undo db 'tl_info_undo',0
sz_tl_cur_next db 'tl_cur_next',0 sz_tl_info_redo db 'tl_info_redo',0
sz_tl_cur_perv db 'tl_cur_perv',0 sz_tl_node_add db 'tl_node_add',0
sz_tl_node_close_open db 'tl_node_close_open',0 sz_tl_node_set_data db 'tl_node_set_data',0
sz_tl_node_lev_inc db 'tl_node_lev_inc',0 sz_tl_node_get_data db 'tl_node_get_data',0
sz_tl_node_lev_dec db 'tl_node_lev_dec',0 sz_tl_node_delete db 'tl_node_delete',0
sz_tl_node_move_up db 'tl_node_move_up',0 sz_tl_cur_beg db 'tl_cur_beg',0
sz_tl_node_move_down db 'tl_node_move_down',0 sz_tl_cur_next db 'tl_cur_next',0
sz_tl_node_poi_get_info db 'tl_node_poi_get_info',0 sz_tl_cur_perv db 'tl_cur_perv',0
sz_tl_node_poi_get_next_info db 'tl_node_poi_get_next_info',0 sz_tl_node_close_open db 'tl_node_close_open',0
sz_tl_node_poi_get_data db 'tl_node_poi_get_data',0 sz_tl_node_lev_inc db 'tl_node_lev_inc',0
sz_tl_save_mem db 'tl_save_mem',0 sz_tl_node_lev_dec db 'tl_node_lev_dec',0
sz_tl_load_mem db 'tl_load_mem',0 sz_tl_node_move_up db 'tl_node_move_up',0
sz_tl_get_mem_size db 'tl_get_mem_size',0 sz_tl_node_move_down db 'tl_node_move_down',0
sz_tl_version_tree_list db 'version_tree_list',0 sz_tl_node_poi_get_info db 'tl_node_poi_get_info',0
sz_tl_node_poi_get_next_info db 'tl_node_poi_get_next_info',0
sz_PathShow_prepare db 'PathShow_prepare',0 sz_tl_node_poi_get_data db 'tl_node_poi_get_data',0
sz_PathShow_draw db 'PathShow_draw',0 sz_tl_save_mem db 'tl_save_mem',0
szVersion_path_show db 'version_PathShow',0 sz_tl_load_mem db 'tl_load_mem',0
sz_tl_get_mem_size db 'tl_get_mem_size',0
sz_ted_but_sumb_upper db 'ted_but_sumb_upper',0 sz_tl_version_tree_list db 'version_tree_list',0
sz_ted_but_sumb_lover db 'ted_but_sumb_lover',0
sz_ted_but_convert_by_table db 'ted_but_convert_by_table',0 sz_PathShow_prepare db 'PathShow_prepare',0
sz_ted_can_save db 'ted_can_save',0 sz_PathShow_draw db 'PathShow_draw',0
sz_ted_clear db 'ted_clear',0 szVersion_path_show db 'version_PathShow',0
sz_ted_delete db 'ted_delete',0
sz_ted_draw db 'ted_draw',0 sz_ted_but_sumb_upper db 'ted_but_sumb_upper',0
sz_ted_init db 'ted_init',0 sz_ted_but_sumb_lover db 'ted_but_sumb_lover',0
sz_ted_init_scroll_bars db 'ted_init_scroll_bars',0 sz_ted_but_convert_by_table db 'ted_but_convert_by_table',0
sz_ted_init_syntax_file db 'ted_init_syntax_file',0 sz_ted_can_save db 'ted_can_save',0
sz_ted_is_select db 'ted_is_select',0 sz_ted_clear db 'ted_clear',0
sz_ted_key db 'ted_key',0 sz_ted_delete db 'ted_delete',0
sz_ted_mouse db 'ted_mouse',0 sz_ted_draw db 'ted_draw',0
sz_ted_open_file db 'ted_open_file',0 sz_ted_init db 'ted_init',0
sz_ted_save_file db 'ted_save_file',0 sz_ted_init_scroll_bars db 'ted_init_scroll_bars',0
sz_ted_text_add db 'ted_text_add',0 sz_ted_init_syntax_file db 'ted_init_syntax_file',0
sz_ted_but_select_word db 'ted_but_select_word',0 sz_ted_is_select db 'ted_is_select',0
sz_ted_but_cut db 'ted_but_cut',0 sz_ted_key db 'ted_key',0
sz_ted_but_copy db 'ted_but_copy',0 sz_ted_mouse db 'ted_mouse',0
sz_ted_but_paste db 'ted_but_paste',0 sz_ted_open_file db 'ted_open_file',0
sz_ted_but_undo db 'ted_but_undo',0 sz_ted_save_file db 'ted_save_file',0
sz_ted_but_redo db 'ted_but_redo',0 sz_ted_text_add db 'ted_text_add',0
sz_ted_but_reverse db 'ted_but_reverse',0 sz_ted_but_select_word db 'ted_but_select_word',0
sz_ted_but_find db 'ted_but_find',0 sz_ted_but_cut db 'ted_but_cut',0
sz_ted_but_replace db 'ted_but_replace',0 sz_ted_but_copy db 'ted_but_copy',0
sz_ted_text_colored db 'ted_text_colored',0 sz_ted_but_paste db 'ted_but_paste',0
sz_ted_go_to_position db 'ted_go_to_position',0 sz_ted_but_undo db 'ted_but_undo',0
sz_ted_version db 'version_text_edit',0 sz_ted_but_redo db 'ted_but_redo',0
sz_ted_but_reverse db 'ted_but_reverse',0
sz_Frame_draw db 'frame_draw',0 sz_ted_but_find db 'ted_but_find',0
szVersion_frame db 'version_frame',0 sz_ted_but_replace db 'ted_but_replace',0
sz_ted_text_colored db 'ted_text_colored',0
sz_progressbar_draw db 'progressbar_draw', 0 sz_ted_go_to_position db 'ted_go_to_position',0
sz_progressbar_progress db 'progressbar_progress', 0 sz_ted_version db 'version_text_edit',0
sz_tooltip_init db 'tooltip_init', 0 sz_Frame_draw db 'frame_draw',0
sz_tooltip_delete db 'tooltip_delete', 0 szVersion_frame db 'version_frame',0
sz_tooltip_test_show db 'tooltip_test_show', 0
sz_tooltip_mouse db 'tooltip_mouse', 0 sz_progressbar_draw db 'progressbar_draw', 0
sz_get_font_size db 'get_font_size', 0 sz_progressbar_progress db 'progressbar_progress', 0
sz_tooltip_init db 'tooltip_init', 0
sz_tooltip_delete db 'tooltip_delete', 0
sz_tooltip_test_show db 'tooltip_test_show', 0
sz_tooltip_mouse db 'tooltip_mouse', 0
sz_get_font_size db 'get_font_size', 0

View File

@@ -27,7 +27,7 @@
;; ;; ;; ;;
;;================================================================================================;; ;;================================================================================================;;
include 'xcf.inc' include 'xcf.inc'
;include '../../../../../system/board/trunk/debug.inc' ;include '../../../../../system/board/debug.inc'
MAX_LAYERS = 255 MAX_LAYERS = 255
@@ -821,7 +821,7 @@ endl
mov [bottom_x1], 0 mov [bottom_x1], 0
mov ecx, [ebx + Image.Width] mov ecx, [ebx + Image.Width]
mov [bottom_length], ecx mov [bottom_length], ecx
mov eax, [edx + Image.Extended] mov eax, [edx + Image.Extended]
movsx eax, word[eax + xcf_ext.offset_x] movsx eax, word[eax + xcf_ext.offset_x]
@@ -858,7 +858,7 @@ endl
mov [bottom_y1], 0 mov [bottom_y1], 0
mov ecx, [ebx + Image.Height] mov ecx, [ebx + Image.Height]
mov [bottom_length], ecx mov [bottom_length], ecx
mov eax, [edx + Image.Extended] mov eax, [edx + Image.Extended]
movsx eax, word[eax + xcf_ext.offset_y] movsx eax, word[eax + xcf_ext.offset_y]
@@ -972,7 +972,7 @@ endl
add edi, edx add edi, edx
mov edx, [edi] mov edx, [edi]
jmp .composite_found jmp .composite_found
@@: @@:
add edi, 16 add edi, 16
dec ecx dec ecx
jnz .still jnz .still

File diff suppressed because it is too large Load Diff

View File

@@ -1,429 +1,435 @@
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0ADAE><EFBFBD> <20>ᥬ, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD>/ᮢ<>⮬/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ... ; SPDX-License-Identifier: NOASSERTION
;
use32
org 0 ; Text encoded with Code Page 866 - Cyrillic
db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><EFBFBD><E1AFAE><EFBFBD><EFA5AC><EFBFBD><><E4A0A9> <20><EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
dd 1, start, i_end, mem, stacktop, file_name, sys_path
;<3B><><EFBFBD><E0AEAC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0ADAE><EFBFBD> <20>ᥬ, <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: <20><><EFBFBD><EFBFBD><EFBFBD>/ᮢ<>⮬/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ...
MAX_COLOR_WORD_LEN equ 40
maxChars equ 100002 ;(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ ᨬ<><E1A8AC><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E3ACA5><EFBFBD> + 2) use32
BUF_SIZE equ 4096 ;buffer for copy|paste org 0
maxSyntaxFileSize equ 410000 db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><EFBFBD><E1AFAE><EFBFBD><EFA5AC><EFBFBD><><E4A0A9> <20><EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
TOOLBAR_ICONS_SIZE equ 1200*21 dd 1, start, i_end, mem, stacktop, file_name, sys_path
include '../../proc32.inc' MAX_COLOR_WORD_LEN equ 40
include '../../macros.inc' maxChars equ 100002 ;(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⢮ ᨬ<><E1A8AC><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E3ACA5><EFBFBD> + 2)
include '../../KOSfuncs.inc' BUF_SIZE equ 4096 ;buffer for copy|paste
include '../../load_img.inc' maxSyntaxFileSize equ 410000
include '../../load_lib.mac' TOOLBAR_ICONS_SIZE equ 1200*21
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
include '../../system/skincfg/trunk/kglobals.inc' include '../../proc32.inc'
include '../../system/skincfg/trunk/unpacker.inc' include '../../macros.inc'
include 'lang.inc' include '../../KOSfuncs.inc'
include '../../load_img.inc'
include 't_data.inc' include '../../load_lib.mac'
include 't_button.inc' include '../../develop/libraries/box_lib/trunk/box_lib.mac'
include 't_menu.inc' include '../../system/skincfg/kglobals.inc'
include 'strlen.inc' include '../../system/skincfg/unpacker.inc'
include 't_draw.inc' ;draw main window functions include 'lang.inc'
include 'wnd_k_words.inc'
include 't_data.inc'
@use_library mem.Alloc,mem.Free,mem.ReAlloc,dll.Load include 't_button.inc'
include 't_menu.inc'
align 4 include 'strlen.inc'
icon_tl_sys dd 0 ;㪠<><E3AAA0><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> include 't_draw.inc' ;draw main window functions
run_file_70 FileInfoBlock include 'wnd_k_words.inc'
align 4 @use_library mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
start:
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors align 4
icon_tl_sys dd 0 ;㪠<><E3AAA0><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
mcall SF_SYS_MISC,SSF_HEAP_INIT run_file_70 FileInfoBlock
or eax,eax
jnz @f align 4
call ted_Exit start:
@@: mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors
mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code mcall SF_SYS_MISC,SSF_HEAP_INIT
mcall SF_SET_EVENTS_MASK,0xC0000027 or eax,eax
jnz @f
mov esi,file_name call ted_Exit
stdcall str_len,esi @@:
mov ecx,eax
mov edi,openfile_path mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code
cld mcall SF_SET_EVENTS_MASK,0xC0000027
rep movsb ;<3B><><EFBFBD><EFBFBD><EFBFBD><20><><EFBFBD><><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD> openfile_path
mov esi,file_name
load_libraries l_libs_start,load_lib_end stdcall str_len,esi
mov ecx,eax
;<3B><EFBFBD><20><><>쪮 㤠筮 <20><><EFBFBD><EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> mov edi,openfile_path
mov ebp,lib0 cld
.test_lib_open: rep movsb ;<3B><><EFBFBD><EFBFBD><EFBFBD><20><><EFBFBD><><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD> openfile_path
cmp dword [ebp+ll_struc_size-4],0
jz @f load_libraries l_libs_start,load_lib_end
mcall SF_TERMINATE_PROCESS ;exit not correct
@@: ;<3B><EFBFBD><20><><>쪮 㤠筮 <20><><EFBFBD><EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
add ebp,ll_struc_size mov ebp,lib0
cmp ebp,load_lib_end .test_lib_open:
jl .test_lib_open cmp dword [ebp+ll_struc_size-4],0
jz @f
;--------------------------------------------------------------------- mcall SF_TERMINATE_PROCESS ;exit not correct
stdcall [ted_init], tedit0 @@:
stdcall [tl_data_init], tree1 add ebp,ll_struc_size
option_boxes_set_sys_color sc,opt_grlist1 cmp ebp,load_lib_end
init_checkboxes2 check_boxes,check_boxes_end jl .test_lib_open
check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc
;---------------------------------------------------------------------
; OpenDialog initialisation stdcall [ted_init], tedit0
stdcall [OpenDialog_Init],OpenDialog_data stdcall [tl_data_init], tree1
option_boxes_set_sys_color sc,opt_grlist1
; kmenu initialisation init_checkboxes2 check_boxes,check_boxes_end
call tedit_menu_init check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc
; init toolbar file ; OpenDialog initialisation
include_image_file 'te_icon.png', bmp_icon,,,6 ;6 <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> stdcall [OpenDialog_Init],OpenDialog_data
mov eax,[bmp_icon]
add eax,TOOLBAR_ICONS_SIZE ; kmenu initialisation
stdcall img_to_gray, [bmp_icon],eax,(TOOLBAR_ICONS_SIZE)/3 call tedit_menu_init
;---------------------------------------------------------------------
; <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>塞 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> ; init toolbar file
include_image_file '..\..\media\log_el\trunk\tl_sys_16.png', icon_tl_sys include_image_file 'te_icon.png', bmp_icon,,,6 ;6 <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
mov eax,dword[icon_tl_sys] mov eax,[bmp_icon]
mov dword[tree1.data_img_sys],eax add eax,TOOLBAR_ICONS_SIZE
; <20><><EFBFBD><EFBFBD><EFBFBD>塞 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E3A7AB> stdcall img_to_gray, [bmp_icon],eax,(TOOLBAR_ICONS_SIZE)/3
include_image_file 'tl_nod_16.png', icon_tl_sys ;---------------------------------------------------------------------
mov eax,dword[icon_tl_sys] ; <20><><EFBFBD><EFBFBD><EFBFBD>塞 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>
mov dword[tree1.data_img],eax include_image_file '..\..\media\log_el\trunk\tl_sys_16.png', icon_tl_sys
;------------------------------------------------------------------------------ mov eax,dword[icon_tl_sys]
copy_path fn_syntax_dir,sys_path,file_name,0 ;<3B><><20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><E4A0A9><EFBFBD><EFBFBD> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD> mov dword[tree1.data_img_sys],eax
xor eax,eax ; <20><><EFBFBD><EFBFBD><EFBFBD>塞 䠩<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E3A7AB>
mov ecx,4096 include_image_file 'tl_nod_16.png', icon_tl_sys
mov edi,file_name mov eax,dword[icon_tl_sys]
repnz scasb mov dword[tree1.data_img],eax
mov byte[edi-2],al ;㡨ࠥ<E3A1A8> '/' <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><EFBFBD> <20><><EFBFBD> <20><EFBFBD><E2A5AD> <20> CD) ;------------------------------------------------------------------------------
mcall SF_FILE,tree_file_struct copy_path fn_syntax_dir,sys_path,file_name,0 ;<3B><><20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><E4A0A9><EFBFBD><EFBFBD> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD>
xor eax,eax
or ebx,ebx mov ecx,4096
jz .end_dir_init mov edi,file_name
mov eax,dir_mem+32+40 repnz scasb
mov ecx,ebx mov byte[edi-2],al ;㡨ࠥ<E3A1A8> '/' <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> (<28><EFBFBD> <20><><EFBFBD> <20><EFBFBD><E2A5AD> <20> CD)
@@: mcall SF_FILE,tree_file_struct
cmp byte[eax],'.' ;䨫<><E4A8AB><EFBFBD>㥬 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.' <20> '..'
je .filter or ebx,ebx
;0x10000 ;1*2^16 - <20><><EFBFBD> 1 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> jz .end_dir_init
stdcall [tl_node_add], tree1,0x10000,eax mov eax,dir_mem+32+40
stdcall [tl_cur_next], tree1 mov ecx,ebx
.filter: @@:
add eax,304 cmp byte[eax],'.' ;䨫<><E4A8AB><EFBFBD>㥬 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.' <20> '..'
loop @b je .filter
stdcall [tl_cur_beg],tree1 ;<3B><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD> <20><><EFBFBD> ᯨ᪠ ;0x10000 ;1*2^16 - <20><><EFBFBD> 1 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
or dword[tree1.style], tl_cursor_pos_limited ;<3B><><EFBFBD><EFBFBD><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><EFBFBD><E0A5A4><EFBFBD><EFBFBD> ᯨ᪠ stdcall [tl_node_add], tree1,0x10000,eax
.end_dir_init: stdcall [tl_cur_next], tree1
.filter:
;--- load ini file --- add eax,304
copy_path ini_name,sys_path,file_name,0 loop @b
;window startup pozition stdcall [tl_cur_beg],tree1 ;<3B><EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> ᯨ᪠
stdcall [ini_get_int],file_name,ini_sec_window,key_window_l,ini_def_window_l or dword[tree1.style], tl_cursor_pos_limited ;<3B><><EFBFBD><EFBFBD><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><EFBFBD><E0A5A4><EFBFBD><EFBFBD> ᯨ᪠
mov word[wnd_s_pos+2],ax .end_dir_init:
stdcall [ini_get_int],file_name,ini_sec_window,key_window_w,ini_def_window_w
mov word[wnd_s_pos],ax ;--- load ini file ---
stdcall [ini_get_int],file_name,ini_sec_window,key_window_t,ini_def_window_t copy_path ini_name,sys_path,file_name,0
mov word[wnd_s_pos+6],ax ;window startup pozition
stdcall [ini_get_int],file_name,ini_sec_window,key_window_h,ini_def_window_h stdcall [ini_get_int],file_name,ini_sec_window,key_window_l,ini_def_window_l
mov word[wnd_s_pos+4],ax mov word[wnd_s_pos+2],ax
;scrool type stdcall [ini_get_int],file_name,ini_sec_window,key_window_w,ini_def_window_w
stdcall [ini_get_int],file_name,ini_sec_window,key_scroll_type,ini_def_scroll_type mov word[wnd_s_pos],ax
mov [wScr.type],eax stdcall [ini_get_int],file_name,ini_sec_window,key_window_t,ini_def_window_t
mov [hScr.type],eax mov word[wnd_s_pos+6],ax
mov [ws_dir_lbox.type],eax stdcall [ini_get_int],file_name,ini_sec_window,key_window_h,ini_def_window_h
mov [w_scr_t3.type],eax mov word[wnd_s_pos+4],ax
;symbol size ;scrool type
stdcall [ini_get_int],file_name,ini_sec_window,key_symbol_w,ini_def_symbol_w stdcall [ini_get_int],file_name,ini_sec_window,key_scroll_type,ini_def_scroll_type
mov dword[tedit0.rec.width],eax mov [wScr.type],eax
stdcall [ini_get_int],file_name,ini_sec_window,key_symbol_h,ini_def_symbol_h mov [hScr.type],eax
mov dword[tedit0.rec.height],eax mov [ws_dir_lbox.type],eax
;lea eax,[eax+eax*2] mov [w_scr_t3.type],eax
;mov dword[tedit0.rec.top],eax ;symbol size
;font size stdcall [ini_get_int],file_name,ini_sec_window,key_symbol_w,ini_def_symbol_w
stdcall [ini_get_int],file_name,ini_sec_window,key_font_s,ini_def_font_s mov dword[tedit0.rec.width],eax
shl eax,24 stdcall [ini_get_int],file_name,ini_sec_window,key_symbol_h,ini_def_symbol_h
mov dword[tedit0.font_size],eax mov dword[tedit0.rec.height],eax
;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ;lea eax,[eax+eax*2]
ini_panel key_but_new, ID_BUT_NEW ;mov dword[tedit0.rec.top],eax
ini_panel key_but_open, ID_BUT_OPEN ;font size
ini_panel key_but_save, ID_BUT_SAVE stdcall [ini_get_int],file_name,ini_sec_window,key_font_s,ini_def_font_s
ini_panel key_but_save_as,ID_BUT_SAVE_AS shl eax,24
ini_panel key_but_select, ID_BUT_SELECT mov dword[tedit0.font_size],eax
ini_panel key_but_cut, ID_BUT_CUT ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ini_panel key_but_copy, ID_BUT_COPY ini_panel key_but_new, ID_BUT_NEW
ini_panel key_but_paste, ID_BUT_PASTE ini_panel key_but_open, ID_BUT_OPEN
ini_panel key_but_find, ID_BUT_FIND ini_panel key_but_save, ID_BUT_SAVE
ini_panel key_but_replace,ID_BUT_REPLACE ini_panel key_but_save_as,ID_BUT_SAVE_AS
ini_panel key_but_key_words,ID_BUT_KEY_WORDS ini_panel key_but_select, ID_BUT_SELECT
ini_panel key_but_upper, ID_BUT_UPPER ini_panel key_but_cut, ID_BUT_CUT
ini_panel key_but_lower, ID_BUT_LOWER ini_panel key_but_copy, ID_BUT_COPY
ini_panel key_but_reverse,ID_BUT_REVERSE ini_panel key_but_paste, ID_BUT_PASTE
ini_panel key_but_undo, ID_BUT_UNDO ini_panel key_but_find, ID_BUT_FIND
ini_panel key_but_redo, ID_BUT_REDO ini_panel key_but_replace,ID_BUT_REPLACE
ini_panel key_but_invisible,ID_BUT_INVISIBLE ini_panel key_but_key_words,ID_BUT_KEY_WORDS
ini_panel key_but_syntax_list,ID_BUT_SYNTAX_LIST ini_panel key_but_upper, ID_BUT_UPPER
ini_panel key_but_syntax_mode,ID_BUT_SYNTAX_MODE ini_panel key_but_lower, ID_BUT_LOWER
ini_panel key_but_convert_1251_866,ID_BUT_CONVERT_1251_866 ini_panel key_but_reverse,ID_BUT_REVERSE
ini_panel key_but_convert_866_1251,ID_BUT_CONVERT_866_1251 ini_panel key_but_undo, ID_BUT_UNDO
;䠩<><E4A0A9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0A5AD> ini_panel key_but_redo, ID_BUT_REDO
xor edx,edx ini_panel key_but_invisible,ID_BUT_INVISIBLE
mov ebx,synt_auto_open ini_panel key_but_syntax_list,ID_BUT_SYNTAX_LIST
@@: ini_panel key_but_syntax_mode,ID_BUT_SYNTAX_MODE
;<3B><><20><><EFBFBD><><E4A0A9> ini_panel key_but_convert_1251_866,ID_BUT_CONVERT_1251_866
stdcall [ini_get_str],file_name,ini_sec_options,key_synt_file,ebx,32,ini_def_synt_f ini_panel key_but_convert_866_1251,ID_BUT_CONVERT_866_1251
cmp byte[ebx],0 ;䠩<><E4A0A9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0A5AD>
je @f xor edx,edx
inc byte[key_synt_file.numb] mov ebx,synt_auto_open
add ebx,32 @@:
;<3B><><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ;<3B><><20><><EFBFBD><EFBFBD><EFBFBD>
stdcall [ini_get_str],file_name,ini_sec_options,key_synt_ext,ebx,32,ini_def_synt_f stdcall [ini_get_str],file_name,ini_sec_options,key_synt_file,ebx,32,ini_def_synt_f
inc byte[key_synt_ext.numb] cmp byte[ebx],0
add ebx,32 je @f
inc edx inc byte[key_synt_file.numb]
cmp edx,max_synt_auto_open add ebx,32
jl @b ;<3B><><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0A5AD>
@@: stdcall [ini_get_str],file_name,ini_sec_options,key_synt_ext,ebx,32,ini_def_synt_f
inc byte[key_synt_ext.numb]
;--- load color option file --- add ebx,32
stdcall open_unpac_synt_file,[fn_col_option] inc edx
cmp edx,max_synt_auto_open
;--- get cmd line --- jl @b
cmp byte[openfile_path+3],0 ;openfile_path @@:
je @f ;if file names exist
mov esi,openfile_path ;--- load color option file ---
stdcall auto_open_syntax,esi stdcall open_unpac_synt_file,[fn_col_option]
call but_no_msg_OpenFile
@@: ;--- get cmd line ---
cmp byte[openfile_path+3],0 ;openfile_path
je @f ;if file names exist
mov esi,openfile_path
align 16 stdcall auto_open_syntax,esi
red_win: call but_no_msg_OpenFile
call draw_window @@:
align 16
still:
mcall SF_WAIT_EVENT align 16
cmp dword[exit_code],1 red_win:
jne @f call draw_window
call ted_Exit
jmp still align 16
@@: still:
mcall SF_WAIT_EVENT
cmp al,1 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> cmp dword[exit_code],1
jz red_win jne @f
cmp al,2 call ted_Exit
jz key jmp still
cmp al,3 @@:
jz button
cmp al,6 ;<3B><><EFBFBD><EFBFBD> cmp al,1 ;<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
jne @f jz red_win
call mouse cmp al,2
@@: jz key
jmp still cmp al,3
jz button
align 16 cmp al,6 ;<3B><><EFBFBD><EFBFBD>
mouse: jne @f
stdcall [kmainmenu_dispatch_cursorevent], [main_menu] call mouse
@@:
mcall SF_MOUSE_GET,SSF_WINDOW_POSITION jmp still
cmp word[tedit0.wnd.top],ax
jg .no_edit align 16
shr eax,16 mouse:
cmp word[tedit0.wnd.left],ax stdcall [kmainmenu_dispatch_cursorevent], [main_menu]
jg .no_edit
mcall SF_MOUSE_GET,SSF_BUTTON_EXT mcall SF_MOUSE_GET,SSF_WINDOW_POSITION
bt eax,24 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E9A5AB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> cmp word[tedit0.wnd.top],ax
jnc @f jg .no_edit
stdcall [ted_but_select_word], tedit0 shr eax,16
ret cmp word[tedit0.wnd.left],ax
@@: jg .no_edit
stdcall [ted_mouse], tedit0 mcall SF_MOUSE_GET,SSF_BUTTON_EXT
.no_edit: bt eax,24 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E9A5AB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
jnc @f
;<3B><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> stdcall [ted_but_select_word], tedit0
cmp byte[tedit0.panel_id],TED_PANEL_FIND ret
jne @f @@:
stdcall [edit_box_mouse], edit_find stdcall [ted_mouse], tedit0
stdcall [option_box_mouse], opt_grlist1 .no_edit:
stdcall [check_box_mouse], ch1
@@: ;<3B><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
cmp byte[tedit0.panel_id],TED_PANEL_REPLACE cmp byte[tedit0.panel_id],TED_PANEL_FIND
jne @f jne @f
stdcall [edit_box_mouse], edit_find stdcall [edit_box_mouse], edit_find
stdcall [edit_box_mouse], edit_replace stdcall [option_box_mouse], opt_grlist1
stdcall [option_box_mouse], opt_grlist1 stdcall [check_box_mouse], ch1
@@: @@:
cmp byte[tedit0.panel_id],TED_PANEL_SYNTAX cmp byte[tedit0.panel_id],TED_PANEL_REPLACE
jne @f jne @f
stdcall [tl_mouse], tree1 stdcall [edit_box_mouse], edit_find
@@: stdcall [edit_box_mouse], edit_replace
cmp byte[tedit0.panel_id],TED_PANEL_GOTO stdcall [option_box_mouse], opt_grlist1
jne @f @@:
stdcall [edit_box_mouse], edit_goto cmp byte[tedit0.panel_id],TED_PANEL_SYNTAX
@@: jne @f
ret stdcall [tl_mouse], tree1
;--------------------------------------------------------------------- @@:
cmp byte[tedit0.panel_id],TED_PANEL_GOTO
;output: jne @f
; ah = symbol stdcall [edit_box_mouse], edit_goto
align 16 @@:
proc KeyConvertToASCII uses ebx, table:dword ret
mov ebx,dword[table] ;convert scan to ascii ;---------------------------------------------------------------------
shr ax,8
add bx,ax ;output:
mov ah,byte[ebx] ; ah = symbol
ret align 16
endp proc KeyConvertToASCII uses ebx, table:dword
mov ebx,dword[table] ;convert scan to ascii
align 16 shr ax,8
key: add bx,ax
mcall SF_KEYBOARD,SSF_GET_CONTROL_KEYS ;66.3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> mov ah,byte[ebx]
xor esi,esi ret
mov ecx,1 endp
test al,3 ;[Shift]
jz @f align 16
mov cl,2 key:
or esi,KM_SHIFT mcall SF_KEYBOARD,SSF_GET_CONTROL_KEYS ;66.3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@@: xor esi,esi
test al,0x0c ;[Ctrl] mov ecx,1
jz @f test al,3 ;[Shift]
or esi,KM_CTRL jz @f
@@: mov cl,2
test al,0x30 ;[Alt] or esi,KM_SHIFT
jz @f @@:
mov cl,3 test al,0x0c ;[Ctrl]
or esi,KM_ALT jz @f
@@: or esi,KM_CTRL
test al,0x80 ;[NumLock] @@:
jz @f test al,0x30 ;[Alt]
or esi,KM_NUMLOCK jz @f
@@: mov cl,3
or esi,KM_ALT
mcall SF_SYSTEM_GET,SSF_KEYBOARD_LAYOUT,,conv_tabl ;26.2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E1AAAB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> @@:
mcall SF_GET_KEY test al,0x80 ;[NumLock]
stdcall [tl_key], tree1 jz @f
or esi,KM_NUMLOCK
test word[edit_replace.flags],ed_focus ;<3B><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4> @@:
je @f
cmp ah,0x80 ;if key up mcall SF_SYSTEM_GET,SSF_KEYBOARD_LAYOUT,,conv_tabl ;26.2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E1AAAB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
ja still mcall SF_GET_KEY
cmp ah,42 ;[Shift] (left) stdcall [tl_key], tree1
je still
cmp ah,54 ;[Shift] (right) test word[edit_replace.flags],ed_focus ;<3B><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4>
je still je @f
cmp ah,56 ;[Alt] cmp ah,0x80 ;if key up
je still ja still
cmp ah,29 ;[Ctrl] cmp ah,42 ;[Shift] (left)
je still je still
cmp ah,69 ;[Pause Break] cmp ah,54 ;[Shift] (right)
je still je still
cmp ah,56 ;[Alt]
stdcall KeyConvertToASCII, conv_tabl je still
stdcall [edit_box_key], edit_replace cmp ah,29 ;[Ctrl]
jmp still je still
@@: cmp ah,69 ;[Pause Break]
test word[edit_find.flags],ed_focus ;<3B><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4> je still
je @f
cmp ah,0x80 ;if key up stdcall KeyConvertToASCII, conv_tabl
ja still stdcall [edit_box_key], edit_replace
cmp ah,42 ;[Shift] (left) jmp still
je still @@:
cmp ah,54 ;[Shift] (right) test word[edit_find.flags],ed_focus ;<3B><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4>
je still je @f
cmp ah,56 ;[Alt] cmp ah,0x80 ;if key up
je still ja still
cmp ah,29 ;[Ctrl] cmp ah,42 ;[Shift] (left)
je still je still
cmp ah,69 ;[Pause Break] cmp ah,54 ;[Shift] (right)
je still je still
cmp ah,56 ;[Alt]
stdcall KeyConvertToASCII, conv_tabl je still
stdcall [edit_box_key], edit_find cmp ah,29 ;[Ctrl]
jmp still je still
@@: cmp ah,69 ;[Pause Break]
test word[edit_goto.flags],ed_focus ;<3B><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4> je still
je @f
cmp ah,0x80 ;if key up stdcall KeyConvertToASCII, conv_tabl
ja still stdcall [edit_box_key], edit_find
cmp ah,42 ;[Shift] (left) jmp still
je still @@:
cmp ah,54 ;[Shift] (right) test word[edit_goto.flags],ed_focus ;<3B><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4>
je still je @f
cmp ah,56 ;[Alt] cmp ah,0x80 ;if key up
je still ja still
cmp ah,29 ;[Ctrl] cmp ah,42 ;[Shift] (left)
je still je still
cmp ah,69 ;[Pause Break] cmp ah,54 ;[Shift] (right)
je still je still
cmp ah,56 ;[Alt]
stdcall KeyConvertToASCII, conv_tabl je still
stdcall [edit_box_key], edit_goto cmp ah,29 ;[Ctrl]
jmp still je still
@@: cmp ah,69 ;[Pause Break]
je still
stdcall [ted_key], tedit0, conv_tabl,esi
jmp still stdcall KeyConvertToASCII, conv_tabl
stdcall [edit_box_key], edit_goto
align 4 jmp still
edit_replace edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_replace, mouse_dd, 0 @@:
edit_find edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0
edit_goto edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 10, buf_goto, mouse_dd, 0 stdcall [ted_key], tedit0, conv_tabl,esi
jmp still
unpac_mem dd 0
align 4
;library structures edit_replace edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_replace, mouse_dd, 0
l_libs_start: edit_find edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 300, buf_find, mouse_dd, 0
lib0 l_libs lib_name_0, file_name, system_dir_0, import_box_lib edit_goto edit_box TED_PANEL_WIDTH-1, 0, 20, 0xffffff, 0xff80, 0xff0000, 0xff, 0x4080, 10, buf_goto, mouse_dd, 0
lib1 l_libs lib_name_1, file_name, system_dir_1, import_msgbox_lib
lib2 l_libs lib_name_2, file_name, system_dir_2, import_proclib unpac_mem dd 0
lib3 l_libs lib_name_3, file_name, system_dir_3, import_libimg
lib4 l_libs lib_name_4, file_name, system_dir_4, import_libini ;library structures
lib5 l_libs lib_name_5, file_name, system_dir_5, import_libkmenu l_libs_start:
load_lib_end: lib0 l_libs lib_name_0, file_name, system_dir_0, import_box_lib
lib1 l_libs lib_name_1, file_name, system_dir_1, import_msgbox_lib
IncludeIGlobals lib2 l_libs lib_name_2, file_name, system_dir_2, import_proclib
hed db 'TextEdit ' lib3 l_libs lib_name_3, file_name, system_dir_3, import_libimg
i_end: lib4 l_libs lib_name_4, file_name, system_dir_4, import_libini
openfile_path: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><><E0A0A1><EFBFBD> lib5 l_libs lib_name_5, file_name, system_dir_5, import_libkmenu
rb 4096 load_lib_end:
dir_mem rb 32+304*count_of_dir_list_files
wnd_s_pos: ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD><20><><EFBFBD><EFBFBD> IncludeIGlobals
rq 1 hed db 'TextEdit '
last_open_synt_file rb 32 ;<3B><><EFBFBD> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E7A5AD><EFBFBD><EFBFBD><><E4A0A9> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD> i_end:
buf rb BUF_SIZE ;<3B><><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> openfile_path: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><EFBFBD><EFBFBD> <20><><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><><EFBFBD><EFBFBD>
buf_find rb 302 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>᪠ ⥪<><E2A5AA><EFBFBD> rb 4096
buf_replace rb 302 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E2A5AA><EFBFBD> dir_mem rb 32+304*count_of_dir_list_files
buf_goto rb 12 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> wnd_s_pos: ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
sc system_colors rq 1
IncludeUGlobals last_open_synt_file rb 32 ;<3B><><EFBFBD> <20><><EFBFBD><E1ABA5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E7A5AD><EFBFBD><EFBFBD><><E4A0A9> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD>
align 16 buf rb BUF_SIZE ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD> <20> <20><><EFBFBD><E2A0A2>
procinfo process_information buf_find rb 302 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>᪠ ⥪<><E2A5AA><EFBFBD>
rb 1024 buf_replace rb 302 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E2A5AA><EFBFBD>
thread: buf_goto rb 12 ;<3B><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>
rb 4096 sc system_colors
align 16 IncludeUGlobals
thread_coords: align 16
rb 4096 procinfo process_information
align 16 rb 1024
stacktop: thread:
sys_path: ;<3B><><EFBFBD><EFBFBD> <20><><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E2A8AB> <20><EFBFBD><E1AFAE><EFBFBD><EFA5AC><> rb 4096
rb 4096 align 16
file_name: ;<3B><><EFBFBD><E0A0AC><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> thread_coords:
rb 4096 rb 4096
syntax_path: ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E7A0A5><EFBFBD><EFBFBD><><E4A0A9> ᨭ⠪<E1A8AD><E2A0AA><EFBFBD><EFBFBD> align 16
rb 4096 stacktop:
plugin_path: sys_path: ;<3B><><EFBFBD><EFBFBD> <20><><EFBFBD><20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E2A8AB> <20><EFBFBD><E1AFAE><EFBFBD><EFA5AC><>
rb 4096 rb 4096
text_work_area: ;<3B><><EFBFBD><EFBFBD> <20><><E4A0A9>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> file_name: ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
rb 4096 rb 4096
filename_area: ;<3B><><EFBFBD> <EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> syntax_path: ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD> ᨭ⠪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
rb 256 rb 4096
file_info: plugin_path:
rb 40 rb 4096
mem: text_work_area: ;<3B><><EFBFBD><EFBFBD> <20><><E4A0A9>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>
rb 4096
filename_area: ;<3B><><EFBFBD><><E4A0A9> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
rb 256
file_info:
rb 40
mem:

View File

@@ -1,389 +1,394 @@
use32 ; SPDX-License-Identifier: NOASSERTION
org 0 ;
db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><EFBFBD><E1AFAE><EFBFBD><EFA5AC><EFBFBD><><E4A0A9> <20><EFBFBD><E1A5A3> 8 <20><><EFBFBD><EFBFBD>
dd 1, start, i_end, mem, stacktop, file_name, sys_path ; Text encoded with Code Page 866 - Cyrillic
MAX_COLOR_WORD_LEN equ 40 use32
BUF_SIZE equ 4096 ;buffer for copy|paste org 0
CAPT_PATH_WIDTH equ 50 ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>। ⥪<><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> db 'MENUET01' ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>. <20><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E4A0A9> <20><EFBFBD><EFBFBD> 8 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
dd 1, start, i_end, mem, stacktop, file_name, sys_path
include '../../macros.inc'
include '../../proc32.inc' MAX_COLOR_WORD_LEN equ 40
include '../../KOSfuncs.inc' BUF_SIZE equ 4096 ;buffer for copy|paste
include '../../load_img.inc' CAPT_PATH_WIDTH equ 50 ;<3B><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>। ⥪<><EFBFBD><E2AEA2> <20><><EFBFBD><EFBFBD><EFBFBD>
include '../../load_lib.mac'
include '../../develop/libraries/box_lib/trunk/box_lib.mac' include '../../macros.inc'
include '../../system/skincfg/trunk/kglobals.inc' include '../../proc32.inc'
include '../../system/skincfg/trunk/unpacker.inc' include '../../KOSfuncs.inc'
include 'te_data.inc' include '../../load_img.inc'
include 'te_work.inc' ;text work functions include '../../load_lib.mac'
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
@use_library mem.Alloc,mem.Free,mem.ReAlloc,dll.Load include '../../system/skincfg/kglobals.inc'
include '../../system/skincfg/unpacker.inc'
icon_tl_sys dd 0 ;㪠<><E3AAA0><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> include 'te_data.inc'
include 'te_work.inc' ;text work functions
align 4
start: @use_library mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors
icon_tl_sys dd 0 ;㪠<><E3AAA0><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><EFBFBD><E0A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
mcall SF_SYS_MISC,SSF_HEAP_INIT
or eax,eax align 4
jz button.exit start:
mcall SF_STYLE_SETTINGS,SSF_GET_COLORS,sc,sizeof.system_colors
mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code
mcall SF_SET_EVENTS_MASK,0xC0000027 mcall SF_SYS_MISC,SSF_HEAP_INIT
or eax,eax
load_libraries l_libs_start,load_lib_end jz button.exit
;<3B><EFBFBD><20><><>쪮 㤠筮 <20><><EFBFBD><EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> mcall SF_KEYBOARD,SSF_SET_INPUT_MODE,1 ;scan code
cmp dword[lib0+ll_struc_size-4],0 mcall SF_SET_EVENTS_MASK,0xC0000027
jz @f
mcall -1 ;exit not correct load_libraries l_libs_start,load_lib_end
@@:
;<3B><EFBFBD><20><><>쪮 㤠筮 <20><><EFBFBD><EFBFBD><E3A7A8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
;--------------------------------------------------------------------- cmp dword[lib0+ll_struc_size-4],0
stdcall [tl_data_init], tree1 jz @f
mcall -1 ;exit not correct
; <20><><EFBFBD><> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD> @@:
include_image_file '..\..\media\log_el\trunk\tl_sys_16.png', icon_tl_sys
mov eax,[icon_tl_sys] ;---------------------------------------------------------------------
mov [tree1.data_img_sys],eax stdcall [tl_data_init], tree1
;---------------------------------------------------------------------
; <20><><EFBFBD> bmp<> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ; <20><><EFBFBD><> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
include_image_file '..\t_edit\tl_nod_16.png', icon_tl_sys include_image_file '..\..\media\log_el\trunk\tl_sys_16.png', icon_tl_sys
mov eax,[icon_tl_sys] mov eax,[icon_tl_sys]
mov [tree1.data_img],eax mov [tree1.data_img_sys],eax
;------------------------------------------------------------------------------ ;---------------------------------------------------------------------
copy_path fn_syntax_dir,sys_path,file_name,0 ;<3B><> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨭ⠪<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ; <20><><EFBFBD> bmp 䠩<> <EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD>
mcall SF_FILE,tree_file_struct include_image_file '..\t_edit\tl_nod_16.png', icon_tl_sys
mov eax,[icon_tl_sys]
cmp ebx,2 mov [tree1.data_img],eax
jg @f ;------------------------------------------------------------------------------
notify_window_run file_name ;ᮮ<><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> copy_path fn_syntax_dir,sys_path,file_name,0 ;<3B><><20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᨭ⠪<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
jmp .end_dir_init mcall SF_FILE,tree_file_struct
@@:
;cmp ebx,0 cmp ebx,2
;jle .end_dir_init jg @f
mov eax,dir_mem+32+40 notify_window_run file_name ;ᮮ<><EFBFBD><E9A5AD> <20><20><><><E3A4A0><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E4A0A9>
mov ecx,ebx jmp .end_dir_init
@@: @@:
cmp byte[eax],'.' ;䨫<><E4A8AB><EFBFBD>㥬 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.' <20> '..' ;cmp ebx,0
je .filter ;jle .end_dir_init
stdcall [tl_node_add],tree1,0x10000,eax ;1*2^16 - <20><><EFBFBD> 1 <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> mov eax,dir_mem+32+40
stdcall [tl_cur_next],tree1 mov ecx,ebx
.filter: @@:
add eax,304 cmp byte[eax],'.' ;䨫<><E4A8AB><EFBFBD>㥬 䠩<><E4A0A9> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> '.' <20> '..'
loop @b je .filter
stdcall [tl_cur_beg],tree1 ;<3B><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> ᯨ᪠ stdcall [tl_node_add],tree1,0x10000,eax ;1*2^16 - <20><EFBFBD><EFBFBD> 1 <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
or dword[tree1.style], tl_cursor_pos_limited ;<3B><><EFBFBD><EFBFBD><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><EFBFBD><E0A5A4><EFBFBD><EFBFBD> ᯨ᪠ stdcall [tl_cur_next],tree1
.end_dir_init: .filter:
add eax,304
xor eax,eax loop @b
inc eax stdcall [tl_cur_beg],tree1 ;<3B><EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD> ᯨ᪠
mov [scrol_w1.type],eax or dword[tree1.style], tl_cursor_pos_limited ;<3B><><EFBFBD><EFBFBD><E7A8A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><EFBFBD><E0A5A4><EFBFBD><EFBFBD> ᯨ᪠
mov [scrol_h1.type],eax .end_dir_init:
mov [ws_dir_lbox.type],eax
xor eax,eax
;--- load color option file --- inc eax
stdcall [ted_init], tedit0 mov [scrol_w1.type],eax
mov byte[file_name],0 mov [scrol_h1.type],eax
mov [ws_dir_lbox.type],eax
align 4
red_win: ;--- load color option file ---
call draw_window stdcall [ted_init], tedit0
mov byte[file_name],0
align 4
still: align 4
mcall SF_WAIT_EVENT red_win:
call draw_window
cmp al,1 ;<3B><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
jz red_win align 4
cmp al,2 still:
jz key mcall SF_WAIT_EVENT
cmp al,3
jz button cmp al,1 ;<3B><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
cmp al,6 jz red_win
jz mouse cmp al,2
jz key
jmp still cmp al,3
jz button
cmp al,6
align 4 jz mouse
draw_window:
pushad jmp still
mcall SF_REDRAW,SSF_BEGIN_DRAW
mov edx,[sc.work] align 4
or edx,0x33000000 draw_window:
mov edi,hed pushad
mcall SF_CREATE_WINDOW,<10,555>,<10,333> mcall SF_REDRAW,SSF_BEGIN_DRAW
mcall SF_THREAD_INFO,procinfo,-1 mov edx,[sc.work]
mov edi,tedit0 ;<3B><><EFBFBD><EFBFBD><E7A5AD> edi <20><EFBFBD> <20><><EFBFBD> EvSize <20> ted_wnd_t or edx,0x33000000
call EvSize mov edi,hed
mcall SF_CREATE_WINDOW,<10,555>,<10,333>
mov esi,[sc.work_button];0xd0
mcall SF_DEFINE_BUTTON,5*65536+90,195*65536+20,200 mcall SF_THREAD_INFO,procinfo,-1
mov edi,tedit0 ;<3B><><EFBFBD><EFBFBD><E7A5AD> edi <20><EFBFBD> <20><><EFBFBD> EvSize <20> ted_wnd_t
mov ebx,100*65536+85 call EvSize
mov ecx,195*65536+20
mov edx,201 mov esi,[sc.work_button];0xd0
mov esi,0xd00000 mcall SF_DEFINE_BUTTON,5*65536+90,195*65536+20,200
mcall
mov ebx,100*65536+85
mov ecx,[sc.work_button_text] mov ecx,195*65536+20
or ecx,0x80000000 mov edx,201
mcall SF_DRAW_TEXT,10*65536+200,,txt_load_f mov esi,0xd00000
mcall
mov ecx,0xffff00
or ecx,0x80000000 mov ecx,[sc.work_button_text]
mcall ,105*65536+200,,txt_save_f or ecx,0x80000000
mcall SF_DRAW_TEXT,10*65536+200,,txt_load_f
mov ecx,[sc.work_text]
or ecx,0x80000000 mov ecx,0xffff00
mcall ,195*65536+10,,txt_inp_file or ecx,0x80000000
mcall ,105*65536+200,,txt_save_f
add ebx,20
mov edx,txt_out_file mov ecx,[sc.work_text]
int 0x40 or ecx,0x80000000
mcall ,195*65536+10,,txt_inp_file
stdcall [PathShow_draw], PathShow_data_1
add ebx,20
stdcall [edit_box_draw], edit1 mov edx,txt_out_file
stdcall [tl_draw], tree1 int 0x40
;scroll 1 stdcall [PathShow_draw], PathShow_data_1
mov [ws_dir_lbox.all_redraw],1
stdcall [scrollbar_ver_draw],ws_dir_lbox stdcall [edit_box_draw], edit1
stdcall [ted_draw], tedit0 stdcall [tl_draw], tree1
mcall SF_REDRAW,SSF_END_DRAW ;scroll 1
popad mov [ws_dir_lbox.all_redraw],1
ret stdcall [scrollbar_ver_draw],ws_dir_lbox
stdcall [ted_draw], tedit0
MIN_M_WND_H equ 100 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
;input: mcall SF_REDRAW,SSF_END_DRAW
; edi = pointer to tedit struct popad
align 4 ret
EvSize:
pushad MIN_M_WND_H equ 100 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
mov ebx,ted_scr_h ;input:
mov esi,ted_scr_w ; edi = pointer to tedit struct
align 4
m2m ted_wnd_w,[procinfo.client_box.width] ;<3B><EFBFBD><E2A0A2> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E0A0A2><EFBFBD> <20><><EFBFBD> <20><EFBFBD> <20><><EFBFBD><EFBFBD> EvSize:
mov eax,ted_wnd_l pushad
sub ted_wnd_w,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E1ABA5> mov ebx,ted_scr_h
movzx eax,word[esi+sb_offs_size_x] mov esi,ted_scr_w
sub ted_wnd_w,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD>
m2m ted_wnd_w,[procinfo.client_box.width] ;<3B><EFBFBD><E2A0A2> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E0A0A2><EFBFBD> <20><><EFBFBD> <20><EFBFBD> <20><><EFBFBD><EFBFBD>
m2m ted_wnd_h,[procinfo.client_box.height] ;<3B><EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E0A0A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD> <20><><EFBFBD><EFBFBD> mov eax,ted_wnd_l
cmp ted_wnd_h,MIN_M_WND_H sub ted_wnd_w,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E1ABA5>
jg @f movzx eax,word[esi+sb_offs_size_x]
mov ted_wnd_h,MIN_M_WND_H sub ted_wnd_w,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>. <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD>
@@:
m2m ted_wnd_h,[procinfo.client_box.height] ;<3B><EFBFBD><E2A0A2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E0A0A2><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD> <20><><EFBFBD><EFBFBD>
movzx eax,word[ebx+sb_offs_size_y] cmp ted_wnd_h,MIN_M_WND_H
sub ted_wnd_h,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ਧ. <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD> jg @f
mov eax,ted_wnd_t mov ted_wnd_h,MIN_M_WND_H
sub ted_wnd_h,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E1A2A5><EFBFBD> @@:
stdcall [ted_init_scroll_bars], tedit0,2 movzx eax,word[ebx+sb_offs_size_y]
popad sub ted_wnd_h,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ਧ. <20><><EFBFBD><E0AEAB><EFBFBD><EFBFBD><EFBFBD>
ret mov eax,ted_wnd_t
sub ted_wnd_h,eax ;<3B><EFBFBD><E2ADA8><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E1A2A5><EFBFBD>
align 4
mouse: stdcall [ted_init_scroll_bars], tedit0,2
stdcall [tl_mouse],tree1 popad
stdcall [edit_box_mouse],edit1 ret
stdcall [ted_mouse], tedit0
jmp still align 4
mouse:
;output: stdcall [tl_mouse],tree1
; ah = symbol stdcall [edit_box_mouse],edit1
align 4 stdcall [ted_mouse], tedit0
proc KeyConvertToASCII, table:dword jmp still
push ebx
mov ebx,dword[table] ;convert scan to ascii ;output:
shr ax,8 ; ah = symbol
add bx,ax align 4
mov ah,byte[ebx] proc KeyConvertToASCII, table:dword
pop ebx push ebx
ret mov ebx,dword[table] ;convert scan to ascii
endp shr ax,8
add bx,ax
align 4 mov ah,byte[ebx]
key: pop ebx
mcall SF_KEYBOARD,SSF_GET_CONTROL_KEYS ;66.3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ret
xor esi,esi endp
mov ecx,1
test al,3 ;[Shift] align 4
jz @f key:
mov cl,2 mcall SF_KEYBOARD,SSF_GET_CONTROL_KEYS ;66.3 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
or esi,KM_SHIFT xor esi,esi
@@: mov ecx,1
test al,0x0c ;[Ctrl] test al,3 ;[Shift]
jz @f jz @f
or esi,KM_CTRL mov cl,2
@@: or esi,KM_SHIFT
test al,0x30 ;[Alt] @@:
jz @f test al,0x0c ;[Ctrl]
mov cl,3 jz @f
or esi,KM_ALT or esi,KM_CTRL
@@: @@:
test al,0x80 ;[NumLock] test al,0x30 ;[Alt]
jz @f jz @f
or esi,KM_NUMLOCK mov cl,3
@@: or esi,KM_ALT
@@:
mcall SF_SYSTEM_GET,SSF_KEYBOARD_LAYOUT,,conv_tabl ;26.2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E1AAAB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> test al,0x80 ;[NumLock]
mcall SF_GET_KEY jz @f
stdcall [tl_key],tree1 or esi,KM_NUMLOCK
@@:
test word [edit1.flags],10b;ed_focus ; <20><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4>
je @f mcall SF_SYSTEM_GET,SSF_KEYBOARD_LAYOUT,,conv_tabl ;26.2 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><E1AAAB><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
cmp ah,0x80 ;if key up mcall SF_GET_KEY
ja still stdcall [tl_key],tree1
cmp ah,42 ;[Shift] (left)
je still test word [edit1.flags],10b;ed_focus ; <20><20><> <20><><E4AEAA><EFBFBD>, <20><><EFBFBD><E5AEA4>
cmp ah,54 ;[Shift] (right) je @f
je still cmp ah,0x80 ;if key up
cmp ah,56 ;[Alt] ja still
je still cmp ah,42 ;[Shift] (left)
cmp ah,29 ;[Ctrl] je still
je still cmp ah,54 ;[Shift] (right)
cmp ah,69 ;[Pause Break] je still
je still cmp ah,56 ;[Alt]
je still
stdcall KeyConvertToASCII, conv_tabl cmp ah,29 ;[Ctrl]
stdcall [edit_box_key],edit1 je still
jmp still cmp ah,69 ;[Pause Break]
@@: je still
stdcall [ted_key], tedit0, conv_tabl,esi stdcall KeyConvertToASCII, conv_tabl
jmp still stdcall [edit_box_key],edit1
jmp still
align 4 @@:
button:
mcall SF_GET_BUTTON stdcall [ted_key], tedit0, conv_tabl,esi
jmp still
cmp ah,200
jne @f align 4
call but_OpenSyntax button:
@@: mcall SF_GET_BUTTON
cmp ah,201
jne @f cmp ah,200
call but_SaveSyntax jne @f
@@: call but_OpenSyntax
@@:
cmp ah,1 cmp ah,201
jne still jne @f
.exit: call but_SaveSyntax
stdcall mem.Free,[options_file] @@:
stdcall mem.Free,[unpac_mem]
cmp ah,1
stdcall [tl_data_clear], tree1 jne still
stdcall [ted_delete], tedit0 .exit:
mcall SF_TERMINATE_PROCESS ;<3B><><20><> <20>ணࠬ<E0AEA3><E0A0AC> stdcall mem.Free,[options_file]
stdcall mem.Free,[unpac_mem]
align 4
but_OpenSyntax: stdcall [tl_data_clear], tree1
push eax stdcall [ted_delete], tedit0
stdcall [tl_node_get_data],tree1 mcall SF_TERMINATE_PROCESS ;<3B><><20><> <20>ணࠬ<E0AEA3><E0A0AC>
mov [fn_col_option],eax
call InitColText align 4
pop eax but_OpenSyntax:
ret push eax
stdcall [tl_node_get_data],tree1
align 4 mov [fn_col_option],eax
but_SaveSyntax: call InitColText
stdcall [ted_save_file], tedit0,run_file_70,[edit1.text] pop eax
ret ret
;description: align 4
; <20><EFBFBD><E3ADAA><EFBFBD> <20><><EFBFBD><EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>⨨ Ctrl+N,O,F,S,H,G but_SaveSyntax:
align 4 stdcall [ted_save_file], tedit0,run_file_70,[edit1.text]
proc ted_but_ctrl_all uses eax, opt_key:dword ret
mov eax,[opt_key]
cmp al,'N' ;Ctrl+N ;description:
jne @f ; <20><EFBFBD><E3ADAA><EFBFBD> <20><><EFBFBD><EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD>⨨ Ctrl+N,O,F,S,H,G
call but_ctrl_n align 4
jmp .end0 proc ted_but_ctrl_all uses eax, opt_key:dword
@@: mov eax,[opt_key]
cmp al,'O' ;Ctrl+O cmp al,'N' ;Ctrl+N
jne @f jne @f
call but_ctrl_o call but_ctrl_n
@@: jmp .end0
;cmp al,'S' ;Ctrl+S @@:
;cmp al,'F' ;Ctrl+F cmp al,'O' ;Ctrl+O
;cmp al,'G' ;Ctrl+G jne @f
;cmp al,'H' ;Ctrl+H call but_ctrl_o
.end0: @@:
ret ;cmp al,'S' ;Ctrl+S
endp ;cmp al,'F' ;Ctrl+F
;cmp al,'G' ;Ctrl+G
align 4 ;cmp al,'H' ;Ctrl+H
but_ctrl_o: .end0:
push eax ret
call get_wnd_in_focus endp
or eax,eax
jz @f align 4
stdcall [ted_open_file], eax,str_file_70,[edit1.text] but_ctrl_o:
@@: push eax
pop eax call get_wnd_in_focus
ret or eax,eax
jz @f
;ᮧ<><E1AEA7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E4A0A9> stdcall [ted_open_file], eax,str_file_70,[edit1.text]
align 4 @@:
but_ctrl_n: pop eax
push eax ret
call get_wnd_in_focus
or eax,eax ;ᮧ<><E1AEA7><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><><E4A0A9>
jz @f align 4
stdcall [ted_clear], eax,1 but_ctrl_n:
stdcall [ted_draw], eax push eax
@@: call get_wnd_in_focus
pop eax or eax,eax
ret jz @f
stdcall [ted_clear], eax,1
;<3B><><EFBFBD><E0A5A4><20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><E4AEAA><EFBFBD> stdcall [ted_draw], eax
align 4 @@:
get_wnd_in_focus: pop eax
xor eax,eax ret
cmp dword[el_focus],tedit0
jne @f ;<3B><><EFBFBD><E0A5A4><20><><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><E4AEAA><EFBFBD>
mov eax,tedit0 align 4
@@: get_wnd_in_focus:
;cmp dword[el_focus],tedit1 xor eax,eax
;jne @f cmp dword[el_focus],tedit0
; mov eax,tedit1 jne @f
;@@: mov eax,tedit0
ret @@:
;cmp dword[el_focus],tedit1
hed db 'TextEditor syntax file converter 18.12.20',0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ;jne @f
conv_tabl rb 128 ; ⠡<><E2A0A1><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD> scan-<2D><><EFBFBD><EFBFBD> <20> ascii-<2D><><EFBFBD> ; mov eax,tedit1
;@@:
txt_load_f db '<27><><EFBFBD><EFBFBD>. 䠩<>',0 ret
txt_save_f db '<27><><EFBFBD><EFBFBD>. 䠩<>',0
txt_inp_file db '<27><><EFBFBD>. 䠩<>:',0 hed db 'TextEditor syntax file converter 18.12.20',0 ;<3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
txt_out_file db '<27><><EFBFBD>. 䠩<>:',0 conv_tabl rb 128 ; ⠡<><E2A0A1><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD> scan-<2D><><EFBFBD><EFBFBD> <20> ascii-<2D><><EFBFBD>
;library structures txt_load_f db '<27><><EFBFBD><EFBFBD>. 䠩<>',0
l_libs_start: txt_save_f db '<27><><EFBFBD><EFBFBD>. 䠩<>',0
lib0 l_libs lib_name_0, file_name, system_dir_0, import_box_lib txt_inp_file db '<27><><EFBFBD>. 䠩<>:',0
lib1 l_libs lib_name_1, file_name, system_dir_1, import_libimg txt_out_file db '<27><><EFBFBD>. 䠩<>:',0
load_lib_end:
;library structures
IncludeIGlobals l_libs_start:
lib0 l_libs lib_name_0, file_name, system_dir_0, import_box_lib
align 16 lib1 l_libs lib_name_1, file_name, system_dir_1, import_libimg
i_end: load_lib_end:
IncludeUGlobals
procinfo process_information IncludeIGlobals
rb 1024
thread: align 16
rb 1024 i_end:
stacktop: IncludeUGlobals
sys_path rb 4096 procinfo process_information
file_name rb 4096 rb 1024
file_name_rez rb 4096 thread:
mem: rb 1024
stacktop:
sys_path rb 4096
file_name rb 4096
file_name_rez rb 4096
mem:

View File

@@ -1,163 +1,165 @@
include '../../../proc32.inc' ; SPDX-License-Identifier: NOASSERTION
;
macro start_draw_window x,y,xsize,ysize,areacolor,caption,capsize
{ include '../../proc32.inc'
;pusha
mov eax, 12 ; function 12:tell os about windowdraw macro start_draw_window x,y,xsize,ysize,areacolor,caption,capsize
mov ebx, 1 ; 1, start of draw {
int 0x40 ;pusha
; DRAW WINDOW mov eax, 12 ; function 12:tell os about windowdraw
mov eax, 0 ; function 0 : define and draw window mov ebx, 1 ; 1, start of draw
mov ebx, x*65536+xsize ; [x start] *65536 + [x size] int 0x40
mov ecx, y*65536+ysize ; [y start] *65536 + [y size] ; DRAW WINDOW
mov edx, areacolor ; color of work area RRGGBB mov eax, 0 ; function 0 : define and draw window
mov esi, 0x00334455 ; color of grab bar RRGGBB mov ebx, x*65536+xsize ; [x start] *65536 + [x size]
mov edi, 0x00ddeeff ; color of frames RRGGBB mov ecx, y*65536+ysize ; [y start] *65536 + [y size]
int 0x40 mov edx, areacolor ; color of work area RRGGBB
; WINDOW LABEL mov esi, 0x00334455 ; color of grab bar RRGGBB
mov eax, 4 ; function 4 : write text to window mov edi, 0x00ddeeff ; color of frames RRGGBB
mov ebx, 8*65536+8 ; [x start] *65536 + [y start] int 0x40
mov ecx, 0x0;0ffffff ; color of text RRGGBB ; WINDOW LABEL
mov edx, caption ; pointer to text beginning mov eax, 4 ; function 4 : write text to window
mov esi, capsize ; text length mov ebx, 8*65536+8 ; [x start] *65536 + [y start]
int 0x40 mov ecx, 0x0;0ffffff ; color of text RRGGBB
;popa mov edx, caption ; pointer to text beginning
} mov esi, capsize ; text length
int 0x40
macro end_draw_window ;popa
{ }
mov eax, 12 ; end of redraw
mov ebx, 2 macro end_draw_window
int 0x40 {
} mov eax, 12 ; end of redraw
mov ebx, 2
macro change_window_place_size x,y,xsize,ysize int 0x40
{ }
mov eax, 67 ; function 67 : replace and/or resize window
mov ebx, x macro change_window_place_size x,y,xsize,ysize
mov ecx, y {
mov edx, xsize mov eax, 67 ; function 67 : replace and/or resize window
mov esi, ysize mov ebx, x
int 0x40 mov ecx, y
} mov edx, xsize
mov esi, ysize
proc draw_button stdcall, x:dword, y:dword, xsize:dword, ysize:dword, \ int 0x40
id:dword, butcolor:dword, text:dword, textlen:byte, textcolor:dword }
pusha proc draw_button stdcall, x:dword, y:dword, xsize:dword, ysize:dword, \
mov ebx, dword [x] id:dword, butcolor:dword, text:dword, textlen:byte, textcolor:dword
shl ebx, 16
add ebx, dword [xsize] ; [x start] *65536 + [x size] pusha
mov ebx, dword [x]
mov ecx, dword [y] shl ebx, 16
shl ecx, 16 add ebx, dword [xsize] ; [x start] *65536 + [x size]
add ecx, dword [ysize] ; [y start] *65536 + [y size]
mov ecx, dword [y]
mov edx, dword [id] ; button id shl ecx, 16
mov esi, dword [butcolor] ; button color RRGGBB add ecx, dword [ysize] ; [y start] *65536 + [y size]
mov eax, 8 ; function 8 : define and draw button
int 0x40 mov edx, dword [id] ; button id
mov esi, dword [butcolor] ; button color RRGGBB
mov ebx, dword [x] mov eax, 8 ; function 8 : define and draw button
add ebx, 5 int 0x40
shl ebx, 16
mov eax, dword [ysize] mov ebx, dword [x]
sub eax, 5 add ebx, 5
shr eax, 1 shl ebx, 16
add ebx, eax mov eax, dword [ysize]
add ebx, dword [y] ;mov ebx, (x+5)*65536+y+(ysize-5)/2 ; Draw button text sub eax, 5
shr eax, 1
mov ecx, dword [textcolor] add ebx, eax
mov edx, dword [text] add ebx, dword [y] ;mov ebx, (x+5)*65536+y+(ysize-5)/2 ; Draw button text
xor eax, eax
mov al, byte [textlen] mov ecx, dword [textcolor]
mov esi, eax mov edx, dword [text]
mov eax, 4 xor eax, eax
int 0x40 mov al, byte [textlen]
popa mov esi, eax
ret mov eax, 4
endp int 0x40
popa
;macro outtextxy x,y,prompt,prompt_len,color ret
;{ endp
proc outtextxy stdcall, x:dword, y:dword, prompt:dword, prompt_len:dword, color:dword
pusha ;macro outtextxy x,y,prompt,prompt_len,color
mov eax, 4 ;{
mov ebx, dword [x] ; draw info text with function 4 proc outtextxy stdcall, x:dword, y:dword, prompt:dword, prompt_len:dword, color:dword
shl ebx, 16 pusha
or ebx, dword [y] mov eax, 4
mov ecx, dword [color] mov ebx, dword [x] ; draw info text with function 4
mov edx, dword [prompt] shl ebx, 16
mov esi, dword [prompt_len] or ebx, dword [y]
test esi, esi mov ecx, dword [color]
jnz @f mov edx, dword [prompt]
or ecx, 0x80000000 mov esi, dword [prompt_len]
@@: test esi, esi
int 0x40 jnz @f
popa or ecx, 0x80000000
ret @@:
endp int 0x40
;} popa
ret
;proc bar x:dword, y:dword, xsize:dword, ysize:dword, color:dword endp
macro bar x, y, xsize, ysize, color ;}
{
pusha ;proc bar x:dword, y:dword, xsize:dword, ysize:dword, color:dword
mov eax, 13 macro bar x, y, xsize, ysize, color
;mov ebx, [x] {
;shl ebx, 16 pusha
;add ebx, [xsize] mov eax, 13
;mov ecx, [y] ;mov ebx, [x]
;shl ecx, 16 ;shl ebx, 16
;add ecx, [ysize] ;add ebx, [xsize]
;mov edx, [color] ;mov ecx, [y]
mov ebx, x*65536+xsize ;shl ecx, 16
mov ecx, y*65536+ysize ;add ecx, [ysize]
mov edx, color ;mov edx, [color]
mov ebx, x*65536+xsize
int 0x40 mov ecx, y*65536+ysize
popa mov edx, color
;ret
;endp int 0x40
} popa
;ret
macro line x1,y1,x2,y2,color ;endp
{ }
pusha
mov eax, 38 macro line x1,y1,x2,y2,color
mov ebx, x1*65536+x2 {
mov ecx, y1*65536+y2 pusha
mov edx, color mov eax, 38
int 0x40 mov ebx, x1*65536+x2
popa mov ecx, y1*65536+y2
} mov edx, color
int 0x40
macro rectangle x,y,xsize,ysize,color popa
{ }
x2=x+xsize
y2=y+ysize macro rectangle x,y,xsize,ysize,color
line x,y,x2,y,color {
line x,y,x,y2,color x2=x+xsize
line x,y2,x2,y2,color y2=y+ysize
line x2,y,x2,y2,color line x,y,x2,y,color
} line x,y,x,y2,color
line x,y2,x2,y2,color
macro rectangle2 x,y,xsize,ysize,color1,color2 line x2,y,x2,y2,color
{ }
x2=x+xsize
y2=y+ysize macro rectangle2 x,y,xsize,ysize,color1,color2
line x,y,x2,y,color1 {
line x,y,x,y2,color1 x2=x+xsize
line x,y2,x2,y2,color2 y2=y+ysize
line x2,y,x2,y2,color2 line x,y,x2,y,color1
} line x,y,x,y2,color1
line x,y2,x2,y2,color2
macro putpixel x,y,color line x2,y,x2,y2,color2
{ }
mov eax, 1
mov ebx, x macro putpixel x,y,color
mov ecx, y {
mov edx, color mov eax, 1
int 0x40 mov ebx, x
} mov ecx, y
mov edx, color
int 0x40
}

View File

@@ -1,4 +1,6 @@
; SPDX-License-Identifier: NOASSERTION
; ;
; MyKey. Version 0.2. ; MyKey. Version 0.2.
; ;
; Author: Asper ; Author: Asper
@@ -23,13 +25,13 @@ include 'lang.inc' ; Language support for locales: it_IT, en_US.
include 'string.inc' include 'string.inc'
;include 'macros.inc' ;include 'macros.inc'
include '../../../macros.inc' include '../../macros.inc'
include 'ASPAPI.INC' include 'ASPAPI.INC'
;include 'editbox_ex.mac' ;include 'editbox_ex.mac'
include '../../../develop/libraries/box_lib/trunk/box_lib.mac' include '../../develop/libraries/box_lib/trunk/box_lib.mac'
;include 'load_lib.mac' ;include 'load_lib.mac'
include '../../../develop/libraries/box_lib/load_lib.mac' include '../../develop/libraries/box_lib/load_lib.mac'
include '../../../dll.inc' include '../../dll.inc'
include 'debug.inc' include 'debug.inc'
DEBUG equ 0;1 DEBUG equ 0;1

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())

View File

@@ -1,3 +1,8 @@
; SPDX-License-Identifier: NOASSERTION
;
; Text encoded with Code Page 866 - Cyrillic
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
; DEBUG BOARD for APPLICATIONS and KERNEL DEVELOPMENT ; DEBUG BOARD for APPLICATIONS and KERNEL DEVELOPMENT
; See f63 ; See f63
@@ -15,8 +20,8 @@ org 0
dd 0 dd 0
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
include 'lang.inc' include 'lang.inc'
include '../../../macros.inc' include '../../macros.inc'
include '../../../debug.inc' include '../../debug.inc'
purge newline purge newline
;SMALL FONT ;SMALL FONT
MAXSTRINGS = 45 MAXSTRINGS = 45
@@ -190,7 +195,7 @@ key:
open_boardlog: open_boardlog:
mcall 70, open_log_in_tinypad mcall 70, open_log_in_tinypad
jmp red jmp red
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------
button: button:
mcall 17 ; get id mcall 17 ; get id

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())

View File

@@ -1,8 +1,11 @@
; SPDX-License-Identifier: NOASSERTION
;
; Calendar for KolibriOS ; Calendar for KolibriOS
; ;
; v1.5 - time redesign by Heavyiron ; v1.5 - time redesign by Heavyiron
; v1.2 - v1.55 - new design and functionality by Leency ; v1.2 - v1.55 - new design and functionality by Leency
; v1.1 - add change time support by DedOK ; v1.1 - add change time support by DedOK
; v1.0 - written in pure assembler by Ivushkin Andrey aka Willow ; v1.0 - written in pure assembler by Ivushkin Andrey aka Willow
; also - diamond, spraid, fedesco ; also - diamond, spraid, fedesco
; ;
@@ -21,7 +24,7 @@ use32
dd 0x1000 dd 0x1000
dd 0x0 dd 0x0
dd 0x0 dd 0x0
include '..\..\..\macros.inc' include '..\..\macros.inc'
include 'lang.inc' include 'lang.inc'
include 'data.inc' include 'data.inc'
@@ -126,7 +129,7 @@ macro DrawRect color1,color2,color3,color4 ; pizdec... but optimized well
add ebx,1 shl 16 add ebx,1 shl 16
sub ecx,1 shl 16 sub ecx,1 shl 16
sub bx,2 sub bx,2
mcall mcall
} }
@@ -361,7 +364,7 @@ day_bounds db -1,0,7,0,-7,0,1,0 ; left,down,up,right
je year_dec je year_dec
cmp ah,179 cmp ah,179
je year_inc je year_inc
mov ebx,10 mov ebx,10
cmp ah,9 cmp ah,9
je key.tab je key.tab
@@ -401,8 +404,8 @@ day_bounds db -1,0,7,0,-7,0,1,0 ; left,down,up,right
jmp upd jmp upd
update_clock: update_clock:
mcall 22,0x00000000 mcall 22,0x00000000
call draw_clock call draw_clock
jmp still jmp still
reset: reset:
@@ -522,7 +525,7 @@ panel_top:
mov ebx, eax mov ebx, eax
sub eax, WIN_W sub eax, WIN_W
shl ebx, 16 shl ebx, 16
add ebx, WIN_W add ebx, WIN_W
mcall 0,,,COL_WINDOW_BG, ,title ; define window mcall 0,,,COL_WINDOW_BG, ,title ; define window
mcall 12,2 mcall 12,2
GetSkinHeight GetSkinHeight
@@ -532,7 +535,7 @@ panel_top:
mcall 13,B_WBAR_X, ,COL_TOOLBAR_BG ; draw toolbar background mcall 13,B_WBAR_X, ,COL_TOOLBAR_BG ; draw toolbar background
mcall 13,B_WBAR_X,BT_WBAR_Y,COL_TOOLBAR_BG ; draw toolbar background mcall 13,B_WBAR_X,BT_WBAR_Y,COL_TOOLBAR_BG ; draw toolbar background
mcall 13,0*65536+B_WBAR_X,84*65536+199,0xE7E7E7 mcall 13,0*65536+B_WBAR_X,84*65536+199,0xE7E7E7
draw_window: draw_window:
call draw_clock call draw_clock
call draw_week call draw_week

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())

View File

@@ -1,3 +1,6 @@
; SPDX-License-Identifier: NOASSERTION
;
;-----------------------; ;-----------------------;
; CPU - process manager ; ; CPU - process manager ;
;-----------------------; ;-----------------------;
@@ -17,10 +20,10 @@
dd cur_dir_path ; path dd cur_dir_path ; path
;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
include "lang.inc" ; Language support for locales (UTF-8): de_DE, et_EE, ru_RU, it_IT, en_US. include "lang.inc" ; Language support for locales (UTF-8): de_DE, et_EE, ru_RU, it_IT, en_US.
include "../../../macros.inc" include "../../macros.inc"
include "../../../develop/libraries/box_lib/trunk/box_lib.mac" include "../../develop/libraries/box_lib/trunk/box_lib.mac"
include "../../../KOSfuncs.inc" include "../../KOSfuncs.inc"
include "../../../load_lib.mac" include "../../load_lib.mac"
;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------
DISPLAY_PROCESSES = 20 ;number of processes to show DISPLAY_PROCESSES = 20 ;number of processes to show
;------------------------------------------------------------------------------- ;-------------------------------------------------------------------------------

View File

@@ -1,24 +1,24 @@
if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("BUILD_TYPE") == "" then return end if tup.getconfig("NO_FASM") ~= "" or tup.getconfig("BUILD_TYPE") == "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())
deps = tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en_US" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"}) deps = tup.rule("echo lang fix " .. ((tup.getconfig("LANG") == "") and "en_US" or tup.getconfig("LANG")) .. " > %o", {"lang.inc"})
DOCDIR = "../../../../data/" .. tup.getconfig("BUILD_TYPE") .. "/docs/" DOCDIR = "../../../data/" .. tup.getconfig("BUILD_TYPE") .. "/docs/"
if tup.getconfig("TUP_PLATFORM") == "win32" if tup.getconfig("TUP_PLATFORM") == "win32"
then env_prefix = "set DOCDIR=$(DOCDIR)&&"; cp_cmd = "copy %f %o" then env_prefix = "set DOCDIR=$(DOCDIR)&&"; cp_cmd = "copy %f %o"
else env_prefix = "DOCDIR=$(DOCDIR) "; cp_cmd = "cp %f %o" else env_prefix = "DOCDIR=$(DOCDIR) "; cp_cmd = "cp %f %o"
end end
if tup.getconfig("LANG") == "ru_RU" if tup.getconfig("LANG") == "ru_RU"
then tup.append_table(deps, then tup.append_table(deps,
tup.rule("../../../../kernel/trunk/docs/sysfuncr.txt", "iconv -f utf-8 -t cp866 %f > %o", "SysFuncr.txt")) tup.rule("../../../kernel/trunk/docs/sysfuncr.txt", "iconv -f utf-8 -t cp866 %f > %o", "SysFuncr.txt"))
else tup.append_table(deps, else tup.append_table(deps,
tup.rule("../../../../kernel/trunk/docs/sysfuncs.txt", cp_cmd, "SysFuncs.txt")) tup.rule("../../../kernel/trunk/docs/sysfuncs.txt", cp_cmd, "SysFuncs.txt"))
end end
tup.append_table(deps, tup.append_table(deps,
tup.rule("../../../develop/fasm/1.73/fasm.txt", cp_cmd, "Fasm.txt") tup.rule("../../develop/fasm/1.73/fasm.txt", cp_cmd, "Fasm.txt")
) )
tup.append_table(deps, tup.append_table(deps,
tup.rule("../../../../kernel/trunk/docs/stack.txt", cp_cmd, "Stack.txt") tup.rule("../../../kernel/trunk/docs/stack.txt", cp_cmd, "Stack.txt")
) )
tup.rule({"docpack.asm", extra_inputs = deps}, env_prefix .. FASM .. " %f %o " .. tup.getconfig("KPACK_CMD"), "docpack") tup.rule({"docpack.asm", extra_inputs = deps}, env_prefix .. FASM .. " %f %o " .. tup.getconfig("KPACK_CMD"), "docpack")

View File

@@ -1,3 +1,6 @@
; SPDX-License-Identifier: NOASSERTION
;
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
; ;
; DOCPAK FOR KOLIBRI v1.2 ; DOCPAK FOR KOLIBRI v1.2
@@ -44,7 +47,7 @@ macro embed_local_file fn
dd I_END+0x400 ; memory for app dd I_END+0x400 ; memory for app
dd I_END+0x400 ; esp dd I_END+0x400 ; esp
dd my_param , 0x0 ; I_Param , I_Icon dd my_param , 0x0 ; I_Param , I_Icon
include '../../../macros.inc' include '../../macros.inc'
include 'lang.inc' ; Language support for locales: ru_RU, en_US. include 'lang.inc' ; Language support for locales: ru_RU, en_US.
start: start:

View File

@@ -1,3 +1,6 @@
; SPDX-License-Identifier: NOASSERTION
;
; ;
; END ; END
; ;
@@ -7,7 +10,7 @@
; ;
; 15.02.2007 merge old END with new one (fron Veliant & Leency) by Heavyiron ; 15.02.2007 merge old END with new one (fron Veliant & Leency) by Heavyiron
include "..\..\..\macros.inc" include "..\..\macros.inc"
meos_app_start meos_app_start
code code
@@ -43,7 +46,7 @@ draw:
xor edx, edx xor edx, edx
mcall mcall
mov al,8 mov al,8
mcall ,58 shl 16 + 32,59 shl 16 + 34, 1 shl 30 + 1 mcall ,58 shl 16 + 32,59 shl 16 + 34, 1 shl 30 + 1
inc edx inc edx
@@ -55,7 +58,7 @@ draw:
inc edx inc edx
mcall ,144 shl 16 + 43 mcall ,144 shl 16 + 43
mov al,12 ;end of redraw mov al,12 ;end of redraw
mov ebx,2 mov ebx,2
mcall mcall

View File

@@ -0,0 +1 @@
use32

View File

@@ -1 +0,0 @@
use32

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

@@ -1,12 +1,12 @@
ROOT=../../../develop/libraries/framework/trunk ROOT=../../develop/libraries/framework/trunk
include ../../../develop/libraries/framework/trunk/config.mk include ../../develop/libraries/framework/trunk/config.mk
# Note that kobra_st.o MUST be first and kobra.o last. # Note that kobra_st.o MUST be first and kobra.o last.
OBJECTS=kobra_st.o $(ROOT)/stdlib/heap.o $(ROOT)/stdlib/malloc.o $(ROOT)/stdlib/stdlib.o $(ROOT)/kolibri/kolibri.o $(ROOT)/libIPC/ipc.o kobra.o OBJECTS=kobra_st.o $(ROOT)/stdlib/heap.o $(ROOT)/stdlib/malloc.o $(ROOT)/stdlib/stdlib.o $(ROOT)/kolibri/kolibri.o $(ROOT)/libIPC/ipc.o kobra.o
# Set real path to kolibri.img if you want to use install option # Set real path to kolibri.img if you want to use install option
KOLIBRI_IMG=../../../../../../0.7.x-night/kolibri.img KOLIBRI_IMG=../../../../../0.7.x-night/kolibri.img
# Path to kobra.kex on floppy (directory should be created before installing) # Path to kobra.kex on floppy (directory should be created before installing)
DESTDIR=kobra/ DESTDIR=kobra/

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(HELPERDIR .. "/develop/libraries/libs-dev/libio") add_include(HELPERDIR .. "/develop/libraries/libs-dev/libio")

View File

@@ -1,3 +1,6 @@
; SPDX-License-Identifier: NOASSERTION
;
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
; ;
; LAUNCHER - startup of programs ; LAUNCHER - startup of programs
@@ -28,11 +31,11 @@
dd 0x0 ; I_Param dd 0x0 ; I_Param
dd 0x0 ; I_Icon dd 0x0 ; I_Icon
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
include "../../../macros.inc" include "../../macros.inc"
define __DEBUG__ 1 define __DEBUG__ 1
define __DEBUG_LEVEL__ 1 define __DEBUG_LEVEL__ 1
include "../../../debug-fdo.inc" include "../../debug-fdo.inc"
;----------------------------------------------------------------------------- ;-----------------------------------------------------------------------------
START: ; start of execution START: ; start of execution
mcall 68,11 mcall 68,11
@@ -43,7 +46,7 @@ START: ; start of execution
mov ecx,[processinfo+32] mov ecx,[processinfo+32]
test ecx,ecx test ecx,ecx
jnz @f jnz @f
inc ecx ; if file size zero inc ecx ; if file size zero
;-------------------------------------- ;--------------------------------------
@@: @@:

View File

@@ -1,5 +1,5 @@
if tup.getconfig("NO_FASM") ~= "" then return end if tup.getconfig("NO_FASM") ~= "" then return end
HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../../.." or tup.getconfig("HELPERDIR") HELPERDIR = (tup.getconfig("HELPERDIR") == "") and "../.." or tup.getconfig("HELPERDIR")
tup.include(HELPERDIR .. "/use_fasm.lua") tup.include(HELPERDIR .. "/use_fasm.lua")
add_include(tup.getvariantdir()) add_include(tup.getvariantdir())

Some files were not shown because too many files have changed in this diff Show More