Semua buku

Profesional

Aplikasi Tentang Pelatih Masuk Mulai membaca

Computer Science · Glosarium

Apa itu Subroutine, stack pointer?

Dikenal juga sebagai: subroutine · stack pointer

Definition 13.6 High School Computer Science · Bab 13 — The von Neumann Machine and Assembly Language

A subroutine is a sequence of instructions that is entered by CALL and left by RET. The stack pointer SP holds the address of the top of a zone of memory, the stack, used last in, first out: PUSH r lowers SP by one and stores r there, POP r reads it back and raises SP. CALL a pushes the address of the next instruction and jumps to a; RET pops an address into PC.

Baca dalam konteks →