$8000 and $C000

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

User avatar
0x7c00
Posts: 9
Joined: Fri Aug 14, 2009 1:19 am

Post by 0x7c00 »

Here is my nesasm code:

Code: Select all

	.inesprg 1
	.ineschr 0
	.inesmap 0
	.inesmir 0
	
	.bank 0
	.org $8000
RESET:
	lda #%10000000
	sta $2001
	
FOREVER:
	jmp FOREVER
	
	.bank 1
	.org $FFFA
	.dw 0
	.dw RESET
	.dw 0
In Nestopia there is nothing, however in fceux, it gets its function(display blue)...Nowadays I'm confusing about the different between emulators :?
User avatar
Bregalad
Posts: 8036
Joined: Fri Nov 12, 2004 2:49 pm
Location: Caen, France

Post by Bregalad »

Your palette isn't initialized so it will display the defaut BG color of your NES (the one that show up when a cart isn't functionning) with a slight blue tend.
Useless, lumbering half-wits don't scare us.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Post by tokumaru »

0x7c00 wrote:Nowadays I'm confusing about the different between emulators :?
I told you, if a program is well coded and doesn't use crazy tricks, it should work the same on all emulators.

There are several things wrong with your code: You don't do any initialization whatsoever, you don't wait for the PPU to warm up (2 frames), your IRQ and NMI vectors point to something that is not code...

There are many things you have to fix before you can claim the emulators behave differently, because it's very likely they will if the program itself is completely broken.
Post Reply