Debian Codegraph @

src/TODO

raw
1
2 ===========================
3 Things to fix at some point
4 ===========================
5
6 Note: All of these are "nice to have" things, not essential
7 for functionality and (hopefully) not the cause of bugs. We
8 are hiding the file all the way down here for a reason...
9
10 - find all external accesses to F_listfile to really centralize
11 error handling in errors module!
12 - be careful though, there *is* a purpose for a listing file
13 after all, unrelated to error messages!
14
15 - negative.asm test case still not quite right
16 - need to make range checking for literals fool proof
17 - this is painful for lots of reasons
18 - there are checks in ops.c AND mnef8.c (since that
19 replaces a lot more than just opcodes?)
20 - the structure of opcodes and addressing modes is
21 confusing
22 - there's no centralized and clear range checking
23 - probably hard since it can differ by opcode of
24 course, given a certain machine...
25
26 - use GNU indent to make code more consistent
27 - current .indent.pro not right, need to adjust
28 - when to do this? before 2.20.12?
29 - maybe astyle is a better, more conservative choice?
30
31 - work on refactoring hash?() has found some problems
32 - first hash_symbols() has a length argument because DASM
33 doesn't seem to do enough parsing to properly split off
34 only symbols to look up, how weird
35 - second the hash functions are sometimes called with
36 empty strings, probably from findmne, which seems like
37 a bug or at least is ugly
38
39 - MNEMONIC tables could be simplified
40 - currently they are written directly, could
41 use a macro (or several) to fill in mostly
42 identical information
43 - a deeper issues is that the same struct is
44 use statically as is dynamically later; so
45 I think we could get rid of the whole NULL
46 for the *next if we had a version for the
47 static stuff and a version (close to the
48 current one) for the dynamic stuff; do we
49 even need the static stuff in the first
50 place? a function to add an opcode and
51 the relevant information might work just
52 as well...
53
54 - both memusage and valgrind say that we are leaking
55 - however, this probably only matters for Amiga OS 3 users
56 - even there the C library hopefully takes care of it?
57 - any OS out there where memory is not freed on exit?
58 - I think the reason is permalloc() which doesn't have a
59 corresponding free(), I already had some replacement
60 code that can free() but it ended up to complicated to
61 be a good replacement for now :-/
62
63 - Matt Dillon's fixes and extensions
64 - dasm-2.15 permalloc patch for SPARC? seems simple
65 - actually, the union hack in our DASM seems to make it
66 superflous after all; did Olaf come up with that or
67 Andrew? nice either way... :-)
68 - new version of ftohex? should import easily...
69 - actually, there's more to this as we should add options
70 - to select CTRL-Z at the end (old EEPROM programmers)
71 - CR/LF separators (Intel's standard is flexible)
72 - see Matt's email 2008/04/06
73 - harder: compare DASM code bases for other fixes! :-/
74
75 - new copyright/license header
76 - should Thomas be in there because of F8 support?
77 - who else holds a copyright on some piece of DASM?
78
79 - remember the >> issue for signed left operands
80 - details in ftohex.c
81
82 - strlcpy/strlcat should be used throughout instead of strcpy/strcat
83 - huge job to adjust everything, not even started... :-/
84
85 - need to address unit testing (and system testing)
86 - minunit looks too simplistic to be useful
87 - however, it would be better than what we have
88 - CUnit looks decent
89 - however it doesn't fork
90 - Check looks perfect
91 - however it wants autotools for almost everything
92 - at least add coverage analysis darn it
93 - gcov is not hard to add to current scripts
94
95 - remember that NULL in printf() segfaults on Solaris, seems that
96 only the Apple version has the nice "(null)" feature... :-/
97
98 - fseeko/ftello instead of fseek/ftell could be useful to some
99 extent
100
101 - integrating Michael Marvin Morrison's 65c02 stuff is hard since
102 there are not just new/changed opcodes but also new addressing
103 modes; those, however, are hardcoded into the rest of DASM; I
104 guess that's why Thomas had to rewrite so much of DASM for F8,
105 and why he said his Z80 work died off...