Search found 515 matches

by Jarhmander
Fri Aug 21, 2020 8:30 am
Forum: General Stuff
Topic: Strategies for implementing macro functionality in assemblers
Replies: 18
Views: 10942

Re: Strategies for implementing macro functionality in assemblers

the string substitution, just stack alloc the temp buffer, that should easily handle every thing a sane person would through at a 6502 assembler. So make a large buffer, then start from the back and expand as you need to doing find replaces. Keep the src and convert one into the buffer going forwar...
by Jarhmander
Thu Aug 20, 2020 2:46 pm
Forum: General Stuff
Topic: Strategies for implementing macro functionality in assemblers
Replies: 18
Views: 10942

Re: Strategies for implementing macro functionality in assemblers

You seem to worry too much about optimizations at this time; even worse, you're worrying about how to manage memory down to the macro-handling code. Your time will be much better spent on how to structure things and separate concerns. Strings, for instance, are best managed in objects with a minimal...
by Jarhmander
Wed Aug 19, 2020 4:39 am
Forum: NESdev
Topic: Questions about NES programming and architecture
Replies: 143
Views: 34140

Re: Questions about NES programming and architecture

Controllerhead wrote:
Tue Aug 18, 2020 7:39 pm
Image
Image
by Jarhmander
Sun Aug 02, 2020 6:29 am
Forum: General Stuff
Topic: Making "Good" Assembly Code
Replies: 73
Views: 27812

Re: Making "Good" Assembly Code

Two pages ago, someone asked for a CPU with a math-like syntax (or C-style syntax), instead of a "COBOL" like syntax (oops, mixing things up with the other thread). Here it is, my friends: CSR's Kalimba processor . Just look at the assembly code, it really looks like C at times. Not too surprisingly...
by Jarhmander
Wed Jul 22, 2020 4:28 am
Forum: Reproduction
Topic: Nothing left
Replies: 12
Views: 5714

Re: Giving up sale

That's a bummer. I hope you get better.

You have some fine stuff, but I'm in Canada.
by Jarhmander
Wed Jul 22, 2020 4:17 am
Forum: Reproduction
Topic: Nothing left
Replies: 12
Views: 5714

Re: Giving up sale

What's up, dude? Your health problems aren't too serious, are they?
by Jarhmander
Fri Jul 03, 2020 6:11 am
Forum: NESemdev
Topic: Mesen - NES Emulator
Replies: 911
Views: 480847

Re: Mesen - NES Emulator

I've been having problems with clang builds being crashy. Extra crashy if compiled with -O3, or pgo, but still crashy (and slower than real-time) even at -O0. Mostly in the debugger. A gcc build seems ok. Since this sounds like "compiler bug" I don't even think you're the right person to mention th...
by Jarhmander
Thu Jun 25, 2020 4:51 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 190
Views: 85673

Re: VBCC Optimizing C-compiler now supports NES

Wait, two C compilers released less than a week apart? What's this, the year of the C compilers? That being said, that's awesome.

I know some members here would like to see some code examples, like what the equivalent of a hand coded memcpy in C looks like in assembly once compiled.
by Jarhmander
Tue Jun 16, 2020 8:18 am
Forum: Newbie Help Center
Topic: Hello, I'm back, still need assistences
Replies: 99
Views: 25088

Re: Hello, I'm back, still need assistences

I can't agree more with this. Programming is something you learn by doing it. It really helps when you have some environnement where you can freely experiment and do things that works or that crashes and burns — both are valuable experience. Back in college, I learned assembly (self-taught) on PIC m...
by Jarhmander
Tue Jun 02, 2020 4:47 am
Forum: SNESdev
Topic: Gauss Table Creation
Replies: 36
Views: 27834

Re: Gauss Table Creation

Rounding? What the values look like?
by Jarhmander
Thu May 07, 2020 5:02 am
Forum: General Stuff
Topic: What code editor do you use?
Replies: 25
Views: 16651

Re: What code editor do you use?

Vim. The first thing I do when using a new IDE is to find a vim plugin. The one in CLion is decent, though I still edit files with vim when using this IDE because there are things it does way better that anything.
by Jarhmander
Thu May 07, 2020 4:50 am
Forum: NESemdev
Topic: Mesen - NES Emulator
Replies: 911
Views: 480847

Re: Mesen - NES Emulator

Simple question: why is SDL not used on Windows? Is it because it's harder to integrate into window controls? I ask because SDL should be usable on Windows and there would be no need to maintain 2 different rendering codes.
by Jarhmander
Tue Mar 31, 2020 8:27 pm
Forum: Newbie Help Center
Topic: Bit reversing
Replies: 7
Views: 3008

Re: Bit reversing

Let's not forget that bit reversing the frame counter can be useful to allow subpixel velocities without having to store the subpixel position, as explained here.
by Jarhmander
Tue Feb 04, 2020 7:30 pm
Forum: Newbie Help Center
Topic: 8x16 and whatever else unreg wants to know
Replies: 1567
Views: 479793

Re: 8x16 and whatever else unreg wants to know

Thus I won't go into detail about it. So much for completeness... I honestly have no idea what you're referring to, so I can't even research on my own. Don't worry, he's just talking about the SO (set overflow) pin that exists on the stock 6502. It's most known as one obscure feature the C64 CBM dr...
by Jarhmander
Sun Jan 26, 2020 8:21 am
Forum: NESdev
Topic: Undesired Jail bars on French NES and checkerboard pattern
Replies: 45
Views: 24555

Re: Undesired Jail bars on French NES and checkerboard pattern

lidnariq wrote:
Sat Jan 25, 2020 12:34 pm
What does the 26,06 mhz crystal on the nes motherboard do?
"Everything".
Image