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: --- 174 unchanged lines hidden (view full) --- 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 |
191 def rom_local_labeler(labelStr): 192 return "romMicroPC(RomLabels::label_%s)" % labelStr 193 194 assembler.symbols["rom_local_label"] = rom_local_labeler 195 |
196 def stack_index(index): 197 return "(NUM_FLOATREGS + (((%s) + 8) %% 8))" % index 198 199 assembler.symbols["st"] = stack_index 200 201 macroopDict = assembler.assemble(microcode) 202 203 decoder_output += mainRom.getDefinition() 204 header_output += mainRom.getDeclaration() 205}}; |