Search found 152 matches
- Tue Aug 02, 2011 11:35 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Tue Aug 02, 2011 11:13 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Compiler does not optimize things like this. Okay Also, why you need this code to be fast? It is called like once per frame, you can do it in pure C and it will not have any real impact on perfomance. I guess I don't know if I do or not. If you want, you can make this (or any other) function in ass...
- Tue Aug 02, 2011 10:05 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Tue Aug 02, 2011 9:04 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Okay. I think I get it now. include the header which hasNow you can access it from C file if declare it there as an extern:
Code: Select all
extern const unsigned char my_data[];- Tue Aug 02, 2011 8:43 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Tue Aug 02, 2011 8:35 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Tue Aug 02, 2011 8:22 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
Say I have the following assembly file: mainLoop: jsr readGamepadA jsr handleInput jsr vBlankWait jsr drawSprites jmp mainLoop How will it assemble if it doesn't know what any of those identifiers are? Your probably right though. I don't know how import and export work, and my assembly is still shaky.
- Tue Aug 02, 2011 8:13 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
I realized the problem with 2) in my previous post. My code actually had: #pragma charmap('0', 0x00) It was complaining about the 0x00. Apparently, one can't map anything from NOR to 0. cc65 itself generates an assembly file, so there is no problem to add an assembly file. Just assemble it and then ...
- Tue Aug 02, 2011 6:45 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
A couple more questions, this time about cc65. 1) #pragma charmap('\0', 0xFF) is illegal, so C doesn't barf. I suppose there's no way to tell C to terminate strings with something other than '\0' (0x00), is there? I realize that it isn't that big of an issue anyways; Just move your font around so 0x...
- Tue Aug 02, 2011 7:43 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Tue Aug 02, 2011 6:29 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
So, I've mustered the strength and moral courage to try and do this again. I have some free time before university begins again in the fall. * * * So, here's a new round of questions: 1) The registers are only a byte large, right? How does one do/simulate math with 2 or more bytes? 2) What happens i...
- Fri Feb 11, 2011 12:09 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
The basics of day/night can be done by screwing with the palette and/or the tint bits. Look at the difference in SMB1 between 1-1 and 3-1 for a crude idea of how to do this. Zelda: ALTTP had a light and dark world with mostly the same outdoor map, and there was some sort of differential coding: obj...
- Fri Feb 11, 2011 3:12 am
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
[tokumaru's text] Oh, you're describing the same thing that SMB3 does for pipes. I'm not sure why I wasn't able to realize that one could use that for walls too... But then you are not making NES programs anymore, but FCEUX programs, don't you agree? If you are going to deliberately ignore a system...
- Thu Feb 10, 2011 10:44 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218
- Wed Feb 09, 2011 8:23 pm
- Forum: Newbie Help Center
- Topic: Hello World
- Replies: 267
- Views: 61218