Todos os livros

Profissional

Apps Sobre Coach Entrar Começar a ler

Computer Science · Glossário

O que é Jump, conditional jump?

Também chamado de: jump · conditional jump

Definition 13.5 High School Computer Science · Capítulo 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.
Ler no capítulo →