Skip to content

Commit eec3e8b

Browse files
committed
v0.0.5
1 parent aa248f9 commit eec3e8b

File tree

6 files changed

+24
-3
lines changed

6 files changed

+24
-3
lines changed

assets/klaudInit.png

-121 Bytes
Loading

release_notes/v0.0.5.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# v0.0.5
2+
3+
Added features:
4+
* added commands.md
5+
* Now a document with all of the commands
6+
* Nicer looking ReadMe
7+
* Added a second confirmation message to klaud restart
8+
* fixed a lot of klaud haiku bugs
9+
* klaud plot point
10+
* Plotting points individually now supported (check commands.md)
11+
* started working on a linear regression command for klaud plot point
12+
* optimized math functions
13+
* A lot of bug fixes

src/kernel/libs/haikuu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void makeLine(int numSyl,int * struc) {
2020
int i;
2121
int numLet = 0;
2222
for (i=0;syl!=0;i++) {
23-
int newWord = randint(syl,1);
23+
int newWord = abs(randint(syl,1));
2424
if (newWord != 0) {
2525
syl = syl-newWord;
2626
if (syl >= 0 && newWord > 0) {

src/kernel/libs/math.c

+8
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,14 @@ void plotPoint(char * points, int yhi, int pltN) {
280280
}
281281
plot[1][1] = '+';
282282

283+
if (f > 21) {
284+
f = 21;
285+
}
286+
287+
if (x > 80) {
288+
x = 79;
289+
}
290+
283291
if (pltN == 1) {
284292
plot[f][x] = 'X';
285293
} else {

src/kernel/libs/stdio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ int rand(uint32_t *state) {
365365
}
366366

367367
int randint(int hi, int lo) {
368-
uint32_t seed = 69;
368+
uint32_t seed = 10;
369369
return (rand(seed)%((hi+1)-lo) + lo);
370370
}
371371

src/kernel/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void __attribute__((section(".entry"))) start(uint16_t bootDrive) {
1818
HAL_Initialize();
1919
clrscr();
2020
klaud_ascii();
21-
printf("\n Version -- 0.0.4: July 2023\n");
21+
printf("\n Version -- 0.0.5: Aug 2023\n");
2222
printf(" Welcome to KlaudOS\n");
2323
printf("> ");
2424
scroll(2);

0 commit comments

Comments
 (0)