Date: Thu, 18 Aug 2005 19:13:04 +0200 (CEST) From: Emanuel Haupt <ehaupt@critical.ch> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/85094: new port: audio/xmms-nsf - XMMS input-plugin for playing Nintendo(TM) NSF audio files Message-ID: <200508181713.j7IHD3jl046509@beaver.critical.ch> Resent-Message-ID: <200508181720.j7IHKLWh040885@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 85094 >Category: ports >Synopsis: new port: audio/xmms-nsf - XMMS input-plugin for playing Nintendo(TM) NSF audio files >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 18 17:20:20 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Emanuel Haupt >Release: FreeBSD 5.4-RELEASE-p6 i386 >Organization: >Environment: System: FreeBSD beaver.critical.ch 5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6 #0: Wed Jul 27 20:19:15 CEST 2005 root@beaver.critical.ch:/usr/obj/usr/src/RELENG_5_4/src/sys/BEAVER i386 >Description: new port: audio/xmms-nsf - XMMS input-plugin for playing Nintendo(TM) NSF audio files This is an XMMS input plugin for playing Nintendo(TM) 8bit NSF audio files. The module has a special pannel for selecting multi track .nsf files. >How-To-Repeat: >Fix: --- xmms-nsf.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # xmms-nsf # xmms-nsf/files # xmms-nsf/files/patch-src-nes-km6502-km6502cd.h # xmms-nsf/files/patch-src-nes-km6502-km6502ot.h # xmms-nsf/files/patch-src-nes-handler.c # xmms-nsf/Makefile # xmms-nsf/pkg-descr # xmms-nsf/distinfo # xmms-nsf/pkg-message # echo c - xmms-nsf mkdir -p xmms-nsf > /dev/null 2>&1 echo c - xmms-nsf/files mkdir -p xmms-nsf/files > /dev/null 2>&1 echo x - xmms-nsf/files/patch-src-nes-km6502-km6502cd.h sed 's/^X//' >xmms-nsf/files/patch-src-nes-km6502-km6502cd.h << 'END-of-xmms-nsf/files/patch-src-nes-km6502-km6502cd.h' X--- src/nes/km6502/km6502cd.h.orig Sun Jan 7 05:18:05 2001 X+++ src/nes/km6502/km6502cd.h Thu Aug 18 16:47:34 2005 X@@ -361,27 +361,27 @@ X X /* --- ADC --- */ X #if BUILD_HUC6280 X-#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KMI_ADC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ X-static void OpcodeCall D_Opco##i##(__CONTEXT) \ X-{ KMI_ADC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ X-static void OpcodeCall T_Opco##i##(__CONTEXT) \ X+#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KMI_ADC(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ X+static void OpcodeCall D_Opco##i (__CONTEXT) \ X+{ KMI_ADC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ X+static void OpcodeCall T_Opco##i (__CONTEXT) \ X { \ X Uword saveA = KMI_PRET(__THISP); \ X- KMI_ADC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ X+ KMI_ADC(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ X KMI_POSTT(__THISP_ saveA); \ X } \ X-static void OpcodeCall TD_Opc##i##(__CONTEXT) \ X+static void OpcodeCall TD_Opc##i (__CONTEXT) \ X { \ X Uword saveA = KMI_PRET(__THISP); \ X- KMI_ADC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ X+ KMI_ADC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ X KMI_POSTT(__THISP_ saveA); \ X } X #else X-#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KMI_ADC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ X-static void OpcodeCall D_Opco##i##(__CONTEXT) \ X-{ KMI_ADC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_ADC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KMI_ADC(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ X+static void OpcodeCall D_Opco##i (__CONTEXT) \ X+{ KMI_ADC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X #endif X DEF_ADC(61,NP,KA_INDX) /* 61 - ADC - (Indirect,X) */ X DEF_ADC(65,ZP,KA_ZP) /* 65 - ADC - Zero Page */ X@@ -397,17 +397,17 @@ X X /* --- AND --- */ X #if BUILD_HUC6280 X-#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_AND(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ X-static void OpcodeCall T_Opco##i##(__CONTEXT) \ X+#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_AND(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ X+static void OpcodeCall T_Opco##i (__CONTEXT) \ X { \ X Uword saveA = KMI_PRET(__THISP); \ X- KM_AND(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ X+ KM_AND(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ X KMI_POSTT(__THISP_ saveA); \ X } X #else X-#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_AND(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_AND(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_AND(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X #endif X DEF_AND(21,NP,KA_INDX) /* 21 - AND - (Indirect,X) */ X DEF_AND(25,ZP,KA_ZP) /* 25 - AND - Zero Page */ X@@ -422,10 +422,10 @@ X #endif X X /* --- ASL --- */ X-#define DEF_ASL(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_ASL(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_ASL(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_ASL(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_ASL(06,ZP,KA_ZP) /* 06 - ASL - Zero Page */ X DEF_ASL(0E,NP,KA_ABS) /* 0E - ASL - Absolute */ X@@ -436,7 +436,7 @@ X X #if BUILD_HUC6280 X /* --- BBRi --- */ X-#define DEF_BBR(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_BBR(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = KA_ZP(__THISP); \ X Uword rel = K_READ(__THISP_ KA_IMM(__THISP)); \ X@@ -451,7 +451,7 @@ X DEF_BBR(6F,6) /* 6F - BBR6 */ X DEF_BBR(7F,7) /* 7F - BBR7 */ X /* --- BBSi --- */ X-#define DEF_BBS(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_BBS(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = KA_ZP(__THISP); \ X Uword rel = K_READ(__THISP_ KA_IMM(__THISP)); \ X@@ -468,8 +468,8 @@ X #endif X X /* --- BIT --- */ X-#define DEF_BIT(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_BIT(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_BIT(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_BIT(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_BIT(24,ZP,KA_ZP) /* 24 - BIT - Zero Page */ X DEF_BIT(2C,NP,KA_ABS) /* 2C - BIT - Absolute */ X #if BUILD_HUC6280 || BUILD_M65C02 X@@ -479,7 +479,7 @@ X #endif X X /* --- Bcc --- */ X-#define DEF_BRA(i,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_BRA(i,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword rel = K_READ(__THISP_ KA_IMM(__THISP)); \ X if (a) KM_BRA(__THISP_ rel); \ X@@ -536,8 +536,8 @@ X { __THIS__.P &= ~V_FLAG; } X X /* --- CMP --- */ X-#define DEF_CMP(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_CMP(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_CMP(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_CMP(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_CMP(C1,NP,KA_INDX) /* C1 - CMP - (Indirect,X) */ X DEF_CMP(C5,ZP,KA_ZP) /* C5 - CMP - Zero Page */ X DEF_CMP(C9,NP,KA_IMM) /* C9 - CMP - Immediate */ X@@ -551,24 +551,24 @@ X #endif X X /* --- CPX --- */ X-#define DEF_CPX(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_CPX(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_CPX(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_CPX(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_CPX(E0,NP,KA_IMM) /* E0 - CPX - Immediate */ X DEF_CPX(E4,ZP,KA_ZP) /* E4 - CPX - Zero Page */ X DEF_CPX(EC,NP,KA_ABS) /* EC - CPX - Absolute */ X X /* --- CPY --- */ X-#define DEF_CPY(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_CPY(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_CPY(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_CPY(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_CPY(C0,NP,KA_IMM) /* C0 - CPY - Immediate */ X DEF_CPY(C4,ZP,KA_ZP) /* C4 - CPY - Zero Page */ X DEF_CPY(CC,NP,KA_ABS) /* CC - CPY - Absolute */ X X /* --- DEC --- */ X-#define DEF_DEC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_DEC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_DEC(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_DEC(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_DEC(C6,ZP,KA_ZP) /* C6 - DEC - Zero Page */ X DEF_DEC(CE,NP,KA_ABS) /* CE - DEC - Absolute */ X@@ -585,17 +585,17 @@ X X /* --- EOR --- */ X #if BUILD_HUC6280 X-#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_EOR(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ X-static void OpcodeCall T_Opco##i##(__CONTEXT) \ X+#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_EOR(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ X+static void OpcodeCall T_Opco##i (__CONTEXT) \ X { \ X Uword saveA = KMI_PRET(__THISP); \ X- KM_EOR(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ X+ KM_EOR(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ X KMI_POSTT(__THISP_ saveA); \ X } X #else X-#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_EOR(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_EOR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_EOR(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X #endif X DEF_EOR(41,NP,KA_INDX) /* 41 - EOR - (Indirect,X) */ X DEF_EOR(45,ZP,KA_ZP) /* 45 - EOR - Zero Page */ X@@ -610,10 +610,10 @@ X #endif X X /* --- INC --- */ X-#define DEF_INC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_INC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_INC(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_INC(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_INC(E6,ZP,KA_ZP) /* E6 - INC - Zero Page */ X DEF_INC(EE,NP,KA_ABS) /* EE - INC - Absolute */ X@@ -629,12 +629,12 @@ X { __THIS__.Y = KM_INC(__THISP_ __THIS__.Y); } X X /* --- JMP --- */ X-#define DEF_JMP(i,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_JMP(i,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { __THIS__.PC = KI_READWORD(__THISP_ a(__THISP)); } X #if BUILD_HUC6280 || BUILD_M65C02 X #define DEF_JMPBUG(i,a) DEF_JMP(i,a) X #else X-#define DEF_JMPBUG(i,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_JMPBUG(i,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { __THIS__.PC = KI_READWORDBUG(__THISP_ a(__THISP)); } X #endif X DEF_JMP(4C,KA_IMM16) /* 4C - JMP - Immediate */ X@@ -653,8 +653,8 @@ X } X X /* --- LDA --- */ X-#define DEF_LDA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ __THIS__.A = KM_LD(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_LDA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ __THIS__.A = KM_LD(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_LDA(A1,NP,KA_INDX) /* A1 - LDA - (Indirect,X) */ X DEF_LDA(A5,ZP,KA_ZP) /* A5 - LDA - Zero Page */ X DEF_LDA(A9,NP,KA_IMM) /* A9 - LDA - Immediate */ X@@ -668,8 +668,8 @@ X #endif X X /* --- LDX --- */ X-#define DEF_LDX(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ __THIS__.X = KM_LD(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_LDX(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ __THIS__.X = KM_LD(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_LDX(A2,NP,KA_IMM) /* A2 - LDX - Immediate */ X DEF_LDX(A6,ZP,KA_ZP) /* A6 - LDX - Zero Page */ X DEF_LDX(AE,NP,KA_ABS) /* AE - LDX - Absolute */ X@@ -677,8 +677,8 @@ X DEF_LDX(BE,NP,KA_ABSY_) /* BE - LDX - Absolute,Y */ X X /* --- LDY --- */ X-#define DEF_LDY(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ __THIS__.Y = KM_LD(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_LDY(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ __THIS__.Y = KM_LD(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_LDY(A0,NP,KA_IMM) /* A0 - LDY - Immediate */ X DEF_LDY(A4,ZP,KA_ZP) /* A4 - LDY - Zero Page */ X DEF_LDY(AC,NP,KA_ABS) /* AC - LDY - Absolute */ X@@ -686,10 +686,10 @@ X DEF_LDY(BC,NP,KA_ABSX_) /* BC - LDY - Absolute,X */ X X /* --- LSR --- */ X-#define DEF_LSR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_LSR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_LSR(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_LSR(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_LSR(46,ZP,KA_ZP) /* 46 - LSR - Zero Page */ X DEF_LSR(4E,NP,KA_ABS) /* 4E - LSR - Absolute */ X@@ -705,17 +705,17 @@ X X /* --- ORA --- */ X #if BUILD_HUC6280 X-#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_ORA(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ X-static void OpcodeCall T_Opco##i##(__CONTEXT) \ X+#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_ORA(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ X+static void OpcodeCall T_Opco##i (__CONTEXT) \ X { \ X Uword saveA = KMI_PRET(__THISP); \ X- KM_ORA(__THISP_ K_READ##p##(__THISP_ a(__THISP))); \ X+ KM_ORA(__THISP_ K_READ##p (__THISP_ a(__THISP))); \ X KMI_POSTT(__THISP_ saveA); \ X } X #else X-#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KM_ORA(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_ORA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KM_ORA(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X #endif X DEF_ORA(01,NP,KA_INDX) /* 01 - ORA - (Indirect,X) */ X DEF_ORA(05,ZP,KA_ZP) /* 05 - ORA - Zero Page */ X@@ -751,7 +751,7 @@ X X #if BUILD_HUC6280 X /* --- RMBi --- */ X-#define DEF_RMB(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_RMB(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = KA_ZP(__THISP); \ X K_WRITEZP(__THISP_ adr, (Uword)(K_READZP(__THISP_ adr) & (~(1 << y)))); \ X@@ -765,7 +765,7 @@ X DEF_RMB(67,6) /* 67 - RMB6 */ X DEF_RMB(77,7) /* 77 - RMB7 */ X /* --- SMBi --- */ X-#define DEF_SMB(i,y) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_SMB(i,y) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = KA_ZP(__THISP); \ X K_WRITEZP(__THISP_ adr, (Uword)(K_READZP(__THISP_ adr) | (1 << y))); \ X@@ -781,10 +781,10 @@ X #endif X X /* --- ROL --- */ X-#define DEF_ROL(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_ROL(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_ROL(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_ROL(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_ROL(26,ZP,KA_ZP) /* 26 - ROL - Zero Page */ X DEF_ROL(2E,NP,KA_ABS) /* 2E - ROL - Absolute */ X@@ -794,10 +794,10 @@ X { __THIS__.A = KM_ROL(__THISP_ __THIS__.A); } X X /* --- ROR --- */ X-#define DEF_ROR(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_ROR(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_ROR(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_ROR(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_ROR(66,ZP,KA_ZP) /* 66 - ROR - Zero Page */ X DEF_ROR(6E,NP,KA_ABS) /* 6E - ROR - Absolute */ X@@ -841,10 +841,10 @@ X #endif X X /* --- SBC --- */ X-#define DEF_SBC(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ KMI_SBC(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } \ X-static void OpcodeCall D_Opco##i##(__CONTEXT) \ X-{ KMI_SBC_D(__THISP_ K_READ##p##(__THISP_ a(__THISP))); } X+#define DEF_SBC(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ KMI_SBC(__THISP_ K_READ##p (__THISP_ a(__THISP))); } \ X+static void OpcodeCall D_Opco##i (__CONTEXT) \ X+{ KMI_SBC_D(__THISP_ K_READ##p (__THISP_ a(__THISP))); } X DEF_SBC(E1,NP,KA_INDX) /* E1 - SBC - (Indirect,X) */ X DEF_SBC(E5,ZP,KA_ZP) /* E5 - SBC - Zero Page */ X DEF_SBC(E9,NP,KA_IMM) /* E9 - SBC - Immediate */ X@@ -883,8 +883,8 @@ X #endif X X /* --- STA --- */ X-#define DEF_STA(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ K_WRITE##p##(__THISP_ a(__THISP), __THIS__.A); } X+#define DEF_STA(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ K_WRITE##p (__THISP_ a(__THISP), __THIS__.A); } X DEF_STA(81,NP,KA_INDX) /* 81 - STA - (Indirect,X) */ X DEF_STA(85,ZP,KA_ZP) /* 85 - STA - Zero Page */ X DEF_STA(8D,NP,KA_ABS) /* 8D - STA - Absolute */ X@@ -897,23 +897,23 @@ X #endif X X /* --- STX --- */ X-#define DEF_STX(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ K_WRITE##p##(__THISP_ a(__THISP), __THIS__.X); } X+#define DEF_STX(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ K_WRITE##p (__THISP_ a(__THISP), __THIS__.X); } X DEF_STX(86,ZP,KA_ZP) /* 86 - STX - Zero Page */ X DEF_STX(8E,NP,KA_ABS) /* 8E - STX - Absolute */ X DEF_STX(96,ZP,KA_ZPY) /* 96 - STX - Zero Page,Y */ X X /* --- STY --- */ X-#define DEF_STY(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ K_WRITE##p##(__THISP_ a(__THISP), __THIS__.Y); } X+#define DEF_STY(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ K_WRITE##p (__THISP_ a(__THISP), __THIS__.Y); } X DEF_STY(84,ZP,KA_ZP) /* 84 - STY - Zero Page */ X DEF_STY(8C,NP,KA_ABS) /* 8C - STY - Absolute */ X DEF_STY(94,ZP,KA_ZPX) /* 94 - STY - Zero Page,X */ X X #if BUILD_HUC6280 || BUILD_M65C02 X /* --- STZ --- */ X-#define DEF_STZ(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X-{ K_WRITE##p##(__THISP_ a(__THISP), 0); } X+#define DEF_STZ(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X+{ K_WRITE##p (__THISP_ a(__THISP), 0); } X DEF_STZ(64,ZP,KA_ZP) /* 64 - STZ - Zero Page */ X DEF_STZ(9C,NP,KA_ABS) /* 9C - STZ - Absolute */ X DEF_STZ(74,ZP,KA_ZPX) /* 74 - STZ - Zero Page,X */ X@@ -931,18 +931,18 @@ X X #if BUILD_HUC6280 || BUILD_M65C02 X /* --- TRB --- */ X-#define DEF_TRB(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_TRB(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_TRB(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_TRB(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_TRB(14,ZP,KA_ZP) /* 14 - TRB - Zero Page */ X DEF_TRB(1C,NP,KA_ABS) /* 1C - TRB - Absolute */ X /* --- TSB --- */ X-#define DEF_TSB(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_TSB(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword adr = a(__THISP); \ X- K_WRITE##p##(__THISP_ adr, KM_TSB(__THISP_ K_READ##p##(__THISP_ adr))); \ X+ K_WRITE##p (__THISP_ adr, KM_TSB(__THISP_ K_READ##p (__THISP_ adr))); \ X } X DEF_TSB(04,ZP,KA_ZP) /* 04 - TSB - Zero Page */ X DEF_TSB(0C,NP,KA_ABS) /* 0C - TSB - Absolute */ X@@ -950,10 +950,10 @@ X X #if BUILD_HUC6280 X /* --- TST --- */ X-#define DEF_TST(i,p,a) static void OpcodeCall Opcode##i##(__CONTEXT) \ X+#define DEF_TST(i,p,a) static void OpcodeCall Opcode##i (__CONTEXT) \ X { \ X Uword imm = K_READ(__THISP_ KA_IMM(__THISP)); \ X- KM_TST(__THISP_ imm, K_READ##p##(__THISP_ a(__THISP))); \ X+ KM_TST(__THISP_ imm, K_READ##p (__THISP_ a(__THISP))); \ X } X DEF_TST(83,ZP,KA_ZP) /* 83 - TST - Zero Page */ X DEF_TST(93,NP,KA_ABS) /* 93 - TST - Absolute */ END-of-xmms-nsf/files/patch-src-nes-km6502-km6502cd.h echo x - xmms-nsf/files/patch-src-nes-km6502-km6502ot.h sed 's/^X//' >xmms-nsf/files/patch-src-nes-km6502-km6502ot.h << 'END-of-xmms-nsf/files/patch-src-nes-km6502-km6502ot.h' X--- src/nes/km6502/km6502ot.h.orig Sun Jan 7 05:18:05 2001 X+++ src/nes/km6502/km6502ot.h Thu Aug 18 16:47:59 2005 X@@ -1,35 +1,35 @@ X #define OPxx(i) X #define OP__(i) \ X- case 0x##i##: \ X- Opcode##i##(__THISP); \ X+ case 0x##i : \ X+ Opcode##i (__THISP); \ X break; X #define OP_d(i) \ X- case 0x##i##: \ X+ case 0x##i : \ X if (__THIS__.P & D_FLAG) \ X- D_Opco##i##(__THISP); \ X+ D_Opco##i (__THISP); \ X else \ X- Opcode##i##(__THISP); \ X+ Opcode##i (__THISP); \ X break; X #if BUILD_HUC6280 X #define OPtd(i) \ X- case 0x##i##: \ X+ case 0x##i : \ X if (__THIS__.P & T_FLAG) \ X if (__THIS__.P & D_FLAG) \ X- TD_Opc##i##(__THISP); \ X+ TD_Opc##i (__THISP); \ X else \ X- T_Opco##i##(__THISP); \ X+ T_Opco##i (__THISP); \ X else \ X if (__THIS__.P & D_FLAG) \ X- D_Opco##i##(__THISP); \ X+ D_Opco##i (__THISP); \ X else \ X- Opcode##i##(__THISP); \ X+ Opcode##i (__THISP); \ X break; X #define OPt_(i) \ X- case 0x##i##: \ X+ case 0x##i : \ X if (__THIS__.P & T_FLAG) \ X- T_Opco##i##(__THISP); \ X+ T_Opco##i (__THISP); \ X else \ X- Opcode##i##(__THISP); \ X+ Opcode##i (__THISP); \ X break; X #else X #define OPtd OP_d END-of-xmms-nsf/files/patch-src-nes-km6502-km6502ot.h echo x - xmms-nsf/files/patch-src-nes-handler.c sed 's/^X//' >xmms-nsf/files/patch-src-nes-handler.c << 'END-of-xmms-nsf/files/patch-src-nes-handler.c' X--- src/nes/handler.c.orig Sun Jan 7 05:17:57 2001 X+++ src/nes/handler.c Thu Aug 18 16:47:01 2005 X@@ -10,9 +10,9 @@ X static NES_READ_HANDLER *(nprh[0x10]) = { 0, }; X static NES_WRITE_HANDLER *(npwh[0x10]) = { 0, }; X #define EXTREADWRITE(p) \ X-static Uint __fastcall ExtRd##p##(Uint A) \ X+static Uint __fastcall ExtRd##p (Uint A) \ X { \ X- NES_READ_HANDLER *ph = nprh[0x##p##]; \ X+ NES_READ_HANDLER *ph = nprh[0x##p ]; \ X do \ X { \ X if (ph->min <= A && A <= ph->max) \ X@@ -22,9 +22,9 @@ X } while ((ph = ph->next) != 0); \ X return 0; \ X } \ X-static void __fastcall ExtWr##p##(Uint A, Uint V) \ X+static void __fastcall ExtWr##p (Uint A, Uint V) \ X { \ X- NES_WRITE_HANDLER *ph = npwh[0x##p##]; \ X+ NES_WRITE_HANDLER *ph = npwh[0x##p ]; \ X do \ X { \ X if (ph->min <= A && A <= ph->max) \ END-of-xmms-nsf/files/patch-src-nes-handler.c echo x - xmms-nsf/Makefile sed 's/^X//' >xmms-nsf/Makefile << 'END-of-xmms-nsf/Makefile' X# New ports collection makefile for: xmms-nsf X# Date created: 18 Aug 2005 X# Whom: Emanuel Haupt <ehaupt@critical.ch> X# X# $FreeBSD$ X# X XPORTNAME= xmms-nsf XPORTVERSION= 0.0.3 XCATEGORIES= audio XMASTER_SITES= http://optronic.sourceforge.net/files/ \ X http://critical.ch/distfiles/ X XMAINTAINER= ehaupt@critical.ch XCOMMENT= XMMS input-plugin for playing Nintendo(TM) NSF audio files X XBUILD_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms XRUN_DEPENDS= xmms:${PORTSDIR}/multimedia/xmms X XUSE_LIBTOOL_VER=13 XUSE_REINPLACE= yes XUSE_X_PREFIX= yes X XONLY_FOR_ARCHS= i386 amd64 X XPLIST_FILES= lib/xmms/Input/libnsf.so lib/xmms/Input/libnsf.la X Xpost-patch: X @${REINPLACE_CMD} -e 's|<malloc\.h>|<stdlib.h>|' \ X ${WRKSRC}/src/nes/nestypes.h X Xpost-install: X @${SED} -e 's|%%VERSION%%|${PORTVERSION}|' ${PKGMESSAGE} X X.include <bsd.port.mk> END-of-xmms-nsf/Makefile echo x - xmms-nsf/pkg-descr sed 's/^X//' >xmms-nsf/pkg-descr << 'END-of-xmms-nsf/pkg-descr' XThis is an XMMS input plugin for playing Nintendo(TM) 8bit NSF audio files. XThe module has a special pannel for selecting multi track .nsf files. X XWWW: http://optronic.sourceforge.net/files/ X X- ehaupt Xehaupt@critical.ch END-of-xmms-nsf/pkg-descr echo x - xmms-nsf/distinfo sed 's/^X//' >xmms-nsf/distinfo << 'END-of-xmms-nsf/distinfo' XMD5 (xmms-nsf-0.0.3.tar.gz) = 45c55a17d81cd82d36d59bdb231777df XSIZE (xmms-nsf-0.0.3.tar.gz) = 185683 END-of-xmms-nsf/distinfo echo x - xmms-nsf/pkg-message sed 's/^X//' >xmms-nsf/pkg-message << 'END-of-xmms-nsf/pkg-message' X================================================================================ XA huge .nsf file collection can be found at: http://www.2a03.org/browse.php/2A03 X XNSF files may contain multiple tracks. You can activate a special pannel by Xselecting "NSF Player %%VERSION%% [libnsf.so]" and pressing the "About" button. X================================================================================ END-of-xmms-nsf/pkg-message exit --- xmms-nsf.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508181713.j7IHD3jl046509>