MCPcopy Create free account
hub / github.com/TASEmulators/fceux / DECLFW

Function DECLFW

src/nsf.cpp:407–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405}
406
407static DECLFW(NSF_write)
408{
409 switch(A)
410 {
411 case 0x3FF3:NSFNMIFlags|=1;break;
412 case 0x3FF4:NSFNMIFlags&=~2;break;
413 case 0x3FF5:NSFNMIFlags|=2;break;
414
415 case 0x5FF6:
416 case 0x5FF7:if(!(NSFHeader.SoundChip&4)) return;
417 case 0x5FF8:
418 case 0x5FF9:
419 case 0x5FFA:
420 case 0x5FFB:
421 case 0x5FFC:
422 case 0x5FFD:
423 case 0x5FFE:
424 case 0x5FFF:if(!BSon) return;
425 A&=0xF;
426 BANKSET((A*4096),V);
427 break;
428 }
429}
430
431static DECLFR(NSF_read)
432{

Callers

nothing calls this directly

Calls 1

BANKSETFunction · 0.85

Tested by

no test coverage detected