4 ms·
How to make your own Assembler simulator in JS
- mwadams 12y agoThat's very nifty. We built a little assembly language interpreter in F# over here (https://raw.githubusercontent.com/endjin/Samples/master/Endjin.Processor/computer.fs https://raw.githubusercontent.com/endjin/Samples/master/Endj...) for our learning to program series. It doesn't have any IO (yet!), mind you. You just get to inspect the memory.
- andrewchambers 12y agoAssembler simulator seems wrong. My understanding is that an assembler assembles assembly code.
- Schweigi 12y agoI primarily choose the name because it uses a basic simulation of a computer to run programs written in Assembler. Because everything is quite simple it is very easy to use it for teaching purposes.
- andrewchambers 12y agoI know, I call it "assembly language", not "assembler".
- undrwatr 12y agoIt also seems confusing to me, but: "Calling the language assembler might be considered potentially confusing and ambiguous, since this is also the name of the utility program that translates assembly language statements into machine code. However, this usage has been common among professionals and in the literature for decades.[30] Similarly, some early computers called their assembler their assembly program.[31]" http://en.m.wikipedia.org/wiki/Assembly_language#Related_terminology http://en.m.wikipedia.org/wiki/Assembly_language#Related_ter...