microasm.isa (6517:584314d07394) | microasm.isa (6618:2cd3ce4fa03f) |
---|---|
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: --- 205 unchanged lines hidden (view full) --- 214 return "romMicroPC(RomLabels::label_%s)" % labelStr 215 216 assembler.symbols["rom_local_label"] = rom_local_labeler 217 218 def stack_index(index): 219 return regIdx("NUM_FLOATREGS + (((%s) + 8) %% 8)" % index) 220 221 assembler.symbols["st"] = stack_index | 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: --- 205 unchanged lines hidden (view full) --- 214 return "romMicroPC(RomLabels::label_%s)" % labelStr 215 216 assembler.symbols["rom_local_label"] = rom_local_labeler 217 218 def stack_index(index): 219 return regIdx("NUM_FLOATREGS + (((%s) + 8) %% 8)" % index) 220 221 assembler.symbols["st"] = stack_index |
222 assembler.symbols["sti"] = stack_index("env.reg") 223 assembler.symbols["stim"] = stack_index("env.regm") |
|
222 223 macroopDict = assembler.assemble(microcode) 224 225 decoder_output += mainRom.getDefinition() 226 header_output += mainRom.getDeclaration() 227}}; | 224 225 macroopDict = assembler.assemble(microcode) 226 227 decoder_output += mainRom.getDefinition() 228 header_output += mainRom.getDeclaration() 229}}; |