bin_to_cso_mp3 readme.txt updated
[picodrive.git] / cpu / Cyclone / Main.cpp
index 4cfc774..2c87ea0 100644 (file)
@@ -6,8 +6,8 @@ static FILE *AsmFile=NULL;
 static int CycloneVer=0x0099; // Version number of library\r
 int *CyJump=NULL; // Jump table\r
 int ms=USE_MS_SYNTAX; // If non-zero, output in Microsoft ARMASM format\r
-char *Narm[4]={ "b", "h","",""}; // Normal ARM Extensions for operand sizes 0,1,2\r
-char *Sarm[4]={"sb","sh","",""}; // Sign-extend ARM Extensions for operand sizes 0,1,2\r
+const char * const Narm[4]={ "b", "h","",""}; // Normal ARM Extensions for operand sizes 0,1,2\r
+const char * const Sarm[4]={"sb","sh","",""}; // Sign-extend ARM Extensions for operand sizes 0,1,2\r
 int Cycles; // Current cycles for opcode\r
 int pc_dirty; // something changed PC during processing\r
 int arm_op_count;\r
@@ -83,7 +83,7 @@ static void ChangeTAS(int norm)
 #endif\r
 \r
 #if EMULATE_ADDRESS_ERRORS_JUMP || EMULATE_ADDRESS_ERRORS_IO\r
-static void AddressErrorWrapper(char rw, char *dataprg, int iw)\r
+static void AddressErrorWrapper(char rw, const char *dataprg, int iw)\r
 {\r
   ot("ExceptionAddressError_%c_%s%s\n", rw, dataprg, ms?"":":");\r
   ot("  ldr r1,[r7,#0x44]\n");\r
@@ -1096,7 +1096,7 @@ static void PrintJumpTable()
 static int CycloneMake()\r
 {\r
   int i;\r
-  char *name="Cyclone.s";\r
+  const char *name="Cyclone.s";\r
   const char *globl=ms?"export":".global";\r
   \r
   // Open the assembly file\r
@@ -1131,6 +1131,10 @@ static int CycloneMake()
   ot("  %s CycloneDoInterrupt\n",globl);\r
   ot("  %s CycloneDoTrace\n",globl);\r
   ot("  %s CycloneJumpTab\n",globl);\r
+  ot("  %s Op____\n",globl);\r
+  ot("  %s Op6001\n",globl);\r
+  ot("  %s Op6601\n",globl);\r
+  ot("  %s Op6701\n",globl);\r
 #endif\r
   ot("\n");\r
   ot(ms?"CycloneVer dcd 0x":"CycloneVer: .long 0x");\r