LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Wed Oct 19 15:13:52 CEST 2005
    Subject: [cvs-checkins] MODIFIED: jop ...
    Top
    Date: 00/05/10 19:15:13

    Modified: jop/java/target/src/test/test Hello.java
    Log:
    Add a blinking LED


    Revision Changes Path
    1.6 jop/java/target/src/test/test/Hello.java

    http://www.opencores.org/cvsweb.shtml/jop/java/target/src/test/test/Hello.java.diff?r1=1.5&r2=1.6

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: Hello.java
    ===================================================================
    RCS file: /cvsroot/martin/jop/java/target/src/test/test/Hello.java,v
    retrieving revision 1.5
    retrieving revision 1.6
    diff -u -b -r1.5 -r1.6
    --- Hello.java 25 Aug 2005 09:13:29 -0000 1.5
    +++ Hello.java 19 Oct 2005 13:13:48 -0000 1.6
    @@ -1,16 +1,18 @@
    package test;

    -import util.Dbg;
    +import util.*;

    public class Hello {

    public static void main(String[] agrgs) {

    - System.out.println("Hello World from JAVA!");
    -
    - // mark the end of the program
    - // in emb. systems there is no exit()
    -// for (;;);
    -// we don't need this anymore!
    + System.out.println("Hello World from JOP!");
    + for (;;) {
    + Timer.wd();
    + int i = Timer.getTimeoutMs(1000);
    + while (!Timer.timeout(i)) {
    + ;
    + }
    + }
    }
    }



     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.