Questions tagged [c64]

The Commodore 64, commonly called C64, C=64 (after the graphic logo on the case) or occasionally CBM 64 (for Commodore Business Machines), or VIC-64, was an 8-bit home computer introduced in January 1982 by Commodore International.

The Commodore 64, commonly called "C64," "C=64" (after the graphic logo on the case), "VIC-64," or occasionally CBM 64 (for Commodore Business Machines), is an 8-bit home computer, introduced in January 1982 by Commodore International.

The C64 uses an 8-bit MOS Technology 6510 microprocessor, has 64 kB of RAM, features a VIC-II graphic chip with 16 colors and a SID sound chip.

During the C64's lifetime, sales totalled between 12.5 and 17 million units, making it the best-selling single personal computer model of all time.

Approximately 10,000 commercial software titles were made for the Commodore 64, including development tools, office productivity applications and games.

88 questions
0
votes
1 answer

Is there a way to access global const from the macro in Kick Assembler for C64

I have defined a const to be used as argument in KickAssembler (C64) macro. This works: .macro MAZE(start){ .const WALL = $E0 MAZE_fill(WALL) } This does not: .const WALL = $E0 .macro MAZE(start){ MAZE_fill(WALL) } So, if symbol is defined…
Lovro
  • 185
  • 1
  • 3
  • 12
0
votes
2 answers

Saving and reusing register in C64 assembler?

I have this code: jsr cls ldx #$00 ;loads 0 into x stx tmp ; stores x in tmp ldx #scr1 printToScreen stx zpb+0 sty zpb+1 lda (zpb),y ldx tmp. ; loads x…
user2297996
  • 1,382
  • 3
  • 18
  • 28
0
votes
1 answer

Passing memory address to subroutine in C64 Assembly?

param word 0 function ... lda param,x scr1 byte "some text" byte 0 So how do I pass "scr1" to function as "param"? I know it's a memory address, so it doesn't fit into 1 byte registers. What's the best way to do this? EDIT: Thanks…
user2297996
  • 1,382
  • 3
  • 18
  • 28
0
votes
1 answer

C64 Assembly - Cycling through Bitmaps as a graphical introduction to my game

Assembler: CBM prg Studio This is from my previous post, where I feel I have gained some ground, but still very stuck. My previous post requesting help on this issue a few stages ago... From the answer submitted by a the helpful community member,…
Smokeyparkin
  • 103
  • 6
0
votes
1 answer

6510/6502 C64 Keyboard input print to screen & store in memory issue

getting somewhere with this but by looking at the Screen Display section of my c64 Reference book, the characters I am typing in below are printing to screen correctly, but when recalled to be printed later again from memory they are not.…
Smokeyparkin
  • 103
  • 6
0
votes
1 answer

6502 Looping using CMP BNE via TXA & TAX

Just learning the whole process of storing data, I am a complete newbie to low-level programming so please be gentle. But why is this simple code not working, so far it is only populating the 00 byte at $1000 address with my simple preset test digit…
Smokeyparkin
  • 103
  • 6
0
votes
2 answers

C64 Character Size

I’ve just come to working on a c64 in the retro gaming area. I’m wondering why on the c65 a character is 8 bytes but anything else like modern web development, say in php, a character is only 1byte Is this something to do with how the c64 display…
Glen Elkins
  • 867
  • 9
  • 30
0
votes
1 answer

How to access the assembly editor from C64 BASIC

I was wondering how to get into the assembly editor on the Commodore 64. Do you type in a command? I have seen it being done on youtube but it happens so fast I cant keep up!
0
votes
2 answers

Iterating over bytes and printing them to screen as ascii

So I'M attempting to print ASCII to the screen, by storing the ascciASCIIcodes in a byte array, but it just renders a lot of gunk on the screen. ; Message: hello *=$033C BYTE $48,$45,$49,$49,$4F *=$1000 START JSR …
winthers
  • 224
  • 4
  • 12
0
votes
1 answer

How to define file type using c1541 -write command (VICE)

I'm trying to copy foo.txt file to disk.64 image using c1541 utility. I've tried to write: c1541 disk.d64 -write foo.txt foo The file is copied but as foo.prg How can save it using SEQ or USR types? I've tried: c1541 disk.d64 -write foo.txt…
wizofwor
  • 917
  • 8
  • 25
0
votes
1 answer

Java libraries to read/write C64 T64, D64 image files?

I would like to read/write T64 and D64 from a Java program. Are there any libraries available to do that? EDIT I have looked at several C64 emulators that emulate the 1541, but the problem is they don't really offer a public API, but rather have the…
mP.
  • 18,002
  • 10
  • 71
  • 105
-1
votes
1 answer

Unicode Characters to recreate the C64 random maze program

I want to recreate a simple C64 Random Maze using Unicode characters. https://www.youtube.com/watch?v=m9joBLOZVEo I can't find good line characters that always produce a consistent, skewed line. / and \ don't work for me, neither do "\u2571" and…
Redwolf
  • 540
  • 4
  • 17
-1
votes
1 answer

"? Out of data error in 60" on my C64 mini in basic

I have been coding "duel" from the book "Sixty Programmes for the Commodore 64" (by R. Erskine et al.), into my C64 mini in basic. I keep getting the following error: "? Out of data error in 60". I've checked the code for typos and can't find any.…
1 2 3 4 5
6