gnupic: Re: SDCC RAM banking support?


Previous by date: 13 Oct 2001 19:45:34 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Ralf Forsberg
Next by date: 13 Oct 2001 19:45:34 -0000 Re: SDCC RAM banking support?, Scott Dattalo
Previous in thread:
Next in thread: 13 Oct 2001 19:45:34 -0000 Re: SDCC RAM banking support?, Scott Dattalo

Subject: [PIC]: SDCC RAM banking support?
From: Wojciech Zabolotny ####@####.####
Date: 13 Oct 2001 19:45:34 -0000
Message-Id: <20011013214457.A699@ipebio15.ise.pw.edu.pl>

Hi All,

I have tried to compile a very simple program with sdcc:

data at 0x47 volatile char test1;
data at 0x193 volatile int test2;
void main()
{
  for(;;)
  {
    test1=0x32;
    test2=0x1234;
    test1=0x42;
    test2=0x7654;
  }
}

So the RAM bank should be switched between test1 and test2 references.
However in the output assembly file I get (after comments removal):

_00103_DS_  
        MOVLW   0x32
        MOVWF   _test1
        MOVLW   0x34
        MOVWF   _test2
        MOVLW   0x12
        MOVWF   (_test2 + 1)
        MOVLW   0x42
        MOVWF   _test1

Is the banking support still lacking in sdcc for pic?
BTW I'd like to create the 16F877 headers for SDCC. 
Should the registers be declared as:
data at 0x00 volatile char INDF;
data at 0x01 volatile char PCL;
and so on?

-- 
				TIA & Regards,	  
	                    Wojciech M. Zabolotny
	http://www.ise.pw.edu.pl/~wzab  <--> ####@####.####

http://www.debian.org  Use Linux - an OS without "trojan horses" inside

Previous by date: 13 Oct 2001 19:45:34 -0000 Re: I'm crashing the GUI in gpsim 0.20.X. Any ideas?, Ralf Forsberg
Next by date: 13 Oct 2001 19:45:34 -0000 Re: SDCC RAM banking support?, Scott Dattalo
Previous in thread:
Next in thread: 13 Oct 2001 19:45:34 -0000 Re: SDCC RAM banking support?, Scott Dattalo


Powered by ezmlm-browse 0.20.