4 ms·
If you know x86, then 6502 should be easy... on the other hand, you'd have to be interested in making homebrew for legacy systems because there's nothing reall
by nubinetwork 2y ago
If you know x86, then 6502 should be easy... on the other hand, you'd have to be interested in making homebrew for legacy systems because there's nothing really new that uses it.
- richrichardsson 2y agoI know my way around m68k assembler, so in "theory" 6502 should be easy, but damn it's actually quite tricky. * way fewer registers to play with (understatement) * You want to mul/div? lol... * Logical Shift Left? Why do you want to do that? that's all I've come up against after a couple of hours last night, I'm sure there are a load more "problems" I'll face.
- tom_ 2y agoLogical shift left is covered by ASL.
- richrichardsson 2y agoAh, thanks, had missed that somehow!
- nubinetwork 2y agoYou know 68k, but 6502 is hard? I always figured it would be the other way around... doesn't the 68k have various MMU/"protected mode"-like stuff? Edit: i could also be confusing it with PPC.
- richrichardsson 2y agoMy 68k knowledge is from Amiga 500 days, no MMU to worry about there.
- chillingeffect 2y agoTrue. Ppl nostalgize aboutbthe 6502 but it's a PITA. Still i believe the answer toyour question is use a Macro Assembler. To collect dozens of library routines like sort, copies, fills, yoyos, etc. And work at that slightly higher level. I wish did that at the beginning of my career :) but nowadays theyre easy to find.
- larodi 2y agoThe implication in my riddled-with-typos-and-missing-words comment above was that it seems to be worth learning assembly for the CPU (of any kind), rather than obsolete language which has never had a top reputation. And hat it is within reach for children to do it. People did use BASIC to teach to children back in the day, but IMHO python and even damn JS is much more suitable for this challenge. I really find little benefit from revisiting C64 BASIC in 2024. That was my point.