2 thoughts on “Tricky code

  1. Pingback: Readability
  2. In the days when you got the source code with your operating system I was looking through a file called LITMACS.SR on a Data General Nova/RDOS system. This was an extension to MAC, the macro assembler, that let you write things like

    LDA 0, =45

    to load 45 into accumulator 0 (the Nova minicomputers didn’t have immediate addressing). Every so often in your code you’d place a .LPOOL directive, and the literals used so far would be created at that spot, and the code patched up to use PC relative addressing.

    One of the comments said something like:

    Don’t alter this code unless you understand it properly, and who does?

Leave a Reply

Your email address will not be published. Required fields are marked *