Search found 183 matches

by Garth
Fri Jul 31, 2020 1:20 am
Forum: General Stuff
Topic: Making "Good" Assembly Code
Replies: 73
Views: 3050

Re: Making "Good" Assembly Code

Move from A to B is technically correct but not something you would say "Move from A to B" is very normal in English. "Maths" however is not a word we use in the U.S.. (I think England uses it though.) In the U.S., it's always "math," like "dirt" or "air," never plural. 6502 is based on 6809 which ...
by Garth
Mon Jul 27, 2020 9:16 pm
Forum: phpBB Issues
Topic: Anti-spam proposal
Replies: 30
Views: 1392

Re: Anti-spam proposal

User-level bans for spammers are meaningless, only IP blocks and deleting users means anything. I should have been more complete in my post right before that. phpBB forum mods can ban a user by name and IP address, and, if they can get an email address from a site like stopforumspam.com, ban the em...
by Garth
Mon Jul 27, 2020 1:28 am
Forum: phpBB Issues
Topic: Anti-spam proposal
Replies: 30
Views: 1392

Re: Anti-spam proposal

Dwedit wrote:
Mon Jul 27, 2020 12:23 am
Mods can't ban, only admins can do that.
Mods can ban, but not delete the user.
by Garth
Sun Jul 26, 2020 2:51 pm
Forum: phpBB Issues
Topic: Anti-spam proposal
Replies: 30
Views: 1392

Re: Anti-spam proposal

Now I've just gotten spam by private message, from Claytonpeect!! It's past time to do something drastic . I'm also a moderator on the 6502 CPU Family group where we have a question for applicants, about why they want in. This is to sort out those with a legitimate interest from those who just want ...
by Garth
Sat Jul 25, 2020 8:13 pm
Forum: phpBB Issues
Topic: Anti-spam proposal
Replies: 30
Views: 1392

Re: Anti-spam proposal

New (ab)users' posts should not show until they've had a few valid ones approved by moderators. Just one post may not be enough, as I'm a moderator or administrator on several other forums and I've seen newcomers come with bad intentions who don't know our subject matter so they copy and paste someo...
by Garth
Fri Jul 24, 2020 12:20 am
Forum: General Stuff
Topic: Making "Good" Assembly Code
Replies: 73
Views: 3050

Re: Making "Beautiful" Assembly Code

Macros do breed inefficiency MOV #0, $d020 MOV #0, $d021 If your assembler's macro capabilities allow varying numbers of parameters, you could say something like PUT 0, in, $D020, and, $D021 and it would give you an LDA #0 and follow it with two STA's. Or better, since they're consecutive addresses...
by Garth
Thu Jul 23, 2020 8:08 pm
Forum: General Stuff
Topic: Making "Good" Assembly Code
Replies: 73
Views: 3050

Re: Making "Beautiful" Assembly Code

It's weird but PUSH and POP seems to be the standard terms for stacks nowadays, despite PULL being the clear opposite of PUSH. "Pop" suggests a small explosion, something rupturing instantly and sending a high-pressure wave through the air. Pushing and pulling (and "popping" whatever that means) so...
by Garth
Wed Jul 22, 2020 11:59 pm
Forum: General Stuff
Topic: Making "Good" Assembly Code
Replies: 73
Views: 3050

Re: Making "Beautiful" Assembly Code

... MOV #1,$0400 ... Ah... first macro I wrote in NES programming experience and such a relief! :) store, store_addr, store_word, store_ppu_addr made 70% of 6502 assembler simplifications for me. :) I made mine a little more English-like: PUT 1, in, $0400 PUT is for literals. If I want to copy one ...
by Garth
Wed Jul 22, 2020 1:45 am
Forum: General Stuff
Topic: Making "Good" Assembly Code
Replies: 73
Views: 3050

Re: Making "Beautiful" Assembly Code

I wish I had thought of it in the mid-1980's! It would have saved a lot of work. Would it have been possible back then? I'm unfamiliar with how good 6502 assemblers were in their heyday. Not sure how old the Cross-32 assembler from your article is, but the site it's hosted on and its $99 price tag ...
by Garth
Tue Jul 21, 2020 12:41 am
Forum: General Stuff
Topic: Making "Good" Assembly Code
Replies: 73
Views: 3050

Re: Making "Beautiful" Assembly Code

Macros to the rescue. Really. You can raise the level of the language a lot, reducing source-code length, improving readability and maintainability, reducing bugs, and improving development time. In most cases, there will be zero penalty in run speed or memory taken, because the macros assemble exac...
by Garth
Fri Jun 19, 2020 12:29 am
Forum: Newbie Help Center
Topic: Hello, I'm back, still need assistences
Replies: 98
Views: 6397

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

So labels is NESDEV exclusive 6502 program created for community-made ASM of NES? Labels are used by all assemblers. Labels just give names that are meaningful to humans, to various places in memory, whether variables, tables, code, whatever. I almost understand this, but I keep losing words to des...
by Garth
Thu Jun 18, 2020 10:53 am
Forum: Newbie Help Center
Topic: Hello, I'm back, still need assistences
Replies: 98
Views: 6397

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

I also dislike the usage of parenthesis method for indirection in almost all 65x assemblers. That's one thing NESASM gets right . Parenthesis should be for higher order compile time calculations, and [] for indirection. JMP (label+4).. is that going to be assembled as indirection? The C32 assembler...
by Garth
Wed Jun 17, 2020 5:59 pm
Forum: Newbie Help Center
Topic: Hello, I'm back, still need assistences
Replies: 98
Views: 6397

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

Chapter 17 of the Eyes & Lichty programming manual mentioned earlier dedicates an entire page to diagramming every one of the addressing modes. It would be difficult for me to do any better than that. Every instruction has an op code. That's the first byte of the instruction, and in some cases, the ...
by Garth
Wed Jun 17, 2020 1:58 pm
Forum: Newbie Help Center
Topic: Hello, I'm back, still need assistences
Replies: 98
Views: 6397

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

I'm wondering what you mean about "There could be quite a few variations, depending on the addressing mode." In an effort to keep it simple (since you're just starting out), I'll give just one example, in the analogy of a treasure hunt, the game where you get a clue that tells you where to look for...
by Garth
Tue Jun 16, 2020 7:03 pm
Forum: Newbie Help Center
Topic: Hello, I'm back, still need assistences
Replies: 98
Views: 6397

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

Operands are the things you need in order to carry out an operation. For example, if you're faced with the task of opening the door to your house, the operands are the keys and the door, the things without which you can't possibly finish the task. So Operands are like... the "Actors" of existences ...