75,6 → 75,26 |
display 'not used dt: ',`.,13,10 |
end if } |
|
struc RECT { |
.left dd ? |
.top dd ? |
.right dd ? |
.bottom dd ? |
} |
virtual at 0 |
RECT RECT |
end virtual |
|
struc BOX { |
.left dd ? |
.top dd ? |
.width dd ? |
.height dd ? |
} |
virtual at 0 |
BOX BOX |
end virtual |
|
; constants definition |
WSTATE_NORMAL = 00000000b |
WSTATE_MAXIMIZED = 00000001b |
81,12 → 101,33 |
WSTATE_MINIMIZED = 00000010b |
WSTATE_ROLLEDUP = 00000100b |
|
WSTATE_REDRAW = 00000001b |
WSTATE_WNDDRAWN = 00000010b |
|
WSTYLE_HASCAPTION = 00010000b |
WSTYLE_CLIENTRELATIVE = 00100000b |
|
struc TASKLIST |
{ |
.event_mask dd ? |
.pid dd ? |
dw ? |
.state dw ? |
dw ? |
.wnd_number db ? |
db ? |
.mem_start dd ? |
.counter_sum dd ? |
.counter_add dd ? |
.cpu_usage dd ? |
} |
virtual at 0 |
TASKLIST TASKLIST |
end virtual |
|
; structures definition |
struc WDATA { |
.left dd ? |
.top dd ? |
.width dd ? |
.height dd ? |
.box BOX |
.cl_workarea dd ? |
.cl_titlebar dd ? |
.cl_frames dd ? |
98,33 → 139,47 |
virtual at 0 |
WDATA WDATA |
end virtual |
label WDATA.fl_wstyle byte at 0x13 ; WDATA.cl_workarea+3 |
label WDATA.fl_wstyle byte at 0x13 |
|
struc RECT { |
.left dd ? |
.top dd ? |
.right dd ? |
.bottom dd ? |
struc APPDATA |
{ |
.app_name db 11 dup(?) |
db 5 dup(?) |
.fpu_save_area db 108 dup(?) |
db 3 dup(?) |
.is_fpu_saved db ? |
.wnd_shape dd ? |
.wnd_shape_scale dd ? |
.gdt dd ? |
.mem_size dd ? |
.saved_box BOX |
.ipc_start dd ? |
.ipc_size dd ? |
.event_mask dd ? |
.debugger_slot dd ? |
.int40_handler dd ? |
.keyboard_mode db ? |
db 3 dup(?) |
.dir_table dd ? |
.dbg_event_mem dd ? |
.dbg_regs: |
.dbg_regs.dr0 dd ? |
.dbg_regs.dr1 dd ? |
.dbg_regs.dr2 dd ? |
.dbg_regs.dr3 dd ? |
.dbg_regs.dr7 dd ? |
.wnd_caption dd ? |
.wnd_clientbox BOX |
} |
virtual at 0 |
RECT RECT |
APPDATA APPDATA |
end virtual |
|
struc BOX { |
.left dd ? |
.top dd ? |
.width dd ? |
.height dd ? |
} |
virtual at 0 |
BOX BOX |
end virtual |
|
;// mike.dld, 2006-29-01 ] |
|
|
; Core functions |
include "core/sync.inc" |
include "core/sync.inc" ; macros for synhronization objects |
include "core/sys32.inc" ; process management |
include "core/sched.inc" ; process scheduling |
include "core/syscall.inc" ; system call |
131,7 → 186,6 |
include "core/mem.inc" ; high-level memory management |
include "core/newproce.inc" ;new process management |
include "core/physmem.inc" ; access to physical memory for applications |
include "core/sync.inc" ; macros for synhronization objects |
|
; GUI stuff |
include "gui/window.inc" |