5 ms·
First step is learning C. Second is an assembly language. Fro EASY to learn assembly I recommend finding an emulator for either PDP-11 or Motorola 68000 (they
by sloaken 6y ago
First step is learning C.
Second is an assembly language. Fro EASY to learn assembly I recommend finding an emulator for either PDP-11 or Motorola 68000 (they look surprisingly similar). Do a couple of small projects to become familiar with the syntax.
Then with the C language, compile to assembly. Either PDP or M68000. Examine the output. You should be able to, with enough practice, know what the C was, from the assembly. Play with pointers, pointers to functions, enums, recursion, etc.
Now the hard part comes, switch to a modern assembly. The old ones are so clean by comparison. But the old ones are only useful to get your brain to gonk what is needed. Choose one where you have the C and a debugger. Write the C, but step through the assembly code.
In theory you might be able to get a similar experience using Java byte code or MS MSIL, but that not what I was inflicted with.
- LeSUTHU 6y agoDo you have any recommendations for PDP11 emulator? Not sure how...
- sloaken 6y agoSeveral answers, first an article about a system, and concurrence about opinion of PDP assembly: https://www.i-programmer.info/news/82-heritage/12819-experience-the-pdp-1170-with-raspberry-pi.html https://www.i-programmer.info/news/82-heritage/12819-experie... Article references a PDP emulator box that runs using a Rasp Pi: https://obsolescence.wixsite.com/obsolescence/pidp-11 https://obsolescence.wixsite.com/obsolescence/pidp-11 That article mentions how they emulate the PDP-11 and other systems: http://simh.trailing-edge.com/ http://simh.trailing-edge.com/
- LeSUTHU 6y agoThank you so much