Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

disassembler in Lisp

Name: Anonymous 2010-12-22 3:26


"8b 04 9b b8 01 00 00 00 90".split |> map asBase,16,? |> x86deasm
((mov eax [ebx+4*ebx]) (mov eax 1) (nop))

Name: Anonymous 2010-12-22 4:39

In CL, symbols aren't really case insensitive, just by default (readtable-case *readtable*) is :UPCASE, which means that a symbol's name is upcased upon reading. Comparison of symbol names is case sensitive. If you were to change (readtable-case *readtable*) to :preserve, your symbols would be read as they are writen (however, if you want this to apply to everything else, you'll have to recompile all that code read symbols with the default readtable-case of :upcase). At minimum, the standard says that implementations must support the following possible values for a readtable's readtable-case: :upcase, :downcase, :preserve, or :invert.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List