Today 18:51
Forum: Proton Plus Compiler v3
Starter: AlbertoFS
Views: 0
Replies: 29
Go to last post By: charliecoultas
Today 14:42
Forum: Proton 24
Starter: charliecoultas
Views: 0
Replies: 5
Today 12:28
Forum: GPS
Starter: AlbertoFS
Views: 0
Replies: 8
Today 00:00
Forum: Proton Plus Compiler v3
Starter: analogdevice
Views: 0
Replies: 1
+ Reply to Thread
Results 1 to 7 of 7

Thread: The use of AT aliasing9 days old

  1. #1
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,209
    Thumbs Up
    Received: 47
    Given: 100
    Total Downloaded
    2.20 GB

    0 Not allowed!

    Default The use of AT aliasing

    Les,

    I hope you're feeling better.

    I have not raised an anomaly report because as you rightly say AT is not part of Proton.

    I am readdressing this because in the notes accompanying the latest version of the compiler 3.6.0.0 and the previous version 3.5.9.9
    Proton Correction
    Corrected creation of variables using Dim with the At directive..
    I have previously raised this here

    Another example is in the New Samples, the file "Simple SID.inc" used by "Simple SID Player" the variables "SID_bRegister" and "SID_wVoice1" are meant to be at the same address. When I compile, SID_bRegister ends up at x0FF3 (actually an SFR).

    Also in samples "Variable Definitions.inc" used by "FFT.bas" where the variables "RealBuffer" and "FFT_Data" are almost at the same address.
    Last edited by towlerg; 11th August 2017 at 15:45.
    George

  2. #2
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,140
    Thumbs Up
    Received: 206
    Given: 76
    Total Downloaded
    1.49 GB

    0 Not allowed!

    Default Re: The use of AT aliasing

    Damn...... I thought I'd gotten all of the code corrected, but here we go again. LOL

    Thanks George, I'll check it out further.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  3. #3
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,209
    Thumbs Up
    Received: 47
    Given: 100
    Total Downloaded
    2.20 GB

    0 Not allowed!

    Default Re: The use of AT aliasing

    Thanks, no pressure. Don't forget it's not part of the documented functions of the compiler. Good luck with what is obviously a pretty hairy prob.
    George

  4. #4
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,140
    Thumbs Up
    Received: 206
    Given: 76
    Total Downloaded
    1.49 GB

    0 Not allowed!

    Default Re: The use of AT aliasing

    Wow!!!! What a bugger to find. LOL

    It screwed up when another alias was performed as a variable, for some inexplicable reason!

    I'm sure I've cured it by writing a new routine within the compiler that updates all the variables on the final pass of the compiler, restoring their addresses. I've made many tests and can't get it to fall over. Thanks ever so much George for spotting this, and naming a couple of sample programs that showed the anomaly. Both are now working fine!

    If it is sorted (fingers crossed, but I'm sure it is), I'll add the "At" directive to the manual, because it is a very useful feature.
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  5. #5
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,209
    Thumbs Up
    Received: 47
    Given: 100
    Total Downloaded
    2.20 GB

    0 Not allowed!

    Default Re: The use of AT aliasing

    Do you want me to beta it for you?
    George

  6. #6
    Developer Les's Avatar
    Join Date
    Feb 2002
    Posts
    3,140
    Thumbs Up
    Received: 206
    Given: 76
    Total Downloaded
    1.49 GB

    0 Not allowed!

    Default Re: The use of AT aliasing

    Yes please George, much appreciated.

    I've uploaded the patch App.exe file to the files section of the forum:

    Proton App.exe update
    For more example programs for Proton and Proton24 or updates, please visit: Proton WIKI or Proton Files

  7. #7
    Prolific Poster towlerg's Avatar
    Join Date
    Mar 2012
    Posts
    1,209
    Thumbs Up
    Received: 47
    Given: 100
    Total Downloaded
    2.20 GB

    0 Not allowed!

    Default Re: The use of AT aliasing

    It seems perfect. My original two examples are correct and so are occurrences in ./Samples/....

    Heres what I found in samples

    Afterthought - perhaps user base should be advised to recompile affected samples.
    Attached Files Attached Files
    Last edited by towlerg; 12th August 2017 at 22:39.
    George

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Aliasing to the USB buffers
    By johngb in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 29th September 2012, 09:35
  2. Strange aliasing
    By dolci in forum Proton Plus Compiler v3
    Replies: 0
    Last Post: 30th December 2008, 14:31
  3. Aliasing port again!!!
    By joesaliba in forum Proton Plus Compiler v3
    Replies: 0
    Last Post: 12th October 2006, 15:04
  4. Aliasing a port
    By dolci in forum Proton Plus Compiler v3
    Replies: 5
    Last Post: 9th July 2006, 13:20

Members who have read this thread since 18th August 2017, 10:20 : 0

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