ashutoshvrm8 / assembler Goto Github PK
View Code? Open in Web Editor NEWSIC Assembler Simulator
SIC Assembler Simulator
I want to design a SIC Assembler that matches the specs , syntax and description of that in reference (Introduction to Systems Programming
Book by Leland L. Beck) page 47 ,49
( here's the link
https://drive.google.com/file/d/1lU-PKTmICybL2KxK1ExUHHMdwOTMKJtF/view?usp=sharing)
when I forked your code I made some changes so the syntax and opcode can exactly match the reference
the changes in Assembly.c
char op_mnemonic[26][10]={"LDA","STA","JSUB","MUL","STL","DIV","ADD","STCH","TD","JEQ","LDCH","WD","RSUB","TIXR","TIX","JLT","COMP","CLEAR","LDB","J" ,"RD","COMPR","STX","LDT","LDL","LDX"};
char op_opcode[26][10]={ "00", "0C", "48", "20", "14", "24", "18", "54", "E0", "30","50", "DC", "4C", "B8", "2C", "38", "28", "B4", "68", "3C","D8","D8", "10", "74", "08", "04"};
but for somehow the output in the intermediate file
38 2067 -- JEQ WLOOP 302064
39 206A -- LDCH BUFFER,X 309039
instead of
38 2067 -- JEQ WLOOP 302064
39 206A -- LDCH BUFFER,X 509039
what changes I should do to fix this?
the full edited files , input and outputs are in this repository
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.