Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DevilStuff
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
DevilStuff
2y ago
It's not really UB, I've seen games do things like this before. Basically, all data processing instructions can now act as branch instructions, simply by having their dest be PC. Bowser's Inside Story on the DS for example li
2.
▲
by
DevilStuff
2y ago
No worries, I'm glad you brought it up so I could amend the article to be more respectful to those that I look up to :)
3.
▲
by
DevilStuff
2y ago
Anyway, I took the time to rewrite that paragraph a bit to be more respectful. :P Hopefully that'll come off better. The website take a few minutes to update.
4.
▲
by
DevilStuff
2y ago
Ah I miscommunicated, I still think PC can and should be used in places like the operand of an LDR / ADD. It's using it as the output of certain instructions (and allowing it to be used as such) that I take issue with. ARMv4T al
5.
▲
by
DevilStuff
2y ago
Hey, I'm the author, sorry it came off that way, I was really just poking fun. I should've definitely phrased that better! But no, I really think that making the program counter a GPR isn't a good design decision - there'
6.
▲
by
DevilStuff
2y ago
In the GBA scene, people didn't actually tend to exploit the carry flag at all. If there was any anti emulation, it was usually flashcart related or cpu timing related.
7.
▲
by
DevilStuff
2y ago
The big issue is that it doesn't really need to be a GPR. You never find yourself using the PC in instructions other than in, say, the occasional add instruction for switch case jumptables, or pushes / pops. So it ends up wasting
8.
▲
by
DevilStuff
2y ago
Better code, yeah I agree. It's way more easily understandable. At least for me though, 99% of my bash use is stuff that will never be seen by anyone else, so the simpler keystrokes one may prove useful. Maybe if I get used to it :)
9.
▲
by
DevilStuff
4y ago
Why D? Why not C / C++?