Highlight asm code script by Wojciech Mula
This script can by freely use and copy. So you are not allowed to sell one.
Features
- recognize all x86, MMX, FPU and SSE instructions and registers
the NASM form of FPU registers names are allowed.
- recognize numbers:
- recognize labels:
- label: - common in all assemblers
- .local_label: - lacal label in NASM
- removes all whitespaces from end of lines
CSS classes
There are several classes defined in asm_code.css file:
- for instructions: instr_x86, instr_mmx,
instr_fpu, instr_sse;
- for registers: reg_x86, reg_mmx,
reg_sse, reg_fpu;
- for numbers: nbase2 (bin), nbase8 (oct),
nbase10 (dec), nbase16 (hex);
- comment
- label
- loc_label - for local labels
Of course you can modify these styles. My taste is so ugly. :)
Interface
Buttons
- generate highlighted code
- init preprocessing of code from text-box; the result is showing
in popup window;
- clear
- fast way to delete all code (of course it don't touch any of
popuped window).
Switches
- generate HTML code
- output as HTML code - that form may be easiest to grab;
- remove comments
- erases all comments
- remove multiple blank lines
- the continous set of blank lines is compressed into one blank
line; I recomended to enablethis option with remove comments
As you probably noticed there is possible to change case of letters in
instructions, registes names and numbers. When numbers are forced to
uppercase then in hexadecimal numbers post- or prefixes are always in
lowercase.
History
- 2.05.2002 - version 1.21 - fixed
- 29-30.04.2002 - version 1.2 - a lot of fixes/changes
- 5-6.02.2002 - first version
Yes, I know - my english is very, very, ... very bad.
However I hope that my hard work will be useful for You.
With best regards
Wojciech Mula