PEEK and POKE (original) (raw)
PEEK e POKE, in informatica, sono due istruzioni utilizzate nel linguaggio di programmazione BASIC per accedere al contenuto di un particolare indirizzo di memoria. PEEK è una funzione che restituisce il valore memorizzato nella cella di memoria specificata mentre POKE è un comando che serve per effettuare la corrispondente operazione di scrittura.
Property | Value |
---|---|
dbo:abstract | POKE (englisch to poke = stecken, stoßen) ist eine Anweisung der Programmiersprache BASIC, die dazu dient, einen als Zahl angegebenen Wert (bei 8-Bit-Architekturen ein Oktett bzw. Byte) in die angegebene Speicheradresse im Adressraum des Prozessors (der CPU) zu speichern. Sein Gegenpart ist die PEEK-Interpreterfunktion (englisch to peek = gucken, spähen, nachsehen), mit der von einer Adresse gelesen wird; der gelesene Wert wird dem BASIC-Programm als Rückgabewert übergeben. Mit der POKE-Anweisung kann beispielsweise der Inhalt einer Speicherzelle des Arbeitsspeichers des Rechners manipuliert werden. Daneben werden mit POKE und PEEK die Hardwaresteuerregister von Peripheriebausteinen des Computers für das BASIC-Programm zugänglich, sofern das Computersystem mit Memory Mapped I/O arbeitet. Die Befehle PEEK und POKE wurden von Bill Gates und Paul Allen 1975 in der Programmiersprache Altair BASIC eingeführt. (de) In computing, PEEK and POKE are commands used in some high-level programming languages for accessing the contents of a specific memory cell referenced by its memory address. PEEK gets the byte located at the specified memory address.POKE sets the memory byte at the specified address. These commands originated with machine code monitors such as the DECsystem-10 monitor; these commands are particularly associated with the BASIC programming language, though some other languages such as Pascal and COMAL also have these commands. These commands are comparable in their roles to pointers in the C language and some other programming languages. One of the earliest references to these commands in BASIC, if not the earliest, is in Altair BASIC. The PEEK and POKE commands were conceived in early personal computing systems to serve a variety of purposes, especially for modifying special memory-mapped hardware registers to control particular functions of the computer such as the input/output peripherals. Alternatively programmers might use these commands to copy software or even to circumvent the intent of a particular piece of software (e.g. manipulate a game program to allow the user to cheat). Today it is unusual to control computer memory at such a low level using a high-level language like BASIC. As such the notions of PEEK and POKE commands are generally seen as antiquated. The terms peek and poke are sometimes used colloquially in computer programming to refer to memory access in general. (en) PEEK e POKE, in informatica, sono due istruzioni utilizzate nel linguaggio di programmazione BASIC per accedere al contenuto di un particolare indirizzo di memoria. PEEK è una funzione che restituisce il valore memorizzato nella cella di memoria specificata mentre POKE è un comando che serve per effettuare la corrispondente operazione di scrittura. (it) コンピューティングにおいて、PEEK(ピーク)とPOKE(ポーク)は、いくつかの高水準プログラミング言語で使用されるコマンドで、メモリーアドレスで参照される特定のメモリセルの内容にアクセスするために使用する。BASICのものがよく知られているが、Pascalやなど他のプログラミング言語にも同様のコマンドがある。このコマンドは、C言語などにおけるポインタに匹敵する役割を持っている。 PEEKとPOKEは、初期のパーソナルコンピュータにおいて様々な目的を果たすために考案され、特に、メモリ空間にマッピングされたハードウェアレジスタを変更するために使用された。また、プログラマはこのコマンドを使用して、ソフトウェアをコピーしたり、特定のソフトウェアのプログラミングの意図を回避したりすることもある(例えば、ゲームプログラムを操作してユーザがチートできるようにするなど)。今日では、BASICのような高水準言語を使用して、低水準でメモリを制御することはあまりなく、PEEK、POKEというコマンドの概念は一般的に時代遅れとみなされている。 英語においては、peekやpokeという言葉が、プログラミングにおけるメモリアクセスを指す動詞(poked, peekedなど)として口語的に使われることがある。 (ja) |
dbo:thumbnail | wiki-commons:Special:FilePath/Monitor_Commodore_CBM...with_BASIC_program-0309.jpg?width=300 |
dbo:wikiPageID | 252279 (xsd:integer) |
dbo:wikiPageLength | 12180 (xsd:nonNegativeInteger) |
dbo:wikiPageRevisionID | 1117336842 (xsd:integer) |
dbo:wikiPageWikiLink | dbr:Processor_register dbr:Question_mark dbr:Machine_code_monitor dbr:Microcomputer dbr:Read-only_memory dbr:MOS_Technology_VIC-II dbr:Memory-mapped_I/O dbr:Memory_address dbr:Opcode dbr:ST_BASIC dbr:Debugging dbr:Dynamic_Data_Exchange dbr:Input/output dbr:Commodore_64 dbr:Endianness dbr:Home_computers dbr:Machine_language dbr:Sinclair_QL dbr:Collision_detection dbr:Computer_program dbr:Computing dbr:ZX_Spectrum dbr:Hardware_register dbr:Pointer_(computer_programming) dbr:BASIC dbr:BBC_BASIC dbr:BBC_Micro dbc:Microcomputer_software dbr:C_(programming_language) dbr:Address_space dbc:Cheating_in_video_games dbr:Type-in_program dbr:8-bit dbr:ANTIC dbr:ASCII dbr:Acorn_Computers dbr:Altair_BASIC dbr:Amstrad_CPC dbc:Computer_memory dbr:Exclamation_mark dbr:North_Star_Computers dbr:PDP-10 dbr:Pascal_(programming_language) dbr:Direct_mode dbr:Killer_poke dbr:Return_statement dbc:BASIC_commands dbr:Assembly_language dbr:Atari_8-bit_family dbr:Cheating_in_video_games dbr:High-level_programming_language dbr:Home_computer dbr:Your_Sinclair dbr:Dollar_sign dbr:Mapping_the_Atari dbr:Knight_Lore dbr:Operating_system dbr:Carriage_return dbr:Self-modifying_code dbr:Virtual_memory dbr:Sound_chip dbr:Multiface dbr:Page_table dbr:BASIC_XL dbr:Visual_Basic_for_Windows dbr:Command_line_interpreter dbr:COMAL_(programming_language) dbr:Expression_(programming) dbr:File:Monitor_Commodore_CBM_3016_with_BASIC_program-0309.jpg |
dbp:wikiPageUsesTemplate | dbt:Anchor dbt:Authority_control dbt:Citation_needed dbt:Code dbt:For dbt:Refimprove dbt:Reflist dbt:Short_description dbt:Unreferenced_section |
dct:subject | dbc:Microcomputer_software dbc:Cheating_in_video_games dbc:Computer_memory dbc:BASIC_commands |
gold:hypernym | dbr:Extension |
rdf:type | owl:Thing dbo:Software |
rdfs:comment | PEEK e POKE, in informatica, sono due istruzioni utilizzate nel linguaggio di programmazione BASIC per accedere al contenuto di un particolare indirizzo di memoria. PEEK è una funzione che restituisce il valore memorizzato nella cella di memoria specificata mentre POKE è un comando che serve per effettuare la corrispondente operazione di scrittura. (it) コンピューティングにおいて、PEEK(ピーク)とPOKE(ポーク)は、いくつかの高水準プログラミング言語で使用されるコマンドで、メモリーアドレスで参照される特定のメモリセルの内容にアクセスするために使用する。BASICのものがよく知られているが、Pascalやなど他のプログラミング言語にも同様のコマンドがある。このコマンドは、C言語などにおけるポインタに匹敵する役割を持っている。 PEEKとPOKEは、初期のパーソナルコンピュータにおいて様々な目的を果たすために考案され、特に、メモリ空間にマッピングされたハードウェアレジスタを変更するために使用された。また、プログラマはこのコマンドを使用して、ソフトウェアをコピーしたり、特定のソフトウェアのプログラミングの意図を回避したりすることもある(例えば、ゲームプログラムを操作してユーザがチートできるようにするなど)。今日では、BASICのような高水準言語を使用して、低水準でメモリを制御することはあまりなく、PEEK、POKEというコマンドの概念は一般的に時代遅れとみなされている。 英語においては、peekやpokeという言葉が、プログラミングにおけるメモリアクセスを指す動詞(poked, peekedなど)として口語的に使われることがある。 (ja) POKE (englisch to poke = stecken, stoßen) ist eine Anweisung der Programmiersprache BASIC, die dazu dient, einen als Zahl angegebenen Wert (bei 8-Bit-Architekturen ein Oktett bzw. Byte) in die angegebene Speicheradresse im Adressraum des Prozessors (der CPU) zu speichern. Sein Gegenpart ist die PEEK-Interpreterfunktion (englisch to peek = gucken, spähen, nachsehen), mit der von einer Adresse gelesen wird; der gelesene Wert wird dem BASIC-Programm als Rückgabewert übergeben. Die Befehle PEEK und POKE wurden von Bill Gates und Paul Allen 1975 in der Programmiersprache Altair BASIC eingeführt. (de) In computing, PEEK and POKE are commands used in some high-level programming languages for accessing the contents of a specific memory cell referenced by its memory address. PEEK gets the byte located at the specified memory address.POKE sets the memory byte at the specified address. These commands originated with machine code monitors such as the DECsystem-10 monitor; these commands are particularly associated with the BASIC programming language, though some other languages such as Pascal and COMAL also have these commands. These commands are comparable in their roles to pointers in the C language and some other programming languages. (en) |
rdfs:label | POKE und PEEK (de) PEEK e POKE (it) PEEKとPOKE (ja) PEEK and POKE (en) |
owl:sameAs | freebase:PEEK and POKE http://d-nb.info/gnd/4607469-7 wikidata:PEEK and POKE dbpedia-de:PEEK and POKE dbpedia-it:PEEK and POKE dbpedia-ja:PEEK and POKE https://global.dbpedia.org/id/3YFrK |
prov:wasDerivedFrom | wikipedia-en:PEEK_and_POKE?oldid=1117336842&ns=0 |
foaf:depiction | wiki-commons:Special:FilePath/Monitor_Commodore_CBM_3016_with_BASIC_program-0309.jpg |
foaf:isPrimaryTopicOf | wikipedia-en:PEEK_and_POKE |
is dbo:wikiPageDisambiguates of | dbr:Peek dbr:Poke |
is dbo:wikiPageRedirects of | dbr:Peek_and_Poke dbr:DEEK dbr:DEEK_(BASIC) dbr:DOKE dbr:DOKE_(BASIC) dbr:DPEEK dbr:DPEEK_(BASIC) dbr:DPOKE dbr:DPOKE_(BASIC) dbr:PEEK_(BASIC) dbr:POKE_(BASIC) dbr:PEEK_&_POKE dbr:Poke_and_peek dbr:Peek/poke dbr:Peek_&_Poke |
is dbo:wikiPageWikiLink of | dbr:VIC-20 dbr:Peek_and_Poke dbr:Commodore_128 dbr:Commodore_64 dbr:Commodore_64_software dbr:Commodore_BASIC dbr:Commodore_LCD dbr:Transputer dbr:Galaksija_BASIC dbr:Arcade_Volleyball dbr:Locomotive_BASIC dbr:MBASIC dbr:Commodore_64_peripherals dbr:Compute! dbr:Peek dbr:Poke dbr:BASIC_interpreter dbr:BBC_Micro dbr:Bally_Astrocade dbr:Game_Genie dbr:DEEK dbr:DEEK_(BASIC) dbr:DOKE dbr:DOKE_(BASIC) dbr:DPEEK dbr:DPEEK_(BASIC) dbr:DPOKE dbr:DPOKE_(BASIC) dbr:Jet_Set_Willy dbr:Type-in_program dbr:ATASCII dbr:Acorn_Atom dbr:Amiga dbr:Amstrad_CPC dbr:DAI_Personal_Computer dbr:Datel dbr:Dragon_32/64 dbr:Exclamation_mark dbr:North_Star_Horizon dbr:PETSCII dbr:Fat_Worm_Blows_a_Sparky dbr:Graphics_BASIC dbr:Killer_poke dbr:Atari_BASIC dbr:ALF_Products dbr:Cheating_in_video_games dbr:Bit_bucket dbr:TI_BASIC_(TI_99/4A) dbr:TRS-80_Color_Computer dbr:TRS-80_Model_100 dbr:Your_Sinclair dbr:Dimension_68000 dbr:BASIC_8 dbr:BASIC_extension dbr:SpartaDOS_X dbr:Camelot_(video_game) dbr:Unified_Emulator_Format dbr:The_Micro_User dbr:Ohio_Scientific dbr:Super_Expander dbr:Multiface dbr:Super_Expander_64 dbr:Phantom_Access dbr:PEEK_(BASIC) dbr:POKE_(BASIC) dbr:PEEK_&_POKE dbr:Poke_and_peek dbr:Peek/poke dbr:Peek_&_Poke |
is foaf:primaryTopic of | wikipedia-en:PEEK_and_POKE |