|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 16 楼』:
使用 LLM 解释/回答一下
更正了mutex优先级置顶协议中的bug;
新加入了"周期性定时器"内核对象,用于周期性事务处理。说明如下:
/*
*******************************************************************************
* 周期性定时器对象相关函数 *
*******************************************************************************
*/
/* 创建周期性定时器对象:
* pTimerName:说明定时器对象名称,
*
* cwIDRBM:说明环形队列消息对象ID,用于周期性定时器超时时发送环形队列消息,
*
* 返回值为周期性定时器对象标识ID,用于周期性定时器对象相关的系统调用。
*/
extern CWORD _cdecl_ CreateTimer(STR *pTimerName, CWORD cwIDRBM);
/* 连接周期性定时器对象,使之有效,周期性发送发送环形队列消息:
* cwIDTimer:周期性定时器对象标识ID,
*
* dwPeriod:说明定时器周期,单位为时间片,
*
* 成功后,返回值为SUCCESS,然后可用GetRBM、GetRBMTry接受消息msg,
* msg.dwSize说明超时的周期性定时器对象ID。
*/
extern CWORD _cdecl_ ConnectTimer(CWORD cwIDTimer, DWORD dwPeriod);
/* 断开周期性定时器对象,使之失效,停止发送发送环形队列消息:
* cwIDTimer:周期性定时器对象标识ID,
*
* 成功后,返回值为SUCCESS,然后可用DeleteObject删除周期性定时器对象。
*/
extern CWORD _cdecl_ UnConnectTimer(CWORD cwIDTimer);
下面有新的库文件及应用实例可供下载。
rtCell16.rar是16位应用实例;rtCell32.rar是32位应用实例。
Last edited by taowentao on 2005-10-30 at 15:10 ]
Corrected bugs in the mutex priority top-priority protocol;
Newly added "periodic timer" kernel object for periodic transaction processing. The description is as follows:
/*
*******************************************************************************
* Periodic Timer Object Related Functions *
*******************************************************************************
*/
/* Create periodic timer object:
* pTimerName: indicates the timer object name,
*
* cwIDRBM: indicates the ring queue message object ID, used to send ring queue messages when the periodic timer times out,
*
* The return value is the periodic timer object identification ID, used for system calls related to the periodic timer object.
*/
extern CWORD _cdecl_ CreateTimer(STR *pTimerName, CWORD cwIDRBM);
/* Connect periodic timer object to make it effective, periodically send ring queue messages:
* cwIDTimer: periodic timer object identification ID,
*
* dwPeriod: indicates the timer period, unit is time slice,
*
* After success, the return value is SUCCESS, then you can use GetRBM, GetRBMTry to receive message msg,
* msg.dwSize indicates the timed-out periodic timer object ID.
*/
extern CWORD _cdecl_ ConnectTimer(CWORD cwIDTimer, DWORD dwPeriod);
/* Disconnect periodic timer object to make it invalid, stop sending ring queue messages:
* cwIDTimer: periodic timer object identification ID,
*
* After success, the return value is SUCCESS, then you can use DeleteObject to delete the periodic timer object.
*/
extern CWORD _cdecl_ UnConnectTimer(CWORD cwIDTimer);
There are new library files and application examples available for download below.
rtCell16.rar is a 16-bit application example; rtCell32.rar is a 32-bit application example.
Last edited by taowentao on 2005-10-30 at 15:10 ]
|
|
2005-10-30 15:03 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 17 楼』:
rtCell已经移植到visual C++
使用 LLM 解释/回答一下
rtCell已经移植到visual C++和masm。
下面的obj文件用visual C++ 5.0和masm 6.11编译。
压缩文件rtCell_vc5.rar中有五个obj文件和一个实例源代码rtShell.c:
cstart.obj,mcEntry.obj,mcKrnl.obj,mcClib32.obj,rtCell.obj
和visual C++ 5.0工程文件:rtCell.dsp,rtCell.dsw,rtCell.ncb,
rtCell.opt,rtCell.plg可用;请将cstart.obj放在最前面,因其内含
32位启动代码;编译时注意:要四字节对齐。
release文件夹中有二进制工具,用于生成freedos可加载的kernel.sys;
编译后执行make_sys.bat可生成kernel.sys,替换freedos的kernel.sys后;
就可以由freedos loader加载。
Last edited by taowentao on 2005-11-14 at 10:01 ]
rtCell has been ported to Visual C++ and MASM.
The following.obj files are compiled with Visual C++ 5.0 and MASM 6.11.
There are five.obj files and an example source code rtShell.c in the compressed file rtCell_vc5.rar:
cstart.obj, mcEntry.obj, mcKrnl.obj, mcClib32.obj, rtCell.obj
And the Visual C++ 5.0 project files: rtCell.dsp, rtCell.dsw, rtCell.ncb,
rtCell.opt, rtCell.plg are available; please put cstart.obj at the front because it contains 32-bit startup code; pay attention during compilation: align on four bytes.
There are binary tools in the release folder for generating the kernel.sys loadable by FreeDOS;
After compilation, execute make_sys.bat to generate kernel.sys, replace the kernel.sys of FreeDOS; then it can be loaded by the FreeDOS loader.
Last edited by taowentao on 2005-11-14 at 10:01 ]
|
|
2005-11-11 11:00 |
|
|
profree
中级用户
  
积分 478
发帖 132
注册 2003-7-2
状态 离线
|
  『第 18 楼』:
使用 LLM 解释/回答一下
太深奥了,不懂啊,支持一下
It's too profound, I don't understand. I'll give it a support.
|
|
2005-11-11 19:25 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
ps/2(不是USB)鼠标、键盘演示:
可在红色光标(闪烁)处输入数据;
用鼠标改变光标位置;
支持鼠标滚轮操作;
crl+z切换到全部任务状态列表,再次crl+z切换回原屏幕。
rtCell.rar内是rtcell用于freedos启动的硬盘映象文件;
Qemu.rar内是最新的Qemu虚拟机软件,应用动态编译技术,速度极快;
请将此二文件解压缩到同一个文件夹,执行rtcell.bat,即可演示。
lib.rar内是应用实例,用于GUN C 3.xx,可修改、编译。
rtCell_vc5.rar内是应用实例,用于 rtCell可用visual C++5.0/6.0,可修改、编译。
Last edited by taowentao on 2005-12-6 at 17:22 ]
Demonstration of PS/2 (not USB) mouse and keyboard:
Data can be entered at the red cursor (flashing);
Use the mouse to change the cursor position;
Support mouse wheel operation;
Ctrl + Z switches to the list of all task states, and Ctrl + Z again switches back to the original screen.
The rtCell.rar contains the hard disk image file for rtcell to boot with FreeDOS;
The Qemu.rar contains the latest Qemu virtual machine software, which applies dynamic compilation technology and is extremely fast;
Please extract these two files to the same folder, execute rtcell.bat, and the demonstration can be carried out.
The lib.rar contains application examples for GUN C 3.xx, which can be modified and compiled.
The rtCell_vc5.rar contains application examples for rtCell that can be used with Visual C++ 5.0/6.0, which can be modified and compiled.
Last edited by taowentao on 2005-12-6 at 17:22 ]
|
|
2005-12-5 10:17 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 20 楼』:
rtCell32硬盘、fat16文件系统根目录文件读取操作演示
使用 LLM 解释/回答一下
rtCell32硬盘、fat16文件系统根目录文件读取操作演示:
以中断方式读取硬盘数据;
打开并读取fat16文件系统根目录文件:rtCell.txt且显示其内容。
rtCell.rar内是硬盘启动映象文件(用于Qemu及bochs虚拟机模拟软件),
rtCell32由此被引导启动,并读取其上的fat16文件系统。
Last edited by taowentao on 2005-12-10 at 14:29 ]
Demonstration of reading operations on the root directory file of the rtCell32 hard disk and fat16 file system:
Read hard disk data by interrupt method;
Open and read the root directory file rtCell.txt of the fat16 file system and display its content.
The rtCell.rar contains the hard disk boot image file (for Qemu and bochs virtual machine simulation software),
rtCell32 is booted from it and reads the fat16 file system on it.
Last edited by taowentao on 2005-12-10 at 14:29 ]
|
|
2005-12-10 14:23 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 21 楼』:
模块加载
使用 LLM 解释/回答一下
编译后执行make_sys.bat可生成kernel.sys,替换freedos的kernel.sys后;
就可以由freedos loader加载。
目录:usr_file 内的工程文件用于生成usr.sys模块;用于串行端口通信;
编译后执行make_usr_sys.bat可生成usr.sys。
kernel.sys将加载根目录下的usr.sys,向串口2发送“abcdefghijklmnopqrstuvwxyz”字符串;
bochs虚拟软件的scom2.txt文件中可看到结果。
usr32.sys 加载物理地址应与其编译基地址一致;
因kernel.sys大小不超过128k(受freedos loader所限),其加载地址为0x600,
所以usr32.sys 加载物理地址应在(0x20000+0x600 = 0x26000)以后;
本例子中:usr32.sys加载物理地址为0x30000。
以上仅用于fat16格式的“ata 1(14号中断)、主硬盘、主引导分区启动”。
bochs虚拟软件 在配置文件bochsrc.txt中加入系列说明:
mouse: enabled=0, type=imps2
com1: enabled=1, mode=file, dev="scom1.txt"
com2: enabled=1, mode=file, dev="scom2.txt"
rtCell_vc5.rar 中有全部源代码(串行通信、磁盘及fat16文件操作)。
bochs.rar 中为 rtCell 在虚拟机软件 bochs 中的演示。
Last edited by taowentao on 2005-12-19 at 10:04 ]
After compilation, executing make_sys.bat generates kernel.sys. After replacing the kernel.sys of FreeDOS, it can be loaded by the FreeDOS loader.
The project files in the usr_file directory are used to generate the usr.sys module for serial port communication. After compilation, executing make_usr_sys.bat generates usr.sys.
kernel.sys will load usr.sys in the root directory and send the string "abcdefghijklmnopqrstuvwxyz" to serial port 2. The result can be seen in the scom2.txt file of the Bochs virtual software.
The physical address for loading usr32.sys should be consistent with its compilation base address.
Since the size of kernel.sys does not exceed 128k (limited by the FreeDOS loader), its loading address is 0x600. Therefore, the physical address for loading usr32.sys should be after (0x20000 + 0x600 = 0x26000).
In this example, the physical address for loading usr32.sys is 0x30000.
The above is only for "ATA 1 (interrupt 14), primary hard disk, primary boot partition boot" in the FAT16 format.
In the Bochs virtual software, add the following descriptions in the configuration file bochsrc.txt:
mouse: enabled=0, type=imps2
com1: enabled=1, mode=file, dev="scom1.txt"
com2: enabled=1, mode=file, dev="scom2.txt"
rtCell_vc5.rar contains all the source code (serial communication, disk and FAT16 file operations). bochs.rar is the demonstration of rtCell in the virtual machine software Bochs.
Last edited by taowentao on 2005-12-19 at 10:04 ]
|
|
2005-12-16 17:38 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 22 楼』:
rtCell的16位库文件: 用于16位dos实模式
使用 LLM 解释/回答一下
16位dos实模式鼠标(ps2普通串口鼠标)、键盘应用演示:
demo.exe 在纯dos下鼠标(ps2)、键盘应用演示,注意:在(win98/2k/xp的)dos窗口不能使用鼠标;
KERNEL.SYS用于 free dos 的 free loader 加载启动的鼠标、键盘演示;
rtCell16.lib 是实时微内核rtCell的16位库文件(仅适用于open watcom c/c++);
rtPC_input.obj是鼠标(ps2)、键盘输入obj文件,进行相应的I/O操作,其源代码请到
FreeDOS-32 release 0.0.5下查阅;
sys_demo.bat及EXEFLAT.EXE用于将demo.exe生成KERNEL.SYS,以便用于 free dos 的 free loader 加载启动。
Demonstration of 16-bit DOS real-mode mouse (PS2 ordinary serial port mouse) and keyboard applications:
demo.exe is a demonstration of mouse (PS2) and keyboard applications under pure DOS. Note: The mouse cannot be used in the DOS window of (Win98/2K/XP);
KERNEL.SYS is used for the mouse and keyboard demonstration loaded and started by the free loader of Free DOS;
rtCell16.lib is a 16-bit library file of the real-time microkernel rtCell (only applicable to Open Watcom C/C++);
rtPC_input.obj is a mouse (PS2) and keyboard input obj file, which performs corresponding I/O operations. The source code can be found in FreeDOS-32 release 0.0.5;
sys_demo.bat and EXEFLAT.EXE are used to generate KERNEL.SYS from demo.exe, so as to be loaded and started by the free loader of Free DOS.
|
|
2005-12-19 10:08 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
真正的多任务、多(文本模式)窗口演示程序:
中断驱动的鼠标、键盘,事件驱动的多窗口,真正的多任务,完全抢占的实时微内核;
红色标题为活动窗口,蓝色标题为非活动窗口,非活动窗口可后台动态刷新;
其中一个窗口显示任务状态,另外两个窗口显示当前时间及“窗口”二字,桌面显示键盘输入;
可用鼠标移动、激活窗口、(窗口右下角)改变窗口大小。
“ctrl + z”热键,切换到任务状态窗口。
qemu_0.8_domo.rar内是在虚拟机上的演示,
执行rtCell.bat;
dos_demo.rar (demo.exe及demo_.exe)用于在纯dos(windows上无鼠标)下,用串行鼠标演示。
Last edited by taowentao on 2006-1-23 at 12:05 ]
Real multi-tasking, multi(text mode) window demonstration program:
Interrupt-driven mouse, keyboard, event-driven multi-windows, real multi-tasking, fully preemptive real-time microkernel;
Red title is the active window, blue title is the inactive window, the inactive window can be dynamically refreshed in the background;
One of the windows displays the task status, the other two windows display the current time and the word "window", and the desktop displays keyboard input;
You can use the mouse to move, activate the window, and (lower right corner of the window) change the window size.
"ctrl + z" hotkey to switch to the task status window.
The qemu_0.8_domo.rar contains the demonstration on the virtual machine, execute rtCell.bat;
dos_demo.rar (demo.exe and demo_.exe) is used to demonstrate with a serial mouse in pure DOS (no mouse on Windows).
Last edited by taowentao on 2006-1-23 at 12:05 ]
|
|
2006-1-13 15:12 |
|
|
xzxz
新手上路

积分 2
发帖 1
注册 2006-2-7
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
你的mcKrnl.obj代码在哪里?还是这部分代码不公开?
Where is your mcKrnl.obj code? Or is this part of the code not public?
|
|
2006-2-7 14:23 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
“源代码公开”的版本正在进行中;这需要一段时间,因为,rtCell的任何版本都应同时满足对16,32位甚至字长更长 cpu 具有较好的可移植性。
Last edited by taowentao on 2006-2-8 at 08:17 ]
The version with "source code open" is under way; this will take some time because any version of rtCell should simultaneously have good portability for CPUs with 16-bit, 32-bit or even longer word lengths.
Last edited by taowentao on 2006-2-8 at 08:17 ]
|
|
2006-2-7 18:03 |
|
|
wanted999
新手上路

积分 2
发帖 1
注册 2006-2-8
状态 离线
|
『第 26 楼』:
谢谢啦
使用 LLM 解释/回答一下
说了这么多,
先下下来看看吧!
谢谢啦!
After talking so much,
Let's download it and have a look first!
Thanks!
|
|
2006-2-8 15:05 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 27 楼』:
giCell - 真正的图形模式多窗口
使用 LLM 解释/回答一下
giCell 真正的图形模式多窗口 - 全部源代码(C 语言)不到六千行,具有下列功能:
1. 完善而精巧的多视口裁剪和消隐处理,与实时微内核rtCell紧密结合;
2. 真正的事件(或消息)驱动的多窗口技术,且支持顶层窗口和透明窗口;
3. 当前支持Label、Edit、Botton、Slider、Listbox、scrollbar、TreeView和Checkbox控件,其中的
Edit控件支持剪切、复制和粘贴(ctrl+x,ctrl+c,ctrl+v);
4. 支持窗口的平移、缩放,和窗口系统按钮,及窗口和控件的过程回调;
5. 内存需求小(不到64K),窗口和控件所耗内存很小,因此实用性强,包括rtCell、鼠标、键盘及图形驱动,在DOS下也仅 100 多 K 字节。
演示方法:解压缩gui_Test.rar,在windows下(双击)执行gui_Test.bat,
或在纯dos下直接执行bc_gui.exe(在windows的dos窗口中无鼠标)。
注意:本演示中由于包含一个说明性位图而使得bc_gui.exe比较大。
下载地址: http://zhenlove.com.cn/cndos/fileup/files/gui_Test.rar
https://gro.clinux.org/frs/download.php/1888/bc_gui.zip
Last edited by taowentao on 2006-11-29 at 10:10 AM ]
giCell: Truly Graphical Mode Multi-Window - All Source Code (C Language) Less Than Six Thousand Lines, With the Following Functions:
1. Perfect and elaborate multi-viewport clipping and hidden surface removal processing, tightly integrated with the real-time microkernel rtCell;
2. Truly event (or message) driven multi-window technology, and supports top-level windows and transparent windows;
3. Currently supports Label, Edit, Botton, Slider, Listbox, scrollbar, TreeView, and Checkbox controls. Among them, the Edit control supports cut, copy, and paste (ctrl+x, ctrl+c, ctrl+v);
4. Supports window panning, zooming, and window system buttons, as well as process callbacks for windows and controls;
5. Small memory requirements (less than 64K), very small memory consumption for windows and controls, so it is highly practical. Including rtCell, mouse, keyboard, and graphics driver, it is only more than 100 K bytes under DOS.
Demonstration Method: Unzip gui_Test.rar, execute gui_Test.bat under Windows (double-click),
or directly execute bc_gui.exe under pure DOS (no mouse in the DOS window of Windows).
Note: In this demonstration, because it contains an illustrative bitmap, bc_gui.exe is relatively large.
Download Address: http://zhenlove.com.cn/cndos/fileup/files/gui_Test.rar
https://gro.clinux.org/frs/download.php/1888/bc_gui.zip
Last edited by taowentao on 2006-11-29 at 10:10 AM ]
|

来自山东,现居沈阳 |
|
2006-10-5 22:18 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
牛人啊~~~顶~
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-10-5 22:23 |
|
|
profree
中级用户
  
积分 478
发帖 132
注册 2003-7-2
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
解压失败,建议楼主重新上传
Decompression failed, it is suggested that the thread starter re - upload
|
|
2006-10-9 04:16 |
|
|
taowentao
高级用户
   
积分 739
发帖 111
注册 2004-11-30 来自 辽宁沈阳
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
我试了,没问题,请重新下载,并解压缩。
I tried, no problem. Please re-download and unzip.
|

来自山东,现居沈阳 |
|
2006-10-18 22:27 |
|