Code for Commodore 64

I recovered my block of the Commodore 64 to check the porting dell'emultatore FC64 proposed Quach posts ago! Unfortunately, some features of the keyboard are not really able to make them work, so I could not 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 R negative (reverse) or the little heart, always in the negative, to clean the screen. If someone finds a way to do it ... However, some limitations can be overcome by using the BASIC command CHR$ . For example, to clean the screen just use PRINT CHR$(147) , which corresponds to cuoricino in negative!
Other Tricks, how to lock and unlock the combination RUN / STOP RESTORE are also out of my reach ... for now.

This is the list of the code that I tried and it works:

1
2
POKE 53280.4
SYS 64766

INPUT WITH QUOTES

Put double quotes after the request from the keyboard

1
2
100 POKE 198,1: POKE 631.34
110 INPUT A $

VERTICAL LINE WITH POKE

Create an animated vertical line

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

SHRINKING THE SCREEN

Direct access to the VIC Video, allows you to restrict orizzonatalmente vertically and the visible area of ​​the Commodore 64. Used for scrool horizontal and vertical.

1
2
POKE 53270.32
POKE 53265.23

BLOCK THE COMMAND LIST

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

1
POKE 775.200

BLINKING CURSOR

1
POKE 788.55

REPLACE THE WORDS READY. 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 worth it. The latest replace the "READY." With "EDDIE". Remember at the end of typing POKE 1,54 - which moves the pointing to the Kernel from ROM to RAM. If you want to try other characters the next time just run the lines of code from 40 onwards, then use RUN 40

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

POKE 1.54

If you accidentally type "NEW"

This line allows you to retrieve a list 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.
Of examples and codicils I really many, so I'll stop here - for now. I hope that as soon as is implemented in the emulator also the SID, so as to revive many effects and sounds of the old - but always wonderful - Commodore 64! Even an Assembly would not hurt ... ;)

6 comments to: ""

  1. March 9, 2007 Claus Wahlers :

    Thanks for the nice article, and sorry for posting in Inglese, my Italian is a bit rusty ;)
    I am working on a better frontend for FC64, including debuggers, hex editor, basic editor and assembler / disassembler. Actually FC64 Already 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 the Commodore 64 to check the porting dell'emultatore FC64 proposed Quach ago Post! Unfortunately, some features of the keyboard are not really able to make them work, so I could not try and slot ...

  3. December 11, 2007 Falko:

    To block run stop-restore using poke 788.52, while for the only restore poke788, 51 and to cancel the whole poke, 788.49. With regard to the first of the 3 that I have written I am sure (I used it when moved around the basic code in assembler to close the code ;) ).

  4. December 11, 2007 Giovan Battista Fazioli :

    @ Falko: thank you! I'll confirm what ... I was not able to do (and it is for this reason that I have not included these Pokes) and simulate RUN / STOP RESTORE emulator Commodore 64 created in Flex / Flash ActionScript 3.0 . Do you know by chance what are the keys corresponding to the keyboard "now" traditional?

  5. November 10, 2008 piccolametal:

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

  6. September 7, 2012 Massi:

    hi,

    anyone knows the sys command to emulate the "<L" of turbo tape?

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> CODE ENTRY:
 <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