News for hackers. Stuff that matters.
Re:The NES Homebrew Scene by pjmlp on Thursday April 12, 2018 @12:59PM (#16822807)
Not necessarily, there are hundreds of embedded devices that can be programmed just like in the old days.

Arduino, ESP286, ESP32, <pick your own flavour>.

And since we are in the context of games and Nintendo, something like Arduboy.

https://arduboy.com

Re:The NES Homebrew Scene by zokier on Thursday April 12, 2018 @03:56PM (#16824361)
> Arduino, ESP286, ESP32, <pick your own flavour>.

Both the Arduino libs and Espressif SDK are fairly big chunks of code.

Yes, you can program AVRs without libs too, but you did specifically say Arduino. It is also my understanding that ESPs are both bit obscure and fairly complex beasts to be managed without SDK.

While there are still some nice cases of simplicity in the embedded world, the complexity and layers of libraries and frameworks model is encroaching there too.

Re:The NES Homebrew Scene by Lerc on Thursday April 12, 2018 @07:38PM (#16825890)
Here's a sneak peek of something I'm working on

http://fingswotidun.com/avr/AvrAsm/Testbed/

It's pretty much a project to scratch the itch being described in this thread. It gives you an in-broswer 8-bit AVR based fantasy console and Assembler.

Re:The NES Homebrew Scene by pjmlp on Friday April 13, 2018 @02:17AM (#16827497)
It looks quite cool.
Re:The NES Homebrew Scene by s_m_t on Thursday April 12, 2018 @04:34PM (#16824698)
The core of the esp-idf is like a wrapper + a tiny bit of logic over the registers, there is a ton of extra stuff packed in there but you don't need to use it if you don't want to and it is pretty clearly separated in the source directory. I really like it because it gets out of my way when I don't want it, and when I do want it there is usually something there to help.
Re:The NES Homebrew Scene by falcrist on Thursday April 12, 2018 @01:19PM (#16822996)
Even worse than that, people still use legacy devices like 8051 MCUs in modern products. I'm currently working on an assembly codebase for a SiLabs part.

Like... Please move to an ARM MCU with a C codebase.

Re:The NES Homebrew Scene by magduf on Thursday April 12, 2018 @03:07PM (#16823953)
An ARM might be overkill (and a bit expensive) for something that can be done with an 8051. A better choice might be something like an Atmel AVR or Microchip PIC(16 or 32 probably). Those are dirt-cheap, and specifically designed for microcontroller applications with features like on-board ADCs, comparators, timers, GPIOs, etc.
Re:The NES Homebrew Scene by morio on Thursday April 12, 2018 @04:15PM (#16824536)
I hear this argument a lot in the EE community. Yet, the cheapest 8051 part in single quantities on DigiKey: $0.43. Cheapest ARM Cortex-M0 part on DigiKey: $0.47. I'll take the ease of development and features on ARM for $0.05. You can develop without proprietary development environments. I do my development with a basic gcc+make setup.

Of course you can pick up old parts which fell off a truck for cheaper but I'd rather not do that when I depend on these parts for many years to come.

Re:The NES Homebrew Scene by janekm on Thursday April 12, 2018 @04:29PM (#16824659)
The cheaper 8051s aren't on digikey (they are usually integrated into something like the custom MCU used for a pregnancy test or tooth brush), and $0.05 is very worth it if you are making 1000000.
Re:The NES Homebrew Scene by vardump on Friday April 13, 2018 @01:04AM (#16827241)
8051 is a complete overkill for a pregnancy test or a toothbrush.

That's why those applications use less known 4-bit processors.

Re:The NES Homebrew Scene by pkaye on Thursday April 12, 2018 @03:01PM (#16823895)
There is C available for an 8051. The Keil 8051 compiler (now owned by ARM) was pretty good and it had a nice GUI environment. The 8051 is pretty good for certain tasks but when you push it beyond the limits, your effort switches from solving the core problem to managing memory and micro optimization to make things work. Meanwhile with an ARM MCU you don't have to worry about a lot of things. I once spent a couple days optimizing a 32-bit divide for an 8051 to squeeze a couple % improvement in product performance.
Re:The NES Homebrew Scene by jdblair on Thursday April 12, 2018 @07:34PM (#16825872)
You can program 8051 in c using tinycc. It functions great as an assembler as well. You can structure the parts that must be in assembly as c functions using inline assembly. Very convenient!

Using c does come at the cost of some code compactness, but you can selectively optimize as the need arises.

Re:The NES Homebrew Scene by pjmlp on Thursday April 12, 2018 @01:53PM (#16823269)
Well, if it is an ARM MCU, Basic, Pascal, Java, C++, Oberon, Ada and Rust are also possible options. :)