Lines Matching refs:oldAsm

292             oldAsm = line[len(self.indent):len(line) - len(endOfLine)]
296 self.TranslateAsm(oldAsm, endOfLine)
407 def TranslateAsm(self, oldAsm, endOfLine): argument
408 assert(oldAsm.strip() == oldAsm)
412 oldOp = oldAsm.split()
418 if oldAsm == '':
419 newAsm = oldAsm
420 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
422 newAsm = oldAsm
423 self.EmitLine(oldAsm + endOfLine)
426 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
427 elif oldAsm.lower() == '@@:':
430 elif self.MatchAndSetMo(self.ignoreRe, oldAsm):
432 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
433 elif oldAsm.lower() == 'ret':
438 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
441 newAsm = self.ConvertLea(oldAsm)
442 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
443 elif oldAsm.lower() == 'end':
445 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
447 elif self.MatchAndSetMo(self.equRe, oldAsm):
450 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
451 elif self.MatchAndSetMo(self.externRe, oldAsm) or \
452 self.MatchAndSetMo(self.protoRe, oldAsm):
456 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
457 elif self.MatchAndSetMo(self.externdefRe, oldAsm):
459 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
460 elif self.MatchAndSetMo(self.macroDeclRe, oldAsm):
462 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
465 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
466 elif self.MatchAndSetMo(self.sectionDeclRe, oldAsm):
473 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
474 elif self.MatchAndSetMo(self.procDeclRe, oldAsm):
486 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
495 elif self.MatchAndSetMo(self.procEndRe, oldAsm):
497 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
498 elif self.MatchAndSetMo(self.publicRe, oldAsm):
508 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
509 elif self.MatchAndSetMo(self.defineDataRe, oldAsm):
517 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
519 newAsm = self.CommonConversions(oldAsm)
520 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
527 def ConvertAnonymousLabels(self, oldAsm): argument
528 newAsm = oldAsm
563 def EmitAsmReplaceOp(self, oldAsm, oldOp, newOp, endOfLine): argument
564 newAsm = oldAsm.replace(oldOp, newOp, 1)
565 self.EmitAsmWithComment(oldAsm, newAsm, endOfLine)
569 def EmitAsmWithComment(self, oldAsm, newAsm, endOfLine): argument
577 ((oldAsm + endOfLine).strip() == ''))
594 def ConvertLea(self, oldAsm): argument
595 newAsm = oldAsm
596 if self.MatchAndSetMo(self.leaRe, oldAsm):
614 def ConvertPtr(self, oldAsm): argument
615 newAsm = oldAsm
632 def ConvertLabelByte(self, oldAsm): argument
633 newAsm = oldAsm
659 def ConvertBitwiseOp(self, oldAsm): argument
660 newAsm = oldAsm
691 def ConvertSection(self, oldAsm): argument
692 newAsm = oldAsm
711 def FwordUnsupportedCheck(self, oldAsm): argument
712 newAsm = oldAsm
726 def CommonConversions(self, oldAsm): argument
727 newAsm = oldAsm