98 questions
2
votes
0
answers
160
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 ...
0
votes
1
answer
64
views
C64 sprite doesnt show up
code:
* = $1000
jsr init
jsr mainloop
init:
jsr $E544 ;KERNAL clear screen routine
lda #$20 ;sprite pointers $07F8 - paddle1, $07F8 - ball
sta $07F8
lda #$21
sta $07F9
lda #$00 ;background ...
3
votes
1
answer
140
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 ...
4
votes
2
answers
94
views
Two zero bytes instead of three to signal End-of-BASIC?
Jim Butterfield's "Machine Language for Commodore Machines" book states at page 92 in the chapter on BASIC Memory Layout that (emphasis mine):
End-of-BASIC is signaled by three zero bytes ...
0
votes
1
answer
110
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}{_???...
1
vote
1
answer
419
views
Kick Assembly remove borders of C64 trick
I'm trying to conver this ACME asm script to Kick Assembler syntax.
This is what i've made:
.macro Wait (v) {
ldy #v
dey
bne *-1
}
* = $0801
.byte $0c, $...
0
votes
1
answer
248
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 ...
-4
votes
1
answer
188
views
Kyan Pascal: compiler error "Too many indices on the closing bracket of a[t]" [closed]
In Kyan Pascal for the Commodore 64, I keep getting the error:
Too many indices on the closing bracket of a[t]
...in the first line of my first procedure:
For t := 1 to 100 do a[t] := t;
Whole ...
2
votes
0
answers
116
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
votes
2
answers
150
views
Why is there an unexpected character on line 6 in C64 Basic?
PRG Studio says there is an unexpected character on line 6. But, I can't figure out why. I'm programming for the c64.
1 rem setup
3 holding = "nothing"
6 playing_game = true
10 rem intro
20 ...
1
vote
0
answers
193
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 ...
2
votes
1
answer
176
views
Interrupt that loads Bitmap and plays a SID file is NOT returning to main program - (6510 ASM, CBM Prog Studio)
I have been trying to load a bitmap to the screen and play a sid file at the same time using an IRQ interrupt. I have it working, the Bitmap displays great, and the SID file plays wonderfully, but ...
-1
votes
1
answer
155
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 "...
-1
votes
1
answer
205
views
Explain a part of the code c64 6502 Assembly
try to understand a code In the following website is a code a scrollers with wave-like movements. In general, I also understand the code very well. What I don't quite understand IS why he uses Ypos ...
0
votes
1
answer
245
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 ...