Commits

Kareem Callender committed 56128cb Draft

Allow for symbols starting with underscores.

  • Participants
  • Parent commits 892f9a1

Comments (0)

Files changed (2)

gbread/Base/Utility.cs

     {
         public static bool IsWord(string check)
         {
-            return new Regex(@"^[A-Za-z][A-Za-z0-9_]*$").IsMatch(check);
+            return new Regex(@"^[A-Za-z_][A-Za-z0-9_]*$").IsMatch(check);
         }
+
         public static int GetRealAddress(int bank, int address)
         {
             if (address < 0x4000 || bank == 0)
             }
         }
 
+        public static int GetBankOfRealAddress(int address)
+        {
+            return address >> 14;
+        }
+
         public static bool OffsetStringToInt(string text, out int offset)
         {
             offset = int.MinValue;

gbread/changelog.txt

 r16.01(2012/11/9)
 -[Fix]Error relating to loading comments with colons.
 -[Fix]Error relating to template definition and comments.
+-[Fix]Error relating to printing sections of data.
 
 r16(2012/11/7)
 -[Add]Comments can be specified for disassembly. They are attached to specific