microasm.isa (5674:4a4f20dfbc60) | microasm.isa (5676:cca6726c0d88) |
---|---|
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 | 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 |
|
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}}; | 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}}; |