Monday, February 07, 2011

A simple instruction set Assembler


BIT CRUNCHER

BIT CRUNCHER is a simple instruction set assembler. An assembler converts assembly language code written in mnemonic language into machine language code or binary code for the intended host machine. Bit Cruncher is a hypothetical assembler, developed for educational purposes rather than using it as a real assembler. The BIT CRUNCHER operates on the instruction set provided on the righthand side of the page and the binary code is intended to be hosted on this hypothetical architecture only.

Using it:

Follow the instructions provided below for generating the machine code for your own assembly code.
1) Select your file by clicking on the 'BROWSE' button and choosing it from the file-tree.
2) If you want to view or recheck the file click on 'OPEN'.
3) Once you have selected the file, the path will appear in the text field above.
4) Simply click on the 'ASSEMBLE' button to assemble the input file.
5) If your input file is named ABC.asm the output file machine_code_ABC.bin will be created in the folder of BIT CRUNCHER.


Mnemonic
Indication
Operand 1 (optional)
Operand 2 (optional)
Opcode (4 bit)
X (2 bit)
Register (2 bit)
Address / value (8 bit)
X = 0 indicates register, 1 indicates memory address, 2 indicates value, 3 indicates no operand
Code for registers: A: 1, B: 2, C: 3, D: 4


No comments:

Post a Comment

Do you think this information useful or was not up to the mark? Comment if you have any advices or suggestions about the post.