Jump to content

qratman

EstablishedMember
  • Content Count

    16
  • Joined

  • Last visited

Everything posted by qratman

  1. Hi, This code: bit SCK_TRIS @ TRISB.5; bit SDI_TRIS @ TRISB.6; bit CS_TRIS @ TRISB.4; bit SDO_TRIS @ TRISC.7; bit NIRQ_TRIS @ TRISB.7; bit LED_TRIS @ TRISC.5; #define OUTPUT 0 #define INPUT 1 // *** // This code compiles nice. CS_TRIS = OUTPUT; SDI_TRIS = OUTPUT; SCK_TRIS = OUTPUT; LED_TRIS = OUTPUT; SDO_TRIS = INPUT; NIRQ_TRIS = INPUT; // *** Produces asm output which seems very fine: CS_TRIS = OUTPUT; 00F8 1206 BCF gbl_CS_TRIS,4 SDI_TRIS = OUTPUT; 00F9 1306 BCF gbl_SDI_TRIS,6 SCK_TRIS = OUTPUT; 00FA 1286 BCF gbl_SCK_TRIS,5 LED_TRIS = OUTPUT; 00
  2. Hi, I use a chance and ask what about bits and bools in structure? These aren't supported currently. Why? Plans to add support for them?
  3. It seems there is currently no way to assign any hotkeys/keyboard shortcuts to menu commands. I very often turn on and off compiler output panel (i like it half a screen high) and targetging the small hammer icon by mouse takes a lot more time than it would with quick keyboard combo (CTRL+E for togglE output and CTRL+W for toggle workspace perhaps ?). So what would be cool is if you could add user shortcuts/hotkeys (de)assigning dialog under settings menu. If that is not possible for some reason, then can you please atleast add hardcoded hotkeys (like it is now with F7) for toggling
  4. Besides mentioned libs, I also think on site source gallery would be nice. Maybe even wiki.
  5. Hi, All the register names in SourceBoost C language are written in small caps but assigning name to certain port pin requries port name in big CAPSES. Why is it so and cant the system be more unified (all register names in samll caps everywhere)? porta.0 = 0; intcon.GIE = 1; vs. volatile bit LED @ PORTA.0; // port names in big CAPS, why? volatile bit test @ PORTB.5;
  6. Thanks for clearing things up and thanks for the last link.
  7. That's strange because in the BoostC Reference Manual (page 42) it says: "Arrays can have any number dimensions" So there's no way to do such lookup table in BoostC ? Anyone some ideas ?
  8. These examples are for one dimensional array but I need two dimensional array. I have tried with the following methods but none of them worked: char const data[2][5] = {{1,3,5,7,9}, { 0, 2, 4, 6, 8}}; char const *data[5] = {{1,3,5,7,9}, { 0, 2, 4, 6, 8}}; const char **data = {{1,3,5,7,9}, { 0, 2, 4, 6, 8}}; Neither with 'rom' keyword: rom char data[2][5] = {{1,3,5,7,9}, { 0, 2, 4, 6, 8}}; rom char *data[5] = {{1,3,5,7,9}, { 0, 2, 4, 6, 8}}; rom char **data = {{1,3,5,7,9}, { 0, 2, 4, 6, 8}}; Compiler output: error : missing semicolon (sometimes says this, actually
  9. Hi, I am trying to port nokia 3310 LCD driving routines written in Hi-Tech C to BoostC and I am stuck in place named data lookup table: // ASCII lookup table static const byte FontLookup [][5] = { { 0x00, 0x00, 0x00, 0x00, 0x00 }, // sp { 0x00, 0x00, 0x2f, 0x00, 0x00 }, // ! { 0x00, 0x07, 0x00, 0x07, 0x00 }, // " { 0x14, 0x7f, 0x14, 0x7f, 0x14 }, // # // Lots more characters between here { 0x3C, 0x40, 0x40, 0x20, 0x7C }, // u { 0x1C, 0x20, 0x40, 0x20, 0x1C }, // v { 0x3C, 0x40, 0x30, 0x40, 0x3C }, // w { 0x44, 0x28, 0x10, 0x28, 0x44 }, // x
  10. Ah yep, there's the boostc.html doc which i didn't look at first. Now linked to hex successfully.
  11. But how can I compile .c file into .hex file using command line? Boostc.pic16.exe generates .obj file which seems to not be the machine code yet?
  12. Yes and no. When I removed those DLLs and run the program it started ok. When I closed it to try to open again, it didn't start and still doesn't start
  13. Guess I'll have to use only the command line tools then.
  14. boostc.pic16.exe runs and compiles into .obj fine. I have no antivirus software installed. I got it running once somehow (changed sourceboost folder to read-only) but it doesn't work when i try again. No matter if I run it directly from ide.exe or through .__c file. Does SourceBoost ide need some services to be running, cause i have a bunch of them disabled?
  15. I have 256MB of memory. It should be enough I think. Installed SP2 but ide.exe still doesn't work.
  16. Hi, I have problem getting SourceBoost ide running. Executing ide.exe brings up splash screen, then it disappears and ide doesn't show up. However in windows task manager under processes tab it shows that ide.exe is running (CPU: 00, Memory: 5156 KB). Strange. What could be the reason? System: Pentium III 500MHz, Windows XP Pro but no Service Packs. Could this (no SP) affect it? By the way. It doesn't work on my laptop(Celeron 400, WinXP Pro, no SP also) too .
×
×
  • Create New...