Re:Ask HN: Roadmap for Learning Low Level Computing
by LeSUTHU on Wednesday March 31, 2021 @08:57PM
(#26655427)
Do you have any recommendations for PDP11 emulator?
Not sure how...
Re:Ask HN: Roadmap for Learning Low Level Computing
by sloaken on Wednesday March 31, 2021 @09:19PM
(#26655578)
Several answers, first an article about a system, and concurrence about opinion of PDP assembly: 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
That article mentions how they emulate the PDP-11 and other systems: http://simh.trailing-edge.com/
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.