Skip to content

Functions to read the keyboard of MSX computers for create ROM applications (uses BIOS).

Notifications You must be signed in to change notification settings

mvac7/SDCC_KEYBOARD_MSXROM_Lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Keyboard MSX ROM SDCC Library (fR3eL Project)

Architecture: MSX
Format: C Object (SDCC .rel)
Programming language: C and Z80 assembler

Description

Library with basic functions for reading the keyboard of MSX computers.

This library uses functions from the MSX BIOS, so it is designed to create applications in ROM format.

Use them for developing MSX applications using Small Device C Compiler (SDCC).

This project is an Open Source library. You can add part or all of this code in your application development or include it in other libraries/engines.

You can access the documentation here with How to use the library.

In the source code examples/, you can find applications for testing and learning purposes.

This library is part of the MSX fR3eL Project.

Enjoy it!



History of versions:

  • v1.1 (30/11/2023) update to SDCC (4.1.12) Z80 calling conventions
  • v1.0 (7/3/2016) first version


Requirements



Functions

Function Description
KillBuffer() Clear keyboard buffer
INKEY() Waits for a key press and returns its value
GetKeyMatrix(row) Returns the value of the specified line from the keyboard matrix


Code Examples

In the git project examples/, you can find the source code of applications for testing and learning purposes.


TEST_GetKeyMatrix

Test the GetKeyMatrix function.

examples/testLib

Example screenshot


TEST_INKEY

Test the INKEY function.

examples/test80c

Example screenshot

About

Functions to read the keyboard of MSX computers for create ROM applications (uses BIOS).

Topics

Resources

Stars

Watchers

Forks