Search found 11 matches

by Ypsilon
Mon Apr 05, 2010 5:49 am
Forum: Newbie Help Center
Topic: ASM6 Tuts
Replies: 15
Views: 8197

Here you have a post related to this topic: http://nesdev.com/bbs/viewtopic.php?t=6160 I'm begining too and still have to take the step to make the conversion between NESASM and ASM6 :P So that would be an interesting tutorial, since everyone seem to begin with NESASM, and at a certain point, start ...
by Ypsilon
Wed Mar 24, 2010 3:35 pm
Forum: Newbie Help Center
Topic: Moving a sprite!
Replies: 7
Views: 3108

tepples wrote:You guessed correctly that it has something to do with two's complement. When you subtract n on a 6502, you actually add 255-n. To make the subtraction work as expected, you need to set the carry so that you add 255-n+1 = 256-n = -n (mod 256).
Okey! That's perfect. Thanks everyone!
by Ypsilon
Wed Mar 24, 2010 3:18 pm
Forum: Newbie Help Center
Topic: Moving a sprite!
Replies: 7
Views: 3108

Okey thanks! But I really don't understand why. I know it has something to do with the two's complement, maybe the sign?
by Ypsilon
Wed Mar 24, 2010 2:51 pm
Forum: Newbie Help Center
Topic: Moving a sprite!
Replies: 7
Views: 3108

Ok sorry, these are the routines that move the sprite left/right and up/down. The quantmov variable is 2 or 1 whether the B button is down or not. But that's not the problem. That's just to make it run when B is pressed, and when you press it, it twices both directions. http://www.copypastecode.com/...
by Ypsilon
Wed Mar 24, 2010 2:21 pm
Forum: Newbie Help Center
Topic: Moving a sprite!
Replies: 7
Views: 3108

Moving a sprite!

Hello! I need some help with the task of moving a sprite. The problem is that, with some directions, the sprite moves faster than it should... I thing it has something to do with the carry flag, but I tried to CLC before any arithmetic operation to clear the carry bit, and it was still happening. Th...
by Ypsilon
Mon Mar 22, 2010 3:07 pm
Forum: Newbie Help Center
Topic: NESASM -> ASM6
Replies: 11
Views: 5566

Ok! Thanks!!
by Ypsilon
Mon Mar 22, 2010 2:18 pm
Forum: Newbie Help Center
Topic: NESASM -> ASM6
Replies: 11
Views: 5566

Okey so, from what I think I have understood, you need to initialize all the variables from the code, even the constants. Am I right? :oops:
by Ypsilon
Mon Mar 22, 2010 10:10 am
Forum: Newbie Help Center
Topic: NESASM -> ASM6
Replies: 11
Views: 5566

Re: NESASM -> ASM6

But I have discovered that it doesn't work properly, for example with .DB's (it doesn't initialize the variables with the value). No assembler will initialize variables for you. They reserve the memory locations, but it's up to you to put something meaningful at those locations. I'm talking about, ...
by Ypsilon
Mon Mar 22, 2010 7:17 am
Forum: Newbie Help Center
Topic: NESASM -> ASM6
Replies: 11
Views: 5566

NESASM -> ASM6

Hello everyone. I started a little time ago with NES programming, and I was using Nesasm. But I have discovered that it doesn't work properly, for example with .DB's (it doesn't initialize the variables with the value). So I'm going to start using asm6, and I have to make some changes with my code. ...
by Ypsilon
Sun Mar 21, 2010 4:32 pm
Forum: Newbie Help Center
Topic: Beginning the long road to NES programming!
Replies: 21
Views: 5797

Welcome, I'm new to this world too. I find really interesting the thing about the "By newbies, for newbies" tutorial because when you are begining, you are the perfect one to make a tutorial. Just because you are begining, and you are getting stuck with things that may seem stupid from the...
by Ypsilon
Sun Mar 21, 2010 3:38 pm
Forum: NESdev International
Topic: Comunidad nesdev hispana
Replies: 96
Views: 129122

Hola buenas! No me esperaba encontrar un hilo en español, y menos con dos páginas xD Soy nuevo por el lugar, me defiendo con el inglés pero bueno, estaría bien que los tres o cuatro que seamos podamos hablar por aquí.

Un saludo!