| 1 | /* |
| 2 | the DASM macro assembler (aka small systems cross assembler) |
| 3 | |
| 4 | Copyright (c) 1988-2002 by Matthew Dillon. |
| 5 | Copyright (c) 1995 by Olaf "Rhialto" Seibert. |
| 6 | Copyright (c) 2003-2008 by Andrew Davie. |
| 7 | Copyright (c) 2008 by Peter H. Froehlich. |
| 8 | |
| 9 | This program is free software; you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation; either version 2 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | This program is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License along |
| 20 | with this program; if not, write to the Free Software Foundation, Inc., |
| 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 22 | */ |
| 23 | |
| 24 | /* |
| 25 | * MNEF8.C |
| 26 | * |
| 27 | * Fairchild F8 support code for DASM |
| 28 | * Copyright (c) 2004 by Thomas Mathys. |
| 29 | */ |
| 30 | |
| 31 | #include <ctype.h> |
| 32 | #include <strings.h> |
| 33 | |
| 34 | #include "asm.h"cxx . . $ `<file>/src/asm.h`/ |
| 35 | |
| 36 | /* |
| 37 | * special registers. must use numbers from 16 and up, |
| 38 | * since numbers below 16 are used for scratchpad registers. |
| 39 | * |
| 40 | * there is no REG_J, since J is really just scratchpad register 9. |
| 41 | */ |
| 42 | enum REGISTERScxx . . $ REGISTERS# { |
| 43 | REG_Acxx . . $ REG_A. = 16, |
| 44 | REG_DC0cxx . . $ REG_DC0., |
| 45 | REG_Hcxx . . $ REG_H., |
| 46 | REG_IScxx . . $ REG_IS., |
| 47 | REG_Kcxx . . $ REG_K., |
| 48 | REG_KUcxx . . $ REG_KU., |
| 49 | REG_KLcxx . . $ REG_KL., |
| 50 | REG_PC0cxx . . $ REG_PC0., |
| 51 | REG_PC1cxx . . $ REG_PC1., |
| 52 | REG_Qcxx . . $ REG_Q., |
| 53 | REG_QUcxx . . $ REG_QU., |
| 54 | REG_QLcxx . . $ REG_QL., |
| 55 | REG_Wcxx . . $ REG_W., |
| 56 | REG_NONEcxx . . $ REG_NONE., |
| 57 | }; |
| 58 | |
| 59 | |
| 60 | /* |
| 61 | * used to print error messages. |
| 62 | * mnename and opstring are copied into a single error message, |
| 63 | * which is passed to asmerr. |
| 64 | * |
| 65 | * err : error code (ERROR_xxx constant, passed to asmerr) |
| 66 | * mnename : name of the mnemonic |
| 67 | * opstring : operand string |
| 68 | * abort : false = don't abort assembly |
| 69 | * true = abort assembly |
| 70 | */ |
| 71 | static void f8errcxx . . $ f8err(bb5614745a3d0e4c).(int err, const char *mnename, const char *opstring, boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! bAbort) { |
| 72 | |
| 73 | char *buf; |
| 74 | |
| 75 | buf = ckmalloccxx . . $ ckmalloc(ff224f080444ee45).(strlencxx . . $ strlen(751346f8406fd082).(mnename) + strlencxx . . $ strlen(751346f8406fd082).(opstring) + 64); |
| 76 | strcpycxx . . $ strcpy(b7b3a83273496486).(buf, mnename); |
| 77 | strcatcxx . . $ strcat(b7b3a83273496486).(buf, " "); |
| 78 | strcatcxx . . $ strcat(b7b3a83273496486).(buf, opstring); |
| 79 | asmerrcxx . . $ asmerr(1daa6892c969c96d).(err, bAbort, buf); |
| 80 | freecxx . . $ free(5d22bdacc48458e8).(buf); |
| 81 | } |
| 82 | |
| 83 | |
| 84 | /* |
| 85 | * emits a one byte opcode. |
| 86 | */ |
| 87 | static void emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(unsigned char opcode) { |
| 88 | Glencxx . . $ Glen. = 1; |
| 89 | Gencxx . . $ Gen.[0] = opcode; |
| 90 | generatecxx . . $ generate(49f6e7a06ebc5aa8).(); |
| 91 | } |
| 92 | |
| 93 | |
| 94 | /* |
| 95 | * emits a two byte opcode |
| 96 | * |
| 97 | * byte0 : first byte (lower address) |
| 98 | * byte1 : second byte (higher address) |
| 99 | */ |
| 100 | static void emit_opcode2cxx . . $ emit_opcode2(8fbe6856f5410d23).(unsigned char byte0, unsigned char byte1) { |
| 101 | Glencxx . . $ Glen. = 2; |
| 102 | Gencxx . . $ Gen.[0] = byte0; |
| 103 | Gencxx . . $ Gen.[1] = byte1; |
| 104 | generatecxx . . $ generate(49f6e7a06ebc5aa8).(); |
| 105 | } |
| 106 | |
| 107 | |
| 108 | /* |
| 109 | * emits a three byte opcode |
| 110 | * |
| 111 | * byte0 : first byte (lowest address) |
| 112 | * byte1 : second byte (middle address) |
| 113 | * byte2 : third byte (highest address) |
| 114 | */ |
| 115 | static void emit_opcode3cxx . . $ emit_opcode3(684ed43ade99b32e).(unsigned char byte0, unsigned char byte1, unsigned char byte2) { |
| 116 | Glencxx . . $ Glen. = 3; |
| 117 | Gencxx . . $ Gen.[0] = byte0; |
| 118 | Gencxx . . $ Gen.[1] = byte1; |
| 119 | Gencxx . . $ Gen.[2] = byte2; |
| 120 | generatecxx . . $ generate(49f6e7a06ebc5aa8).(); |
| 121 | } |
| 122 | |
| 123 | |
| 124 | |
| 125 | /* |
| 126 | * check wether the current program counter is known. |
| 127 | * |
| 128 | * result : zero = current program counter is unknown |
| 129 | * nonzero = current program counter is known |
| 130 | */ |
| 131 | static int isPCKnowncxx . . $ isPCKnown(b126dc7c1de90089).(void) { |
| 132 | unsigned char pcf; |
| 133 | pcf= (Csegmentcxx . . $ Csegment.->flagscxx . . $ _SEGMENT#flags. & SF_RORGcxx . . $ `src/asm.h:311:9`!) ? Csegmentcxx . . $ Csegment.->rflagscxx . . $ _SEGMENT#rflags. : Csegmentcxx . . $ Csegment.->flagscxx . . $ _SEGMENT#flags.; |
| 134 | return ((pcf & (SF_UNKNOWNcxx . . $ `src/asm.h:308:9`!|2)) == 0) ? 1 : 0; |
| 135 | } |
| 136 | |
| 137 | |
| 138 | /* |
| 139 | * returns the current program counter |
| 140 | */ |
| 141 | static long getPCcxx . . $ getPC(da6335ded91d79c2).(void) { |
| 142 | return (Csegmentcxx . . $ Csegment.->flagscxx . . $ _SEGMENT#flags. & SF_RORGcxx . . $ `src/asm.h:311:9`!) ? Csegmentcxx . . $ Csegment.->rorgcxx . . $ _SEGMENT#rorg. : Csegmentcxx . . $ Csegment.->orgcxx . . $ _SEGMENT#org.; |
| 143 | } |
| 144 | |
| 145 | |
| 146 | /* |
| 147 | * attempts to parse a 32 bit unsigned value from a string. |
| 148 | * |
| 149 | * str : string to parse the value from |
| 150 | * value : parsed value is stored here |
| 151 | * |
| 152 | * result : zero = ok or syntax error |
| 153 | * nonzero = unresolved expression |
| 154 | */ |
| 155 | static int parse_valuecxx . . $ parse_value(bd93ee2296053586).(char *str, unsigned long *value) { |
| 156 | |
| 157 | SYMBOLcxx . . $ `src/asm.h:160:9`! *sym; |
| 158 | int result = 0; |
| 159 | |
| 160 | *value = 0; |
| 161 | sym = evalcxx . . $ eval(83a8820e5b78665b).(str, 0); |
| 162 | |
| 163 | if (NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`! != sym->nextcxx . . $ _SYMBOL#next. || AM_BYTEADRcxx . . $ AM_BYTEADR. != sym->addrmodecxx . . $ _SYMBOL#addrmode.) { |
| 164 | asmerrcxx . . $ asmerr(1daa6892c969c96d).(ERROR_SYNTAX_ERRORcxx . . $ ERROR_SYNTAX_ERROR., truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!, str); |
| 165 | } |
| 166 | else if (sym->flagscxx . . $ _SYMBOL#flags. & SYM_UNKNOWNcxx . . $ `src/asm.h:326:9`!) { |
| 167 | ++Redocxx . . $ Redo.; |
| 168 | Redo_whycxx . . $ Redo_why. |= REASON_MNEMONIC_NOT_RESOLVEDcxx . . $ REASON_MNEMONIC_NOT_RESOLVED.; |
| 169 | result = 1; |
| 170 | } |
| 171 | else { |
| 172 | *value = sym->valuecxx . . $ _SYMBOL#value.; |
| 173 | } |
| 174 | FreeSymbolListcxx . . $ FreeSymbolList(54782e8e250fbf33).(sym); |
| 175 | |
| 176 | return result; |
| 177 | } |
| 178 | |
| 179 | |
| 180 | /* |
| 181 | * attempts to parse a scratchpad register name. |
| 182 | * register numbers are parsed as expressions. |
| 183 | * if an expression is invalid, asmerr is called |
| 184 | * and the assembly aborted. |
| 185 | * |
| 186 | * accepts the following input: |
| 187 | * |
| 188 | * - numbers 0..14 (as expressions, numbers 12-14 map to S, I and D) |
| 189 | * - J (alias for register 9) |
| 190 | * - HU (alias for register 10) |
| 191 | * - HL (alias for register 11) |
| 192 | * - S and (IS) |
| 193 | * - I and (IS)+ |
| 194 | * - D and (IS)- |
| 195 | * |
| 196 | * str : string to parse the scratchpad register from |
| 197 | * reg : parsed scratchpad register is stored here. |
| 198 | * this is the value which will become the lower |
| 199 | * nibble of the opcodes. |
| 200 | * |
| 201 | * result : zero = ok or syntax error |
| 202 | * nonzero = unresolved expression |
| 203 | */ |
| 204 | static int parse_scratchpad_registercxx . . $ parse_scratchpad_register(6ff612fc7eed5ac5).(char *str, unsigned char *reg) { |
| 205 | |
| 206 | unsigned long regnum; |
| 207 | |
| 208 | /* parse special cases where ISAR is used as index */ |
| 209 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("s", str) || !strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("(is)", str)) { |
| 210 | *reg = 0x0c; |
| 211 | return 0; |
| 212 | } |
| 213 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("i", str) || !strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("(is)+", str)) { |
| 214 | *reg = 0x0d; |
| 215 | return 0; |
| 216 | } |
| 217 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("d", str) || !strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("(is)-", str)) { |
| 218 | *reg = 0x0e; |
| 219 | return 0; |
| 220 | } |
| 221 | |
| 222 | /* parse aliases for scratchpad registers */ |
| 223 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("j", str)) { |
| 224 | *reg = 0x09; |
| 225 | return 0; |
| 226 | } |
| 227 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("hu", str)) { |
| 228 | *reg = 0x0a; |
| 229 | return 0; |
| 230 | } |
| 231 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("hl", str)) { |
| 232 | *reg = 0x0b; |
| 233 | return 0; |
| 234 | } |
| 235 | |
| 236 | /* parse register number */ |
| 237 | if (parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, ®num)) { |
| 238 | return 1; /* unresolved expr */ |
| 239 | } else { |
| 240 | if (regnum > 14) { |
| 241 | asmerrcxx . . $ asmerr(1daa6892c969c96d).(ERROR_VALUE_MUST_BE_LT_Fcxx . . $ ERROR_VALUE_MUST_BE_LT_F., truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!, str); |
| 242 | } |
| 243 | *reg = regnum; |
| 244 | return 0; |
| 245 | } |
| 246 | } |
| 247 | |
| 248 | |
| 249 | /* |
| 250 | * attempts to parse a special register name from str |
| 251 | * |
| 252 | * result : one of the REG_xxx constants (possibly also REG_NONE) |
| 253 | */ |
| 254 | static int parse_special_registercxx . . $ parse_special_register(1ef8e6ec083aabb9).(char *str) { |
| 255 | |
| 256 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("a", str)) { |
| 257 | return REG_Acxx . . $ REG_A.; |
| 258 | } |
| 259 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("dc0", str) || !strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("dc", str) ) { |
| 260 | return REG_DC0cxx . . $ REG_DC0.; |
| 261 | } |
| 262 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("h", str)) { |
| 263 | return REG_Hcxx . . $ REG_H.; |
| 264 | } |
| 265 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("is", str)) { |
| 266 | return REG_IScxx . . $ REG_IS.; |
| 267 | } |
| 268 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("k", str)) { |
| 269 | return REG_Kcxx . . $ REG_K.; |
| 270 | } |
| 271 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("ku", str)) { |
| 272 | return REG_KUcxx . . $ REG_KU.; |
| 273 | } |
| 274 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("kl", str)) { |
| 275 | return REG_KLcxx . . $ REG_KL.; |
| 276 | } |
| 277 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("pc0", str) || !strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("p0", str)) { |
| 278 | return REG_PC0cxx . . $ REG_PC0.; |
| 279 | } |
| 280 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("pc1", str) || !strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("p", str)) { |
| 281 | return REG_PC1cxx . . $ REG_PC1.; |
| 282 | } |
| 283 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("q", str)) { |
| 284 | return REG_Qcxx . . $ REG_Q.; |
| 285 | } |
| 286 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("qu", str)) { |
| 287 | return REG_QUcxx . . $ REG_QU.; |
| 288 | } |
| 289 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("ql", str)) { |
| 290 | return REG_QLcxx . . $ REG_QL.; |
| 291 | } |
| 292 | if (!strcasecmpcxx . . $ strcasecmp(5ae29d726ae57f88).("w", str)) { |
| 293 | return REG_Wcxx . . $ REG_W.; |
| 294 | } |
| 295 | else { |
| 296 | return REG_NONEcxx . . $ REG_NONE.; |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | |
| 301 | static void v_ins_outscxx . . $ v_ins_outs(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 302 | |
| 303 | unsigned long operand; |
| 304 | |
| 305 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 306 | parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, &operand); |
| 307 | if (operand > 15) { |
| 308 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_VALUE_MUST_BE_LT_10cxx . . $ ERROR_VALUE_MUST_BE_LT_10., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 309 | } |
| 310 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(mne->opcodecxx . . $ _MNE#opcode.[0] | (operand & 15)); |
| 311 | } |
| 312 | |
| 313 | |
| 314 | static void v_sl_srcxx . . $ v_sl_sr(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 315 | |
| 316 | unsigned long operand; |
| 317 | |
| 318 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 319 | |
| 320 | if (parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, &operand)) { |
| 321 | /* unresolved expression, reserve space */ |
| 322 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(0); |
| 323 | } else { |
| 324 | switch (operand) { |
| 325 | case 1: |
| 326 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(mne->opcodecxx . . $ _MNE#opcode.[0]); |
| 327 | break; |
| 328 | case 4: |
| 329 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(mne->opcodecxx . . $ _MNE#opcode.[0] + 2); |
| 330 | break; |
| 331 | default: |
| 332 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_VALUE_MUST_BE_1_OR_4cxx . . $ ERROR_VALUE_MUST_BE_1_OR_4., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 333 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(0); |
| 334 | break; |
| 335 | } |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | |
| 340 | static void v_liscxx . . $ v_lis(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 341 | |
| 342 | unsigned long operand; |
| 343 | |
| 344 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 345 | parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, &operand); |
| 346 | if (operand > 15) { |
| 347 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_VALUE_MUST_BE_LT_10cxx . . $ ERROR_VALUE_MUST_BE_LT_10., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 348 | } |
| 349 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(0x70 | (operand & 15)); |
| 350 | } |
| 351 | |
| 352 | |
| 353 | static void v_lisu_lislcxx . . $ v_lisu_lisl(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 354 | |
| 355 | unsigned long operand; |
| 356 | |
| 357 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 358 | parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, &operand); |
| 359 | if (operand > 7) { |
| 360 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_VALUE_MUST_BE_LT_8cxx . . $ ERROR_VALUE_MUST_BE_LT_8., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 361 | } |
| 362 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(mne->opcodecxx . . $ _MNE#opcode.[0] | (operand & 7)); |
| 363 | } |
| 364 | |
| 365 | |
| 366 | /* |
| 367 | * handles opcodes with a scratchpad register operand: |
| 368 | * as, asd, ds, ns, xs |
| 369 | */ |
| 370 | static void v_sreg_opcxx . . $ v_sreg_op(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 371 | |
| 372 | unsigned char reg; |
| 373 | |
| 374 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 375 | parse_scratchpad_registercxx . . $ parse_scratchpad_register(6ff612fc7eed5ac5).(str, ®); |
| 376 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(mne->opcodecxx . . $ _MNE#opcode.[0] | reg); |
| 377 | } |
| 378 | |
| 379 | |
| 380 | static void v_lrcxx . . $ v_lr(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 381 | |
| 382 | int i; |
| 383 | int ncommas; |
| 384 | int cindex; |
| 385 | char *op1; |
| 386 | char *op2; |
| 387 | unsigned char reg_dst; |
| 388 | unsigned char reg_src; |
| 389 | int opcode; |
| 390 | |
| 391 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 392 | |
| 393 | /* a valid operand string must contain exactly one comma. find it. */ |
| 394 | ncommas = 0; |
| 395 | cindex = 0; |
| 396 | for (i=0; str[i]; i++) { |
| 397 | if (',' == str[i]) { |
| 398 | ncommas++; |
| 399 | cindex = i; |
| 400 | } |
| 401 | } |
| 402 | if (1 != ncommas) { |
| 403 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_SYNTAX_ERRORcxx . . $ ERROR_SYNTAX_ERROR., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 404 | return; |
| 405 | } |
| 406 | |
| 407 | /* extract operand strings */ |
| 408 | str[cindex] = 0; |
| 409 | op1 = str; |
| 410 | op2 = &str[cindex+1]; |
| 411 | if ( (0 != cindex) && (isspacecxx . . $ `<external>/17904084882347303253/ctype.h:197:10`!(str[cindex-1])) ) { |
| 412 | str[cindex-1] = 0; |
| 413 | } |
| 414 | if (isspacecxx . . $ `<external>/17904084882347303253/ctype.h:197:10`!(*op2)) { |
| 415 | op2++; |
| 416 | } |
| 417 | |
| 418 | /* parse operand strings for register names */ |
| 419 | reg_dst = parse_special_registercxx . . $ parse_special_register(1ef8e6ec083aabb9).(op1); |
| 420 | if (REG_NONEcxx . . $ REG_NONE. == reg_dst) { |
| 421 | if (parse_scratchpad_registercxx . . $ parse_scratchpad_register(6ff612fc7eed5ac5).(op1, ®_dst)) { |
| 422 | /* unresolved expression, reserve space */ |
| 423 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(0); |
| 424 | return; |
| 425 | } |
| 426 | } |
| 427 | reg_src = parse_special_registercxx . . $ parse_special_register(1ef8e6ec083aabb9).(op2); |
| 428 | if (REG_NONEcxx . . $ REG_NONE. == reg_src) { |
| 429 | if (parse_scratchpad_registercxx . . $ parse_scratchpad_register(6ff612fc7eed5ac5).(op2, ®_src)) { |
| 430 | /* unresolved expression, reserve space */ |
| 431 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(0); |
| 432 | return; |
| 433 | } |
| 434 | } |
| 435 | |
| 436 | /* restore operand string */ |
| 437 | str[cindex] = ','; |
| 438 | if ( (0 != cindex) && (0 == str[cindex-1])) { |
| 439 | str[cindex-1] = ' '; |
| 440 | } |
| 441 | |
| 442 | /* generate opcode */ |
| 443 | opcode = -1; |
| 444 | switch (reg_dst) { |
| 445 | case REG_Acxx . . $ REG_A.: /* lr a,xxx */ |
| 446 | switch (reg_src) { |
| 447 | case REG_IScxx . . $ REG_IS.: opcode = 0x0a; break; |
| 448 | case REG_KLcxx . . $ REG_KL.: opcode = 0x01; break; |
| 449 | case REG_KUcxx . . $ REG_KU.: opcode = 0x00; break; |
| 450 | case REG_QLcxx . . $ REG_QL.: opcode = 0x03; break; |
| 451 | case REG_QUcxx . . $ REG_QU.: opcode = 0x02; break; |
| 452 | default: |
| 453 | if (reg_src < 15) { |
| 454 | opcode = 0x40 | reg_src; |
| 455 | } |
| 456 | break; |
| 457 | } |
| 458 | break; |
| 459 | case REG_DC0cxx . . $ REG_DC0.: |
| 460 | switch (reg_src) { |
| 461 | case REG_Hcxx . . $ REG_H.: opcode = 0x10; break; |
| 462 | case REG_Qcxx . . $ REG_Q.: opcode = 0x0f; break; |
| 463 | } |
| 464 | break; |
| 465 | case REG_Hcxx . . $ REG_H.: |
| 466 | if (REG_DC0cxx . . $ REG_DC0. == reg_src) opcode = 0x11; |
| 467 | break; |
| 468 | case REG_IScxx . . $ REG_IS.: |
| 469 | if (REG_Acxx . . $ REG_A. == reg_src) opcode = 0x0b; |
| 470 | break; |
| 471 | case REG_Kcxx . . $ REG_K.: |
| 472 | if (REG_PC1cxx . . $ REG_PC1. == reg_src) opcode = 0x08; |
| 473 | break; |
| 474 | case REG_KLcxx . . $ REG_KL.: |
| 475 | if (REG_Acxx . . $ REG_A. == reg_src) opcode = 0x05; |
| 476 | break; |
| 477 | case REG_KUcxx . . $ REG_KU.: |
| 478 | if (REG_Acxx . . $ REG_A. == reg_src) opcode = 0x04; |
| 479 | break; |
| 480 | case REG_PC0cxx . . $ REG_PC0.: |
| 481 | if (REG_Qcxx . . $ REG_Q. == reg_src) opcode = 0x0d; |
| 482 | break; |
| 483 | case REG_PC1cxx . . $ REG_PC1.: |
| 484 | if (REG_Kcxx . . $ REG_K. == reg_src) opcode = 0x09; |
| 485 | break; |
| 486 | case REG_Qcxx . . $ REG_Q.: |
| 487 | if (REG_DC0cxx . . $ REG_DC0. == reg_src) opcode = 0x0e; |
| 488 | break; |
| 489 | case REG_QLcxx . . $ REG_QL.: |
| 490 | if (REG_Acxx . . $ REG_A. == reg_src) opcode = 0x07; |
| 491 | break; |
| 492 | case REG_QUcxx . . $ REG_QU.: |
| 493 | if (REG_Acxx . . $ REG_A. == reg_src) opcode = 0x06; |
| 494 | break; |
| 495 | case REG_Wcxx . . $ REG_W.: |
| 496 | if (0x09 == reg_src) opcode = 0x1d; |
| 497 | break; |
| 498 | default: /* lr sreg,xxx*/ |
| 499 | if ( (15 > reg_dst) && (REG_Acxx . . $ REG_A. == reg_src) ) { |
| 500 | /* lr sreg,a */ |
| 501 | opcode = 0x50 | reg_dst; |
| 502 | } |
| 503 | else if ( (9 == reg_dst) && (REG_Wcxx . . $ REG_W. == reg_src) ) { |
| 504 | /* special case : lr j,w */ |
| 505 | opcode = 0x1e; |
| 506 | } |
| 507 | break; |
| 508 | } |
| 509 | if (opcode < 0) { |
| 510 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_ILLEGAL_OPERAND_COMBINATIONcxx . . $ ERROR_ILLEGAL_OPERAND_COMBINATION., mne->namecxx . . $ _MNE#name., str, truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!); |
| 511 | } else { |
| 512 | emit_opcode1cxx . . $ emit_opcode1(ac50b47256ae7414).(opcode); |
| 513 | } |
| 514 | } |
| 515 | |
| 516 | extern int passcxx . . $ pass.; |
| 517 | |
| 518 | /* |
| 519 | * generates branch opcodes |
| 520 | * |
| 521 | * opcode : opcode of the branch (for instance 0x8f for BR7) |
| 522 | * str : operand string |
| 523 | */ |
| 524 | static void generate_branchcxx . . $ generate_branch(52b0f734985e7d07).(unsigned char opcode, char *str) { |
| 525 | |
| 526 | unsigned long target_adr; |
| 527 | long disp; |
| 528 | |
| 529 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 530 | |
| 531 | /* get target address */ |
| 532 | if (parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, &target_adr)) { |
| 533 | /* unresolved target address, reserve space */ |
| 534 | emit_opcode2cxx . . $ emit_opcode2(8fbe6856f5410d23).(0, 0); |
| 535 | return; |
| 536 | } |
| 537 | |
| 538 | /* calculate displacement */ |
| 539 | if (isPCKnowncxx . . $ isPCKnown(b126dc7c1de90089).()) { |
| 540 | disp = target_adr - getPCcxx . . $ getPC(da6335ded91d79c2).() - 1; |
| 541 | |
| 542 | if (disp > 127 || disp < -128) |
| 543 | { |
| 544 | char buf[64]; |
| 545 | sprintfcxx . . $ sprintf(26c8642d26409d6d).(buf, "%d", (int)disp); |
| 546 | asmerrcxx . . $ asmerr(1daa6892c969c96d).(ERROR_BRANCH_OUT_OF_RANGEcxx . . $ ERROR_BRANCH_OUT_OF_RANGE., falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!, buf); |
| 547 | } |
| 548 | } else { |
| 549 | /* unknown pc, will be (hopefully) resolved in future passes */ |
| 550 | disp = 0; |
| 551 | } |
| 552 | |
| 553 | emit_opcode2cxx . . $ emit_opcode2(8fbe6856f5410d23).(opcode, disp & 255); |
| 554 | } |
| 555 | |
| 556 | |
| 557 | /* |
| 558 | * handles the following branch mnemonics: |
| 559 | * bc, bm, bnc, bno, bnz, bp, br, br7, bz |
| 560 | */ |
| 561 | static void v_branchcxx . . $ v_branch(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 562 | generate_branchcxx . . $ generate_branch(52b0f734985e7d07).(mne->opcodecxx . . $ _MNE#opcode.[0], str); |
| 563 | } |
| 564 | |
| 565 | |
| 566 | static void v_bf_btcxx . . $ v_bf_bt(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 567 | |
| 568 | int ncommas; |
| 569 | int cindex; |
| 570 | int i; |
| 571 | char *op1; |
| 572 | char *op2; |
| 573 | unsigned long value; |
| 574 | |
| 575 | /* a valid operand string must contain exactly one comma. find it. */ |
| 576 | ncommas = 0; |
| 577 | cindex = 0; |
| 578 | for (i=0; str[i]; i++) { |
| 579 | if (',' == str[i]) { |
| 580 | ncommas++; |
| 581 | cindex = i; |
| 582 | } |
| 583 | } |
| 584 | if (1 != ncommas) { |
| 585 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_SYNTAX_ERRORcxx . . $ ERROR_SYNTAX_ERROR., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 586 | return; |
| 587 | } |
| 588 | |
| 589 | /* extract operands */ |
| 590 | str[cindex] = 0; |
| 591 | op1 = str; |
| 592 | op2 = &str[cindex+1]; |
| 593 | |
| 594 | /* parse first operand*/ |
| 595 | if (parse_valuecxx . . $ parse_value(bd93ee2296053586).(op1, &value)) { |
| 596 | /* unresolved expression, reserve space */ |
| 597 | emit_opcode2cxx . . $ emit_opcode2(8fbe6856f5410d23).(0, 0); |
| 598 | return; |
| 599 | } |
| 600 | |
| 601 | /* check first operand */ |
| 602 | str[cindex] = ','; /* restore operand string */ |
| 603 | if ('f' == mne->namecxx . . $ _MNE#name.[1]) { |
| 604 | /* bf */ |
| 605 | if (value > 15) { |
| 606 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_VALUE_MUST_BE_LT_10cxx . . $ ERROR_VALUE_MUST_BE_LT_10., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 607 | value &= 15; |
| 608 | } |
| 609 | } else { |
| 610 | /* bt */ |
| 611 | if (value > 7) { |
| 612 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_VALUE_MUST_BE_LT_8cxx . . $ ERROR_VALUE_MUST_BE_LT_8., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 613 | value &= 7; |
| 614 | } |
| 615 | } |
| 616 | |
| 617 | generate_branchcxx . . $ generate_branch(52b0f734985e7d07).(mne->opcodecxx . . $ _MNE#opcode.[0] | value, op2); |
| 618 | } |
| 619 | |
| 620 | |
| 621 | /* |
| 622 | * handles instructions that take a word operand: |
| 623 | * dci, jmp, pi |
| 624 | */ |
| 625 | static void v_wordopcxx . . $ v_wordop(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 626 | |
| 627 | unsigned long value; |
| 628 | |
| 629 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 630 | parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, &value); |
| 631 | if (value > 0xffff) { |
| 632 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_VALUE_MUST_BE_LT_10000cxx . . $ ERROR_VALUE_MUST_BE_LT_10000., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 633 | } |
| 634 | emit_opcode3cxx . . $ emit_opcode3(684ed43ade99b32e).(mne->opcodecxx . . $ _MNE#opcode.[0], (value >> 8) & 0xff, value & 0xff); |
| 635 | } |
| 636 | |
| 637 | |
| 638 | /* |
| 639 | * handles instructions that take a byte operand: |
| 640 | * ai, ci, in, li, ni, oi, out, xi |
| 641 | */ |
| 642 | static void v_byteopcxx . . $ v_byteop(b7f07ba78920e729).(char *str, MNEMONICcxx . . $ `src/asm.h:154:9`! *mne) { |
| 643 | |
| 644 | unsigned long value; |
| 645 | |
| 646 | programlabelcxx . . $ programlabel(49f6e7a06ebc5aa8).(); |
| 647 | parse_valuecxx . . $ parse_value(bd93ee2296053586).(str, &value); |
| 648 | if (value > 0xff) { |
| 649 | f8errcxx . . $ f8err(bb5614745a3d0e4c).(ERROR_ADDRESS_MUST_BE_LT_100cxx . . $ ERROR_ADDRESS_MUST_BE_LT_100., mne->namecxx . . $ _MNE#name., str, falsecxx . . $ `<external>/14268322491693841775/stdbool.h:38:9`!); |
| 650 | } |
| 651 | emit_opcode2cxx . . $ emit_opcode2(8fbe6856f5410d23).(mne->opcodecxx . . $ _MNE#opcode.[0], value & 0xff); |
| 652 | } |
| 653 | |
| 654 | |
| 655 | MNEMONICcxx . . $ `src/asm.h:154:9`! MneF8cxx . . $ MneF8.[] = { |
| 656 | |
| 657 | /* ds is an f8 opcode, so we replace the ds directive by res */ |
| 658 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dscxx . . $ v_ds(b7f07ba78920e729)., "res", 0, 0, {0,}}, |
| 659 | |
| 660 | /* add db/dw/dd directives for f8tool compatibility */ |
| 661 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729)., "db", 0, 0, {0,}}, |
| 662 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729)., "dw", 0, 0, {0,}}, |
| 663 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_dccxx . . $ v_dc(b7f07ba78920e729)., "dd", 0, 0, {0,}}, |
| 664 | |
| 665 | /* |
| 666 | * f8 opcodes |
| 667 | * |
| 668 | * some instructions have AF_IMP in der addressflag, although |
| 669 | * they are handled by own handlers and have explicit operands. |
| 670 | * this is to keep dasm from clearing the opcode array when |
| 671 | * adding the hashtable. |
| 672 | * |
| 673 | * the only instructions that are handled by v_mnemonic are |
| 674 | * those with implicit operands. |
| 675 | * |
| 676 | * other f8 instructions have register operands, which v_mnemonic |
| 677 | * can't handle. |
| 678 | * |
| 679 | * or they have byte and word operands (values or addresses). |
| 680 | * these could theoretically be handled by v_mnemonic, but |
| 681 | * we do it ourselves anyway, since this allows us to have |
| 682 | * expressions with parentheses as operands. |
| 683 | */ |
| 684 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "adc", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x8e}}, |
| 685 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "ai" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x24}}, |
| 686 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "am" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x88}}, |
| 687 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "amd", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x89}}, |
| 688 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_sreg_opcxx . . $ v_sreg_op(b7f07ba78920e729)., "as" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0xc0}}, /* base opcode */ |
| 689 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_sreg_opcxx . . $ v_sreg_op(b7f07ba78920e729)., "asd", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0xd0}}, /* base opcode */ |
| 690 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "bc" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x82}}, |
| 691 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_bf_btcxx . . $ v_bf_bt(b7f07ba78920e729)., "bf" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x90}}, /* base opcode */ |
| 692 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "bm" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x91}}, |
| 693 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "bnc", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x92}}, |
| 694 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "bno", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x98}}, |
| 695 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "bnz", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x94}}, |
| 696 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "bp" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x81}}, |
| 697 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "br" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x90}}, |
| 698 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "br7", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x8f}}, |
| 699 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_bf_btcxx . . $ v_bf_bt(b7f07ba78920e729)., "bt" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x80}}, /* base opcode */ |
| 700 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_branchcxx . . $ v_branch(b7f07ba78920e729)., "bz" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x84}}, |
| 701 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "ci" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x25}}, |
| 702 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "clr", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x70}}, |
| 703 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "cm" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x8d}}, |
| 704 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "com", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x18}}, |
| 705 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_wordopcxx . . $ v_wordop(b7f07ba78920e729)., "dci", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x2a}}, |
| 706 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "di" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x1a}}, |
| 707 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_sreg_opcxx . . $ v_sreg_op(b7f07ba78920e729)., "ds" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x30}}, /* base opcode */ |
| 708 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "ei" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x1b}}, |
| 709 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "in" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x26}}, |
| 710 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "inc", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x1f}}, |
| 711 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_ins_outscxx . . $ v_ins_outs(b7f07ba78920e729)., "ins", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0xa0}}, /* base opcode */ |
| 712 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_wordopcxx . . $ v_wordop(b7f07ba78920e729)., "jmp", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x29}}, |
| 713 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "li" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x20}}, |
| 714 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_liscxx . . $ v_lis(b7f07ba78920e729)., "lis", 0, 0, {0,}}, |
| 715 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_lisu_lislcxx . . $ v_lisu_lisl(b7f07ba78920e729).,"lisl",0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x68}}, /* base opcode */ |
| 716 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_lisu_lislcxx . . $ v_lisu_lisl(b7f07ba78920e729).,"lisu",0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x60}}, /* base opcode */ |
| 717 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "lm" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x16}}, |
| 718 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "lnk", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x19}}, |
| 719 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_lrcxx . . $ v_lr(b7f07ba78920e729)., "lr" , 0, 0, {0,}}, |
| 720 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "ni" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x21}}, |
| 721 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "nm" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x8a}}, |
| 722 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "nop", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x2b}}, |
| 723 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_sreg_opcxx . . $ v_sreg_op(b7f07ba78920e729)., "ns" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0xf0}}, /* base opcode */ |
| 724 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "oi" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x22}}, |
| 725 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "om" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x8b}}, |
| 726 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "out", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x27}}, |
| 727 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_ins_outscxx . . $ v_ins_outs(b7f07ba78920e729)., "outs",0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0xb0}}, /* base opcode */ |
| 728 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_wordopcxx . . $ v_wordop(b7f07ba78920e729)., "pi" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x28}}, |
| 729 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "pk" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x0c}}, |
| 730 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "pop", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x1c}}, |
| 731 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_sl_srcxx . . $ v_sl_sr(b7f07ba78920e729)., "sl" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x13}}, /* base opcode for "sl 1" */ |
| 732 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_sl_srcxx . . $ v_sl_sr(b7f07ba78920e729)., "sr" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x12}}, /* base opcode for "sr 1" */ |
| 733 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "st" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x17}}, |
| 734 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "xdc", 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x2c}}, |
| 735 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_byteopcxx . . $ v_byteop(b7f07ba78920e729)., "xi" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x23}}, |
| 736 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_mnemoniccxx . . $ v_mnemonic(b7f07ba78920e729)., "xm" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0x8c}}, |
| 737 | {NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:419:9`!, v_sreg_opcxx . . $ v_sreg_op(b7f07ba78920e729)., "xs" , 0, AF_IMPcxx . . $ `src/asm.h:206:9`!, {0xe0}}, /* base opcode */ |
| 738 | MNEMONIC_NULLcxx . . $ `src/asm.h:256:9`! |
| 739 | }; |
| 740 |