1// Copyright (c) 2008 The Regents of The University of Michigan 2// All rights reserved. 3// 4// Redistribution and use in source and binary forms, with or without 5// modification, are permitted provided that the following conditions are 6// met: redistributions of source code must retain the above copyright 7// notice, this list of conditions and the following disclaimer; 8// redistributions in binary form must reproduce the above copyright --- 388 unchanged lines hidden (view full) --- 397let {{ 398 399 # Make these empty strings so that concatenating onto 400 # them will always work. 401 header_output = "" 402 decoder_output = "" 403 exec_output = "" 404 |
405 calculateEA = ''' 406 EA = bits(SegBase + scale * Index + Base + disp, addressSize * 8 - 1, 0); 407 ''' |
408 409 def defineMicroLoadOp(mnemonic, code, mem_flags="0"): 410 global header_output 411 global decoder_output 412 global exec_output 413 global microopClasses 414 Name = mnemonic 415 name = mnemonic.lower() --- 117 unchanged lines hidden --- |