Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:52 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : The Development of the ESP32 S3 VGA (hi-res 16 bit)

     Page 2 of 2    
Author Message
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 01:23pm 01 Jul 2023
Copy link to clipboard 
Print this post

I like integer BASICs. I grew up with them because FP was either much to expensive (co-processor needed) or insanely slow (emulated using integers).

The Arduino IDE is the one thing that puts me off a lot of this stuff. I find it horrible to use and insanely huge for what it does. When your C drive is only 64MB it's the first thing you uninstall when space gets tight.
Edited 2023-07-01 23:23 by Mixtel90
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 02:28pm 01 Jul 2023
Copy link to clipboard 
Print this post

I code 328p and lgt328 with gcb. It links through avrdude.(The gcbstudio ide is cool).
no need for arduino ide.
Using Eris basic will be watching a youtube video for instructions how to set it up and fabgl. I want to try it but think if it's not as good as mmb pico then why. fun I guess.

The arduino ide does a lot it seems. internet, building.
Edited 2023-07-02 00:41 by stanleyella
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 03:18pm 01 Jul 2023
Copy link to clipboard 
Print this post

It's horses for courses, Stan. I get the feeling that Eris is designed more for game writing and less for interfacing. I may be wrong, never having tried it. Integers are fine for that - you can never plot half a pixel. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 04:58pm 01 Jul 2023
Copy link to clipboard 
Print this post

Mick sir. you can never plot half a pixel.
plot primitives from floats
   for count%=0 to 158
     line count%,old_samples!(count%),count%+1,old_samples!(count%+1),,rgb(black) 'erase old_sample
     line count%,samples!(count%),count%+1,samples!(count%+1),,rgb(white) 'draw new sample
   next count%

you're right but floats or integer the same so dim problemo
Edited 2023-07-02 03:02 by stanleyella
 
ice2642

Regular Member

Joined: 27/05/2023
Location: Brazil
Posts: 82
Posted: 06:39pm 01 Jul 2023
Copy link to clipboard 
Print this post

  Mixtel90 said  Eris is an integer BASIC. No floating point system at all. It looks very impressive! I'm rather tempted to get one of these boards just to run it. :)

If that's the Paul Robson I'm thinking of, he did a great Nascom emulator some years ago. :)


  stanleyella said  Gcbasic is integer only. It's sin*255 and cos*255 :). My basic compiler for zx spectrum was integer only. No floats is not that bad.
If it's the same board as I posted I might as well try it as it's doing nothing else.
I've never used the arduino ide before but I got free basic to build on rpi 4 in the terminal which I never used before, I just followed the instructions.


Ok,

I just don't understand why you're going to have to work to make a language, restricting it to integers only.

It would be the same as you owning a store, and buying a cash register that has no cents.

But to each his own, if there are people who like it, who I am to say it's bad, forget what I said about it being a strange language.

Best regards,
MMBasic 5.0707 on PicoMite VGA
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 07:10pm 01 Jul 2023
Copy link to clipboard 
Print this post

@ice2642
sir , floats to implement is a problem as is everything in a basic interpreter.
in this case it's 32bit not 8bit so think why not. maybe erin basic is retro :)
Integer basic is not a problem. mmbasic floats are new to me. I used to bytes and words.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 07:18pm 01 Jul 2023
Copy link to clipboard 
Print this post

  stanleyella said  @ice2642
sir , floats to implement is a problem as is everything in a basic interpreter.
in this case it's 32bit not 8bit so think why not. maybe erin basic is retro :)
Integer basic is not a problem. mmbasic floats are new to me. I used to bytes and words.


is integer basic for esp32 better than no basic for esp32?
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 08:19pm 01 Jul 2023
Copy link to clipboard 
Print this post

@ ice
The BASIC hasn't been simplified, at one time there were only integer BASICs unless you were seriously rich! :)

In this particular case the lack of floats isn't a problem as it's unlikely to be used for applications that need them. As I said, I suspect it's been designed for games, where plotting to the screen and generating music don't need floats - in fact you have to convert them to integers (or have it done automatically) anyway. Doing without FP makes the interpreter much simpler too.

Eris isn't being deliberately restricted, it just doesn't contain the FP routines that would take up space and slow it down unnecessarily. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 3804
Posted: 01:52pm 02 Jul 2023
Copy link to clipboard 
Print this post

For the ESP32 (or many another CPU), porting MMBasic would be much easier if it was more like so many other BASICs - i.e. no hardware support beyond very simple console I/O.

You'd more or less hand the C code to whatever C compiler was available (gcc most likely) and the port would largely be done.

The integer & floating point will usually be done by the C compiler (& its libraries).

However, a huge advantage of MMBasic is the I/O (& non-volatile storage e.g. flash), i.e. SPI, COM ports, BITBANG, ADC, gpios, RTC, graphics (with BLIT & frame buffers), interrupts, ability to change CPU speed, etc.  Sadly pretty much all of those are CPU-specific so need lots of code to be written for each port.

John
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 03:05pm 02 Jul 2023
Copy link to clipboard 
Print this post

Following guides how to use fabgl and basic with esp32 vga board looks difficult with unknown arduino ide.
https://www.hackster.io/sl001/a-vga-computer-based-on-esp32-and-fabgl-with-sound-graphics-976894

https://www.youtube.com/watch?v=FXp4WoD9i7E

makes me think how easy rpipico firmware is to set up and why bother with eps32... cos I got one doing nowt.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2129
Posted: 03:16pm 02 Jul 2023
Copy link to clipboard 
Print this post

On a sarcastic note, why not a compiled mmbasic for esp32? You guys could do that easy.  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 6798
Posted: 03:54pm 02 Jul 2023
Copy link to clipboard 
Print this post

Only a couple of thousand hours work for you, Stan. Please let us know when you've got it ready for us to test.

Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
     Page 2 of 2    
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024