Porting NASM Assembly to GCC

From OMAPpedia

(Difference between revisions)
Jump to: navigation, search
(Basics)
m (Added category tag)
 
Line 21: Line 21:
  CONSTANTS: ([a-zA-Z0-9_]+)\s+EQU\s+([0-9a-zA-Z_]+) -> .equ \1, \2
  CONSTANTS: ([a-zA-Z0-9_]+)\s+EQU\s+([0-9a-zA-Z_]+) -> .equ \1, \2
</pre>
</pre>
 +
 +
 +
[[Category:Tools]]

Latest revision as of 15:18, 25 May 2010

Contents

[edit] Replacements

[edit] Using Notepad++ and Regular Expressions

[edit] Basics

[edit] Regular Expressions

 FUNCTION START: \s+LEAF_ENTRY\s+([a-zA-Z0-9_]+) -> \1:
 FUNCTION END: \s+ENTRY_END\s+[a-zA-Z0-9_]+  -> nothing
 LABELS: ^([a-zA-Z0-9_]+)([^:])$ -> \1\2:
 REGISTER RENAMES: RN\s([0-9]+)-> .req r\1
 LINE COMMENTS: ; -> # then (\s+)#\s(.*) -> \1/* \2 */ and (\s+)#(=)(.*) -> \1/* \2\3 */
 CONSTANTS: ([a-zA-Z0-9_]+)\s+EQU\s+([0-9a-zA-Z_]+) -> .equ \1, \2
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox