Updated the firmware and ordered my PCB and parts!
In this devlog, I’ve added a new function to my custom BASIC interpreter for my development board, and finally sent my PCB for manufacturing!
It took me quite a while to write the random number function that the old BASIC interpreters used to have: RND. I did many rounds of trial and error to finally create a working code (the previous code was returning either nothing or throwing compiler errors due to data types):
printf("%f\n", (float)rand() / (float)RAND_MAX);
Here’s a sample program you could run that generates a random number, stores it in a variable and prints it:
10 let x = rnd
20 lsvar
30 print x
Now, I’ll be working on support for comments in my interpreter and wait for my parts to come. I can’t wait to assemble my macropad + dev board!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.