Project

General

Profile

Actions

Task #8186

open

Full support for 'struct' in nml

Added by Alexander Protsenko over 7 years ago. Updated over 1 year ago.

Status:
New
Priority:
Normal
Category:
nML Translator
Target version:
Start date:
05/02/2017
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Published in build:

Description

struct mod_STR (
  r: card(3),
  e: card(3),
  m: card(2)
)

var mod[mod_STR]

op mov_1(r: R4, r2: R4)
  init = {
...
    mod = 0;
    mod.m = 0b00;
...
  }
  image  = format("%8s", mod)

op mov_2(r: R4, r2: R4)
  init = {
...
    mod = 0;
    mod.m = 0b11;
...
  }
  image  = format("%8s", mod)

Result:

Warning: Group MovOp contains two items mov_1 and mov_2 with the same opcode 00000000

But:
mov_1 -> mod.m = 0b00;
mov_2 -> mod.m = 0b11;

Actions

Also available in: Atom PDF