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

Subversion Repositories ssbcc

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

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 3 Rev 5
Line 26... Line 26...
    if not ad.IsOutport(outportName):
    if not ad.IsOutport(outportName):
      raise asmDef.AsmException('Symbol "%s" is either not an output port or is a strobe-only outport at %s' % (outportName,argument[0]['loc']));
      raise asmDef.AsmException('Symbol "%s" is either not an output port or is a strobe-only outport at %s' % (outportName,argument[0]['loc']));
    ad.EmitPush(fp,ad.OutportAddress(outportName) & 0xFF,outportName);
    ad.EmitPush(fp,ad.OutportAddress(outportName) & 0xFF,outportName);
    ad.EmitOpcode(fp,ad.InstructionOpcode('outport'),'outport');
    ad.EmitOpcode(fp,ad.InstructionOpcode('outport'),'outport');
    ad.EmitOptArg(fp,argument[1]);
    ad.EmitOptArg(fp,argument[1]);
 
 
  ad.EmitFunction['.outport'] = emitFunction;
  ad.EmitFunction['.outport'] = 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.