GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - greenbender/lend: Tiny x86 Length Disassembler

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
COPYING
COPYING
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
ld32.c
ld32.c
 
 
ld32.h
ld32.h
 
 
test.c
test.c
 
 
x86gen.py
x86gen.py
 
 

Repository files navigation

lend

Tiny x86 Length Disassembler

The inspiration for the design of this x86 length disassembler came from Zdisasm by Z0MBiE (I can't actually find this on his page but it's around, just google code search for zdisasm.h) and three ideas presented nicely in a single forum thread:

http://www.devmaster.net/forums/showthread.php?t=2311

The three ideas came from the following posts:

  1. The original post by Nick (a purely logical length disassembler)
  2. The post by earlnsk (a Russian switch case length disassembler) The Russian length disassembler can be found here: http://hack-expo.void.ru/groups/blt/text/disasm.txt (Russian) http://z0mbie.daemonlab.org/disasme.txt (English)
  3. The post by WolfgangSt (bitmap lookup tables)

With these ideas I decided to make a tiny length disassemler in c.

My length disassembler can use logical statements or lookup tables (32 byte bitmap tables) to perform the checks required to determine instruction length. Currently the smallest footprint I have managed is 589 bytes (LengthDisasm function length + 4x32 byte lookup tables). I'm sure there are further optimizations possible (even without using assembly).

I haven't looked into it too much but I don't think it would to too difficult to adapt this approach for x86_64.

About

Tiny x86 Length Disassembler

Resources

Readme
GPL-3.0 license
Activity

Stars

73 stars

Watchers

7 watching

Forks

11 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.