Blame TODO

Packit c1f960
NASM TODO list
Packit c1f960
==============
Packit c1f960
Packit c1f960
This, like the AUTHORS file, is intended for easy readability by both human 
Packit c1f960
and machine, thus the format.
Packit c1f960
Packit c1f960
  F: feature
Packit c1f960
  V: version you should expect it by
Packit c1f960
  R: responsible person or - if unassigned
Packit c1f960
  C: % complete
Packit c1f960
  D: description
Packit c1f960
  D: maybe on multiple lines
Packit c1f960
  
Packit c1f960
Anything that doesn't start with /^[FVRCD]:/ should be ignored.
Packit c1f960
Packit c1f960
  F:-line triggers new entry.
Packit c1f960
  Empty V,R,C assume: V: ?, R: -, C: 0%
Packit c1f960
Packit c1f960
=============
Packit c1f960
Packit c1f960
F: Extended x64 Support
Packit c1f960
D: Full FPU/MMX/SSE* instruction support for x64
Packit c1f960
Packit c1f960
F: ELF64 output format
Packit c1f960
D: Support for assembling code to the ELF64 output format
Packit c1f960
Packit c1f960
F: NDISASM x64 Support
Packit c1f960
D: Ability to disassemble respective x64 code
Packit c1f960
Packit c1f960
F: General x64 Support
Packit c1f960
V: 0.99.00
Packit c1f960
R: Keith Kanios
Packit c1f960
C: 99%
Packit c1f960
D: Support for assembling 64-bit code to various output formats
Packit c1f960
Packit c1f960
F: win64 (x86-64 COFF) output format
Packit c1f960
V: 0.99.00
Packit c1f960
R: Keith Kanios
Packit c1f960
C: 99%
Packit c1f960
D: Support for assembling code to the win64 output format
Packit c1f960
Packit c1f960
F: c99 data-type compliance
Packit c1f960
V: 0.99.00
Packit c1f960
R: Keith Kanios
Packit c1f960
C: 99%
Packit c1f960
D: Revamped entire source-code base data-types for compliance
Packit c1f960
D: with c99 (inttypes.h)
Packit c1f960
Packit c1f960
F: __BITS__ Standard Macro
Packit c1f960
V: 0.99.00
Packit c1f960
R: Keith Kanios
Packit c1f960
C: 100%
Packit c1f960
D: __BITS__ standard macro that returns current [BITS XX] mode
Packit c1f960
Packit c1f960
F: i18n via gettext
Packit c1f960
D: kkanios: be careful about that, stick to UTF-8 if anything
Packit c1f960
Packit c1f960
F: Convert shallow code model to deep code model
Packit c1f960
D: Tired of messing between lots of unrelated files (especially .c/.h stuff)
Packit c1f960
Packit c1f960
F: Automated dependency generation for Makefile
Packit c1f960
D: Current looks awful and will break if anything changes.
Packit c1f960
Packit c1f960
F: Move output modules out*.c to output/ subdir
Packit c1f960
R: madfire
Packit c1f960
C: 100%
Packit c1f960
Packit c1f960
== THESE ARE FROM old NASM's Wishlist
Packit c1f960
== THEY NEED SEVERE REVISING (seems they weren't updated for a couple of years or so)
Packit c1f960
Packit c1f960
F: Check misc/ide.cfg into RCS as Watcom IDE enhancement thingy
Packit c1f960
V: 0.98
Packit c1f960
D: (nop@dlc.fi)
Packit c1f960
Packit c1f960
F: Package the Linux Assembler HOWTO
Packit c1f960
V: 0.98
Packit c1f960
Packit c1f960
F: 3DNow!, SSE and other extensions need documenting
Packit c1f960
V: 0.98
Packit c1f960
D: hpa: Does it really make sense to have a whole instruction set
Packit c1f960
D: reference packaged with the assembler?
Packit c1f960
D: kkanios: Yes, for me it was a great help... and still is.
Packit c1f960
Packit c1f960
F: prototypes of lrotate don't match in test/*. Fix.
Packit c1f960
V: 0.98
Packit c1f960
Packit c1f960
F: Build djgpp binaries for 0.98 onwards. Look into PMODE/W as a stub
Packit c1f960
V: 0.98
Packit c1f960
D: it might be a lot better than CWSDPMI. It's in PMW133.ZIP.
Packit c1f960
Packit c1f960
F: %undef operator that goes along with %define
Packit c1f960
V: ?
Packit c1f960
C: 100%
Packit c1f960
Packit c1f960
F: Fix `%error' giving error messages twice.
Packit c1f960
V: 0.99
Packit c1f960
D: Not especially important, as changes planned for 1.1x below will make
Packit c1f960
D: the preprocessor be only called once.
Packit c1f960
Packit c1f960
F: Sort out problems with OBJ
Packit c1f960
V: 0.99
Packit c1f960
D: * TLINK32 doesn't seem to like SEGDEF32 et al. So for that, we
Packit c1f960
D:   should avoid xxx32 records wherever we can.
Packit c1f960
D: * However, didn't we change _to_ using xxx32 at some stage? Try
Packit c1f960
D:   to remember why and when.
Packit c1f960
D: * Apparently Delphi's linker has trouble with two or more
Packit c1f960
D:   globals being defined inside a PUBDEF32. Don't even know if it
Packit c1f960
D:   _can_ cope with a PUBDEF16.
Packit c1f960
D: * Might need extra flags. *sigh*
Packit c1f960
Packit c1f960
F: Symbol table output may possibly be useful.
Packit c1f960
V: 0.99
Packit c1f960
D: Ken Martwick (kenm@efn.org) wants the following format:
Packit c1f960
D: 	labelname	type	offset(hex)	repetition count
Packit c1f960
D: Possibly include xref addresses after repetition count?
Packit c1f960
Packit c1f960
F: ELF fixes
Packit c1f960
V: 0.99
Packit c1f960
D: There are various other bugs in outelf.c that make certain kinds
Packit c1f960
D: of relocation not work. See zbrown.asm. Looks like we may have to do
Packit c1f960
D: a major rewrite of parts of it. Compare some NASM code output with
Packit c1f960
D: equivalent GAS code output. Look at the ELF spec. Generally fix things.
Packit c1f960
Packit c1f960
F: ELF fixes
Packit c1f960
V: 0.99
Packit c1f960
D: NASM is currently using a kludge in ELF that involves defining
Packit c1f960
D: a symbol at a zero absolute offset. This isn't needed, as the
Packit c1f960
D: documented solution to the problem that this solves is to use
Packit c1f960
D: SHN_UNDEF.
Packit c1f960
Packit c1f960
F: Debug information, in all formats it can be usefully done in.
Packit c1f960
V: 0.99
Packit c1f960
D: * including line-number record support.
Packit c1f960
D: * "George C. Lindauer" <gclind01@starbase.spd.louisville.edu>
Packit c1f960
D:   wants to have some say in how this goes through.
Packit c1f960
D: * Andrew Crabtree <andrewc@rosemail.rose.hp.com> wants to help out.
Packit c1f960
Packit c1f960
F: Think about a line-continuation character.
Packit c1f960
V: 0.99
Packit c1f960
Packit c1f960
F: Consider allowing declaration of two labels on the same line,
Packit c1f960
V: 0.99
Packit c1f960
D: syntax 'label1[:] label2[:] ... instruction'.
Packit c1f960
D: Need to investigate feasibility.
Packit c1f960
Packit c1f960
F: Quoting of quotes by doubling them, in string and char constants.
Packit c1f960
V: 0.99
Packit c1f960
Packit c1f960
F: Two-operand syntax for SEGMENT/SECTION macro to avoid warnings
Packit c1f960
D: of ignored section parameters on reissue of __SECT__.
Packit c1f960
D: Or maybe skip the warning if the given parameters are identical to
Packit c1f960
D: what was actually stored. Investigate.				
Packit c1f960
V: 0.99
Packit c1f960
Packit c1f960
F: Apparently we are not missing a PSRAQ instruction, because it
Packit c1f960
D: doesn't exist.  Check that it doesn't exist as an undocumented
Packit c1f960
D: instruction, or something stupid like that.
Packit c1f960
V: 0.99
Packit c1f960
Packit c1f960
F: Any assembled form starting 0x80 can also start 0x82.
Packit c1f960
V: 1.00
Packit c1f960
D: ndisasm should know this. New special code in instruction encodings, probably.
Packit c1f960
Packit c1f960
F: Pointing an EQU at an external symbol now generates an error.
Packit c1f960
V: 1.05
Packit c1f960
D: There may be a better way of handling this; we should look into it.
Packit c1f960
D: Ideally, the label mechanism should be changed to cope with one
Packit c1f960
D: label being declared relative to another - that may work, but could be
Packit c1f960
D: a pain to implement (or is it? it may be easy enough that you just
Packit c1f960
D: need to declare a new offset in the same segment...) This should be done
Packit c1f960
D: before v1.0 is released. There is a comment regarding this in labels.c,
Packit c1f960
D: towards the end of the file, which discusses ways of fixing this.
Packit c1f960
Packit c1f960
F: nested %rep used to cause a panic.
Packit c1f960
V: 1.10
Packit c1f960
D: Now a more informative error message is produced. This problem whould
Packit c1f960
D: be fixed before v1.0.
Packit c1f960
D: See comment in switch() statement block for PP_REP in do_directive()
Packit c1f960
D: in preproc.c (line 1585, or thereabouts)
Packit c1f960
Packit c1f960
F: Contribution
Packit c1f960
D: zgraeme.tar contains improved hash table routines
Packit c1f960
D: contributed by Graeme Defty <graeme@HK.Super.NET> for use in the
Packit c1f960
D: label manager.
Packit c1f960
Packit c1f960
F: Contribution
Packit c1f960
D: zsyntax.zip contains a syntax-highlighting mode for
Packit c1f960
D: NASM, for use with the Aurora text editor (??).
Packit c1f960
Packit c1f960
F: Contribution
Packit c1f960
D: zvim.zip contains a syntax-highlighting mode for NASM, for use with vim.
Packit c1f960
Packit c1f960
F: Contribution
Packit c1f960
D: zkendal1.zip and zkendal2.zip contain Kendall
Packit c1f960
D: Bennett's (<KendallB@scitechsoft.com>) alternative syntax stuff,
Packit c1f960
D: providing an alternative syntax mode for NASM which allows a macro
Packit c1f960
D: set to be written that allows the same source files to be
Packit c1f960
D: assembled with NASM and TASM.
Packit c1f960
R: Kendall Bennett
Packit c1f960
C: 100%
Packit c1f960
Packit c1f960
F: Add the UD2 instruction.
Packit c1f960
C: 100%
Packit c1f960
Packit c1f960
F: Add the four instructions documented in 24368901.pdf (Intel's own document).
Packit c1f960
C: 100%
Packit c1f960
Packit c1f960
F: Some means of avoiding MOV memoffs,EAX which apparently the
Packit c1f960
D: Pentium pairing detector thinks modifies EAX. Similar means of
Packit c1f960
D: choosing instruction encodings where necessary.
Packit c1f960
V: 1.10?
Packit c1f960
Packit c1f960
F: The example of ..@ makes it clear that a ..@ label isn't just
Packit c1f960
D: local, but doesn't make it clear that it isn't just global either.
Packit c1f960
Packit c1f960
F: hpa wants an evaluator operator for ceil(log2(x)).
Packit c1f960
Packit c1f960
F: Extra reloc types in ELF
Packit c1f960
D: R_386_16 type 20, PC16 is 21, 8 is 22, PC8 is 23.
Packit c1f960
D: Add support for the 16s at least.
Packit c1f960
Packit c1f960
F: Lazy section creation or selective section output
Packit c1f960
D: in COFF/win32 at least and probably other formats: don't bother to emit a section
Packit c1f960
D: if it contains no data. Particularly the default auto-created
Packit c1f960
D: section. We believe zero-length sections crash at least WLINK (in win32).
Packit c1f960
Packit c1f960
F: Make the flags field in `struct itemplate' in insns.h a long instead of an int.
Packit c1f960
C: 100%?
Packit c1f960
Packit c1f960
F: Implement %ifref to check whether a single-line macro has ever been expanded since (last re) definition. Or maybe not. We'll see.
Packit c1f960
Packit c1f960
F: add pointer to \k{insLEAVE} and \k{insENTER} in chapters about	mixed-language programming.
Packit c1f960
Packit c1f960
F: Some equivalent to TASM's GLOBAL directive
Packit c1f960
D: ie something which defines a symbol as external if it doesn't end up being defined
Packit c1f960
D: but defines it as public if it does end up being defined.
Packit c1f960
Packit c1f960
F: Documentation doesn't explain about C++ name mangling.
Packit c1f960
Packit c1f960
F: see if BITS can be made to do anything sensible in obj (eg set the default new-segment property to Use32).
Packit c1f960
Packit c1f960
F: OBJ: coalesce consecutive offset and segment fixups for the same location into full-32bit-pointer fixups.
Packit c1f960
D: This is apparently necessary because some twazzock in the PowerBASIC development
Packit c1f960
D: team didn't design to support the OMF spec the way the rest of the
Packit c1f960
D: world sees it.
Packit c1f960
Packit c1f960
F: Allow % to be separated from the rest of a preproc directive, for	alternative directive indentation styles.
Packit c1f960
Packit c1f960
F: __DATE__, __TIME__, and text variants of __NASM_MAJOR__ and __NASM_MINOR__.
Packit c1f960
Packit c1f960
F: Warn on TIMES combined with multi-line macros.
Packit c1f960
V: 1.00
Packit c1f960
D: TIMES gets applied to first line only - should bring to users' attention.
Packit c1f960
Packit c1f960
F: Re-work the evaluator, again, with a per-object-format fixup
Packit c1f960
D: routine, so as to be able to cope with section offsets "really"
Packit c1f960
D: being pure numbers; should be able to allow at _least_ the two
Packit c1f960
D: common idioms
Packit c1f960
D:   TIMES 510-$ DB 0            ; bootsector
Packit c1f960
D:   MOV AX,(PROG_END-100H)/16   ; .COM TSR
Packit c1f960
D: Would need to call the fixup throughout the evaluator, and the
Packit c1f960
D: fixup would have to be allowed to return UNKNOWN on pass one if it
Packit c1f960
D: had to. (_Always_ returning UNKNOWN on pass one, though a lovely
Packit c1f960
D: clean design, breaks the first of the above examples.)
Packit c1f960
V: 1.10
Packit c1f960
Packit c1f960
F: Preprocessor identifier concatenation?
Packit c1f960
V: 1.10
Packit c1f960
Packit c1f960
F: Arbitrary section names in `bin'.
Packit c1f960
V: 0.98.09
Packit c1f960
D: Is this necessary? Is it even desirable?
Packit c1f960
D: hpa: Desirable, yes.  Necessary?  Probably not, but there are definitely cases where it becomes quite useful.
Packit c1f960
R: madfire
Packit c1f960
C: 100%
Packit c1f960
Packit c1f960
F: Ability to read from a pipe.
Packit c1f960
V: 1.10
Packit c1f960
D: Obviously not useful under dos, so memory problems with storing
Packit c1f960
D: entire input file aren't a problem either.
Packit c1f960
Packit c1f960
F: File caching under DOS/32 bit...
Packit c1f960
V: 1.10?
Packit c1f960
D: maybe even implement discardable buffers that get thrown away
Packit c1f960
D: when we get a NULL returned from malloc(). Only really useful under
Packit c1f960
D: DOS. Think about it.
Packit c1f960
Packit c1f960
F: possibly spool out the pre-processed stuff to a file, to avoid having to re-process it.
Packit c1f960
V: 1.10?
Packit c1f960
D: Possible problems with preprocessor values not known on pass 1? Have a look...
Packit c1f960
Packit c1f960
F: Or maybe we can spool out a pre-parsed version...?
Packit c1f960
V: 1.10
Packit c1f960
D: Need to investigate feasibility. Does the results from the parser
Packit c1f960
D: change from pass 1 to pass 2? Would it be feasible to alter it so that
Packit c1f960
D: the parser returns an invariant result, and this is then processed
Packit c1f960
D: afterwards to resolve label references, etc?
Packit c1f960
Packit c1f960
F: Subsection support?
Packit c1f960
Packit c1f960
F: A good ALIGN mechanism, similar to GAS's.
Packit c1f960
V: 0.98p1
Packit c1f960
D: GAS pads out space by means of the following (32-bit) instructions:
Packit c1f960
D:         8DB42600000000    lea esi,[esi+0x0]
Packit c1f960
D:         8DB600000000      lea esi,[esi+0x0]
Packit c1f960
D:         8D742600          lea esi,[esi+0x0]
Packit c1f960
D:         8D7600            lea esi,[esi+0x0]
Packit c1f960
D:         8D36              lea esi,[esi]
Packit c1f960
D:         90                nop
Packit c1f960
D: It uses up to two of these instructions to do up to 14-byte pads;
Packit c1f960
D: when more than 14 bytes are needed, it issues a (short) jump to
Packit c1f960
D: the end of the padded section and then NOPs the rest. Come up with
Packit c1f960
D: a similar scheme for 16 bit mode, and also come up with a way to
Packit c1f960
D: use it - internal to the assembler, so that programs using ALIGN
Packit c1f960
D: don't knock over preprocess-only mode.
Packit c1f960
D:   Also re-work the macro form so that when given one argument in a
Packit c1f960
D: code section it calls this feature.
Packit c1f960
R: Panos Minos
Packit c1f960
C: 100%?
Packit c1f960
Packit c1f960
F: Possibly a means whereby FP constants can be specified as immediate operands to non-FP instructions.
Packit c1f960
D: * Possible syntax: MOV EAX,FLOAT 1.2 to get a single-precision FP
Packit c1f960
D:   constant. Then maybe MOV EAX,HI_FLOAT 1.2 and MOV EAX,LO_FLOAT
Packit c1f960
D:   1.2 to get the two halves of a double-precision one. Best to
Packit c1f960
D:   ignore extended-precision in case it bites.
Packit c1f960
D: * Alternatively, maybe MOV EAX,FLOAT(4,0-4,1.2) to get bytes 0-4
Packit c1f960
D:   (ie 0-3) of a 4-byte constant. Then HI_FLOAT is FLOAT(8,4-8,x)
Packit c1f960
D:   and LO_FLOAT is FLOAT(8,0-4,x). But this version allows two-byte
Packit c1f960
D:   chunks, one-byte chunks, even stranger chunks, and pieces of
Packit c1f960
D:   ten-byte reals to be bandied around as well.
Packit c1f960
Packit c1f960
F: A UNION macro might be quite cool
Packit c1f960
D: now that ABSOLUTE is sane enough to be able to handle it.
Packit c1f960
Packit c1f960
F: An equivalent to gcc's ## stringify operator, plus string concatenation
Packit c1f960
D: somehow implemented without undue ugliness, so as
Packit c1f960
D: to be able to do `%include "/my/path/%1"' in a macro, or something
Packit c1f960
D: similar...
Packit c1f960
Packit c1f960
F: Actually _do_ something with the processor, privileged and
Packit c1f960
D: undocumented flags in the instruction table. When this happens,
Packit c1f960
D: consider allowing PMULHRW to map to either of the Cyrix or AMD
Packit c1f960
D: versions?
Packit c1f960
D: hpa: The -p option to ndisasm now uses this to some extent.
Packit c1f960
V: 1.10
Packit c1f960
Packit c1f960
F: Maybe NEC V20/V30 instructions?					?
Packit c1f960
D: hpa: What are they?  Should be trivial to implement.
Packit c1f960
Packit c1f960
F: Yet more object formats.
Packit c1f960
D: * Possibly direct support for .EXE files?
Packit c1f960
V: 1.10
Packit c1f960
Packit c1f960
F: Symbol map in binary format. Format-specific options...
Packit c1f960
V: 1.10?
Packit c1f960
Packit c1f960
F: REDESIGN: Think about EQU dependency, and about start-point specification in OBJ. Possibly re-think directive support.
Packit c1f960
V: 1.20?
Packit c1f960
Packit c1f960
F: Think about a wrapper program like gcc?
Packit c1f960
V: 2.00?
Packit c1f960
D: Possibly invent a _patch_ for gcc so that it can take .asm files on the command line?
Packit c1f960
D: If a wrapper happens, think about adding an option to cause the
Packit c1f960
D: resulting executable file to be executed immediately, thus
Packit c1f960
D: allowing NASM source files to have #!... (probably silly)
Packit c1f960
Packit c1f960
F: Multi-platform support?
Packit c1f960
D: If so: definitely Alpha; possibly Java byte code;
Packit c1f960
D: probably ARM/StrongARM; maybe Sparc; maybe Mips; maybe
Packit c1f960
D: Vax. Perhaps Z80 and 6502, just for a laugh?
Packit c1f960
Packit c1f960
F: Consider a 'verbose' option that prints information about the resulting object file onto stdout.
Packit c1f960
Packit c1f960
F: Line numbers in the .lst file don't match the line numbers in the input.
Packit c1f960
D: They probably should, rather than the current matching of the post-preprocessor line numbers.
Packit c1f960