POKE

POKE

POKE es una instrucción en el lenguaje de programación BASIC usada en algunas de las primeras versiones de este lenguaje. Dicha instrucción se encargaba de grabar un valor en una determinada dirección de memoria, ambos datos dados como argumento.[1] También se encuentra la contrapuesta PEEK, cuyo objetivo era recuperar un valor de una dirección de memoria determinada.[2]

POKE, en el ámbito de los jugadores hispanos de ordenadores de 8 bits como el ZX Spectrum, concretamente POKEAR, es una palabra de jerga utilizada en los años 80 para identificar un tipo de trampa en un videojuego consistente en alterar una o varias instrucciones en su código máquina utilizando la instrucción de BASIC POKE. La finalidad era conseguir ventajas de cualquier tipo o comportamientos extraños.

En el caso del ZX Spectrum, por ejemplo, los juegos solían venir en varios bloques de carga, siendo el primero un corto fragmento de BASIC que se encargaba de cargar la pantalla de presentación (si la había) y el código máquina del juego, así como ejecutar este al final.

Para introducir un POKE lo habitual era interrumpir la carga tras cargar el BASIC y añadir la instrucción POKE justo antes de ejecutar el juego. POKE 35899,0, por ejemplo, permitía obtener vidas infinitas en el juego Jet Set Willy.

El primer número en una instrucción POKE se refiere a la posición de memoria, y el segundo, a su valor. Normalmente el segundo valor solía ser 0 (correspondiente a la instrucción del procesador Z80 nop -no hagas nada-) o 201 (ret -acaba y vuelve-). En otros casos podía tener un valor arbitrario a elección del jugador: por ejemplo, número de vidas.

Refencias

  1. «POKE». Microsoft QuickBasic 4.5 Advisor. Microsoft (1990). Consultado el 2007-12-28.
  2. «PEEK». Microsoft QuickBasic 4.5 Advisor. Microsoft (1990). Consultado el 2007-12-28.

Wikimedia foundation. 2010.

Игры ⚽ Нужна курсовая?

Mira otros diccionarios:

  • Poke — *An action of tapping and/or softly jabbing another person using a finger to gain their attention.Poke, Poké or POKE may refer to:*POKE, a BASIC programming language command *Poke (game), a card game *Poke (gesture), different definition for… …   Wikipedia

  • poke — ► VERB 1) jab or prod with a finger or a sharp object. 2) make (a hole) by jabbing or prodding. 3) (poke about/around) look or search around a place. 3) (often poke out) thrust out or protrude in a particular direction. ► NOUN ▪ …   English terms dictionary

  • Poke — Poke, v. t. [imp. & p. p. {Poked}; p. pr. & vb. n. {Poking}.] [Cf. LG. poken to prick, pierce, thrust, pok a dagger, knife, D. pook, G. pocken to beat, also Ir. poc a blow, Gael. puc to push.] 1. To thrust or push against or into with anything… …   The Collaborative International Dictionary of English

  • POKE — (engl. poke = stecken, stoßen) ist ein Software Kommando der Programmiersprache BASIC, das dazu dient, direkt in Speicherzellen oder Hardware Register des Rechners zu schreiben. Sein Gegenpart ist der PEEK Befehl, um Speicherzellen direkt zu… …   Deutsch Wikipedia

  • poke# — poke vb Poke, prod, nudge, jog are comparable when they mean, as verbs, to thrust something into so as to stir up, urge on, or attract attention and, as nouns, the act or an instance of such thrusting. Poke implies primarily the use of a body… …   New Dictionary of Synonyms

  • Poke — Poke, n. [AS. poca, poha, pohha; akin to Icel. poki, OD. poke, and perh. to E. pock; cf. also Gael. poca, and OF. poque. Cf. {Pock}, {Pocket}, {Pouch}.] 1. A bag; a sack; a pocket. He drew a dial from his poke. Shak. [1913 Webster] They wallowed… …   The Collaborative International Dictionary of English

  • poke — poke; poke·lo·gan; shike·poke; shite·poke; slow·poke; more·poke; poke·lo·ken; …   English syllables

  • poke — poke1 [pōk] vt. poked, poking [ME poken < MDu or LowG] 1. a) to push or jab with a stick, finger, etc.; prod b) Slang to hit with the fist 2. to make by poking [to poke a hole in a bag] …   English World dictionary

  • Poke — Poke, n. 1. The act of poking; a thrust; a jog; as, a poke in the ribs. Ld. Lytton. [1913 Webster] 2. A lazy person; a dawdler; also, a stupid or uninteresting person. [Slang, U.S.] Bartlett. [1913 Webster] 3. A contrivance to prevent an animal… …   The Collaborative International Dictionary of English

  • Poke — steht für: POKE, ein Software Kommando der Programmiersprache BASIC Poke (Sprache), eine Bantusprache in der Demokratischen Republik Kongo Poke (Gericht), einen hawaiischer Fischsalat Diese Seite ist eine Begriffsklärung zur …   Deutsch Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”