llvm-mos-sdk
Classes | Typedefs | Functions
system.h File Reference
#include <stdint.h>
#include <neo6502.h>
Include dependency graph for system.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  neo_version
 

Typedefs

typedef struct neo_version neo_version_t
 

Functions

uint8_t neo_api_error (void)
 Return the error code, if any. More...
 
long neo_system_timer (void)
 Query the value of the 100Hz system timer. More...
 
uint8_t neo_system_key_status (char key)
 Query the state of the specific keyboard key. More...
 
void neo_system_credits (void)
 Print the Neo6502 project contributors. More...
 
void neo_system_serial_update (void)
 Update the serial command handler. More...
 
void neo_system_locale (const char *locale)
 Set the locale code. More...
 
void neo_system_debug_putc (char ch)
 Write a character to the debug port. More...
 
void neo_system_version (neo_version_t *version)
 Retrieve the Neo6502 version. More...
 

Typedef Documentation

◆ neo_version_t

typedef struct neo_version neo_version_t

Function Documentation

◆ neo_api_error()

uint8_t neo_api_error ( void  )

Return the error code, if any.

Returns
Non-zero if an error has occured.

◆ neo_system_credits()

void neo_system_credits ( void  )

Print the Neo6502 project contributors.

◆ neo_system_debug_putc()

void neo_system_debug_putc ( char  ch)

Write a character to the debug port.

Parameters
chCharacter to write.

◆ neo_system_key_status()

uint8_t neo_system_key_status ( char  key)

Query the state of the specific keyboard key.

Parameters
keyKey to query.
Returns
Key status.

◆ neo_system_locale()

void neo_system_locale ( const char *  locale)

Set the locale code.

Parameters
localeLocale code, for example "EN" or "FR".

◆ neo_system_serial_update()

void neo_system_serial_update ( void  )

Update the serial command handler.

◆ neo_system_timer()

long neo_system_timer ( void  )

Query the value of the 100Hz system timer.

Returns
Current system timer value.

◆ neo_system_version()

void neo_system_version ( neo_version_t version)

Retrieve the Neo6502 version.

Parameters
versionPointer to neo_version_t structure.