Debian Codegraph @

DOC/TODO

raw
1 Plans for future versions
2 =========================
3
4 Keyboard and controllers
5 ------------------------
6
7 * pass the state of all host keys to the emulation core in order to configure
8 keysticks in UI and config file
9
10 * standardize key mappings in all ports (making host and Atari layouts
11 available everywhere)
12
13 * emulate POKEY keyboard scanning (with optional debouncing)
14
15 * enhance support for pointing devices, including touch screens;
16 "directmouse" should work in more ports, support light pen/gun
17 and correct mirroring of pad/touch/koala
18
19 * Atari Keyboard Interface (AKI) emulation
20
21
22 Emulation core
23 --------------
24
25 * cycle-exact POKEY interrupts (serial I/O, keyboard)
26
27 * precisely emulate serial I/O rates
28
29 * emulate POKEY reset (via SKCTL)
30
31 * more accurate frame rates (for example 49.8607456 instead of 50 Hz in PAL)
32
33 * improve VAPI and .PRO support
34
35 * emulate POKEY SIO shift register
36
37 * emulate SIO bus lines, and SIO cable data/audio cross-talk "feep" sound
38
39 * redirection of specific Dn: devices to Hn: (for software that supports
40 only the D: device)
41
42 * log POKEY audio writes, SIO commands (hardware level or DCB level),
43 executed Display List commands, all activity to a defined range
44 of adressess etc. in a way similar to the 6502 trace
45
46 * log events that affect software compatibility: undocumented 6502 opcodes,
47 unofficial system calls (including the 5200), extended memory access
48
49 * emulate drives at the hardware level (810, 1050, XF551.) use code from other
50 emulators which does this. (drive rotation, FM/MFM raw bits). WDCxxxx
51 controller. RIOT chip. 6507. Intel 8048-line chip for the XFD551.
52 Use emulated SIO line for bit-banging. Emulate Drive upgrades (Happy etc.)
53 Emulate 3rd party drives (Rana, Karin Maxi etc.)
54
55 * sound effects. Drive retracking noise (BlueMSX has.) Motor whine.
56 On/off switch sound. Physical key-press sounds. Cartridge slot sounds.
57 Drive door sounds. Floppy rotation flap sound.
58
59 * Atari vapourware emulation. XEM (see below). 1090.
60 1060 CP/M (sweet-pea.)
61
62 * emulate the 850 interface at the hardware level.
63
64 * ATR-8000 emulation. ATR-8500.
65 Adapt an existing CPM emulator.
66
67 * 6502 BRK bug
68
69 * try to understand 6502's "unstable" opcodes (0x93, 0x9b, 0x9f) that seem
70 to have unpredictable (at least not easily predictable) results,
71 preferrably by studying 6502 schematics
72
73 * an option to emulate the variant of 6502 used in new XE machines
74 (which lacks most of the undocumented opcodes of the classic 6502)
75
76 * fully emulate executing 6502 code from Hardware, cycle-exact ANTIC_load
77 from hardware, cycle-exact PMG flickering bus data
78
79 * CPU upgrades (65816, etc)
80
81 * emulate printer graphics (on screen or bitmap/PDF output): 1029, 1020, etc.
82 The Mac OS X port of Atari800 has lots of printer emulation routines.
83
84 * RAM Carts (cartridges with battery-powered RAM), writes to flash carts
85
86 * serial "network" interfaces (e.g. 8 Ataris connected, is it GameLink?)
87
88 * ability to play multi-player games across network
89
90 * generate hard disk images or write directly to media that the 8-bit Ataris
91 can use, like CompactFlash or MyIDE/SmartIDE/BB
92
93 * "Turbo" cassette upgrades (Turbo 2000 etc.)
94
95 * cassette emulation of WAV files. Load a WAV file like WAV2CAS does. Save
96 to a WAV file or real cassette like CAS2WAV does. Load voice-and-data
97 combined programmed audio tape images from WAV files. Support compressed
98 (lossless? lossy even?) tape sound images.
99
100 * disk auto-flip. Examine screen data for text string "Insert Side B
101 and press any key/fire/return." Flip disk, print on-screen message and
102 optionally press key. More a core feature than UI. Requires a database.
103
104 * support physical floppy media (hard, port-specific and not very useful)
105
106 * support physical Atari drives (hard, port-specific and not very useful)
107
108 * improve the event recording. Avoid cycle-exact RANDOM?
109
110
111 Graphics
112 --------
113
114 * investigate different palettes for different models such as GTIA vs CTIA
115 or 400/800, 1200XL, 800XL, XE, 5200, hardware modifications to the colour
116 circuts etc.
117
118 * SECAM palette and video emulation.
119
120 * "flicker fixer": display average pixel values of last two Atari frames
121
122 * use YUV output if available. Will it help?
123
124 * PAL emulation. VICE has it, but it's not as complete as Blargg's emulation
125 of NTSC. PAL luma/chroma artifacts are missing (it is like S-Video).
126 Blargg's optimization technique won't work so easily for PAL.
127 (perry: I have a hack of Blargg's slow version of the NTSC emulator that
128 I tried to make work for PAL. But it isn't quite right and is way too slow.
129 Ask me if you are interested.)
130
131 * the NTSC emulator should support other resolutions. It should be supported
132 in all possible ports.
133
134 * fix the remaining bugs in the NTSC emulation. Artificating colours are
135 not quite right. odd-even and even-odd combined artifacts (light red
136 and light green) do not show unless Gaussian factor is changed a lot,
137 which causes even worse artifacts. Fully document the Atari's video
138 output signal (might require a scope.) Fully document NTSC decoding
139 of late 70's and 80's era TVs.
140
141 * document CTIA and emulate properly. Emulate the players not aligning
142 with playfield bug/feature of CTIA which is said to exist. Need
143 at least screenshots of a CTIA Atari showing all possible artifacts.
144
145 * an option to emulate the buggy GTIA chip found in new XE machines.
146
147 * fix all remaining collision bugs in the ANTIC and GTIA code (border+scroll,
148 player HPOS and GRAF changes, partial_scanline changes.) Use the technique
149 of saving data that might generate false collisions, drawing, and then
150 restoring the data (pm_scanline).
151
152 * cycle-exact DMACTL and HSCROL including all glitches
153
154 * ANTIC glitch:
155 POKE 39974,18:POKE 39975,8:POKE 54276,15
156 or
157 POKE 39974,18:POKE 39975,40:POKE 54276,15:POKE 54277,15
158
159 * Video Board XE emulation
160
161
162 Sound
163 -----
164
165 * correctly emulate serial I/O sound
166
167 * one POKEY sound engine
168
169 * include sound settings in the emulation core (command line options,
170 config file, UI) and make it possible to change them at runtime
171
172 * support WAV files in configurations with no live sound
173
174 * an option to auto-enable stereo when an Atari program uses it
175
176 * Covox emulation
177
178 * 2 POKEY mono, 4 POKEY stereo, 4 POKEY quad
179
180 * MIDI <> serial port interface. In it's simplest form there's only MIDI
181 output from the Atari. The more complicated version is enabled by the motor
182 control line and includes two MIDI outputs selected by the command control
183 line and one MIDI input. There is a MIDI composer program for Atari.
184
185 * A/D Converter - 4-bit sampler that returns 0xf0-0xff in the 0xd500-0xd5ff
186 address space.
187
188 * XEM AMY-1 Chip. This is a huge project. Schematics (netlist)
189 are said to exist. Prototyping software for the PC (connected to parallel
190 port) is available online. Datasheet is online. Need netlist for AMY-1,
191 schematics for XEM and any software.
192
193 * SID chip
194
195
196 User Interface
197 --------------
198
199 * make sure all command-line options are available in UI and config file
200
201 * error messages should appear on screen and not in the log
202
203 * on screen display, like a TV remote, for the NTSC (or other) screen filter.
204
205 * support pointing devices (mouse, touch screen) in UI
206
207 * a database to identify programs and choose appropriate settings.
208 OS version. Memory size. Memory expansion type. Peripherals.
209 Machine type. Joystick/Trackball/Paddle etc. controller type.
210 Artifacting mode. SIO patch compatibility. Even if compatible with
211 SIO patch, loading screen graphics are often interesting to watch, so
212 give the user an option to view or ignore them if present. If not
213 SIO patch compatible, optional warp-speed through the loading.
214 Keyboard layout. Advisories as to bad dump/bad image/special considerations
215 Provide documentation, box scan, label scan for the program
216 PAL/NTSC mode. Database should indicate PAL/NTSC
217 compatibility, and which system the program was originally designed for.
218 Allow PAL users to prefer PAL for NTSC-designed programs, but NTSC users
219 to prefer NTSC. NTSC users get PAL (or fake NTSC-upgraded-to-PAL) for
220 all PAL-designed programs (Except perhaps very old ones like English
221 Software titles that NTSC users might remember.) PAL users get NTSC
222 video only for artifacting programs.
223
224
225 Clean up
226 --------
227
228 * make port-specific features available in other ports - now many features
229 work only in SDL, Mac OS X or Win PLus
230
231 * clean up the "util" directory - remove obsolete files, write one-file
232 documentation for all utils
233
234 * make documentation consistent across systems (HTML?)
235
236 * further clean up in the directory structure - port specific files should
237 be hidden in their subfolders (falcon, amiga, ...)
238
239
240 Speed optimizations
241 -------------------
242
243 * use a boolean variable to disable 6502 history tracking and breakpoints
244 (even with MONITOR_BREAKPOINTS and MONITOR_TRACE it should be
245 faster than currently with just the default MONITOR_BREAK)
246
247 * use function pointer table for hardware registers (like PAGED_ATTRIB does)
248
249 * 6502 emulation optimizations: limit number of CPU_GO() calls (call ANTIC/GTIA
250 routines from 6502 and not vice-versa), use ints instead of UWORD and UBYTE,
251 merge N and Z flags into one variable, put 6502 flags into local variables
252 so they can be stored in registers;
253 see http://asap.sourceforge.net for a 6502 emulator which includes these
254 optimizations
255
256 * use patches for common routines such as OS interrupt handlers
257
258 * make some hardware registers directly available in memory[]
259
260 * write versions of draw_antic_* functions for the common case when there are
261 no sprites in the current scanline
262
263 * update color lookup tables only when color registers change
264
265 * automatic framedrop
266
267 * fast bank switching (without memcpy)
268
269 * implement Dirty Spans (see HOWTO-DIRTYSPAN)
270
271 * an option to detect popular lengthy Atari decompression routines
272 and run equivalent C routines instead
273
274
275 R: device
276 ---------
277
278 * clean up and comment the code
279
280 * improve portability
281
282 * documentation
283
284 * automatic test (similar to hdevtest.lst for H:)
285
286 * identify security problems
287
288 * TCP port should be configurable (currently hardwired to 9000). The switch
289 between real serial port and TCP port should be put there. Something
290 along the following lines:
291 R_SERIAL = 1
292 R_SERPORT = /dev/ttyS0
293 R_NETPORT = 9000