Package avrora.core.SourceMapping

Examples of avrora.core.SourceMapping.Location


    public byte getByteValueOf(String varName) throws UnknownVariableException {
        return (byte) getValueOf(varName, 1);
    }
   
    private int getValueOf(String varName, int len) throws UnknownVariableException {
        Location mem = memoryMap.getLocation(varName);
        if (mem == null) throw new UnknownVariableException("Variable does not exist: " + varName);

        System.out.println("Variable:" + varName + " in section: " + mem.section);
        System.out.println("LMA: " + Integer.toHexString(mem.lma_addr));
        System.out.println("VMA: " + Integer.toHexString(mem.vma_addr));
View Full Code Here


        }
        return data;
    }

    private void setValue(String varName, int val, int len) throws UnknownVariableException {
        Location mem = memoryMap.getLocation(varName);
        if (mem == null) throw new UnknownVariableException("Variable does not exist: " + varName);

        int data = val;
        if (mem.vma_addr > 0xfffff) {      
            // write LSB first.
View Full Code Here

  @Override
  public Map<String, Symbol> getSymbolMap() {
    // XXX do not fetch in function!
    Map<String, Symbol> symbols = new HashMap<>();
    for (Iterator<Location> iter = memoryMap.getIterator(); iter.hasNext();) {
      Location loc = iter.next();
      if (loc == null || (loc.section.equals(".text"))) {
        continue;
      }
      symbols.put(loc.name, new Symbol(Symbol.Type.VARIABLE, loc.name, loc.section, loc.vma_addr & 0x7fffff, -1));
    }
View Full Code Here

    public byte getByteValueOf(String varName) throws UnknownVariableException {
        return (byte) getValueOf(varName, 1);
    }
   
    private int getValueOf(String varName, int len) throws UnknownVariableException {
        Location mem = memoryMap.getLocation(varName);
        if (mem == null) throw new UnknownVariableException("Variable does not exist: " + varName);

        System.out.println("Variable:" + varName + " in section: " + mem.section);
        System.out.println("LMA: " + Integer.toHexString(mem.lma_addr));
        System.out.println("VMA: " + Integer.toHexString(mem.vma_addr));
View Full Code Here

        }
        return data;
    }

    private void setValue(String varName, int val, int len) throws UnknownVariableException {
        Location mem = memoryMap.getLocation(varName);
        if (mem == null) throw new UnknownVariableException("Variable does not exist: " + varName);

        int data = val;
        if (mem.vma_addr > 0xfffff) {      
            // write LSB first.
View Full Code Here

TOP

Related Classes of avrora.core.SourceMapping.Location

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.