Loading ...
Sorry, an error occurred while loading the content.

JAL 4.59 improvements

Expand Messages
  • Eur van Andel
    Hi Can the WIN32 jal.exe write its output to std_out, so it can be redirected in a file or piped into more? Now there is no way to see what the options are.
    Message 1 of 2 , Nov 5, 2003
    • 0 Attachment
      Hi

      Can the WIN32 jal.exe write its output to std_out, so it
      can be redirected in a file or piped into more?
      Now there is no way to see what the options are.
      Under *nix, this already works.

      Something else:

      C:\MYDOCU~1\FIWIHEX\KAS\PIC>jal kas13_3b.jal
      jal 0.4.59 (MSVC 1310.0)
      > error: variable expected
      > file 'kasbrd12.jal' line 74 char 23
      > : var bit revcounter is pin_a6 -- juice for IR-LED in CNY70
      > : ----------------------^^^^^^
      ???

      Is turns out there are some pins missing from jpic.jal

      >var volatile bit pin_a6 at port_a : 6
      >var volatile bit pin_a7 at port_a : 7
      >
      >var bit pin_a6_direction at trisa : 6
      >var bit pin_a7_direction at trisa : 7
      >
      >procedure pin_a6_direction'put( bit in d at trisa : 6 ) is
      > _trisa_flush
      >end procedure
      >procedure pin_a7_direction'put( bit in d at trisa : 7 ) is
      > _trisa_flush
      >end procedure
      >
      >procedure port_a_high'put( byte in x ) is
      > _port_a_buffer = ( _port_a_buffer & 0x0F ) | ( x << 4 )
      > _port_a_flush
      >end procedure
      >
      >function port_a_high'get return byte is
      > return _port_a_buffer >> 4
      >end function


      No, not all PICs have full access to port_a. But more and more will.
      Even the F628 has pin_a6 and pin_a7. So this should be added to
      jpic.jal

      >procedure port_a_high_direction'put( byte in d ) is
      > var byte a at trisa = ( trisa & 0x0F ) | ( ( d & 0x0F ) << 4 )
      > _trisa_flush
      >end procedure
      This is already in jpic.jal??

      The pins were in the old jpic.jal, why were they removed?



      --
      Ir. E.E. van Andel, Fine Wire Heat Exchangers, Fiwihex B.V. www.fiwihex.com
      Wierdensestraat 74, NL-7604 BK Almelo, The Netherlands eur@...
      phone +31-546-491106 fax +31-546-491107 mobile +31-653-286573
    • Javier Martínez
      Hi Eur, ... Yes, in the same way. Example: jal kas13_3b.jal out.txt jal kas13_3b.jal | more ... Perhaps nobody erased this part, maybe the changes were made
      Message 2 of 2 , Nov 5, 2003
      • 0 Attachment
        Hi Eur,

        > Can the WIN32 jal.exe write its output to std_out, so it
        > can be redirected in a file or piped into more?

        Yes, in the same way.

        Example:

        jal kas13_3b.jal >> out.txt
        jal kas13_3b.jal | more




        > Is turns out there are some pins missing from jpic.jal
        >
        > The pins were in the old jpic.jal, why were they removed?
        >
        >

        Perhaps nobody erased this part, maybe the changes were made after
        the file was splitted and not updated in both files.


        Can you update this part?



        Regards, Javi.
      Your message has been successfully submitted and would be delivered to recipients shortly.