Porting NASM Assembly to GCC

From OMAPpedia

Revision as of 15:18, 25 May 2010 by Hari s (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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