全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Jump, conditional jump?

又称: jump · conditional jump

Definition 13.5 High School Computer Science · 第 13 章 — The von Neumann Machine and Assembly Language

A jump writes an address into the program counter, so that execution goes on there. A conditional jump does so only if a flag has a given value (JZ if Z=1Z = 1, JNZ if Z=0Z = 0, JN if N=1N = 1, JC if C=1C = 1), and otherwise lets execution go on to the next instruction.

The flow of the loop, with the address of each instruction. The label loop is the number 4; the assembler writes JNZ 4. When Z = 1, execution goes on to the next line, HALT.
The flow of the loop, with the address of each instruction. The label loop is the number 44; the assembler writes JNZ 4. When Z=1Z = 1, execution goes on to the next line, HALT.
The memory of sum_array.toy: ten instructions in cells 0 to 19, the data in 20 to 26. A program that uses the stack fills it from cell 255 down, towards the code.
The memory of sum_array.toy: ten instructions in cells 00 to 1919, the data in 2020 to 2626. A program that uses the stack fills it from cell 255255 down, towards the code.
在原文中阅读 →