Search found 20 matches

by Friendly_Noob
Thu Aug 03, 2017 10:24 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

I have downloaded a newer version of NST and now it saves and opens my session without crashing but I still can't save nametable as an .asm file. I just click save and nothing happens.
by Friendly_Noob
Thu Aug 03, 2017 6:46 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

Hi. Just wanted to show my code for Dragon Warrior-like character animation. PlayerFieldAnimation: LDA PlayerFieldDirection CLC ADC PlayerFieldFrame TAX LDY #$01 - LDA herofield, x STA SpriteRam, y INX INY LDA herofield, x STA SpriteRam, y INX INY INY INY CPY #$11 BNE - RTS It basically sums up play...
by Friendly_Noob
Wed Mar 15, 2017 3:27 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

All right, the result of my efforts is starting to resemble a game. I switched to ASM6. There is some stuff I'd like to ask about. 1. My code for checking collisions. CheckPickupCollision: LDA $204 SEC SBC #$08 CMP PICKUP_RAM BEQ + BCC + JMP CheckPickupCollisionRTS + LDA $210 CLC ADC #$08 CMP PICKUP...
by Friendly_Noob
Wed Dec 07, 2016 2:26 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

Yes, thank you. I was too tired yesterday to see that stupid mistake.
by Friendly_Noob
Tue Dec 06, 2016 2:58 pm
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

Almost there. The only problem is that for some reason it always loads tile $00 into $201. The rest is fine. LoadYacaBackFrame1: LDX $00 - LDY yacaloadtable, x LDA yacaback1, x STA $201, y INX CPX $08 BNE - RTS yacaback1: .db $02, %00000000, $02, %01000000, $12, %00000000,$13, %00000000 yacaloadtabl...
by Friendly_Noob
Mon Dec 05, 2016 4:27 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

What should I do to make loading metasprites the most efficent then? Is that first version with four INYs the best or maybe I should just stick to manual LDAs and STAs for every sprite, without any kind of "automation"?
by Friendly_Noob
Mon Dec 05, 2016 1:19 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

I misunderstood that probably, I was just reading ASM6 readme and there was this: Repeat a block of code a specified number of times. Labels defined inside REPT are local. i=0 REPT 256 DB i i=i+1 ENDR so I thought DB i is required for the loop to work properly. The program didn't display any sprites...
by Friendly_Noob
Sun Dec 04, 2016 1:24 pm
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

It's not in the actual code, I just wanted you to know how yacafront1 looks like.
by Friendly_Noob
Sun Dec 04, 2016 12:39 pm
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

That's my loop after moving to ASM6. For some reason all the sprites loaded are tiles $00, or $00, $00, $00, $11 when I put INY in a different place (after STA $201 + i for example) LoadYacaFrontFrame1: LDA #%01000000 STA $206 LDA #%00000000 STA $202 STA $20A STA $20E LDY #$00 i=0 REPT 4 LDA yacafro...
by Friendly_Noob
Sat Nov 26, 2016 4:18 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

Does .repeat work on NESASM3? Maybe it's time to move to ca65.
by Friendly_Noob
Fri Nov 25, 2016 1:25 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

Here's my question after almost a year of absence. In this loop I don't want to mess with any of the sprite's attributes like position on the screen, it's just to store tile numbers in the right places to form a 16x16 metasprite. How do I make a loop that stores a value every 4 memory locations? I d...
by Friendly_Noob
Wed Dec 30, 2015 12:17 pm
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

I feel like an idiot, I can't figure anything out myself. Dougeff, could you comment this code for me? From what I understand, GetInput2 is a loop checking $4016 8 times, because there are 8 buttons. Then depending on if the button is pressed or not 00000000 or 00000001 is ANDed with 00000011 ($03) ...
by Friendly_Noob
Tue Dec 29, 2015 3:34 pm
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

Controller reads should be one routine that reads all the buttons and stores them at a RAM address One ram address for all buttons (each byte representing pressed/not pressed state of the button) or each button - one ram address? Also, since a lot of the code is copypasted, I'd like to ask about th...
by Friendly_Noob
Mon Dec 28, 2015 3:08 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Re: Couple of questions from a 6502 newb.

That's a lot of new info to digest, thanks. I'll try to fix the metasprite movement first. I'll just probably keep the character at the center of the screen and move background. This kind of movement is the reason why DQ characters are constantly moving their legs, right? GBAGuy's tutorials are noto...
by Friendly_Noob
Sun Dec 27, 2015 5:50 am
Forum: Newbie Help Center
Topic: Couple of questions from a 6502 newb.
Replies: 54
Views: 23402

Couple of questions from a 6502 newb.

I'm taking first steps in 6502 assembly using http://patater.com/gbaguy/nesasm.htm and Nerdy Nights and there's a lot of things that confuse me. I need someone experienced who'd look at my code and tell me what I should optimize, what I should and shouldn't do. What I attempted to do is basically a ...