Yesterday 20:36
Forum: Proton Plus Compiler v3
Starter: Henk57
Views: 0
Replies: 8
Yesterday 19:26
Forum: Absolute Beginners Section
Starter: amod
Views: 0
Replies: 22
Yesterday 16:05
Forum: New devices and techniques
Starter: normnet
Views: 0
Replies: 26
Yesterday 10:51
Forum: Proton 24
Starter: nhadzid
Views: 0
Replies: 0
+ Reply to Thread
Results 1 to 4 of 4

Thread: About Define directive...31 days old

  1. #1
    Member SELCUK's Avatar
    Join Date
    Sep 2006
    Posts
    189
    Thumbs Up
    Received: 1
    Given: 0
    Total Downloaded
    364.84 MB

    0 Not allowed!

    Default About Define directive...

    Hi Les,

    Thank you for new version of Proton Plus.

    For both Compiler version 3.6.1.1 and 3.6.1.2

    If I define

    $DEFINE FF $0C ;// Form Feed in Ascii Table

    Compiler produce for line below
    RelayPort = roleDurumlari & $FF
    as
    RelayPort = roleDurumlari & $$0C

    I mean: Compiler replace FF (Form Feed definition) for hex number FF.

    Also,

    Compiler version 3.6.1.2 produce strange line: CALL __SDEC__ASCI__SDEC_SU؊ԙ(


    F11_000122 EQU $ ; IN [PRINTBIGFONT.INC] PRINTDATA = STR$(SDEC WDATA)
    LFSR 0,PRINTDATA
    MOVLW 2
    MOVWF BPFH,0
    CLRF GEN4H,0
    MOVFF WDATAHHH,PP7HHH
    MOVFF WDATAHH,PP7HH
    MOVFF WDATAH,PP7H
    MOVFF WDATA,PP7
    CALL __SDEC__ASCI__SDEC_SU؊ԙ(
    CLRF INDF0,0
    BRA _LBL__322



    Best Regards,

    Selcuk...
    [url]www.sfy.com.tr[/url]

  2. #2
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    3,031
    Thumbs Up
    Received: 99
    Given: 28
    Total Downloaded
    2.25 GB

    0 Not allowed!

    Default Re: About Define directive...

    Hi Les,
    That's the same error I'm getting from the assembler. I could make it go away by removing the SDEC and making it DEC. The error message is "Symbol not previously defined"
    The program is huge, so I would need to create a short program to illustrate the problem.
    John

    PS second edit- not all SDEC result in the error. Only this one. I'll have to see if I can make a simple program to show the problem Les.
    DOPPLERDW was a DWORD but changing to an Sdword didn't solve the problem.


    F1_000473 EQU $ ; IN [S840UNIT.BAS] PRINT AT 2,1, ESTR PRINTDOPPADD, SDEC DOPPLERDW, ESTR PRINTBLANKS
    MOVLW 128
    MOVWF BPFH,0
    MOVLW 192
    CALL LCD@CRS
    MOVLW 3
    MOVWF EEADRH,0
    MOVLW 92
    MOVWF EEADR,0
    CALL __ESTR_OUT16__
    CLRF GEN4H,0
    MOVFF DOPPLERDWHHH,PP7HHH
    MOVFF DOPPLERDWHH,PP7HH
    MOVFF DOPPLERDWH,PP7H
    MOVFF DOPPLERDW,PP7
    CALL __SDEC__ASCI__SDEC_SUƒŠ|(
    MOVLW 82
    CALL __ESTR_OUT__
    BRA _LBL__515
    _LBL__514
    Last edited by John Drew; 24th May 2018 at 13:24. Reason: blamed estr incorrectly, was the SDEC caausing it

  3. #3
    Fanatical Contributor Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,380
    Thumbs Up
    Received: 306
    Given: 117
    Total Downloaded
    1.50 GB

    0 Not allowed!

    Default Re: About Define directive...

    Whooops. Sorry guys. That means a single char array within the compiler's source is not large enough for the name. :-(

    I've changed the names of most of the library routines to make them clearer when viewing the asm listing.

    I'll find it, and change it now.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  4. #4
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Posts
    3,031
    Thumbs Up
    Received: 99
    Given: 28
    Total Downloaded
    2.25 GB

    0 Not allowed!

    Default Re: About Define directive...

    That fixed it, thanks Les.
    John

    PS I've also created the link to 3.6.1.4 in the Updates link.
    Last edited by John Drew; 26th May 2018 at 14:55.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Problem with heap directive
    By AlbertoFS in forum Proton Plus Compiler v3
    Replies: 33
    Last Post: 23rd March 2018, 17:12
  2. give directive to complier like c
    By SELCUK in forum Proton Plus Compiler v3
    Replies: 1
    Last Post: 28th December 2007, 17:49
  3. New CONFIG_START Directive
    By Paul Shepard in forum Proton Plus Compiler v3
    Replies: 6
    Last Post: 26th February 2006, 11:01

Members who have read this thread since 30th May 2018, 20:20 : 1

Actions :  (Set Date)  (Clear Date)

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts