Search found 171 matches

by slembcke
Sat Mar 09, 2019 8:28 am
Forum: Newbie Help Center
Topic: Opcode decoding for disassembler
Replies: 18
Views: 11958

Re: Opcode decoding for disassembler

I made a debugger that ran on the NES a couple years ago as a quick project to remind myself how 6502 assembly worked. The easiest way I could think to implement it was using a bunch of tables. Not terribly efficient or compat, but it was really easy. https://gist.github.com/slembcke/4b746cb71d435f1...
by slembcke
Thu Mar 07, 2019 9:11 pm
Forum: NESdev
Topic: have you ever used recursion on the NES?
Replies: 23
Views: 11873

Re: have you ever used recursion on the NES?

Oh, sorry maybe I was drawing that off topic. Well, not really. I guess my earlier point was that I often like recursive code for being concise and compact even though I know it's not always the most performant. Sometimes I even write it in interpreted languages. ;) While I do quite enjoy code golf...
by slembcke
Thu Mar 07, 2019 10:23 am
Forum: NESdev
Topic: have you ever used recursion on the NES?
Replies: 23
Views: 11873

Re: have you ever used recursion on the NES?

While a more efficient in-place version of QuickSort is more code, there is going to be a chunk of it that looks fundamentally similar to that Haskell version. Rewriting it to be purely iterative would be... hard. I mean you'd basically be emulating what a call stack just gives you as syntax in your...
by slembcke
Wed Mar 06, 2019 10:59 am
Forum: NESdev
Topic: have you ever used recursion on the NES?
Replies: 23
Views: 11873

Re: have you ever used recursion on the NES?

Eh, I could point out plenty of examples of recursion in my non-NES projects for graph or tree algorithms. Realistically all of them are not feasible on the NES or 8 bit micros in general because they are for handling fairly large datasets. The code could be considerably more compact by using simple...
by slembcke
Wed Mar 06, 2019 10:18 am
Forum: General Stuff
Topic: Any modern systems with just have a CPU and a frame buffer?
Replies: 27
Views: 16937

Re: Any modern systems with just have a CPU and a frame buff

Is this framebuffer just normal RAM, or is it a frame buffer that omits color 0 writes? Not sure I understand the question. It's Linux, so you just mmap() /dev/fb (or something like that, I don't really remember off the top of my head) and treat it like regular memory. Where you running a custom OS...
by slembcke
Tue Mar 05, 2019 10:03 am
Forum: General Stuff
Topic: Any modern systems with just have a CPU and a frame buffer?
Replies: 27
Views: 16937

Re: Any modern systems with just have a CPU and a frame buff

psycopathicteen wrote:Is this framebuffer just normal RAM, or is it a frame buffer that omits color 0 writes?
Not sure I understand the question. It's Linux, so you just mmap() /dev/fb (or something like that, I don't really remember off the top of my head) and treat it like regular memory.
by slembcke
Tue Mar 05, 2019 9:54 am
Forum: Homebrew Projects
Topic: I come bearing SEO for your cc65/ca65 open source projects
Replies: 15
Views: 15598

Re: I come bearing SEO for your cc65/ca65 open source projec

Sure why not. Critical Match was made entirely with the cc65 toolchain. Mixed C and assembly. Everything is on GitHub.
by slembcke
Mon Mar 04, 2019 8:41 am
Forum: General Stuff
Topic: Any modern systems with just have a CPU and a frame buffer?
Replies: 27
Views: 16937

Re: Any modern systems with just have a CPU and a frame buff

psycopathicteen wrote:This one?
This one: https://en.wikipedia.org/wiki/Macintosh_Quadra_650

Maybe more to the OPs question. You can certainly set an RPi up to operate in framebuffer mode, and that definitely has enough CPU power to do all sorts of fancy framebuffer style graphics.
by slembcke
Mon Mar 04, 2019 8:24 am
Forum: NESdev
Topic: have you ever used recursion on the NES?
Replies: 23
Views: 11873

Re: have you ever used recursion on the NES?

I use recursion all the time (not on the NES), it's easy to make compact and reasonably efficient code that handles an unknown number of items. Non-tail recursive stuff is always going to be faster with an iterative version though, and knowing that the code won't have a stack overflow is nice to kno...
by slembcke
Sun Mar 03, 2019 6:42 pm
Forum: General Stuff
Topic: Any modern systems with just have a CPU and a frame buffer?
Replies: 27
Views: 16937

Re: Any modern systems with just have a CPU and a frame buff

Probably not much? I remember playing smooth 60 fps games in 800x600/8bpp on a 30 Mhz 68k Mac with no hardware acceleration. 256x240 is ~1/8th as many pixels.
by slembcke
Wed Feb 27, 2019 10:06 am
Forum: SNESdev
Topic: 65816 C compilers
Replies: 24
Views: 13700

Re: 65816 C compilers

Yeah... I mean I kinda get his whole shtick, but it doesn't really add up to me. It won't be more accessible than a real 8-bit unless a *ton* of documentation/tools gets made for it. It won't be more available than a real 8-bit unless they sell millions of them. It's not going to be more recognizabl...
by slembcke
Tue Feb 19, 2019 2:15 pm
Forum: General Stuff
Topic: Porting my tools to C or C++
Replies: 29
Views: 16054

Re: Porting my tools to C or C++

Is there a particular reason to avoid Cygwin? I've had a few people respond with utter revulsion to the idea of it, but it makes it pretty trivial to install most unix tools painlessly in a couple minutes including GCC, Make, Python, etc. It even puts it everything in a single directory so you can c...
by slembcke
Tue Feb 19, 2019 1:28 pm
Forum: Homebrew Projects
Topic: Project Blue: Full version. LIVE on Kickstarter!
Replies: 29
Views: 32643

Re: Project Blue: Full version news thread

I'm curious what your thoughts are. :o Hmm. As a programmer. I would have made tools to take the finished levels and build the metatile sets, then find out that it causes more problems than it solves. I'd still have no idea what to make or how to make it. Not sure I would recommend it as a design s...
by slembcke
Tue Feb 19, 2019 12:52 pm
Forum: Newbie Help Center
Topic: Using Windows on a Mac? Or should I just buy a Windows comp?
Replies: 9
Views: 7760

Re: Using Windows on a Mac? Or should I just buy a Windows c

VMWare Fusion is expensive, but I prefer it to Vritual Box (which can be hit or miss).

In the last year or so I've been running most Windows stuff in Wine on my Linux machine. Easier to move over one chair instead of actually booting Windows on either machine. lol
by slembcke
Tue Feb 19, 2019 12:46 pm
Forum: General Stuff
Topic: Porting my tools to C or C++
Replies: 29
Views: 16054

Re: Porting my tools to C or C++

Eh. I get pretty annoyed when I need to install yet another copy of visual studio on my Windows machine for some project. That crap is huge. The last contract I worked on targeted a couple of consoles and I cleaned up almost a hundred GB of SSD space deleting those tools. Ridiculous. I get why peopl...