Disassemble the PDP-8 program

This is a PDP-8 program. Please, anyone can take it apart.

Binary representation   Octal Representation
111000000001            7001
010000011100            2034
101000010001            5021
101000010000            5020

I want to know what this code does.

PS: This is not homework. I just found this code in the video. There is no explanation for this.

+3
source share
1 answer
7001         IAC      Increment the accumulator 
2034         ISZ 24 Increment location 0024, skip next instruction if zero 
5021         JMP .-1  Jump back one place 
5020         JMP .-3  Jump back to beginning

The source , about half the page, is an accurate program.

This whole program adds one to the battery, then it calculates from 0 to 4096, then adds another one to the battery and so on ... adding up to 4096 is a sufficient delay so that higher-order batteries can be turned on and off, and not just flicker fast.

+7
source

Source: https://habr.com/ru/post/1755860/


All Articles