mirror of
https://git.soft.fish/val/MicroCorruption.git
synced 2024-11-23 08:35:58 +00:00
22 lines
585 B
C
22 lines
585 B
C
|
#ifndef CHERNOBYL_STDLIB_H
|
||
|
#define CHERNOBYL_STDLIB_H
|
||
|
|
||
|
#include "chernobyl_types.h"
|
||
|
|
||
|
// Standard library functions
|
||
|
// These use MSPGCC calling convention:
|
||
|
// https://www.ti.com/lit/an/slaa664/slaa664.pdf?ts=1659422621072
|
||
|
// ( Or see https://nhivp.github.io/msp430-gcc/2018-07-20/function-calling-convention )
|
||
|
void *_malloc (u16 size);
|
||
|
void _free (void *ptr);
|
||
|
u16 _putchar (char c);
|
||
|
i16 _getchar ();
|
||
|
void _puts (const char *s);
|
||
|
void _getsn (char *__restrict buf, u16 length);
|
||
|
int _strcmp (const char *s1, const char *s2);
|
||
|
void INT (u16 interrupt);
|
||
|
|
||
|
void swpb (u16 *word);
|
||
|
|
||
|
#endif
|