Live data from Hacker News

.NET for NES Game Console on 6502 Microprocessors

github.com

1–10 of 25 posts

Re: .NET for NES Game Console on 6502 Microprocessors

#3

    No runtime
    No BCL
    No objects or GC
    No debugger
    Strings are ASCII
I did not see the readme mention anything about bool/byte/char/short/int/long sizes or signed and unsigned. It can be quite a surprise to find yourself with 8 bit long longs! As some found with sdcc for gameboy.

Re: .NET for NES Game Console on 6502 Microprocessors

#4
This looks very much like "Hello World" in C, taking advantage of the latest C# features in 2023.

If you admit that it looks like C(99), what's "C#" about it then? This can probably be done with just about every C-syntax-derived language, which is why I think the title is a bit clickbaity; I was expecting some sort of highly-stripped-down CLR.

Re: .NET for NES Game Console on 6502 Microprocessors

#5

This looks very much like "Hello World" in C, taking advantage of the latest C# features in 2023. If you admit that it looks like C(99), what's "C#" about it then? This can probably be done with just about every C-syntax-derived language, which is why I think the title is a bit clickbaity; I was expecting some sort of highly-stripped-down CLR.

When I saw it only seems to support a 'main' I got disappointed.

If it could even get to 'method calls with ref structs' you would start getting into where I'd want to YOLO with it, maybe even use Nesticle to test for the irony.

Re: .NET for NES Game Console on 6502 Microprocessors

#6
Saw this make the runs on twitter a few weeks ago and was confused, I had assumed they had ported a limited run time by making a custom cart with a large prg rom, which seems like an amazing feat actually...whereas this is a 6502 compiler essentially with some limited functionality.

No shade btw, just seeing the title made me perhaps expect quite the effort while this is still a fun project of sorts.

Re: .NET for NES Game Console on 6502 Microprocessors

#7
post #3

No runtime No BCL No objects or GC No debugger Strings are ASCII I did not see the readme mention anything about bool/byte/char/short/int/long sizes or signed and unsigned. It can be quite a surprise to find yourself with 8 bit long longs! As some found with sdcc for gameboy.

The NES has 2K ram, where you can get carts with mappers that allow you to use prg as ram as well though, this is still limited. Also, the "stack" as it exists must fit on a page (256 bytes). Putting a runtime or sorts onto an NES itself is a big feat given this and requires a lot of manual twiddling.

Re: .NET for NES Game Console on 6502 Microprocessors

#9

This looks very much like "Hello World" in C, taking advantage of the latest C# features in 2023. If you admit that it looks like C(99), what's "C#" about it then? This can probably be done with just about every C-syntax-derived language, which is why I think the title is a bit clickbaity; I was expecting some sort of highly-stripped-down CLR.

The same way C23 on NES, isn't C proper, rather the macro assembler K&R C used to be.

Re: .NET for NES Game Console on 6502 Microprocessors

#10
post #8
post #2

I love seeing fun little projects like this

then you will love this https://www.reddit.com/r/csharp/comments/1c23y53/youtuber_ma...

Didn't see the video but doesn't that effectively mean that .NET was ported to DOS?
Post reply on HN