| |
turtle Account closed
Registered: Mar 2005 Posts: 44 |
How do i save in vice ? (monitor)
have made a intro using turbo assembler in vice.
s "intro" 8 0801 2600
?
but when i try to run it with sys 2049 ($0801)
i wont work.
help =) |
|
| |
SIDWAVE Account closed
Registered: Apr 2002 Posts: 2238 |
you cannot put code at 0801 and also have a basic sysline on it then.
the lowest point to have "1 sys 2061" on the basic line, is 080d, where your code must start. |
| |
tlr
Registered: Sep 2003 Posts: 1790 |
If you load something to $0801 using a basic load command (i.e LOAD"FILE",8,1) it will usually be corrupted by the basic relinker.
It can be avoided by having the second byte as $00, i.e $0802=$00.
This is the same trick used to allow a "0 SYS2059" line.
(or just put it at $0803 instead of $0801) |
| |
Warnock
Registered: Sep 2007 Posts: 28 |
Try using Super Snapshot V5 Cartridge rom. That's what I use. Or you can save the snapshot directly from vice. Just click on save snapshot image. When you reload the image, you will be returned to the same point you saved the image. Hope this helps.
<°)))>< Warnock/Style ><(((°> |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
@turtle: don't know if it helps, but you could add a sys line like this:
*=$0801
basic:
;BASIC line: 1 SYS 2061
!byte $0b,$08,$01,$00,$9e,$32,$30,$36,$31,$00,$00,$00
start: ;This is at $080d as Jan said..
LDA
STA
etc..
Then it can be executed by standard LOAD + RUN. A better way may be to use a packer like Cruncher AB or whatever to pack your executable. Crunchers add the required sysline etc to make your binary file executable |
| |
White Flame
Registered: Sep 2002 Posts: 136 |
If you want to write code from the monitor, just start at $1000 or $c000 or something, and Basic's LOAD routine won't mung it up.
If you want LOAD/RUN support from monitor coding, type in "1 SYS2061" in BASIC before entering the monitor, enter your machine code at $080d, and save from $0801 - end-address. |