gzili / 8086-disassembler Goto Github PK
View Code? Open in Web Editor NEWDisassembler for original Intel 8086/8088 instructions, written as an optional exercise during the Computer Architecture course in Vilnius University.
Disassembler for original Intel 8086/8088 instructions, written as an optional exercise during the Computer Architecture course in Vilnius University.
The "invalid opcode" message may cut off the assembly code generation in mid-stream. A better way to handle it is how DEBUG.EXE originally handled it: which is to treat it as a byte constant, e.g. "db 0fh" for opcode 0f. So, "db" should be added as a pseudo-mnemonic and the table entries set to that, instead of to "nop".
There's no reason to treat the floating point escapes specially - their format is standard, essentially the same as opcodes 84h or 85h (to cite the two most typical cases). In octal, the opcode sequences is \33D \xrm [ExtraBytes], which is "escape D" with (nominal) "register" r=0,1,2,3,4,5,6,7 and (nominal) "address mode" (x,m) and "ExtraBytes" dictated by the values of the octal digits x=0,1,2,3 and m=0,1,2,3,4,5,6,7.
Similarly, "aam" and "aad" do not really need to be treated specially, but could be treated the same way as "int P" (opcode \315, i.e. 0cdh).
I translated what you have - without any of the above-mentioned changes - straight into C. I'll fork off of your version, add the C translation, and then do continual upgrade on it from there. You're welcome to copy back the C translation (or any of its upward revisions), when I put it up.
Edit: 2023-07-18: I forked and put it up on GitHub.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.