XORCYST question

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

Post Reply
RedComet
Posts: 12
Joined: Mon Jan 10, 2005 7:57 pm
Location: Kentucky
Contact:

XORCYST question

Post by RedComet »

I couldn't find this any where in the documentation, so I figured I'd try here.

Can anyone tell me what the "-$" part means in the below?

Code: Select all

node_0_0	.db node_0_1-$, node_1_1-$+1
node_0_1	.db node_0_2-$, node_1_2-$+1
node_1_1	.db node_2_2-$, node_3_2-$+1
node_0_2	.db node_0_3-$, node_1_3-$+1
node_1_2	.db node_2_3-$, node_3_3-$+1
I saw the $ very briefly mentioned in the documentation, but SnowBro didn't go into much detail on its usage, nor provide any examples. I'm just short of putting the above look-up table into the rom (and testing) on implementing huffman compression, but XORCYST doesn't want to work on my computer (I'm guessing it has to do with XP -_-') I need to understand how this works well enough to throw something together to output the right data.

Any help is much appreciated. :)
crossraleigh
Posts: 9
Joined: Tue Nov 16, 2004 5:28 pm
Contact:

Post by crossraleigh »

- is the subtraction operator; $ is the current PC. You should read Source code collection if you haven't already.
Post Reply