News for hackers. Stuff that matters.
Re:Easy 6502 by rahimnathwani on Monday May 30, 2022 @02:36PM (#31562104)
Haha these are really interesting.

It seems to program with such a reduced instruction set requires one to be either a genius or a computer (i.e. generated code). I'm neither :(

Re:Easy 6502 by jacquesm on Monday May 30, 2022 @03:02PM (#31562408)
Either that, or a compiler with such an instruction set as the target.

For instance:

https://github.com/arthaud/c2bf

It seems like this is a frivolous subject, but it is actually quite enlightening to realize just how little is required to get something that computes, it changes how you view the whole concept of computation.

Re:Easy 6502 by pkaye on Tuesday May 31, 2022 @12:55AM (#31566241)
Someone wrote a C compiler that generates code using only x86 MOV instructs.

https://github.com/xoreaxeaxeax/movfuscator