Rev 387 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ha | 1 | ; |
2 | ; MEMORY MAP |
||
3 | ; |
||
4 | ; Boot: |
||
5 | ; |
||
6 | ; 0:9000 byte bits per pixel |
||
7 | ; 0:9001 word scanline length |
||
8 | ; 0:9008 word vesa video mode |
||
9 | ; 0:900A word X res |
||
10 | ; 0:900C word Y res |
||
11 | ; 0:9010 byte mouse port - not used |
||
12 | ; 0:9014 dword Vesa 1.2 pm bank switch |
||
13 | ; 0:9018 dword Vesa 2.0 LFB address |
||
14 | ; 0:901C byte 0 or 1 : enable MTRR graphics acceleration |
||
15 | ; 0:901D byte not used anymore (0 or 1 : enable system log display) |
||
16 | ; 0:901E byte 0 or 1 : enable direct lfb write, paging disabled |
||
346 | diamond | 17 | ; 0:901F byte DMA write : 1=yes, 2=no |
1 | ha | 18 | ; 0:9020 8bytes pci data |
19 | ; 0:9030 byte VRR start enabled 1, 2-no |
||
20 | ; 0:9031 word IDEContrRegsBaseAddr |
||
76 | mario79 | 21 | ; 0x9040 - dword - entry point of APM BIOS |
22 | ; 0x9044 - word - version (BCD) |
||
23 | ; 0x9046 - word - flags |
||
1 | ha | 24 | ; |
25 | ; Runtime: |
||
26 | ; |
||
400 | serge | 27 | ; 0x00000000 -> 0x7FBFFFFF application 2Gb-4Mb |
28 | ; 0x7FC00000 -> 0x7FFFFFFF page tables 4Mb |
||
29 | |||
30 | |||
31 | ; 0x80000000 -> 1FFF window_data - 256 entries |
||
1 | ha | 32 | ; |
33 | ; 0000 dword x start |
||
34 | ; 0004 dword y start |
||
35 | ; 0008 dword x size |
||
36 | ; 000C dword y size |
||
37 | ; 0010 dword color of work area |
||
38 | ; 0014 dword color of grab bar |
||
39 | ; 0018 dword color of frames |
||
40 | ; 001C dword window flags, +30 = window drawn, +31 redraw flag |
||
41 | ; |
||
14 | poddubny | 42 | ; 2000 -> 2FFF free |
43 | ; |
||
1 | ha | 44 | ; 3000 -> 4FFF task list - 256 entries |
45 | ; |
||
46 | ; 00 dword process count |
||
47 | ; 04 dword no of processes |
||
48 | ; 10 dword base of running process at 0x3000+ |
||
49 | ; |
||
50 | ; 20 dword application event mask |
||
51 | ; 24 dword PID - process identification number |
||
115 | poddubny | 52 | ; 2a byte slot state: 0=running, 1,2=suspended |
53 | ; 3=zombie, 4=terminate, |
||
54 | ; 5=waiting for event, 9 = not used |
||
1 | ha | 55 | ; 2e byte window number on screen |
56 | ; 30 dword exact position in memory |
||
57 | ; 34 dword counter sum |
||
58 | ; 38 dword time stamp counter add |
||
59 | ; 3c dword cpu usage in cpu timer tics |
||
60 | ; |
||
61 | ; |
||
314 | diamond | 62 | ; 5000 -> 68FF free |
1 | ha | 63 | ; 6900 -> 6EFF saved picture under mouse pointer |
64 | ; |
||
33 | mario79 | 65 | ; 6F00 -> 6FFF free |
1 | ha | 66 | ; |
33 | mario79 | 67 | ; 7000 -> 7FFF used CD driver |
68 | ; |
||
1 | ha | 69 | ; 8000 -> A3FF used FLOPPY driver |
70 | ; |
||
102 | poddubny | 71 | ; A400 -> B0FF free |
8 | poddubny | 72 | |
1 | ha | 73 | ; B100 -> B2FF IDT |
74 | |||
8 | poddubny | 75 | ; B300 -> BFFF free |
76 | |||
1 | ha | 77 | ; C000 -> C3FF window stack C000 no of windows - all in words |
78 | ; C402 -> C7FF window position in stack |
||
79 | ; D000 -> D1FF FDC controller |
||
80 | ; D200 -> D3FF FDC controller for Fat12 |
||
81 | ; D400 -> DFFF free |
||
82 | ; E000 byte multitasking started |
||
83 | ; E020 dword putpixel address |
||
84 | ; E024 dword getpixel address |
||
85 | ; E030 dword Vesa 1.2 pm bank switch address |
||
86 | ; F200 dword mousepicture -pointer |
||
87 | ; F204 dword mouse appearance counter |
||
88 | ; F300 dword x & y temp for windowmove |
||
89 | ; F400 byte no of keys in buffer |
||
90 | ; F401 byte 'buffer' |
||
91 | ; F402 -> F4FF reserved for keys |
||
92 | ; F500 byte no of buttons in buffer |
||
93 | ; F501 dword 'buffer' |
||
94 | ; F502 -> F5FF reserved for buttons |
||
95 | ; F600 dword tsc / second |
||
96 | ; F604 byte mouse port: 1 ps2, 2 com1, 3 com2 |
||
97 | ; FB00 -> FB0F mouse memory 00 chunk count - FB0A-B x - FB0C-D y |
||
98 | ; FB10 -> FB17 mouse color mem |
||
99 | ; FB21 x move |
||
100 | ; FB22 y move |
||
101 | ; FB28 high bits temp |
||
102 | ; FB30 color temp |
||
103 | ; FB40 byte buttons down |
||
104 | ; FB44 byte 0 mouse down -> do not draw |
||
105 | ; FB4A -> FB4D FB4A-B x-under - FB4C-D y-under |
||
106 | ; FBF1 byte bits per pixel |
||
107 | ; FC00 -> FCFE com1/ps2 buffer |
||
108 | ; FCFF com1/ps2 buffer count starting from FC00 |
||
109 | ; FE00 dword screen x size |
||
110 | ; FE04 dword screen y size |
||
111 | ; FE08 dword screen y multiplier |
||
112 | ; FE0C dword screen mode |
||
113 | ; FE80 dword address of LFB in physical |
||
114 | ; FE84 dword address of applications memory start in physical |
||
115 | ; FE88 dword address of button list |
||
116 | ; FE8C dword memory to use |
||
117 | ; FF00 byte 1 = system shutdown request |
||
105 | poddubny | 118 | ; FF01 dword free |
1 | ha | 119 | ; FFF0 byte 1 = redraw background request from app |
120 | ; FFF1 byte 1 = diskette int occur |
||
121 | ; FFF2 write and read bank in screen |
||
122 | ; FFF4 byte 0 if first mouse draw & do not return picture under |
||
123 | ; FFF5 byte 1 do not draw pointer |
||
124 | ; FFFF byte do not change task for 1/100 sec. |
||
125 | ; |
||
400 | serge | 126 | ; 0x80010000 -> 3DBFF kernel, 32-bit run-time code (up to 183 Kb) |
127 | ; 0x8003DC00 -> 3EBFF stack at boot time (4Kb) |
||
128 | ; 0x8003EC00 -> 3F5FF basic text font II |
||
129 | ; 0x8003F600 -> 3FFFF basic text font I |
||
130 | ; 0x80040000 -> 4FFFF data of retrieved disks and partitions (Mario79) |
||
22 | poddubny | 131 | |
400 | serge | 132 | ; 0x80050000 -> 50FFF main page directory |
133 | ; 0x80050200 -> 5FFFF pages bitmap |
||
22 | poddubny | 134 | |
400 | serge | 135 | ; 0x80060000 -> 7FFFF free (128 Kb) |
136 | ; 0x80080000 -> 8FFFF additional app info, in 256 byte steps - 256 entries |
||
1 | ha | 137 | ; |
400 | serge | 138 | ; 00 11db name of app running |
139 | ; 10 dword pointer to fpu save area |
||
140 | ; 14 dword event count |
||
141 | ; 18 dword user fpu exceptoins handler |
||
142 | ; 1c dword user sse exceptions handler |
||
143 | ; 20 dword PL0 stack base |
||
144 | ; 24 dword user heap base |
||
145 | ; 28 dword user heap top |
||
146 | ; 2c dword window cursor handle |
||
147 | ; 30 dword first event in list |
||
148 | ; 34 dword last event in list |
||
149 | ; 38 dword first kernel object in list |
||
150 | ; 3c dword last kernel object in list |
||
1 | ha | 151 | ; |
400 | serge | 152 | ; 40-7F unused |
1 | ha | 153 | ; |
400 | serge | 154 | ; 80 dword address of random shaped window area |
155 | ; 84 byte shape area scale |
||
156 | ; 88 dword free |
||
157 | ; 8C dword application memory size |
||
158 | ; 90 dword window X position save |
||
159 | ; 94 dword window Y position save |
||
160 | ; 98 dword window X size save |
||
161 | ; 9C dword window Y size save |
||
162 | ; A0 dword IPC memory start |
||
163 | ; A4 dword IPC memory size |
||
164 | ; A8 dword event bits: mouse, stack,.. |
||
165 | ; AC dword 0 or debugger slot |
||
166 | ; B0 dword free |
||
167 | ; B4 byte keyboard mode: 0 = keymap, 1 = scancodes |
||
168 | ; B8 dword physical address of directory table |
||
169 | ; BC dword address of debug event memory |
||
170 | ; C0 5 dd thread debug registers: DR0,DR1,DR2,DR3,DR7 |
||
1 | ha | 171 | ; |
400 | serge | 172 | ; 0x80090000 -> 9FFFF tmp |
173 | ; 0x800A0000 -> AFFFF screen access area |
||
174 | ; 0x800B0000 -> FFFFF bios rest in peace -area |
||
175 | ; 0x80100000 -> 27FFFF diskette image |
||
176 | ; 0x80280000 -> 281FFF ramdisk fat |
||
177 | ; 0x80282000 -> 283FFF floppy fat |
||
1 | ha | 178 | ; |
400 | serge | 179 | ; 0x80284000 -> 29FFFF free (112 Kb) |
180 | ; |
||
181 | ; 0x802A0000 -> 2B00ff wav device data |
||
182 | ; 0x802C0000 -> 2C3fff button info |
||
183 | ; |
||
184 | ; 0000 word number of buttons |
||
1 | ha | 185 | ; first button entry at 0x10 |
400 | serge | 186 | ; +0000 word process number |
187 | ; +0002 word button id number : bits 00-15 |
||
188 | ; +0004 word x start |
||
189 | ; +0006 word x size |
||
190 | ; +0008 word y start |
||
191 | ; +000A word y size |
||
192 | ; +000C word button id number : bits 16-31 |
||
1 | ha | 193 | ; |
400 | serge | 194 | ; 0x802C4000 -> 2CFFFF free (48Kb) |
22 | poddubny | 195 | ; |
400 | serge | 196 | ; 0x802D0000 -> 2DFFFF reserved port area |
1 | ha | 197 | ; |
400 | serge | 198 | ; 0000 dword no of port areas reserved |
199 | ; 0010 dword process id |
||
200 | ; dword start port |
||
201 | ; dword end port |
||
202 | ; dword 0 |
||
1 | ha | 203 | ; |
400 | serge | 204 | ; 0x802E0000 -> 2EFFFF irq data area |
205 | ; 0x802F0000 -> 2FFFFF low memory save |
||
1 | ha | 206 | ; |
400 | serge | 207 | ; 0x80300000 -> 45FFFF background image, max 1,375 M |
1 | ha | 208 | ; |
400 | serge | 209 | ; 0x80460000 -> 5FFFFF display info |
1 | ha | 210 | ; |
400 | serge | 211 | ; 0x80600000 -> 6FFFFF hd cache |
1 | ha | 212 | ; |
400 | serge | 213 | ; 0x80700000 -> 71ffff tcp memory (128 kb) |
214 | ; 0x80720000 -> 75ffff free (256 kb) |
||
1 | ha | 215 | ; |
400 | serge | 216 | ; 0x80760000 -> 76ffff !vrr driver |
217 | ; 0x80770000 -> 777fff tcp memory ( 32 kb) |
||
1 | ha | 218 | ; |
400 | serge | 219 | ; 0x80780000 -> 0x80987FFF TSS and IO map for (8192*8)=65536 ports |
220 | ; (128+8192)*256 = 2129920 = 0x208000 |
||
1 | ha | 221 | ; |
400 | serge | 222 | ; 0x80988000 -> 0x8098AFFF draw_data - 256 entries |
1 | ha | 223 | ; |
224 | ; 00 dword draw limit - x start |
||
225 | ; 04 dword draw limit - y start |
||
226 | ; 08 dword draw limit - x end |
||
227 | ; 0C dword draw limit - y end |
||
228 | ; |
||
14 | poddubny | 229 | ; |
400 | serge | 230 | ; 0x8098B000 -> kernel heap |
231 | ; 0x81FFFFFF heap min limit |
||
232 | ; 0xFDFFFFFF heap max limit |
||
1 | ha | 233 | |
400 | serge | 234 | ; 0xFE000000 -> 0xFFFFFFFF LFB 32Mb |
235 | ; 0xFE000000 -> 0xFE7FFFFF application available LFB 8Mb |
||
236 | ; 0xFE800000 -> 0xFFFFFFFF kernel LFB part 24 Mb |
||
1 | ha | 237 |