| |
Mindcooler
Registered: Nov 2006 Posts: 28 |
coding in tasm on c64/vice with cart
What kind of setup should I use for coding in tasm? I'm currently using the built-in tasm of retro replay, but I have had some problems with overwriting the tasm code while executing:
My code seems to reside in RAM; I can't overwrite $8000-$9000 and still have my code.
Tasm gets overwritten by my vic stuff when I use vic page 1 so I can't jump back into it at $9000.
Any solutions to these? Can I hardstart vice by jumping to the same address the TAS BASIC command does? Should I use "Turbo Action ROM v1" which claims to keep everything in the cart? |
|
| |
raven Account closed
Registered: Jan 2002 Posts: 137 |
Hi
I'm not using Retro-Replay, but over the years I got used to doing two things:
1) Always compile to file (unless my code doesnt use TASM's memory area)
2) Save source code + TASM together as one file.
I'm using a PC-based storage system (connected via user port) so loading/saving is very quick.
I have a shortcut in my cartridge that loads the most recent source+TASM file I saved.
Just to give you some ideas :) |
| |
Mindcooler
Registered: Nov 2006 Posts: 28 |
Hmm, so you are saying that instead of keeping tasm and my code after execution I should just make a snapshot before running? Sounds like a lite of a chore and plenty of opportunities to snapshot at the wrong time :P |
| |
raven Account closed
Registered: Jan 2002 Posts: 137 |
A small modification to TASM and it will do the snapshot itself ;) |
| |
chatGPZ
Registered: Dec 2001 Posts: 11386 |
i would:
a) if everything fits in memory, save tass (its NOT TASM DAMNIT....) together with the source and data as one big 250 blocks file. do that occasionally before running.
b) as soon as the source doesnt fit anymore into memory together with the data and assembled code, move to using a crossassembler. assembling to disk with tass is really a pain, and once your source becomes bigger you will hit other limits of tass aswell. |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Yeah, use Turbo Action ROM instead, or use Turbo Macro Pro with an REU. Source and TASM is kept in expansion RAM, leaving all of C64 ram free for your code. |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
On my harddrive I have two Retro Replay ROM files which contain Turbo Macro Pro with REU support (for storing source code outside memory). One version by Devia and one version by Hannenz. Not sure how they differ and which one is best etc, but perhaps that would be useful for you? Both of them are modified versions of the "rr38p" rom.
Then again, if you want to use this solution on your C64, this requires a REU of course, and maybe you don't have that? (If you have a 1541U, there is a "REU" in it.)
Turbo Action ROM by SounDemoN, as suggested by others here, may very well be the simplest/best alternative for you. This contains the standard TASS, rather than Turbo Macro Pro (TMP). |
| |
WVL
Registered: Mar 2002 Posts: 902 |
in VICE, it's easier to make a snapshot before compiling (alt+s (iirc)), then compile and run.
When done, load back the old state (alt+l (IIRC)). and you're back in TASS..
(I used to do this when i made Arcanum, but that was using CCS64, i can still remember all those F11/F12 sessions :D) |
| |
Mindcooler
Registered: Nov 2006 Posts: 28 |
Magervalp, Frantic: Are they source compatible with the normal tass? How do you jump back into tass? I'd love to try the images, Klegg made a strong case for TMP on LCP :)
I will probably not be doing much developing on my real machine; my RR+RR-net got stolen on some year's BFP. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
Quote: Magervalp, Frantic: Are they source compatible with the normal tass? How do you jump back into tass? I'd love to try the images, Klegg made a strong case for TMP on LCP :)
I will probably not be doing much developing on my real machine; my RR+RR-net got stolen on some year's BFP.
"I will probably not be doing much developing on my real machine; my RR+RR-net got stolen on some year's BFP."
woah, one would think once we grew up ppl can buy stuff like that.... Shame on you. |
| |
Mr. SID
Registered: Jan 2003 Posts: 424 |
Quoting MindcoolerI will probably not be doing much developing on my real machine; my RR+RR-net got stolen on some year's BFP.
Then why don't you use a cross assembler? |
| |
MagerValp
Registered: Dec 2001 Posts: 1078 |
Quote: Magervalp, Frantic: Are they source compatible with the normal tass? How do you jump back into tass? I'd love to try the images, Klegg made a strong case for TMP on LCP :)
I will probably not be doing much developing on my real machine; my RR+RR-net got stolen on some year's BFP.
If you export the source from TASS with ←W you can import it into TMP with ←E. I don't think you can load/save directly, as the addresses differ. |
| |
Mindcooler
Registered: Nov 2006 Posts: 28 |
Quote: Quoting MindcoolerI will probably not be doing much developing on my real machine; my RR+RR-net got stolen on some year's BFP.
Then why don't you use a cross assembler?
IDK, I just like tass. It feels casual. Haven't mustered up the will to go through the process of choosing a crossdev setup. |
| |
Mr. SID
Registered: Jan 2003 Posts: 424 |
What about 64tass? 64TASS V1.46 |
| |
V-12
Registered: Nov 2003 Posts: 206 |
Quote: What kind of setup should I use for coding in tasm? I'm currently using the built-in tasm of retro replay, but I have had some problems with overwriting the tasm code while executing:
My code seems to reside in RAM; I can't overwrite $8000-$9000 and still have my code.
Tasm gets overwritten by my vic stuff when I use vic page 1 so I can't jump back into it at $9000.
Any solutions to these? Can I hardstart vice by jumping to the same address the TAS BASIC command does? Should I use "Turbo Action ROM v1" which claims to keep everything in the cart?
There is one Turbo Assembler for C64 which starts from $9600 - more space for code.
I strongly refer to install +60k inside of your C64 and use +60k Turbo Assembler :) You will have whole memory for compile because source code is kept in additional memory :)
Turbo Assembler Profesional V1.2 [+60K] |
| |
booker
Registered: Jul 2003 Posts: 334 |
Or REU, no? |
| |
Stainless Steel
Registered: Mar 2003 Posts: 966 |
A simple pc texteditor (notepad++) with a batchfile calling a crossassembler, exomizer and then loading the exomized prg into vice works pretty good for me. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
Quote: A simple pc texteditor (notepad++) with a batchfile calling a crossassembler, exomizer and then loading the exomized prg into vice works pretty good for me.
same here. Notepad++ rulez. You can customize the shit out of it (highlight mnemonics, use c64 rom font), and I love the hide/unhide codeblock & autosave features. |
| |
ready.
Registered: Feb 2003 Posts: 441 |
I also use Notepad++ with 64tass. They have the advantage to be fully portable, in case you use more than one PC for coding. |