Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > How do i save in vice ? (monitor)
2010-06-01 10:34
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 =)
2010-06-01 12:02
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.
2010-06-01 17:47
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)
2010-09-30 19:51
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 ><(((°>
2010-09-30 23:05
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
2010-10-04 09:48
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.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Chesser/Blazon
Epyx/TSA
rexbeng
Jetboy/Elysium
Jason/Antic
krissz
REBEL 1/HF
Retroluzzer/Quantum
zscs
Guests online: 103
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.062 sec.