Search found 306 matches

by sdm
Thu Sep 07, 2017 12:31 am
Forum: Newbie Help Center
Topic: Trying to swap entire nametable
Replies: 7
Views: 2892

Re: Trying to swap entire nametable

So I always wrongly did it. I have a problem modifying this code so that its meaning stays the same, but the "DisablePPU" and "EnablePPU" codes were executed during VBLANK. So the LoadLevel code stays out of the NMI, but the Disable / EnablePPU code is executed correctly. NMI: lda <PPU0 sta PPUCTRL ...
by sdm
Wed Sep 06, 2017 11:02 pm
Forum: Newbie Help Center
Topic: Trying to swap entire nametable
Replies: 7
Views: 2892

Re: Trying to swap entire nametable

Is the write to $ 2001 (disable / enable screen) must be done only during NMI (VBLANK)? Because I guess I'm wrongly turning off / on the screen when I change the nametable. I would like to make sure on this. For example: LoadLevel: JSR DisablePPU ;outside NMI/VBLANK JSR LoadSomeData JSR LoadSprites ...
by sdm
Sun Aug 20, 2017 7:06 am
Forum: Newbie Help Center
Topic: NESASM & AOROM Programming - a few questions
Replies: 16
Views: 4328

Re: NESASM & AOROM Programming - a few questions

Thanks. Thanks. I see that this is a lot more complicated mapper than UxROM. How to correctly control the fourth bit Bank select register? LDA #%00010000 STA Bank_TBL LDA #%00000000 STA Bank_TBL How to properly do it? In the end, this register is not a memory byte and do not know how to operate on s...
by sdm
Sat Aug 19, 2017 2:41 pm
Forum: Newbie Help Center
Topic: NESASM & AOROM Programming - a few questions
Replies: 16
Views: 4328

Re: NESASM & AOROM Programming - a few questions

I am sending my AOROM test code, I do not know how to initialize this mapper.
by sdm
Sat Aug 19, 2017 9:32 am
Forum: Newbie Help Center
Topic: NESASM & AOROM Programming - a few questions
Replies: 16
Views: 4328

Re: NESASM & AOROM Programming - a few questions

Nope, U*ROM uses fixed vertical or horizontal mirroring. Sorry, Spelling error, I had to write AxROM, not UxROM. Did you try IFNDEF? NESASM's documentation says it has this directive. This block will only be processed if the label isn't defined yet, so it'll only be defined the first time the code ...
by sdm
Sat Aug 19, 2017 7:45 am
Forum: Newbie Help Center
Topic: NESASM & AOROM Programming - a few questions
Replies: 16
Views: 4328

Re: NESASM & AOROM Programming - a few questions

One good way to deal with repeated code is to write it in a separate file and INCLUDE it in the main file as many times as necessary, so that any changes to this code are done in a single place, and automatically reflected in all instances where it's used. I tried .include "reset_code.asm" In every...
by sdm
Sat Aug 19, 2017 1:20 am
Forum: Newbie Help Center
Topic: NESASM & AOROM Programming - a few questions
Replies: 16
Views: 4328

NESASM & AOROM Programming - a few questions

I did not find satisfactory information in this topic on the forum - maybe the mapper is not very popular in terms of programming. 1. AOROM switches banks size 32KB - so every bank must be a copy of the RESET code and at the end of each bank Vectors code. Right? Generally, I would like to know how t...
by sdm
Fri Aug 18, 2017 8:08 am
Forum: NESdev
Topic: UNROM: Reading the current bank number
Replies: 14
Views: 5326

Re: UNROM: Reading the current bank number

Thanks. And are MMC1 or MMC3 somehow significantly "faster" than UNROM?
by sdm
Fri Aug 18, 2017 7:05 am
Forum: NESdev
Topic: UNROM: Reading the current bank number
Replies: 14
Views: 5326

Re: UNROM: Reading the current bank number

I do not want to create a separate topic, so I will ask here:
Is switching a bank in UNROM (and not just in UNROM) taking up some CPU time? How many cycles / times does a bank switch take?
by sdm
Wed Jul 26, 2017 12:49 pm
Forum: Newbie Help Center
Topic: Copy SPR X / Y position to similar in NameTable (PPU addr.)
Replies: 7
Views: 3263

Re: Copy SPR X / Y position to similar in NameTable (PPU ad

Thanks. Ok I did it, it was even surprisingly simple: Button A - place bomb Button B - copy PPU addres to X/Y co-ord (For the test I gave the sprite) lda #%00001000 ;base value for $2000 (change lower 2 bits for other NTs) sta BOMB_PPU_TILE1_AddrHI lda HERO_1_Y clc adc #7 ;"centering" and #%11110000...
by sdm
Wed Jul 26, 2017 11:23 am
Forum: Newbie Help Center
Topic: Copy SPR X / Y position to similar in NameTable (PPU addr.)
Replies: 7
Views: 3263

Re: Copy SPR X / Y position to similar in NameTable (PPU ad

I'm not sure I understand what you need... Do you want to convert the coordinates back to pixel precision. Yes exactly. PPU address, which is contained in the variables (when the bomb is placed on the screen): BOMB_PPU_TILE1_AddrHI BOMB_PPU_TILE1_AddrLO That is the first (left / top) of the four BG...
by sdm
Tue Jul 25, 2017 12:23 pm
Forum: Newbie Help Center
Topic: Copy SPR X / Y position to similar in NameTable (PPU addr.)
Replies: 7
Views: 3263

Re: Copy SPR X / Y position to similar in NameTable (PPU ad

Thanks, now works as I wanted. :) lda #%00001000 ;base value for $2000 (change lower 2 bits for other NTs) sta BOMB_PPU_TILE1_AddrHI lda HERO_1_Y clc adc #7 ;"centering" and #%11110000 ;y bomb in steps of 16pix asl A rol BOMB_PPU_TILE1_AddrHI asl A rol BOMB_PPU_TILE1_AddrHI sta BOMB_PPU_TILE1_AddrLO...
by sdm
Tue Jul 25, 2017 6:01 am
Forum: Newbie Help Center
Topic: Copy SPR X / Y position to similar in NameTable (PPU addr.)
Replies: 7
Views: 3263

Copy SPR X / Y position to similar in NameTable (PPU addr.)

I would copy the X / Y coordinates to match the positions 8x8 on the BGR (NT PPU) screen. It is a similar method of placing an object on the screen as it is in Bomber Man. I managed to get a LO byte from a PPU address, but I have a problem with HI byte (20xx-23xx). It seemed to me more simple, but o...
by sdm
Fri Jul 21, 2017 5:26 pm
Forum: Homebrew Projects
Topic: DELETE TOPIC
Replies: 10
Views: 15664

DELETE TOPIC

DELETE TOPIC
by sdm
Tue Jul 18, 2017 1:12 am
Forum: NES Hardware and Flash Equipment
Topic: Oryginal Kazzo (Anago) UNROM cart problem
Replies: 11
Views: 5907

Re: Oryginal Kazzo (Anago) UNROM cart problem

From what I've noticed, it's very similar to the AM29F040B is the Amic A29040B flash. It is hard for me to verify 100%, because I only guess: is the problem in KAZZO is the size of sectors in FLASH memory? AM20F040B has a size of 64KB (A0-A15)? AMIC is similar and also has "8 uniform sectors of 64 K...