Giter Club home page Giter Club logo

asm-51's Introduction

ASM-51

使用

 下载  Release 
解压后 找到 ASM-51
这是一个命令行工具 可添加环境变量中使用
目前只有一条命令 
ASM-51 [file_name]
会生成 .hex 文件
目前已经基本可以使用 要做的是去修复未知的bug

说明

因为以后可能想写个虚拟机 所以有些的代码对于纯粹的 汇编->机器码 这个过程是无用的 对于编写虚拟机是有用的。 

目前进度 100%

已完成:
支持伪指令 EQU, ORG, DB, END  $ 
支持所有指令  
   ADD
   ADDC
   SUBB
   INC
   DEC
   MUL
   DIV
   ANL
   ORL
   XRL
   CLR
   CPL
   RL
   RLC
   RR
   RRC
   SWAP
   MOV
   MOVC
   MOVX
   PUSH
   POP
   XCH
   XCHD
   CLR
   SETB
   CPL
   ANL
   ORL
   MOV
   //控制转移指令
   ACALL
   LCALL
   RET
   RETI
   AJMP
   SJMP
   LJMP
   JMP
   JZ
   JNZ
   JC
   JNC
   JB
   JNB
   JBC
   CJNE
   DJNZ
   NOP

TODO

	1. 生成 .omf,bin 格式文件
	2.一个虚拟机,用于调试
	3.更多的伪指令
	4.更加灵活的宏定义
	5.一些地方的重构(算了吧)
	6.开摆

asm-51's People

Contributors

2236721325 avatar

Stargazers

 avatar 天宇 avatar Tom Free avatar Eason Wang avatar 王智豪 avatar  avatar  avatar

Watchers

王智豪 avatar  avatar

Forkers

ekerneljoy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.