Search found 152 matches
- Wed Sep 28, 2011 8:35 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Questions again: 1) How does one set segments/banks (including the .nes header) with cc65? 2) How is the switch/case statement implemented in cc65? I'd check myself, but I can't get anything to compile... 3) In cc65, when an address is pushed onto the stack, does it take of two bytes?, thus increasi...
- Fri Sep 23, 2011 8:10 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Correct. Only two players would be possible in a game using Super NES controllers through SNES-to-NES adapters. Were you thinking three players as in Jeopardy! or three players as in Secret of Mana? Because if you have three 16-pixel-wide players in one place, anything around them will start to fli...
- Fri Sep 23, 2011 4:57 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Any emulator supporting the Four Score adapter can be used with NES games supporting the Super NES controller. Player 1 A: SNES B Player 1 B: SNES Y Player 1 Select, Start, Up, Down, Left, Right: SNES same Player 3 A: SNES A Player 3 B: SNES X Player 3 Select: SNES L Player 3 Start: SNES R One coul...
- Thu Sep 15, 2011 2:13 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Tue Sep 13, 2011 12:52 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Bits A14-A0 of the CPU address bus are on the cart edge. A15 isn't directly made available, but it can be inferred from A14, Phi2, and PRG /CE. Bankswitching can affect any address in $4020-$FFFF but most commonly affects $8000-BFFF, $8000-$DFFF, or $8000-$FFFF depending on the mapper. It also comm...
- Mon Sep 12, 2011 9:13 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Mon Sep 12, 2011 3:56 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
I don't understand the question. Size of that region is always 8K. Again, THEORETICALLY, a cart can have bank switching features that allows to switch RAM/ROM/your momma in that region. For example, FME-7 allows to map ROM in that area as well. For the most part, that area is used for 8K RAM expans...
- Mon Sep 12, 2011 12:35 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Because standard practice in C, especially in existing programs originally developed for platforms other than the NES, is to use a stack far bigger than 256 bytes. Doesn't the NES already have a stack at $0100–$01FF ? Why does C use it's stack for? Is it just stored in normal memory, or someplace s...
- Fri Aug 05, 2011 10:27 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Fri Aug 05, 2011 9:58 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Fri Aug 05, 2011 6:10 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Wed Aug 03, 2011 4:15 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
these became defined in terms of uint8_t and friends. Ick, ugly. I don't see anything wrong with how C# decided to name it's primitives. volatile I thought volatile didn't do anything in cc65. If the header segment is overflowing, perhaps someone or something forgot to switch to the code segment. N...
- Wed Aug 03, 2011 3:36 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Wed Aug 03, 2011 2:48 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
You want me to rewrite your assembly code into C or you just have a problem with something certain? If you don't know how to read/write a memory location from C, just use a pointer, like: No, I already know how to do that. I meant the loading, shifting, and rolling. C doesn't have a rolling operato...
- Wed Aug 03, 2011 1:38 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
.repeat 8 lda GamepadARaw ; Bit 0 == Current Button Status shr ; Bit 0 of Raw -> Carry rol GamepadA ; Bit 0 of Storage <- Carry .endrepeat How would I even do this part in C? I think it is a good idea to read docs about things like this. For function like gamepad read, which does on have input para...