can we use absolute keyword ? USB support ???
Moderators: David Barker, Jerry Messina
can we use absolute keyword ? USB support ???
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
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
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact:
> 1- can we use the ABSOLUTE keyword
Yes, here are some examples...
> 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.
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
> 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.
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
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
- Darrel Taylor
- Posts: 29
- Joined: Wed Oct 04, 2006 4:44 pm
- Location: California
- David Barker
- Swordfish Developer
- Posts: 1214
- Joined: Tue Oct 03, 2006 7:01 pm
- Location: Saltburn by the Sea, UK
- Contact: