View previous topic :: View next topic |
Author |
Message |
Tomy Site Admin
Joined: 02 Aug 2005 Posts: 422
|
|
Back to top |
|
|
Tomy Site Admin
Joined: 02 Aug 2005 Posts: 422
|
|
Back to top |
|
|
Tomy Site Admin
Joined: 02 Aug 2005 Posts: 422
|
Posted: Thu Sep 03, 2009 11:03 pm Post subject: |
|
|
I asked some question, here is the reply from the author :
> I want to ask you that do you have any example for doing multi bank ?
Look in tcc-65816/test/hw, this hog currently uses three ROM banks,
IIRC. But there is really no magic involved, see below.
> Variable only have $2000 in lenght (because in bank 0 only have $2000) ?
Bank 0 is essentially only used for the stack and the two tcc
pseudo-register sets (regular and interrupt).
> Or can be bigger ? (bank $7E/$7F)
The .bss section is in bank $7e from $2000, the .data section in bank
$7f, so uninitialized data can be up to 56k in size, initialized data
up to 64k. Constant data (string constants, constant arrays etc.) is
put in ROM, so with the current (LoROM) header file, it can be up to
32k apiece. One of the RAM banks is also used by the heap allocator
(malloc() and free()), but I don't currently recall which.
> Please tell me, I have no idea how to do that.
There's nothing to do. tcc declares all text and data sections
"superfree", and wlalink takes care of assigning them to the
appropriate banks and can also discard unreferenced sections (-d). All
accesses are long, so there is really nothing you need to care about.
Just write C code. Be sure to mark all data that is supposed to go to
ROM "const", or it will be copied to RAM by the startup code. |
|
Back to top |
|
|
Videogamer555
Joined: 01 May 2009 Posts: 102
|
Posted: Fri Jan 28, 2011 6:12 pm Post subject: |
|
|
Where's the download link now? Previous link for Windows binaries download is dead. |
|
Back to top |
|
|
Chilly Willy
Joined: 08 Feb 2009 Posts: 174
|
|
Back to top |
|
|
Videogamer555
Joined: 01 May 2009 Posts: 102
|
Posted: Tue Feb 01, 2011 6:10 am Post subject: |
|
|
Norton antivirus gives a warning he's infected with 3 viri on his website and gives a BIG RED X as it's safety rating for his site. What's THAT all about? |
|
Back to top |
|
|
Chilly Willy
Joined: 08 Feb 2009 Posts: 174
|
Posted: Tue Feb 01, 2011 8:51 pm Post subject: |
|
|
Videogamer555 wrote: | Norton antivirus gives a warning he's infected with 3 viri on his website and gives a BIG RED X as it's safety rating for his site. What's THAT all about? |
Norton's is full of shit. I haven't used Norton's in almost a decade because of how bad they were. You should really switch to something better.
In the meantime, if you're worried, run Firefox with the NoScript extension and AdBlock Plus.
Just as a observation that might ease your worries - that site is NOT in the Mozilla database as an attack site, and it would be if it were as bad as Norton's says. |
|
Back to top |
|
|
|