microasm.isa (7087:fb8d5786ff30) | microasm.isa (9372:7ba317c33683) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 193 unchanged lines hidden (view full) --- 202 203 def stack_index(index): 204 return regIdx("NUM_FLOATREGS + (((%s) + 8) %% 8)" % index) 205 206 assembler.symbols["st"] = stack_index 207 assembler.symbols["sti"] = stack_index("env.reg") 208 assembler.symbols["stim"] = stack_index("env.regm") 209 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// The license below extends only to copyright in the software and shall 7// not be construed as granting a license to any other intellectual 8// property including but not limited to intellectual property relating --- 193 unchanged lines hidden (view full) --- 202 203 def stack_index(index): 204 return regIdx("NUM_FLOATREGS + (((%s) + 8) %% 8)" % index) 205 206 assembler.symbols["st"] = stack_index 207 assembler.symbols["sti"] = stack_index("env.reg") 208 assembler.symbols["stim"] = stack_index("env.regm") 209 |
210 def readFpReg(reg_name): 211 return regIdx("MISCREG_%s" % reg_name) 212 213 assembler.symbols["fsw"] = readFpReg("FSW") 214 assembler.symbols["fcw"] = readFpReg("FCW") 215 |
|
210 macroopDict = assembler.assemble(microcode) 211 212 decoder_output += mainRom.getDefinition() 213 header_output += mainRom.getDeclaration() 214}}; | 216 macroopDict = assembler.assemble(microcode) 217 218 decoder_output += mainRom.getDefinition() 219 header_output += mainRom.getDeclaration() 220}}; |