OpenCores
URL https://opencores.org/ocsvn/ssbcc/ssbcc/trunk

Subversion Repositories ssbcc

[/] [ssbcc/] [trunk/] [core/] [9x8/] [macros/] [inport.py] - Diff between revs 3 and 5

Show entire file | Details | Blame | View Log

Rev 3 Rev 5
Line 20... Line 20...
    if not ad.IsInport(argument[0]['value']):
    if not ad.IsInport(argument[0]['value']):
      raise asmDef.AsmException('Symbol "%s is not an input port at %s' % (argument[0]['value'],argument[0]['loc']));
      raise asmDef.AsmException('Symbol "%s is not an input port at %s' % (argument[0]['value'],argument[0]['loc']));
    name = argument[0]['value'];
    name = argument[0]['value'];
    ad.EmitPush(fp,ad.InportAddress(name) & 0xFF,name);
    ad.EmitPush(fp,ad.InportAddress(name) & 0xFF,name);
    ad.EmitOpcode(fp,ad.InstructionOpcode('inport'),'inport');
    ad.EmitOpcode(fp,ad.InstructionOpcode('inport'),'inport');
 
 
  ad.EmitFunction['.inport'] = emitFunction;
  ad.EmitFunction['.inport'] = emitFunction;
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.