summaryrefslogtreecommitdiffstats
path: root/sw/z80/kernel/include/login.h
blob: 5fa4b5eb136a598fd8f76695e6a845541541875c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef LOGIN_H
#define LOGIN_H

#include "types.h"

#define LOGIN_PC    // TODO find an address in ROM, to perform jumps

#define PWD_ADDR // TODO find an address in ROM, password
#define PWD_SIZE 8

/*
*   It returns 1 if succeded, otherwise 0
*/

int8_t authenticate(const char *pwd);

/*
*   It sets the password in the ROM space, maximum 8 characters
*/

void set_pwd(const char *pwd);

#endif