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 best solutions below
Related Questions in 6502
- Need clarification on the dummy read in absolute X indexed
- 2-byte signed comparision
- 6502 JSR changes on stack required for RTS utility as "function call"
- How to make smooth horizontal / vertical movement in 6502 assembly (NES)?
- Struggling to understand 'Zero-Page Indirect Address Indexed by Y' for the 6502 Assembly Language
- In 6502 assembler, trying to output integers after log statement
- Loading a file into memory and then executing it (no operating system)
- 6502 ASM linker calculates wrong jump offset
- Fibonnacci sequence in 6502 assembler
- Does a 6502 register load (LDA, LDX, LDY) modify the N and Z flags in immediate addressing mode?
- How to setup TomHarte CPU tests
- How should we use mirrored memory on a NES 6502?
- Why this NES 6502 assembly code doesn´t work when moved to a scoped proc?
- Interfacing with the Commodore 64 Serial Port using Assembly
- 6510 Interrupt Handler for the 6502 Klaus Dormman Interrupt test
Related Questions in C64
- CC65 for C64 - relocate program in memory
- Why is there an unexpected character on line 6 in C64 Basic?
- Interfacing with the Commodore 64 Serial Port using Assembly
- Interrupt that loads Bitmap and plays a SID file is NOT returning to main program - (6510 ASM, CBM Prog Studio)
- explain what is missing from 10print
- Explain a part of the code c64 6502 Assembly
- C64 assembler - Trying to print 4 rows at the top and the bottom
- Is it possible to steer the fischertechnik C64 robot interface via a modern USB port?
- How to enter commands programmatically in c64's basic?
- I think I have solved raster interrupts text/bitmap mode but I have this weird text error
- How to properly use interrupt handlers in 6502 Assembler?
- Best way of writing subroutines in 6502 Assembler?
- Commodore C64 how to detect PAL or NTSC
- Is there a way to access global const from the macro in Kick Assembler for C64
- Saving and reusing register in C64 assembler?
Related Questions in COMMODORE
- Why is there an unexpected character on line 6 in C64 Basic?
- How to setup TomHarte CPU tests
- Interfacing with the Commodore 64 Serial Port using Assembly
- 6510 Interrupt Handler for the 6502 Klaus Dormman Interrupt test
- 6502 Assembly Loops
- 6502 Loops and Macros with Kick Assembler
- Using xa65 to create a Commodore 64 .prg file and disk image
- I'm currently trying to learn commodore 64 BASIC and I'm getting an error with my sleep function
- DEF FN(x) How does one transfer / translate "Define Function" command to VB.NET?
- How to send and receive messages between a modern computer and a Commodore 64 via WiFi?
- How to enter commands programmatically in c64's basic?
- How do you relocate the Zero Page on a 65816
- Commodore C64 how to detect PAL or NTSC
- How to 'manipulate' strings in BASIC V2?
- C64 Assembly - Cycling through Bitmaps as a graphical introduction to my game
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)
Popular # Hahtags
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?
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: