micro_asm.py (4566:a0ec2dee1a1b) micro_asm.py (4591:f275f155962a)
1# Copyright (c) 2003-2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 117 unchanged lines hidden (view full) ---

126 print
127
128def handle_statement(parser, container, statement):
129 if statement.is_microop:
130 try:
131 microop = eval('parser.microops[statement.mnemonic](%s)' %
132 statement.params)
133 except:
1# Copyright (c) 2003-2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 117 unchanged lines hidden (view full) ---

126 print
127
128def handle_statement(parser, container, statement):
129 if statement.is_microop:
130 try:
131 microop = eval('parser.microops[statement.mnemonic](%s)' %
132 statement.params)
133 except:
134 print_error("Error creating microop object.")
134 print_error("Error creating microop object with mnemonic %s." % \
135 statement.mnemonic)
135 raise
136 try:
137 for label in statement.labels:
138 container.labels[label.name] = microop
139 if label.extern:
140 container.externs[label.name] = microop
141 container.add_microop(microop)
142 except:

--- 349 unchanged lines hidden ---
136 raise
137 try:
138 for label in statement.labels:
139 container.labels[label.name] = microop
140 if label.extern:
141 container.externs[label.name] = microop
142 container.add_microop(microop)
143 except:

--- 349 unchanged lines hidden ---