Search found 1982 matches

by DRW
Sat Aug 22, 2020 1:30 pm
Forum: Newbie Help Center
Topic: cc65 - Are % and * supported?
Replies: 27
Views: 4487

Re: cc65 - Are % and * supported?

It's not just theoretical. Some compilers other than cc65 indeed optimize access to const unsigned char and const int values whose definition is in the same translation unit. That some compilers can provide more optimization than others is of course a given and you should always check which compile...
by DRW
Sat Aug 22, 2020 8:49 am
Forum: Newbie Help Center
Topic: cc65 - Are % and * supported?
Replies: 27
Views: 4487

Re: cc65 - Are % and * supported?

Yeah, yeah, I don't "get" it and it all "goes over my head" etc. etc. blah blah blah. Have fun restricting yourself from a very useful language feature just because of some phantom optimization that some imaginary compiler which only exists in your head might not optimize. After all, we're not progr...
by DRW
Wed Aug 19, 2020 12:00 am
Forum: Newbie Help Center
Topic: cc65 - Are % and * supported?
Replies: 27
Views: 4487

Re: cc65 - Are % and * supported?

Assigning an INT to a CHAR should always be a warning (enums are INTs). Just because you can, doesn't mean you should. If we're talking about variables, then yes, you're right: Always use an explicit cast when converting from larger to smaller. But we're talking about constants here. Compile-time v...
by DRW
Tue Aug 18, 2020 1:20 pm
Forum: Newbie Help Center
Topic: cc65 - Are % and * supported?
Replies: 27
Views: 4487

Re: cc65 - Are % and * supported?

Not only is that bad form (and that should generate a warning) Why should it be bad form? And which compiler ever created a warning here? Having auto-incrementing values can be quite useful, even if you don't have a dedicated type for the enums. but It will technically hurt performance if you do so...
by DRW
Tue Aug 18, 2020 4:56 am
Forum: Newbie Help Center
Topic: cc65 - Are % and * supported?
Replies: 27
Views: 4487

Re: cc65 - Are % and * supported?

Maybe there is a reason behind is logic. For example, when using enum with gcc, the C standard says that an enum is promoted to an int. You can still use enum { A, B, C, }; and apply this to an unsigned char and it isn't any different as if you applied a number. There's no need to define A, B and C...
by DRW
Mon Aug 17, 2020 5:22 pm
Forum: Newbie Help Center
Topic: cc65 - Are % and * supported?
Replies: 27
Views: 4487

Re: cc65 - Are % and * supported?

https://github.com/ilmenit/CC65-Advanced-Optimizations Can anybody tell those authors that even if you don't want to use enum types, there's still no reason to replace the comfortable, automatically-incrementing enum constants with manual defines? On 6502 use of constant values is faster than use o...
by DRW
Sun Jul 26, 2020 4:59 am
Forum: phpBB Issues
Topic: Anti-spam proposal
Replies: 30
Views: 6703

Re: Anti-spam proposal

I'm against approval of valid posts. Why should new users suffer because of spammers? If I register at a forum and post something and then the board shows me that my post won't be visible for a while, I'd be immetiately pissed. I'm for the guest moderator approach: Two people with a minimum post cou...
by DRW
Sat Jul 25, 2020 5:25 pm
Forum: NES Graphics
Topic: Honest box art
Replies: 40
Views: 8477

Re: Honest box art

I'm just saying that Sudoku gives me less enjoyment because it's a theme-less game (which is true). [...] I wasn't saying that I had thought of Sudoku not having a story either. And that's the whole contradiction: You can't remember ever actually thinking about Sudoku being a story-less game. And y...
by DRW
Sat Jul 25, 2020 4:23 am
Forum: NES Graphics
Topic: Honest box art
Replies: 40
Views: 8477

Re: Honest box art

Bikeshedding only seems to refer to wasting time on unimportant details instead of concentrating on the actual main issue. Since we don't have a main issue here that needs to be solved and is hindered by our meta discussion, I don't see a problem. In fact, this discussion has probably more real-life...
by DRW
Fri Jul 24, 2020 5:57 pm
Forum: NES Graphics
Topic: Honest box art
Replies: 40
Views: 8477

Re: Honest box art

Have I ever seriously thought about Sudoku being a theme-less game? Perhaps I have, it's not really an unlikely thought or anything, but I have no memory of it so I can't say I have. And I haven't said that I have, have I? Well, I asked you specifically: Does this mean you get less enjoyment out of...
by DRW
Sat Jul 18, 2020 5:41 pm
Forum: NES Graphics
Topic: Honest box art
Replies: 40
Views: 8477

Re: Honest box art

why would I lie about my own opinion of a matter that means little to anyone else? I don't think you lie about your opinion in general. I just think that you twist the truth when you make it sound like you actually thought about Sudoku not having a plot. I'm pretty convinced that this discussion he...
by DRW
Sat Jul 18, 2020 4:40 am
Forum: NES Graphics
Topic: Honest box art
Replies: 40
Views: 8477

Re: Honest box art

You are putting the words in my mouth. I meant that a game abstract enough like Sudoku is a less inspiring game than a game like Backgammon or Chess. About putting words in your mouth: When I sarcastically said: As if you ever looked at Sudoku before this discussion and thought : "Man, I really wis...
by DRW
Wed Jul 15, 2020 5:03 pm
Forum: NES Graphics
Topic: Honest box art
Replies: 40
Views: 8477

Re: Honest box art

You seriously wanna tell me, completely without any hint of irony, that you looked at a sudoku when they became popular and you literally thought to yourself: "Man, I wish they would have made up a little story for these. Would have made the act of putting the correct numbers in the boxes a much bet...
by DRW
Mon Jul 13, 2020 3:06 pm
Forum: NES Graphics
Topic: Honest box art
Replies: 40
Views: 8477

Re: Honest box art

Pokun wrote:
Mon Jul 13, 2020 1:56 am
Of course it's a loss.
Yeah, sure. As if you ever looked at Sudoku before this discussion and thought: "Man, I really wish they would have added a storyline for this".
by DRW
Sun Jul 12, 2020 2:39 am
Forum: NESdev
Topic: Correct way to read the VRAM
Replies: 12
Views: 2316

Re: Correct way to read the VRAM

I wanted to do it that but because I was using the 8x8 pixels tile, I thought it was a lot of RAM waste but if there is no other way, then I will follow your suggestion If the collision check is just walkable vs. non-walkable (and not stuff like spikes who take energy away or swamp that makes you w...