Retro Game & PC/매뉴얼 팁 작업

C64 디스크 명령어

smores 2013. 12. 8. 06:15

파일 리스트 보기 (Apple][ CATALOG 대응)

LOAD"$",8

LIST

 

디스크 실행

LOAD"*",8,1

RUN

 

 

디스크 초기화

OPEN1,8,15,"N0:<name>,<id>":CLOSE1

 
2.3. HOW TO FORMAT A NEW DISK

http://www.lemon64.com/manual/

 

When you're using a new, unprogrammed disk for the first time, you need to format it. Formatting, which is also called headering, prepares your disk by doing things like dividing the disk into blocks. Formatting also creates a directory that you use as a table of contents for the files you save on the disk. DO NOT header a preprogrammed disk.

 

You only have to format new disks, not disks that already have programs on them unless you want to erase the entire disk and reuse it.

 

To format a new disk, use this special version of the OPEN and NEW commands:

 

OPEN 1,8,15,"N0:<name>,<id>"

 

N0 tells the computer to header (NEW) the disk in drive 0. If you have a dual disk drive connected (via a suitable interface) header disks in drive 0.

 

The <name> you use in this command goes in the directory as the name of the entire disk. Give the disk any name up to 16 characters.

The <id> is any two characters. Give the disk any <id> you want, but you should give every disk a different <id> code.

When the disk drive light goes off, type CLOSE 1 and press RETURN.

 

BE CAREFUL! Headering a disk erases all information on the disk, if there is any. Header only a new disk or a disk you are willing to erase. Here are some examples of formatting commands that header a disk:

 

OPEN 1,8,15,"N0:MYFILE,A3"

OPEN 1,8,15,"N0:$RECORDS,02"

 

Now that you know how to header a disk, you are ready to use disks to write and save programs on your COMMODORE 64.