Subversion Repositories Shiroi

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8 nishi 1
/* $Id: basic.c 19 2024-08-29 07:16:04Z nishi $ */
2
 
18 nishi 3
#include "dri/text.h"
8 nishi 4
 
5
unsigned char basicbuffer[1024 * 30];
6
 
7
void basic(void){
8
	clear();
9
 
10
	putstr("Shiroi Microcomputer BASIC\r\n");
19 nishi 11
	putstr("Copyright 2024 by Nishi\r\n");
8 nishi 12
	cursor();
13
	while(1){
12 nishi 14
		char c = agetch();
8 nishi 15
		if(c == '\n'){
12 nishi 16
			killcursor();
8 nishi 17
			putstr("\r\n");
12 nishi 18
		}else if(c != 0){
19
			killcursor();
8 nishi 20
			putchar(c);
21
		}
22
		cursor();
23
	}
24
}