[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games


View post   

File: 37 KB, 640x362, E12F0477-2E56-4F52-86DB-EA7253A3C12F.jpg [View same] [iqdb] [saucenao] [google]
8792403 No.8792403 [Reply] [Original]

How can I learn C64 assembly language?

>> No.8792456

There’s this place called a library, it’s got these wonderful things called books.

>> No.8792462

The internet

>> No.8792465

if you have to ask how to program, you will never be a programmer

>> No.8792482

>>8792465
Yes programmers are born from mama programmers who isolate them with calculators until they are old enough to finally break out of the nest and find a computer in the wild. A true spectacle of hundreds of years of genetic selection.

>> No.8792491

>>8792403
I googled it for you zoomer.
Good thing you thought to ask vr and wait for a reply instead of literally typing "c64 assembly language" into google.
https://www.commodore.ca/manuals/c64_programmers_reference/c64-programmers_reference_guide-05-basic_to_machine_language.pdf

>> No.8792494

>>8792403
Although it's very incomplete, this is an ok starting point:
https://c64.ch/programming/

There are a lot of resources online if you google. This page is quite useful too:
https://codebase64.org/
And this one is good for reference:
https://www.c64-wiki.com/

>> No.8792553

>>8792403

When I got into C64 assembly programming years back this book clicked with me and helped me learn 6502 assembly language

https://www.apple.asimov.net/documentation/programming/6502assembly/6502%20Assembly%20Language%20Programming.pdf

This book is where I learned the hardware specifically

http://cini.classiccmp.org/pdf/Commodore/C64%20Programmer's%20Reference%20Guide.pdf

>> No.8792565
File: 168 KB, 1024x1024, RTFM.jpg [View same] [iqdb] [saucenao] [google]
8792565

>>8792403
but if your IQ is so low you didnt know about this then you've go no fucking chance with assembly.

>> No.8792576 [DELETED] 

>>8792565
What do I have to lose soliciting the expertise of others before searching myself for the information I’m after?

>> No.8792761

ITT: the assembly language larper starts a bait thread and waits.

>> No.8793064

>>8792403
$C000 A2 00
$C002 BD 11 C0
$C005 C9 00
$C007 F0 07
$C009 20 D2 FF
$C00C E8
$C00D 4C 02 C0
$C010 60
$C011 54 48 45 20 4F 50 20 49 53 20 41 20 46 41 47 47 4F 54 00

>> No.8793067

>>8792761
Ironically I’ve never seen this assembly language larper myself, only you bitching about him in every thread about assembly language.

>> No.8793324

>>8792403
You can't. It's impossible. No one has ever learned it. Anyone who claims otherwise is the assembly language larper. I can't, and I'm the most special smartest little boy in the whole world. I even have a certificate from my mommy to prove it. If I can't learn it then no one else possibly can.

>>8793067
I'm obsessed with the assembly language larper. When I was a little boy he promised to teach me binary by putting his 1 in my 0. Even though we did it thousands of times I didn't learn anything.

>> No.8793542

>>8793067
>Ironically I’ve never seen this assembly language larper myself
You don't have a single mirror anywhere in your basement?

>> No.8793554

>>8793067
>ojama posting on /pw/

>> No.8793575

This dude is either ACK with a different schtick for this particular board, or he's a looney inspired by ACK. The posting styles are too similar to ignore. And, much like ACK did/does, he shows up to respond to every post he's mentioned in to vehemently tell us all that there is no assembly language larper. We finally have our own resident schizo.

>> No.8793584

>assembly language larper
This is how you know you're fucking underage shits. ANYONE who owned a C64 back in the day knew at least some assembly.
Fuck's sake, kids. Cry more about all the things you will never know and have too much ADHD to ever learn.

>> No.8793589

>>8793584
You're either him on a new IP or you're legitimately too new to know what's going on. Which is it?

>> No.8793740

>>8792491
ikr, we could've had a console war thread, or a bitching about prices thread, or an obvious bait thread, but no instead there has to be a question

>> No.8793776

>>8792482
Not him but its true
I knew a programmer who was just curious and problem solved things alone, never asked anyone, just wanted to know how things worked and found solutions to them and then used books to further improve. Most people with a talent for things dont ask "How to x" because if the curiosity is strong enough they just do it anyways, its always the ones that ask the question that fail, never met someone that asked that and didnt drop it a week later

>> No.8793809

>>8793067
That's exactly the sort of thing the assembly larper would say.

>>8793584
You're obviously the assembly language larper. Nothing existed before I was born and zoomies invented everything. Ergo it's scientifically impossible that assembly even existed back then.

>> No.8794163
File: 58 KB, 400x300, Z80.jpg [View same] [iqdb] [saucenao] [google]
8794163

>>8792403
Y'all aint ready for the assembly language CONSOLE WARRIOR

>> No.8794198

>>8794163
based superior CPU

>> No.8794339

>>8792482
The point is that if you are asking people how, rather than looking for a solution yourself, you simply lack the basic curiosity needed for this sort of thing and would rather get it done by someone else.
But don't worry, there is also a market for code monkeys, just not in C64 assembly. Still, script-kids make like a third of the entire IT sector, so go for it.

>> No.8794378
File: 973 KB, 1152x648, cpus.png [View same] [iqdb] [saucenao] [google]
8794378

>>8794163
Aw! What a cute little baby. I have a couple that age my self.

>> No.8794387

>>8794198
>Z80
>superior
Not quite. 6502 is superior at cycle efficiency.

>> No.8794390

>>8794339
If only someone would try to make a console out of 8 bit or 16 bit microcontrollers, a real console not a lazily put together slop like arduboy.

>> No.8794421

>>8794387
6502 systems have half the clock speed of contemporary Z80 systems (e.g. colecovision vs NES) so the Z80 is more powerful. 6502 simply has a better price/performance ratio.

my understanding is that the 6502’s clock is actually half as much on paper with the same speed of DRAM because its clock works differently; I’m not sure about this though.

>> No.8794427

>>8792403
The books linked are a good start, also get some good tools. A cart with monitor like Action Replay or Final Cartridge will do some light assembly and let you poke around in memory. Then move onto a macro asm like TASM.

Good luck OP.

>> No.8794431

>>8794163
It's important to learn both Z80/port/indirect style and 6502/memorymapped/direct style, very interesting contrast in the architectures.

>> No.8794434

>>8794421
Gotta admit brah. That's a top notch impersonation of a larper. Well done.

>> No.8794438

>>8794421
It's the other way around, the 6502 can do more per clock than Z80, there are other things to consider though for performance in that the 6502 typically needs more commands and hits on RAM for some operations.

>> No.8794459

>>8794438
yeah it can do almost twice as much per clock, but it’s clocked half as much. I’m saying there’s a reason it was clocked half as much and you can’t just arbitrarily clock it higher without upgrading to much more expensive memory to work with it.

>> No.8794623

>>8794459
>it’s clocked half as much
It's clocked at whatever you clock it at champ. You're confusing a system with a CPU. You're not going to win any arguments that way. Only embarrass yourself.

>> No.8794663

this board is fucking shit

>> No.8794741

>>8794663
The board is ok. It’s just the recent spate of shit threads started with
>How do I do this?
>Why is this like this

>> No.8794752

>>8792403

Read magazine and copy back their printed programs' code.

>> No.8794918

>>8794623
>It's clocked at whatever you clock it at champ
yeah no, 6502 wasn't available at higher clock ratings like other chips were at that time. and even in the late 80s when it was, the PCE had to use SRAM for main memory (probably because DRAM wouldn't have been fast enough).

>> No.8796352 [DELETED] 

>>The only thing I use assembly for is to cook up shellcode, and even then Im just hooking into libc. How the actual fuck could any of you stand to do it all manually? There’s no syscalls, no libraries to use is there?

>> No.8796604

>>8794918
The original 6502 was rated for 2mhz. By whatever time "at that time" was it was rated for 3. Continuing to confuse systems and CPUs only continues to embarrass you.