Open utterances-bot opened 2 years ago
This is amazing! Greeting from Australia. Thanks very much for sharing this and I hope you have a safe and happy Christmas.
Hey! Quick heads up - the link to the repo has a random comma in (https://github.com/,nomemory/lc3-vm). I enjoyed the article, good work!
interesting read
A very interesting concept, but i found a few minor problems in trying to follow it on a Linux system.
The suggested git command doesn't work for me. I found success with: git clone git://github.com/nomemory/lc3-vm
The type uint16_t is defined in
gcc simple_prog.c ./a.out gcc vm.c vm_dbg.c ./a.out simple_prog.obj
wow, i read this in one breath )
Great educational resource (and timely as I'm helping my son learn C, including pointer/memory operations and the like). Thanks for putting it together!
Just wanted to point out there's a few typos, there's some add's in the and section.
very helpful to me. thanks !!!
Amazing, I never saw such neat and practical article for this topic. It's taught me a lot.
A better sign extend would be: int s = 16 - b; return (int16_t) n << s >> s; The cast to int makes the right shift an arithmetic right shift. Or you can just declare n as int16_t in the function arguments.
Great amazing article
Nit just some typo in the OPC op_ex[OP(instr)](instr)
should be op_ex[OPC(instr)](instr)
Thanks so much for this article that took me back 30 years ago to my first assignment on my first semester of CS eng school: Corewar: write a VM and an agent and try to beat the other students. That one assignment built all the solid bases I needed to start my journey. I'm amazed that students today are not exposed to this.
Writing a simple 16 bit VM in less than 125 lines of C | andreinc
Writing a simple VM for LC3 in less than 125 lines of C
https://www.andreinc.net/2021/12/01/writing-a-simple-vm-in-less-than-125-lines-of-c