News:

;) This forum is the property of Proton software developers

Main Menu

warning for the at directive

Started by Yves, Sep 23, 2023, 06:35 AM

Previous topic - Next topic

Yves

Hello all,
I'm trying some Les examples from PDS sample file. The At directive is creating  an error or rather  warning messages. What is the new syntax in latest positron?

Dim USB_dEp0Bo As Dword At ( _usb_ram +  4 * 0)

Cheers,

Yves
Yves

TimB


I don't think Positron will let you do calculated AT any more

You could try looking up the address of _usb_ram in the PPI (or one of those files) and do the maths before hand

It may even be that you are no longer able to use an user input address

I think

Dim USB_dEp0Bo As Dword At Myvar

Is still ok. There is a thread recently where Les pointed out the issues. I will try and find it



Yves

Hello timB, I found a reply from Less long ago. His reply was as follow:
 
"I added the message for the "At" directive because it was sometimes being misused.
I added the "At" directive for my own use when I was first developing the compiler, many years ago. So I could move variables around and test the RAM bank switching etc... And it came in very handy. However, if misused it can cause
havok with a program's operation.

To remove the reminder messages and the warning messages, use the declares:

Declare Warnings = Off

and

Declare Reminders = Off"
Yves