98 questions
2
votes
0
answers
68
views
Bypassing C64's PETSCII to screen code mapping
In upper-case mode, the C64 PRINT ASC("A") prints 65 - the ASCII/PETSCII code.
But POKE 1024,65 prints the shifted A character. PRINT CHR$(65), however, prints the proper 'A' character.
With ...
3
votes
0
answers
112
views
C64 moving sprite issue
I'm writing a Chrome Dino demake on the c64 but the code won't work. Sprite 0 won't move and there are some garbage pixels on top of the screen.
A demake is a video game remake that adapts a modern ...
0
votes
1
answer
95
views
Identifying Unknown Code with ANSI Escape Sequences: Possible Use for Graphic Rendering?
I have the following code and would like to know what kind of code it is:
P30;1;1q
#0;2;4;5;6 #1;2;6;93;1 #2;2;55;3;8 #3;2;91;82;4
#1~~]{o!4?~~!4?~~!4bBB!4?w{MFBBF]{o???[}bbr}!4?{}EBBBE}{_???...
0
votes
1
answer
197
views
Kick Assembler question, manipulating variable in loop
I'm trying to study mnemonics logic, and tried this simple test with C64 asm, made with VSCode and Kick Asm.
Basically i'm trying to print from upper left corner sequence chars from 0 to 9 and then ...
2
votes
0
answers
99
views
CC65 for C64 - relocate program in memory
I use CC65 to write some program for a C64. The program compiles to like 5k of machine code. Since it starts at $0840, it overlaps with the character ram at $3000.
Is there any "pragma" or ...
1
vote
0
answers
179
views
Interfacing with the Commodore 64 Serial Port using Assembly
I'm struggling a bit to find relevant documentation on this subject when it comes to using just assembly. All I've found is either irrelevant or for BASIC.
My goal is to be able to send and receive ...
-1
votes
1
answer
138
views
explain what is missing from 10print
10 PRINT CHR$(205.5+RND+(1));:GOTO 10
I seem to be the only person ever to not be able to do this. i have written all kinds of BASIC but I can't do anything with this. What am i missing?
I get "...
0
votes
1
answer
218
views
C64 assembler - Trying to print 4 rows at the top and the bottom
I'm trying to print some rows of a char from the top and bottom, first row turns out as expected but next one doesn't print. I add 40 chars to "Currentline" to get the prog to print the next ...
1
vote
4
answers
1k
views
How to enter commands programmatically in c64's basic?
I want to write a very simple basic program in commodore 64 that enters other basic commands.
Here's an example:
10 print"list"+chr$(13)
This prints list but doesn't hit enter.
My ...
1
vote
1
answer
566
views
How to properly use interrupt handlers in 6502 Assembler?
I'm new to assemblers, so this question might sound dumb, but exactly what type of code should be implemented in a raster interrupt handler?
So I know this handler gets called when the desired raster ...
1
vote
1
answer
576
views
Commodore C64 how to detect PAL or NTSC
Background Information
I am currently developing a programming API for the Commodore C64 using KickC [in Beta] to allow me to more easily develop small programs, applications and possibly some games; ...
0
votes
2
answers
423
views
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
ldy #>scr1
printToScreen
stx zpb+0
sty zpb+...
1
vote
1
answer
188
views
c64 Extended Color Mode: last character 63 = 191 to use background 2?? ($D022)
In extended colour mode:
For characters 32 to 63 on background 1 (53281/$D021 value), I can add 192 to get the same on background 2 (53282/$D022 value). For characters 64 to 95 on bg1, I can add 128 ...
3
votes
1
answer
375
views
C64 Assembly - 6502/6510 - displaying a series of three bitmaps one after the other, and then moving into character mode
I have a pretty big question here that I am finding really difficult to answer with just a couple of reference books, the internet, and yours truly.
I just want to display a bitmap. Wait a couple ...
0
votes
1
answer
834
views
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 ...
2
votes
1
answer
1k
views
Simple way to *wait* for a key press, and get its martrix or PETSCII code?
I have found a few BASIC and KERNAL functions and memory addresses related to getting a key press/line, but how can I simply wait for a key press, and get its code? I want to pause execution, and ...
0
votes
4
answers
508
views
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 ...
1
vote
1
answer
109
views
Looking for old Assembler-like bot language on C64
In a discussion with a friend I was recently reminded of a fascinating idea from the days of Commodore C64. Unfortunately, googling brought no results, which might be due to the fact that I don't even ...
2
votes
1
answer
349
views
What dialect of C64 6502 assembly is this?
What dialect of 6502 Assembly is this and how do I compile it without translating it into a different 6502 dialect?
*=$0900
jmp Start
SCRN_START=$0400
Print=$ffd2
Basin=$ffcf
incasm "...
9
votes
2
answers
2k
views
C64 Assembly Rendering a Sprite
I have written a short program in 6502 assembler for the Commodore 64 using the ca65 assembler and ld65 linker. The program should render a solid square sprite somewhere near the center of the display,...
6
votes
1
answer
662
views
Modified C64 PRG BASIC header?
I recently bought a c64 mini and been trying to code some assembly using Turbo Macro Pro v1.2.
While working on the hello world program I found a tutorial where an auto run BASIC header was used.
I ...
1
vote
2
answers
175
views
How to display alternate lines of text in 2 columns?
I have this part of code where all text lines come to the screen at once.
Now I want for each lines to come on the screen from the other side (ie. first line from left, second from right etc.).
Can ...
3
votes
1
answer
671
views
commodore 64 smooth scroller on line 1 - is jumping around on the screen if interrupt set on line #0
I have this horizontal smooth scrolling text on line 1 on the screen. the smooth scrolling effect is made using the $d016 hardware scrolling effect by iterating on the 7 lowest bits of $d016). The ...
5
votes
2
answers
681
views
Generating random direction in C64 Basic
I have run the ‘More Bouncing Balls’ Basic program from chapter 5 of the C64 user’s manual, with the addition from the final page of the chapter. The code is as follows:
10 PRINT CHR$(147):REM SHIFT ...
4
votes
3
answers
4k
views
ca65 assembler and ld65 linker
I'm beginning to use then ca65 assembler and ld65 linker on WIndows to create binary code for Commodore C64 computer, running on VICE emulator.
I write this small "hello world" source on file "...