;Main data of the OS are stored in zone $1000-$2000

;pulldown manager : not yet written
;
PULLDOWN	$1300	#4864	start column of pulldown 0
		$1301	#4865	end  column of pulldown 0
		$1302	#4866	start column of pulldown 1
		$1303	#4867	end  column of pulldown 1
		$1304	#4868	start column of pulldown 2
		$1305	#4869	end  column of pulldown 2
		$1306	#4870	start column of pulldown 3
		$1307	#4871	end  column of pulldown 3
		$1308	#4872	start column of pulldown 4
		$1309	#4873	end  column of pulldown 4

		$130A	#4874	left
		$130B	#4875	up	define pulldown 0
		$130C	#4876	right
		$130D	#4877	down

		$130E	#4878	left
		$130F	#4879	up	define pulldown 1
		$1310	#4880	right
		$1311	#4881	down

		$1312	#4882	left
		$1313	#4883	up	define pulldown 2
		$1314	#4884	right
		$1315	#4885	down

		$1316	#4886	left
		$1317	#4887	up	define pulldown 3
		$1318	#4888	right
		$1319	#4889	down

		$131A	#4890	left
		$131B	#4891	up	define pulldown 4
		$131C	#4892	right
		$131D	#4893	down

; swap basic datas for multitasking BASIC programs.
; I have done tests : it works.
; However, the manager has not be fully written.
;
SWPVAR		$1600	#5632	program 0
		$1610	#5648	program 1
		$1620	#5664	program 2

; buffers for char modify
;
CHAR		$1630	#5680	buffer 0
		$1638	#5688	buffer 1

; buffers for sprite modify
;
SPRITE		$1640	#5696	buffer 0
		$1680	#5760	buffer 1

; saving data zone for windows operations
;
WINDOW		$1700	#5888	window 0
		$1743	#5955	window 1
		$1786	#6022	window 2
		$17C9	#6089	window 3


; IRQ manages a joystick or 1350 mouse.
;
IRQ		$1C00	#7168	flag :	0 for internal mouse driver
					1 for user driver
		$1C01	#7169	flag :	button of joystick or mouse
		$1C02	#7170	half of X sprite
		$1C03	#7171	Y sprite
		$1C04	#7172	column behind sprite
		$1C05	#7173	line behind sprite
		$1C06	#7174	<adress	  of char beginning at top up
		$1C07	#7175	>adress   use $0400+($1C06) for ouput
		$1C08	#7176	internal use by IRQ
		$1C09	#7177	number of wait states for mouse move
		$1C0A	#7178	internal use by IRQ (speed of mouse)
		$1C0B	#7179	maximum speed of mouse

; memory zone data
MEMORY		$1C10	#7184	previous $FF00 is saved here
		$1C11	#7185	old basic bank (not implemented)
		$1C12	#7186	new basic bank (not implemented)
		$1C13	#7187	<of number to be divided od multiplied
		$1C14	#7188	>of number to be divided
		$1C15	#7189	multiply or divide number
		$1C16	#7190	<result
		$1C17	#7191	>result
; multiplication	$1C16,7 = $1C13 * $1C15
; division		$1C16,7 = 1C13,4 / $1C15

;screen data
;
SCREEN		$1C20	#7200	next screen number when push to lifo stack
		$1C21	#7201	writing color
		$1C22	#7202	color read
		$1C23	#7203	left
		$1C24	#7204	up	any frame when use
		$1C25	#7205	right
		$1C26	#7206	down
		$1C27	#7207	type of frame	0:square	1:smooth

; Window
;
WINDOWS		$1C30	#7216	left
		$1C31	#7217	up	of total window
		$1C32	#7218	right
		$1C33	#7219	down
		$1C34	#7220	byte which define window
					bit 0   set, draw frame
					bit 1   set, rectangular
					bit 2   set, draw title
					bit 3   flag : set, old title style
					bit 4   set, draw vertical lift
					bit 5   set, draw horizontal lift
					bit 6   set, define use zone
					bit 7   unused
		$1C35	#7221	frame color
		$1C36	#7222	title color
		$1C37	#7223	old title color
		$1C38	#7224	buttons color
		$1C39	#7225	lift color

		$1C3A	#7226	column of close button
		$1C3B	#7227	line of close button

		$1C3C	#7228	column of up lift button
		$1C3D	#7229	line of up lift button
		$1C3E	#7230	column of down lift button
		$1C3F	#7231	line of down lift button
		$1C40	#7232	column of left lift button
		$1C41	#7233	line of left lift button
		$1C42	#7234	column of right lift button
		$1C43	#7235	line of right lift button

		$1C44	#7236	left
		$1C45	#7237	up	of user zone window
		$1C46	#7238	right
		$1C47	#7239	down

		$1C48	#7240	<adress
		$1C49	#7241	>adress on window title, basic format in bank#1

		$1C4A	#7242	number of next window

; buttons data
;
BUTTON		$1C50	#7248	column of button 0
		$1C51	#7249	column of button 0
		$1C52	#7250	column of button 1
		$1C53	#7251	column of button 1
		$1C54	#7252	column of button 2
		$1C55	#7253	column of button 2
		$1C56	#7254	column of button 3
		$1C57	#7255	column of button 3
		$1C58	#7256	column of button 4
		$1C59	#7257	column of button 4
		$1C5A	#7258	column of button 5
		$1C5B	#7259	column of button 5
		$1C5C	#7260	column of button 6
		$1C5D	#7261	column of button 6
		$1C5E	#7262	column of button 7
		$1C5F	#7263	column of button 7

; zones data
;
ZONES		$1C60	#7264	left
		$1C61	#7265	up	of zone 0
		$1C62	#7266	right
		$1C63	#7267	down

		$1C64	#7268	left
		$1C65	#7269	up	of zone 1
		$1C66	#7270	right
		$1C67	#7271	down

		$1C68	#7272	left
		$1C69	#7273	up	of zone 2
		$1C6A	#7274	right
		$1C6B	#7275	down

		$1C6C	#7276	left
		$1C6D	#7277	up	of zone 3
		$1C6E	#7278	right
		$1C6F	#7279	down

		$1C70	#7280	left
		$1C71	#7281	up	of zone 4
		$1C72	#7282	right
		$1C73	#7283	down

		$1C74	#7284	left
		$1C75	#7285	up	of zone 5
		$1C76	#7286	right
		$1C77	#7287	down

		$1C78	#7288	left
		$1C79	#7289	up	of zone 6
		$1C7A	#7290	right
		$1C7B	#7291	down

		$1C7C	#7292	left
		$1C7D	#7293	up	of zone 7
		$1C7E	#7294	right
		$1C7F	#7295	down

; Windows 80x50
;
80x50		$1C80	#7296	left
		$1C81	#7297	up	working zone, displayed zoned
		$1C82	#7298	right
		$1C83	#7299	down

		$1C84	#7300	high of working zone
		$1C85	#7301	width of working zone

		$1C86	#7302	column
		$1C87	#7303	line of byte pointed to screen

		$1C88	#7304	column
		$1C89	#7305	line of byte pointed to bank#1

; Sprites
; sprites manager is not implemented.
; only sprite modify is implemented.
;
SPRITES		$1C90	#7312	sprite 0 config
		$1C91	#7313	sprite 1 config
		$1C92	#7314	sprite 2 config
		$1C93	#7315	sprite 3 config
		$1C94	#7316	sprite 4 config
		$1C95	#7317	sprite 5 config
		$1C96	#7318	sprite 6 config
		$1C97	#7319	sprite 7 config

;				byte 7		multicolor flag
;				byte 6		vertical expansion flag
;				byte 5		horizontal expansion flag
;				byte 4		priority versus background flag
;				byte 3-0	color