Search found 528 matches
- Sat Sep 26, 2020 7:01 pm
- Forum: Web Issues
- Topic: Sometimes can't access nesdev.com
- Replies: 9
- Views: 7712
Randomly, my browser times out accessing the site. Once this happens I can't access it for some time. (Not sure how long, but eventually it works again.) It seems to happen when I first access the site. (But not everytime.) I'll navigate to forums.nesdev.com and click on a topic or forum, and my bro...
- Mon Sep 14, 2020 12:39 pm
- Forum: NESdev
- Topic: index outside of label (intentionally) asm
- Replies: 12
- Views: 3661
I would do something like this: palette .res 32 backgroundPalette = palette spritePalette = palette + 16 Rather than creating a label for each palette, I find it easier to use macros to access palette locations, something like: .macro staBGpal pal, entry sta backgroundPalette + (pal * 4) + entry .en...
Another example of how to do it: ; General NES constant values ; ports PPU_CTRL = $2000 PPU_MASK = $2001 ; For ctrl CT_NMI = %10000000 CT_PPUSLAVE = %01000000 CT_SPRITE8x16 = %00100000 CT_BACKADDR1000 = %00010000 CT_SPRADDR1000 = %00001000 CT_ADDRINC32 = %00000100 CT_NAMETABLE2000 = %00000000 CT_NAM...
- Thu Aug 27, 2020 2:53 pm
- Forum: Newbie Help Center
- Topic: Would it be possible to mod a NES to have that "Allow more than 8 sprites per scanline" feature from emulators?
- Replies: 25
- Views: 8983
Re: Would it be possible to mod a NES to have that "Allow more than 8 sprites per scanline" feature from emulators?
The Hi-Def NES mod does have an option for more sprites on a scanline, I believe... but it's an HDMI output mod that replaces the PPU. The Hi-Def mod is a more polished version of the idea posted here: https://forums.nesdev.com/viewtopic.php?t=9561 So it doesn't emulate the PPU, but it does emulate...
- Fri Aug 21, 2020 5:16 am
- Forum: General Stuff
- Topic: Strategies for implementing macro functionality in assemblers
- Replies: 18
- Views: 9693
I started this thinking I'd use tokens all the way, but then found that macros and defines would make that really hard, since tokens can mean different things when used in different places. For example: .define whatever z: ;in this case, "whatever" expands to a label definition whatever JMP z ;but ...
I would possibly structure it like:
Code: Select all
lda value1 cmp value2 bcc lessThan beq endif ; if value1 > value2 jmp endif ; (or use a branch if flag condition will be known) lessThan: ; if value1 < value2 endif:
- Sat Feb 20, 2016 9:10 pm
- Forum: NES Graphics
- Topic: Is it possible to add new colors to the palette?
- Replies: 24
- Views: 13665
You can only customize the palette if you change the PPU, or attach some extra hardware to it (e.g. NESRGB and Hi-Def NES ), which means the console has to be modified. It can't possibly be done from the cartridge side, because the cartridge is not at all involved with color generation, so there're...
I just installed Windows 10 and found the install quick and easy and the OS itself to run beautifully. I installed some basic drivers (I think only nvidia video drivers actually) and my computer is running better than ever. There are many different configurations of hardware, so not sure why it does...
To put it another way: BEFORE an addition with carry, you could think of carry as bit 8 from the previous addition, but it will now be added to bit 0 of the current addition. AFTER an addition with carry, carry holds bit 8, and will be cleared or set to reflect what bit 8 would be (If there was a bi...
- Sun Dec 20, 2015 7:48 am
- Forum: Newbie Help Center
- Topic: comparing values in memory, which change very quickly
- Replies: 7
- Views: 3833
For myself, I just remember which is which by thinking "S is greater than C". CMP works just like the SBC instruction but without modifying the accumulator, so as you can see now, it also affects the carry flag in the same way. Unlike SBC, I'm pretty sure it doesn't use the carry flag as part of th...