Code for Commodore 64

I recovered my block of Commodore 64 to verify the port dell'emultatore FC64 proposed quache posts ago! Unfortunately, some features of the keyboard are not quite managed to make them work, so I could try and put some interesting listings (old nostalgic memories). If you remember the Commodore 64 had special combinations used when writing BASIC code, as the symbol of the negative R (reverse), or the little heart, always negative, to wipe the screen. If someone finds a way to do it ... However, some limitations can be circumvented by using the BASIC command CHR$ . For example, to clean the screen just use PRINT CHR$(147) , which corresponds to the heart in negative!
Other Tricks, how to lock and unlock the combination RUN / STOP RESTORE are also out of my league ... for now.

Here is a list of code I tried and it works:

1
2
POKE 53280.4
SYS 64766

INPUT WITH THE QUOTES

Put double quotes after the request from keyboard

1
2
198.1 100 POKE: POKE 631.34
110 INPUT A $

VERTICAL LINE WITH THE POKE

Create an animated vertical line

1
2
3
4
5
100 PRINT CHR $ (147)
110 FOR R = 1 TO 24
120 POKE 55296 +33 +40 * R, 5
130 POKE 1024 +33 +40 * R, 71
140 NEXT R

SHRINKING THE SCREEN

Direct access to the VIC videos, and vertically orizzonatalmente allows restricting the viewable area of ​​the Commodore 64. Scrool used for horizontal and vertical.

1
2
POKE 53270.32
POKE 53265.23

BLOCK THE CONTROL LIST

Write any listing, and enter the following code. il codice funzioni uguale. Now try typing LIST and you will see that the listing is no longer viewable, despite the RUN the code works the same.

1
POKE 775.200

FLASHING CURSOR

1
POKE 788.55

READY TO REPLACE THE WORDS. WITH EDDIE!

The first 3 lines copy the kernel from ROM to RAM, consider that it takes a while ', at least a minute or two to copy the kernel, but it's worth. The latter replaces the "READY." With "EDDIE". Remember at the end of typing POKE 1,54 - which moves the pointer to the kernel from ROM to RAM. If you want to try other characters the next time you just run the lines from 40 on, then use RUN 40

1
2
3
4
5
6
7
8
9
10
10 FOR J = 40960 TO 49151
20 J POKE, PEEK (J)
30 NEXT J
40 FOR J = 41848 TO 41853
The $ 50 READ
60 POKE J, ASC (L $)
70 NEXT J
80 DATE AND, D, D, I, E,!

POKE 1.54

If you accidentally type "NEW"

This line allows you to retrieve a listing in case you accidentally type in the command NEW

1
POKE 2050.1: SYS 42291: POKE 45, PEEK (34): POKE 46, PEEK (35): CLR

. I also tried Assembly code, inserting it as DATA and other POKE . Everything seems to work.
Samples and codicils I really have a lot, so I'll stop here - for now. I hope that very soon be implemented in the emulator also the SID, thus reviving many effects and sounds of the old - but still wonderful - Commodore 64! Assembly also would not hurt ... ;)

5 comments to "Code for Commodore 64"

  1. March 9, 2007 Claus Wahlers :

    Thanks for the nice article, and sorry for posting in English, my Italian is a bit rusty ;)
    I am working on a better frontend for FC64, Including debugger, hex editor, basic editor and assembler / disassembler. Actually Already FC64 includes full debugger, assembler / disassembler and memory dump functionality, it's just not yet Reflected in the UI. I thought you might be interested.

  2. December 10, 2007 upnews.it :

    undolog  »Blog Archive » Code for Commodore 64 ...

    I recovered my block of Commodore 64 to verify the proposed porting FC64 dell'emultatore ago quache Post! Unfortunately, some features of the keyboard are not quite managed to make them work, so I could try and slide ...

  3. December 11, 2007 Falko:

    To lock stop run-restore using poke 788.52, while for the only restore poke788, 51, and to cancel all the poke, 788.49. As regards the first of 3 that I have written I'm sure (I used it when moved around the basic code in assembler code to close ;) ).

  4. December 11, 2007 Giovambattista Fazioli :

    @ Falko: thanks! I'll confirm what I ... I could not do (and that's why I have not included these pokes) and simulate the RUN / STOP RESTORE emulator Commodore 64 created in Flex / Flash ActionScript 3.0 . Do you know if what are the keys corresponding to the keyboard "now" traditional?

  5. November 10, 2008 piccolametal:

    I like using VICE emulator for the headboard helped me with this even with a fots you can download here http://piccolametal.altervista.org/programmi/cbm-directory-charset.fon (always part of the package emulator that I use)

Leave a comment

TAG XHTML PERMITS: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Stop SOPA