Rev 129 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 129 | Rev 384 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | display d |
48 | display d |
49 | end repeat |
49 | end repeat |
50 | display 13,10 |
50 | display 13,10 |
51 | } |
51 | } |
Line -... | Line 52... | ||
- | 52 | ||
- | 53 | ; \begin{diamond}[29.09.2006] |
|
- | 54 | ; may be useful for kernel debugging |
|
- | 55 | ; example 1: |
|
- | 56 | ; dbgstr 'Hello, World!' |
|
- | 57 | ; example 2: |
|
- | 58 | ; dbgstr 'Hello, World!', save_flags |
|
- | 59 | macro dbgstr string*, f |
|
- | 60 | { |
|
- | 61 | local a |
|
- | 62 | iglobal_nested |
|
- | 63 | a db 'K : ',string,13,10,0 |
|
- | 64 | endg_nested |
|
- | 65 | if ~ f eq |
|
- | 66 | pushfd |
|
- | 67 | end if |
|
- | 68 | push esi |
|
- | 69 | mov esi, a |
|
- | 70 | call sys_msg_board_str |
|
- | 71 | pop esi |
|
- | 72 | if ~ f eq |
|
- | 73 | popfd |
|
- | 74 | end if |
|
- | 75 | } |
|
- | 76 | ; \end{diamond}[29.09.2006] |
|
52 | 77 | ||
53 | ;struc db [a] { common . db a |
78 | ;struc db [a] { common . db a |
54 | ; if ~used . |
79 | ; if ~used . |
55 | ; display 'not used db: ',`.,13,10 |
80 | ; display 'not used db: ',`.,13,10 |
56 | ; end if } |
81 | ; end if } |
Line 144... | Line 169... | ||
144 | 169 | ||
145 | struc APPDATA |
170 | struc APPDATA |
146 | { |
171 | { |
147 | .app_name db 11 dup(?) |
172 | .app_name db 11 dup(?) |
- | 173 | db 5 dup(?) |
|
148 | db 5 dup(?) |
174 | |
149 | .fpu_save_area: db 108 dup(?) |
175 | .fpu_state dd ? ;+16 |
150 | db 3 dup(?) |
176 | .ev_count dd ? ;+20 |
- | 177 | .fpu_handler dd ? ;+24 |
|
- | 178 | .sse_handler dd ? ;+28 |
|
- | 179 | .pl0_stack dd ? ;unused ;+32 |
|
- | 180 | .heap_base dd ? ;+36 |
|
- | 181 | .heap_top dd ? ;+40 |
|
- | 182 | .cursor dd ? ;+44 |
|
- | 183 | .fd_ev dd ? ;+48 |
|
- | 184 | .bk_ev dd ? ;+52 |
|
- | 185 | .fd_obj dd ? ;+56 |
|
- | 186 | .bk_obj dd ? ;+60 |
|
- | 187 | ||
- | 188 | db 64 dup(?) ;+64 |
|
151 | .is_fpu_saved db ? |
189 | |
152 | .wnd_shape dd ? |
190 | .wnd_shape dd ? ;+128 |
153 | .wnd_shape_scale dd ? |
191 | .wnd_shape_scale dd ? ;+132 |
154 | dd ? |
192 | dd ? ;+136 |
155 | .mem_size dd ? |
193 | .mem_size dd ? ;+140 |
156 | .saved_box BOX |
194 | .saved_box BOX |
157 | .ipc_start dd ? |
195 | .ipc_start dd ? |
158 | .ipc_size dd ? |
196 | .ipc_size dd ? |
159 | .event_mask dd ? |
197 | .event_mask dd ? |
Line 182... | Line 220... | ||
182 | ; Core functions |
220 | ; Core functions |
183 | include "core/sync.inc" ; macros for synhronization objects |
221 | include "core/sync.inc" ; macros for synhronization objects |
184 | include "core/sys32.inc" ; process management |
222 | include "core/sys32.inc" ; process management |
185 | include "core/sched.inc" ; process scheduling |
223 | include "core/sched.inc" ; process scheduling |
186 | include "core/syscall.inc" ; system call |
224 | include "core/syscall.inc" ; system call |
187 | include "core/mem.inc" ; high-level memory management |
225 | include "core/fpu.inc" ; all fpu/sse support |
- | 226 | include "core/memory.inc" |
|
188 | include "core/newproce.inc" ;new process management |
227 | include "core/heap.inc" ; kernel and app heap |
189 | include "core/physmem.inc" ; access to physical memory for applications |
228 | include "core/malloc.inc" ; small kernel heap |
- | 229 | include "core/taskman.inc" |
|
- | 230 | include "core/dll.inc" |
|
- | 231 | include "core/exports.inc" |
|
Line 190... | Line 232... | ||
190 | 232 | ||
191 | ; GUI stuff |
233 | ; GUI stuff |
192 | include "gui/window.inc" |
234 | include "gui/window.inc" |
193 | include "gui/event.inc" |
235 | include "gui/event.inc" |
Line 200... | Line 242... | ||
200 | 242 | ||
Line 201... | Line 243... | ||
201 | ; file system |
243 | ; file system |
202 | 244 | ||
- | 245 | include "fs/fs.inc" ; syscall |
|
203 | include "fs/fs.inc" ; syscall |
246 | include "fs/fat32.inc" ; read / write for fat32 filesystem |
204 | include "fs/fat32.inc" ; read / write for fat32 filesystem |
247 | include "fs/ntfs.inc" ; read / write for ntfs filesystem |
205 | include "fs/fat12.inc" ; read / write for fat12 filesystem |
248 | include "fs/fat12.inc" ; read / write for fat12 filesystem |
206 | include "blkdev/rd.inc" ; ramdisk read /write |
249 | include "blkdev/rd.inc" ; ramdisk read /write |
Line 215... | Line 258... | ||
215 | ; display |
258 | ; display |
Line 216... | Line 259... | ||
216 | 259 | ||
217 | include "video/vesa12.inc" ; Vesa 1.2 functions |
260 | include "video/vesa12.inc" ; Vesa 1.2 functions |
218 | include "video/vesa20.inc" ; Vesa 2.0 functions |
261 | include "video/vesa20.inc" ; Vesa 2.0 functions |
- | 262 | include "video/vga.inc" ; VGA 16 color functions |
|
Line 219... | Line 263... | ||
219 | include "video/vga.inc" ; VGA 16 color functions |
263 | include "video/cursors.inc" ; cursors functions |
Line 220... | Line 264... | ||
220 | 264 | ||
Line 237... | Line 281... | ||
237 | ; Floppy drive controller |
281 | ; Floppy drive controller |
Line 238... | Line 282... | ||
238 | 282 | ||
239 | include "blkdev/fdc.inc" |
283 | include "blkdev/fdc.inc" |
Line -... | Line 284... | ||
- | 284 | include "blkdev/flp_drv.inc" |
|
- | 285 | ||
- | 286 | ; HD drive controller |
|
240 | include "blkdev/flp_drv.inc" |
287 | include "blkdev/hd_drv.inc" |
Line 241... | Line 288... | ||
241 | 288 | ||
242 | ; CD drive controller |
289 | ; CD drive controller |