assembly - 反汇编PDP-8程序

标签 assembly disassembly

这是一个 PDP-8 程序。请任何人都可以拆卸它。

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

我想知道这段代码到底在做什么。

PS:这不是作业。我刚刚在视频中找到了这段代码。对此没有任何解释。

最佳答案

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

Source ,大约页面中间就是这个程序。

All this program does is add one to the accumulator, then it counts from 0 up to 4096, then it adds another one to the accumulator and so on ... The adding up to 4096 is sufficient delay so that the higher order accumulator lights can be seen to be switching on and off rather than just flickering rapidly.

关于assembly - 反汇编PDP-8程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3303990/

相关文章:

multithreading - atomic.Load 和atomic.Store 的意义是什么

assembly - 通过寄存器传递内存地址

C 内联汇编 Int 0x10

c++ - 类构造函数反汇编

linux - 反汇编文件并从文本部分获取字节

php - 机器码和操作码有什么区别?

assembly - BIOS 连续两次从不同端口读取同一寄存器

c - ndisasm手册中提到的二进制文件和可执行文件有什么区别?

assembly - x64 fastcall 调用者堆栈管理

objective-c - 断点改变程序流程