microasm.isa (5666:e7925fa8f0d6) | microasm.isa (5667:78b94954f66a) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// Redistribution and use of this software in source and binary forms, 7// with or without modification, are permitted provided that the 8// following conditions are met: --- 169 unchanged lines hidden (view full) --- 178 179 assembler.symbols["trimImm"] = trimImm 180 181 def labeler(labelStr): 182 return "label_%s" % labelStr 183 184 assembler.symbols["label"] = labeler 185 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// Redistribution and use of this software in source and binary forms, 7// with or without modification, are permitted provided that the 8// following conditions are met: --- 169 unchanged lines hidden (view full) --- 178 179 assembler.symbols["trimImm"] = trimImm 180 181 def labeler(labelStr): 182 return "label_%s" % labelStr 183 184 assembler.symbols["label"] = labeler 185 |
186 def rom_labeler(labelStr): 187 return "romMicroPC(RomLabels::extern_label_%s)" % labelStr 188 189 assembler.symbols["rom_label"] = rom_labeler 190 |
|
186 def stack_index(index): 187 return "(NUM_FLOATREGS + (((%s) + 8) %% 8))" % index 188 189 assembler.symbols["st"] = stack_index 190 191 macroopDict = assembler.assemble(microcode) 192 193 decoder_output += mainRom.getDefinition() 194 header_output += mainRom.getDeclaration() 195}}; | 191 def stack_index(index): 192 return "(NUM_FLOATREGS + (((%s) + 8) %% 8))" % index 193 194 assembler.symbols["st"] = stack_index 195 196 macroopDict = assembler.assemble(microcode) 197 198 decoder_output += mainRom.getDefinition() 199 header_output += mainRom.getDeclaration() 200}}; |