I have found a few BASIC and KERNAL functions and memory addresses related to getting a key press/line, but how can I simply wait for a key press, and get its code? I want to pause execution, and resume once a key is pressed. I do not want them to be queued up during execution.
Simple way to *wait* for a key press, and get its martrix or PETSCII code?
771 views Asked by circl At
1
There are 1 answers
Related Questions in 6502
- How to change kernal SCNKEY routine behaviour in Commodore 64
- Is it possible to procedurally determine the number of cycles a particular instruction takes on a 6502?
- Alternative to sinus function for sprite movement
- Indirect Y indexed addressing mode in MOS 6502
- Waiting for a change on $D012 (C64 assembler)
- Why some processors have unofficial codes and/or bugs?
- How to divide 16bit number by 2 in 6502 asm?
- Loading a file into memory and then executing it (no operating system)
- 6502 ASM linker calculates wrong jump offset
- Fibonnacci sequence in 6502 assembler
Related Questions in C64
- How to change kernal SCNKEY routine behaviour in Commodore 64
- Alternative to sinus function for sprite movement
- Waiting for a change on $D012 (C64 assembler)
- CC65: Four lines bad, two lines good?
- How to print quotes inside quotes but in commodore 64 basic v.2.0
- How to divide 16bit number by 2 in 6502 asm?
- Compare keystrokes - Assembly CCS64
- How to access the assembly editor from C64 BASIC
- Simple way to *wait* for a key press, and get its martrix or PETSCII code?
- Draw on screen border in Commodore 64
Related Questions in COMMODORE
- How to print quotes inside quotes but in commodore 64 basic v.2.0
- Simple way to *wait* for a key press, and get its martrix or PETSCII code?
- Why were square waves used in old hardware instead of sine waves?
- Still a future (and a present) for 6502, VIC and SID?
- Draw on screen border in Commodore 64
- Drawing bitmap in 6502 assembly
- Sprite pointers in 6502 (Commodore 64)
- How to send and receive messages between a modern computer and a Commodore 64 via WiFi?
- How to have 9 sprites in rasterline
- What does the Commodore PET BASIC assemble starting from $00C2?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The principle is to use a non-blocking call, and keep calling it until you get a key.
In assembler you can use the KERNAL function
GETINat$FFE4In BASIC you can use
GETAbove I used spaces to make it more readable, but spaces are not necessary (they use memory and take time to process. It could be written as: