can we use absolute keyword ? USB support ???

Coding and general discussion relating to the compiler

Moderators: David Barker, Jerry Messina

Post Reply
User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

can we use absolute keyword ? USB support ???

Post by octal » Thu Jan 11, 2007 3:41 pm

Hi,
i have some questions to David :

1- can we use the ABSOLUTE keyword like this

TBLPTRU as byte absolute $0FF8 (code from include files)

in order to force a variable to be at certain address ?

2- Can we force the compiler to put a subroutine at specific address ?
something like

sub mySubroutine (...) absolute $04

3- any news about USB ??? is it planned for PIC ? if yes at what stage is the implementation (if possible when can we excpect it to be ready ?)

best regards
Octal

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Thu Jan 11, 2007 4:06 pm

> 1- can we use the ABSOLUTE keyword

Yes, here are some examples...

Code: Select all

Structure TSTATUS
   _byte As Byte
   C As _byte.0
   DC As _byte.1
   Z As _byte.2
   OV As _byte.3
   N As _byte.4
End Structure

Dim MyWREG As Byte Absolute $0FE8
Dim STATUSBits As TSTATUS Absolute $0FD8
STATUSBits.C = 0 
> Can we force the compiler to put a subroutine at specific
> address ?

No

> any news about USB ??? is it planned for PIC ? if yes
> at what stage is the implementation

I've just finished a module (HID) and currently testing it (no problems at the moment, it all works correctly). If all goes well, I will probably release in a few weeks.

User avatar
octal
Registered User
Registered User
Posts: 586
Joined: Thu Jan 11, 2007 12:49 pm
Location: Paris IDF
Contact:

Post by octal » Thu Jan 11, 2007 4:25 pm

Hi, thank you David ...
Great ... USB is very urgent for my devs ... if it's ready I'll buy a copy of this great compiler.

If you want, I can test USB module for you in my projects. I'm doing USB using Microchip C18 for about 8 months and I think that I have enought experience with it.

For the routines abosulute addres, it will be great if we can force the starting address of a routine. I discovered Swordfish compiler 2 days ago, and I think it"s great ....
Can we expect a version with command line compiler (without IDE) ?
I'm planning at writing an Eclipse Plugin to integrate a basic compiler for PIC in Eclipse. I started working on it for PBP, but I think that SWbasic is beyond PBP. If we can have a separate compiler, I'll integrate it in Eclipse. And if you recompile the compiler with FreePascal compiler for example for Linux and OSX, we can have a full multiplatform develpment environment for PIC18.
I already started on such project for MPASM and GPASM and my plugin is working very well ... I'll put it online soon, I'm just reworking code completion routines ... you can see it at :
http://www.pocketmt.com/downloads/linuxdemo.exe for Linux and
http://pocketmt.com/demo/idm2.htm for Windows.

I plan to do the same for a basic compiler for PIC. If you want, this could be SWBasic ... the benefits are ennormous ... code folding, syntax highlighting, unicode support ... multiplatform ... Subversion repositories total support ...

best regards
octal

User avatar
Steven
BETA Tester
Posts: 406
Joined: Tue Oct 03, 2006 8:32 pm
Location: Cumbria, UK

Post by Steven » Fri Jan 12, 2007 7:25 am

David Barker wrote: I've just finished a module (HID) and currently testing it (no problems at the moment, it all works correctly). If all goes well, I will probably release in a few weeks.
That's very good news - thanks Dave! I look forward to trying this one.

Regards,

Steven

User avatar
mister_e
Posts: 28
Joined: Fri Oct 06, 2006 2:02 pm
Location: Montréal, Canada
Contact:

Post by mister_e » Fri Jan 12, 2007 8:09 pm

Yes yes yes, me too!!!

Maybe a golden occasion to convert my PBP USBDemo code and post it here... and ruine Darrel's life once again :lol:

Image

Just kidding Darrel :twisted:

User avatar
Darrel Taylor
Posts: 29
Joined: Wed Oct 04, 2006 4:44 pm
Location: California

Post by Darrel Taylor » Wed Jan 17, 2007 10:08 am

:P The damage is already done mister_e.

But it's good to know I won't need to write a Swordfish USB module for my new program. :D

One less thing to worry about.
Although, in an odd sort of way, I was looking forward to it.
Best regards,
DT

User avatar
David Barker
Swordfish Developer
Posts: 1214
Joined: Tue Oct 03, 2006 7:01 pm
Location: Saltburn by the Sea, UK
Contact:

Post by David Barker » Fri Jan 26, 2007 6:22 pm


Post Reply