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: 9// 10// The software must be used only for Non-Commercial Use which means any 11// use which is NOT directed to receiving any direct monetary --- 118 unchanged lines hidden (view full) --- 130 assembler.symbols["flatseg"] = "SEGMENT_REG_LS" 131 132 for reg in ('ax', 'bx', 'cx', 'dx', 'sp', 'bp', 'si', 'di'): 133 assembler.symbols["r%s" % reg] = "INTREG_R%s" % reg.upper() 134 135 for reg in range(15): 136 assembler.symbols["cr%d" % reg] = "MISCREG_CR%d" % reg 137 |
138 for flag in ('CF', 'PF', 'ECF', 'AF', 'EZF', 'ZF', 'SF', 'OF', \ 139 'TF', 'IF', 'NT', 'RF', 'VM', 'AC', 'VIF', 'VIP', 'ID'): |
140 assembler.symbols[flag] = flag + "Bit" 141 142 for cond in ('True', 'False', 'ECF', 'EZF', 'SZnZF', 143 'MSTRZ', 'STRZ', 'MSTRC', 144 'OF', 'CF', 'ZF', 'CvZF', 145 'SF', 'PF', 'SxOF', 'SxOvZF'): 146 assembler.symbols["C%s" % cond] = "ConditionTests::%s" % cond 147 assembler.symbols["nC%s" % cond] = "ConditionTests::Not%s" % cond --- 37 unchanged lines hidden --- |