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 KingdomPosts: 6798 |
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 KingdomPosts: 2129 |
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 KingdomPosts: 6798 |
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 KingdomPosts: 2129 |
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: BrazilPosts: 82 |
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 KingdomPosts: 2129 |
@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 KingdomPosts: 2129 |
is integer basic for esp32 better than no basic for esp32? |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6798 |
@ 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 KingdomPosts: 3804 |
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 KingdomPosts: 2129 |
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 KingdomPosts: 2129 |
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 KingdomPosts: 6798 |
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 |