-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathutils.h
31 lines (23 loc) · 791 Bytes
/
utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _UTILS_H
#define _UTILS_H
#include <stdint.h>
extern int8_t _ExitIfKeyPressed;
// PrintNumAt Flags
// bits 0-3 digits
// bit 6 fill leftzero
// bit 7 unsigned
#define NUM_UNSIGNED 0x80
#define NUM_LEFTZERO 0x60
#if 0
extern void PrintNumAt( uint8_t x, uint8_t y, int16_t n, uint8_t flags );
#else
extern void PrintNumAt( uint8_t x, uint8_t y, uint16_t n, uint8_t flags );
#endif
extern void PrintAt( uint8_t x, uint8_t y, unsigned char * msg );
extern int PrintAtDelay( uint8_t x, uint8_t y, unsigned char * msg, uint8_t delay );
#if 0
extern int8_t DelayFrames( uint8_t frames );
#endif
extern void PutSprite( uint8_t x, uint8_t y, uint8_t * spr, uint8_t wsize, uint8_t method );
extern void PutChars( uint8_t x, uint8_t y, uint8_t ch, uint8_t cnt, uint8_t method );
#endif