_ram_protect_a and _ram_protect_a_length

General questions about Firewing...

_ram_protect_a and _ram_protect_a_length

Postby Coccoliso » Thu Dec 18, 2014 11:05 pm

Hello,
I have to define an area of RAM before it can be used via DMA and I saw that there are _ram_protect_a_length and _ram_protect_a_length but then I should use this part of memory accessed via byte array .. the compiler does not accept Absolute after Byte

Code: Select all
#define _ram_protect_a= &H100
#define _ram_protect_a_length = &H1ff

dim b(100) as byte absolute _ram_protect_a                             // Absolute error "Symbol not expected"
dim c(100) as byte absolute (_ram_protect_a + 100)

User avatar
Coccoliso
 
Posts: 177
Joined: Sat Sep 27, 2014 10:02 am

Re: _ram_protect_a and _ram_protect_a_length

Postby David John Barker » Fri Dec 19, 2014 12:26 am

I've just tried the example above and it builds fine for me. Are you using Firewing 8, 16 or 32? Is there any more code?
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: _ram_protect_a and _ram_protect_a_length

Postby Coccoliso » Fri Dec 19, 2014 7:35 am

David you're right,
I have found the error .. a comma after a constant in a previous line :D .. sorry
User avatar
Coccoliso
 
Posts: 177
Joined: Sat Sep 27, 2014 10:02 am


Return to Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron

x