1 /**************************************************************************************\
2 *                             Apple Lisa 2 Emulator                                    *
3 *                                                                                      *
4 *              The Lisa Emulator Project  V1.0.0      REL 2007.07.07                   *
5 *                  Copyright (C) 2007 Ray A. Arachelian                                *
6 *                            All Rights Reserved                                       *
7 *                                                                                      *
8 *                        Reset Global Variables .c file                                *
9 *                                                                                      *
10 *            This is a stub file - actual variables are in vars.h.                     *
11 *        (this is autogenerated by the build script. do not hand edit.)                *
12 \**************************************************************************************/
13 
14 #define IN_UNVARS_C 1
15 // include all the includes we'll (might) need (and want)
16 #include "vars.h"
17 
18 #define REASSIGN(  a , b  , c  )  {(b) = (c);}
19 
unvars(void)20 void unvars(void)
21 {
22 
23 #undef GLOBAL
24 #undef AGLOBAL
25 #undef ACGLOBAL
26 
27 REASSIGN(int,cheat_ram_test,1);
28 REASSIGN(int,romless,0);
29 REASSIGN(int,sound_effects_on,1);
30 REASSIGN(int,profile_power,127);
31 REASSIGN(int32,video_scan,0);
32 REASSIGN(int,lisa_vid_size_x,720);
33 REASSIGN(int,lisa_vid_size_y,364);
34 REASSIGN(int,lisa_vid_size_xbytes,90);
35 REASSIGN(int,has_lisa_xl_screenmod,0);
36 REASSIGN(int,running_lisa_os,LISA_ROM_RUNNING);
37 REASSIGN(int,mouse_x_tolerance,0);
38 REASSIGN(int,mouse_y_tolerance,0);
39 REASSIGN(int,mouse_x_halfing_tolerance,1);
40 REASSIGN(int,mouse_y_halfing_tolerance,1);
41 REASSIGN(uint32,lisa_os_mouse_x_ptr,0x486);
42 REASSIGN(uint32,lisa_os_mouse_y_ptr,0x488);
43 REASSIGN(uint32,lisa_os_boot_mouse_x_ptr,0x486);
44 REASSIGN(uint32,lisa_os_boot_mouse_y_ptr,0x488);
45 REASSIGN(int8,floppy_picked,1);                         //2006.06.11 - if 1 enable profile access immediately
46 REASSIGN(int32,lisa_alarm,0);
47 REASSIGN(uint8,lisa_clock_set_idx,0);
48 REASSIGN(uint8,lisa_alarm_power,0);
49 REASSIGN(uint8,lisa_clock_on,1);
50 REASSIGN(uint8,lastsflag,0);
51 REASSIGN(uint8,floppy_FDIR,0);
52 REASSIGN(uint8,floppy_6504_wait,1);
53 REASSIGN(uint8,floppy_irq_top,1);
54 REASSIGN(uint8,floppy_irq_bottom,1);  // interrupt settings (are floppies allowd to interrupt)
55 REASSIGN(uint32,mmudirty,0);
56 REASSIGN(uint32,segment1,0);                   // MMU related bits
57 REASSIGN(uint32,segment2,0);
58 REASSIGN(uint32,context,0);
59 REASSIGN(uint32,lastcontext,0);
60 REASSIGN(uint32,address32,0);                  // not sure that this is needed anymore
61 REASSIGN(uint32,address,0);
62 REASSIGN(uint32,mmuseg,0);
63 REASSIGN(uint32,mmucontext,0);
64 REASSIGN(uint32,transaddress,0);
65 REASSIGN(uint32,diag1,0);
66 REASSIGN(uint32,diag2,0);
67 REASSIGN(uint32,start,1);
68 REASSIGN(uint32,softmem,0);
69 REASSIGN(uint32,vertical,0);
70 REASSIGN(uint32,verticallatch,0);
71 REASSIGN(uint32,hardmem,0);
72 REASSIGN(uint32,videolatch,0x2f);
73 REASSIGN(uint32,lastvideolatch,0x2f);
74 REASSIGN(uint32,statusregister,0);
75 REASSIGN(uint32,videoramdirty,0);
76 REASSIGN(uint32,videoximgdirty,0);
77 REASSIGN(uint16,memerror,0);
78 REASSIGN(int,dirty_x_min,720);
79 REASSIGN(int,dirty_x_max,0);
80 REASSIGN(int,dirty_y_min,364);
81 REASSIGN(int,dirty_y_max,0);
82 REASSIGN(int,e_dirty_x_min,720);
83 REASSIGN(int,e_dirty_x_max,0);
84 REASSIGN(int,e_dirty_y_min,500);
85 REASSIGN(int,e_dirty_y_max,0);
86 REASSIGN(uint8,contrast,0xff); // 0xff=black 0x80=visible 0x00=all white
87 REASSIGN(uint8,volume,4); // 0x0e is the mask for this.
88 REASSIGN(int,debug_log_enabled,0);
89 REASSIGN(int16,copsqueuelen,0);
90 REASSIGN(uint8, NMIKEY,0);
91 REASSIGN(uint8, cops_powerset,0);
92 REASSIGN(uint8, cops_clocksetmode,0);
93 REASSIGN(uint8, cops_timermode,0);
94 REASSIGN( int8, mouse_pending,0);
95 REASSIGN( int8, mouse_pending_x,0);
96 REASSIGN( int8, mouse_pending_y,0);
97 REASSIGN(int16, last_mouse_x,0);
98 REASSIGN(int16, last_mouse_y,0);
99 REASSIGN(int16, last_mouse_button,0);
100 REASSIGN(int16, mousequeuelen,0);
101 REASSIGN(uint32,iipct_mallocs ,0);
102 REASSIGN(uint32,ipcts_allocated,0);
103 REASSIGN(uint32,ipcts_used,0);
104 REASSIGN(uint32,ipcts_free,0);
105 REASSIGN(uint32,initial_ipcts,4128);
106 REASSIGN(XTIMER,lastrefresh,0);
107 REASSIGN(XTIMER,virq_start,FULL_FRAME_CYCLES);
108 REASSIGN(XTIMER,fdir_timer,-1);
109 REASSIGN(XTIMER,cpu68k_clocks_stop,ONE_SECOND);
110 REASSIGN(XTIMER,cpu68k_clocks,0);
111 REASSIGN(XTIMER,lasttenth,0);
112 REASSIGN(XTIMER,clktest,0);
113 REASSIGN(XTIMER,cops_event,-1);
114 REASSIGN(XTIMER,tenth_sec_cycles,TENTH_OF_A_SECOND);      // 10th of a second cycles.  5,000,000 cycles/sec so 500000 10ths/sec
115 REASSIGN(XTIMER,z8530_event,-1);
116 REASSIGN(uint32,via_clock_diff,2);       // 2
117 REASSIGN(float,via_throttle_factor,1.0);
118 REASSIGN(int,microsleep_tix,0);
119 REASSIGN(int,microsleep_tix,0);
120 REASSIGN(uint32,TWOMEGMLIM,0x001fffff);
121 REASSIGN(uint8,via_running,0); // If any VIA has a runing timer/SHIFTREG, then this is set (using bitmap of vianumber)
122 REASSIGN(uint8,bitdepth,0);
123 REASSIGN(uint8,softmemerror,0);
124 REASSIGN(uint8,harderror,0);
125 REASSIGN(uint8,videoirq,0);
126 REASSIGN(uint8,bustimeout,0);
127 REASSIGN(uint8,videobit,0);
128 REASSIGN(uint8,serialnumshiftcount,0);
129 REASSIGN(uint8,serialnumshift,0);
130 REASSIGN(int,SoundLastOne,5);
131 REASSIGN(int,z8530_last_irq_status_bits,0);
132 REASSIGN(int,scc_a_IW,-1);
133 REASSIGN(int,scc_b_IW,-1);
134 REASSIGN(uint8,serial_a,SCC_NOTHING);
135 REASSIGN(uint8,serial_b,SCC_NOTHING);
136 REASSIGN(uint32,last_bad_parity_adr,0);
137 REASSIGN(int,scc_running,0);
138 REASSIGN(int32,physaddr,0);
139 REASSIGN(int,dispmemready,0);
140 REASSIGN(uint32,minlisaram,0);
141 }
142