If you wanted to use the BASIC print routine you could have written JSR $AB1E, put the address of the text in x,y and place a null at the end of the text. Simple.
@Braddo82 Thanks for that, I was getting symbols and couldn't figure out why (it even read as hello world! in monitor!), do you know why the and #$3f is needed?
Yeah, that's nice and all, but I can't even get the IDE to load! The disk contents look far different than from what you have, so "TASM74" doesn't even exist on the disk I downloaded.
hi, i have typed in all of the code, but i am still having trouble with tasm. first, what do i press to assemble and run the code. and 2nd, how do i save and load my codes. thanks
@bryceHUHwhat BTW, before i get the comment below on my post, i did rtfm, but the online manual assumes previous experience with other assemblers, and i have only ever done basic and machine code on one of those heathkit 6800 trainers.
@zoranrazarac. Well, let's see. Im running this on an Emulator. The emulators name is Power64 running on a Mac with a Swedish keyboard. TASM depends on the orignal C64 keyboard. So how do you thing i'm stupid for not letting you know how to assembler the code using awkward keycomb I had to FIND OUT MYSELF on a Swedish keyboard on a Macintosh? If you really want to code use GOOGLE and your brain or just start trial & error. How hard can it be ? Now, how which one of us is the stupid one ?!
@uhellstr It would be more interesting, if you had made a text repeating here (like in basic with goto10) and compare it to the same program in basic to show the speed gain
@uhellstr actually mate i think you explained very well i understood everything i dont have any knowledge of computer arquitechure but well i studied a bit of the 6502 registers and i thought you explained very well i think you should make more tutorials thanks mate !!!
Man, I've always admired those who could do assembly. I unfortunately have never progressed much past good ol' BASIC and am working on learning Python (which I love). When I look at what needs to be done just to do something simple like that, my mind boggles. I can't imagine doing entire programs in assembly but I love seeing what others have accomplished with it in the demo scene. You are all gods among men.
@raydeen2k assembler is not complicated.. on the C64 if u have the list of built in routines and memory locations of the C64 like the routine that prints a line of text etc u will know what these routines require as parameters and what they return as data back if any..the mnemonics are not that difficult to understand the mnemonic STA stands for Store the Accumulator which is the main register of the CPU ..try it u'll enjoy playing with it
@marloweos The C64 has two character set modes. The default is uppercase/graphics. When he's in turbo assembler it's switching to uppercase/lowercase mode. Anything typed in lowercase will be uppercase in the default mode. Any uppercase would show as their graphic equivalent in default mode. You can toggle back and forth by pressing C= and SHIFT simultaneously right after boot on a C64 or emulator to see the effect. Hope this helps.
this brings back memories.. I wrote a macro assembler in Commodore Basic and one in machine code... I was working on a machine coded windows type OS for it too like GEOS / MS Windows... I got the window drawing, opening-closing input and desktop icons..responding to clicking on the icons etc..had to give up that hobby when I got an Atari ST and started writing Basic and assembly programs for it
The guy who is giving this demo, speaks exceptional English. I'd like to see you attempt to try to speak another language, when clearly you have trouble with even the basics of your own language.
Databamse. You're an idiot. Stop wasting people's time.
That's interesting, the Apple II Series kept the text page at $0400 (1024).. That program can actually run on the Apple II. However, I use the COUT routine in ROM since it updates the cursor position.
This comment has received too many negative votesshow
Its good. I have two complaints. 1: You talk too much. 2: When you talk, you smack your lips. It sounds like you have a meatball in your mouth after your dinner you had earlier. 3: Your english is very bad and tiresome. You have fluidity in your english, but you talk TOO much english. You have to find better words that shortens down your talking, it gives me a headache to listen to your english. It sounds very bad too, I dont know if its because youre sweedish, I think so.
Even if this one was a bit easy, l really enjoyed this tutorial. I am just trying to learn assembly for the c64. I hope there will be a lot more of them soon!
Wow, I felt pretty cool when i learned puts "Hello World!" in ruby ...
voltototo 3 weeks ago
If you wanted to use the BASIC print routine you could have written JSR $AB1E, put the address of the text in x,y and place a null at the end of the text. Simple.
jack002tuber 1 month ago
Comment removed
BooleanLogic 6 months ago
Comment removed
574rdu57 7 months ago
That program wouldn't work if you ran it without TASM, you'd get symbols instead of letters. Two ways to fix:
-JSR $ffd2 instead of STA to screen.
-AND A with #$3f before STA.
Braddo82 9 months ago
@Braddo82 Thanks for that, I was getting symbols and couldn't figure out why (it even read as hello world! in monitor!), do you know why the and #$3f is needed?
TheNickMorison 1 week ago
Bra stuff!!! Du får det att verka enkelt.. !! =)
TheNovum 9 months ago
Yeah, that's nice and all, but I can't even get the IDE to load! The disk contents look far different than from what you have, so "TASM74" doesn't even exist on the disk I downloaded.
ClarionCoder51 10 months ago
@ClarionCoder51 In the current version, using a standard C64 emu, you'll want to go with:
LOAD "$",8
LIST
LOAD "TMP V1.2/S.",8,1
SYS 8*4096
(Bear in mind, the spaces between TMP and V1.2/S. has to be the correct amount, it should be lined up with the LIST output.)
Tobberoth 4 months ago
hi, i have typed in all of the code, but i am still having trouble with tasm. first, what do i press to assemble and run the code. and 2nd, how do i save and load my codes. thanks
bryceHUHwhat 11 months ago
@bryceHUHwhat BTW, before i get the comment below on my post, i did rtfm, but the online manual assumes previous experience with other assemblers, and i have only ever done basic and machine code on one of those heathkit 6800 trainers.
bryceHUHwhat 11 months ago
Stiil stupid. You do not tell HOW to assemble. Can't explain how stupid that is.
zoranrazarac 1 year ago
@zoranrazarac. Well, let's see. Im running this on an Emulator. The emulators name is Power64 running on a Mac with a Swedish keyboard. TASM depends on the orignal C64 keyboard. So how do you thing i'm stupid for not letting you know how to assembler the code using awkward keycomb I had to FIND OUT MYSELF on a Swedish keyboard on a Macintosh? If you really want to code use GOOGLE and your brain or just start trial & error. How hard can it be ? Now, how which one of us is the stupid one ?!
uhellstr 1 year ago 9
This has been flagged as spam show
@uhellstr It would be more interesting, if you had made a text repeating here (like in basic with goto10) and compare it to the same program in basic to show the speed gain
574rdu57 7 months ago
@uhellstr actually mate i think you explained very well i understood everything i dont have any knowledge of computer arquitechure but well i studied a bit of the 6502 registers and i thought you explained very well i think you should make more tutorials thanks mate !!!
darkdevil905 5 months ago
@uhellstr
As i see, the 6502 Assembler is very familiar with the SNES Assembler. Great tutorial by the way.
Tarek701 2 weeks ago
@zoranrazarac RTFM
david52875 11 months ago
@zoranrazarac
You're a pathetic fucktard who couldn't code his way out of a combination lock.
ZmajSnoshaj 1 month ago
Man, I've always admired those who could do assembly. I unfortunately have never progressed much past good ol' BASIC and am working on learning Python (which I love). When I look at what needs to be done just to do something simple like that, my mind boggles. I can't imagine doing entire programs in assembly but I love seeing what others have accomplished with it in the demo scene. You are all gods among men.
raydeen2k 1 year ago
@raydeen2k assembler is not complicated.. on the C64 if u have the list of built in routines and memory locations of the C64 like the routine that prints a line of text etc u will know what these routines require as parameters and what they return as data back if any..the mnemonics are not that difficult to understand the mnemonic STA stands for Store the Accumulator which is the main register of the CPU ..try it u'll enjoy playing with it
xadam2dudex 1 year ago
This is how I've always done it!!! Great video.
senorverde09 1 year ago
Cool, nice introduction, makes me want to pull out the old C64 and play around :)
DusteDdekay 1 year ago
Excellent, i want to get into assembler c64 coding utilizing all my years of c64 basic, amiga assembler and various pc coding.. seems like fun.
MrMegazuki 1 year ago
great video. but. most. annoying. accent. ever.
aseglkj 1 year ago
Why does the output come out in capitals, and yet the source code is in lowercase?
marloweos 1 year ago
@marloweos The C64 has two character set modes. The default is uppercase/graphics. When he's in turbo assembler it's switching to uppercase/lowercase mode. Anything typed in lowercase will be uppercase in the default mode. Any uppercase would show as their graphic equivalent in default mode. You can toggle back and forth by pressing C= and SHIFT simultaneously right after boot on a C64 or emulator to see the effect. Hope this helps.
Retro6502 1 year ago
@marloweos Yeah, I was wondering that same thing... Quite odd...
HazkanKoldor 7 months ago
The blue screen at the start of the video reminds me of Grand Theft Auto: Vice City. You see it just before the opening credits!
SoapyWaterz 1 year ago
@SoapyWaterz That's where they got it from.
commodore256 1 year ago
@SoapyWaterz: That's because the C64 startup screen is what inspired the GTA:VC screen you refer to.
inphanta 1 year ago
this brings back memories.. I wrote a macro assembler in Commodore Basic and one in machine code... I was working on a machine coded windows type OS for it too like GEOS / MS Windows... I got the window drawing, opening-closing input and desktop icons..responding to clicking on the icons etc..had to give up that hobby when I got an Atari ST and started writing Basic and assembly programs for it
xadam2dudex 1 year ago
Absolutely amazing tutorial. I'm off to code :D
partyatmine38 1 year ago
This has been flagged as spam show
The guy who is giving this demo, speaks exceptional English. I'd like to see you attempt to try to speak another language, when clearly you have trouble with even the basics of your own language.
Databamse. You're an idiot. Stop wasting people's time.
jonnyridge3d 2 years ago
This has been flagged as spam show
Databamse. You're an idiot. You can't even correctly type in English. Your grammar, syntax and diction are weak, to say the least:
1. You are missing an apostrophe (that's this symbol ' in case you don't know) in
your opening sentence: "Its good".
2. There should be a colon (that's this symbol : in case you don't know) at the end of this sentence: "I have two complaints".
jonnyridge3d 2 years ago
Comment removed
jonnyridge3d 2 years ago
[continued]
3. There should be no colon (refer to point 2 of my message, if you're unsure as to what a colon actually is) after your numerals.
4. There should be an apostrophe (refer to point 1 of my message, if you're unsure as to what an apostrophe actually is) where you typed "dont".
5. There should be an apostrophe (refer to point 1 of my message, if you're unsure as to what an apostrophe actually is) where you typed "youre".
jonnyridge3d 2 years ago
Comment removed
jonnyridge3d 2 years ago
That's interesting, the Apple II Series kept the text page at $0400 (1024).. That program can actually run on the Apple II. However, I use the COUT routine in ROM since it updates the cursor position.
TLucretiusCarus 2 years ago
try writing a 6502 emulator, its so cool. Or much more challenging, a NES emulator, which requires some serious patience when debugging.
0121ryanh117 2 years ago
What is your favorite metal band?
benno99 2 years ago
This comment has received too many negative votes show
Its good. I have two complaints. 1: You talk too much. 2: When you talk, you smack your lips. It sounds like you have a meatball in your mouth after your dinner you had earlier. 3: Your english is very bad and tiresome. You have fluidity in your english, but you talk TOO much english. You have to find better words that shortens down your talking, it gives me a headache to listen to your english. It sounds very bad too, I dont know if its because youre sweedish, I think so.
Databamse 2 years ago
that's three complaints
playh00p 2 years ago 6
You are an extremely rude individual.
russelgauthier 2 years ago
awesome...thanks for this vid...
SpeedPickers 2 years ago
I am not YouTuber. I am serial intruder.
LCRUSHABLENET 2 years ago 4
casn you make more of this tutorial.plss
casterfile 2 years ago
i think your videos are very interesting. please post more videos on how to program the 6502. your commenting is very good and motivating :)
jtopland 2 years ago 2
This comment has received too many negative votes show
Stop hammering the keyboard that hard
esathegreat 2 years ago
its fun
IMakeOrWatchVideos 2 years ago
org $1000
ldx #$0c
loop lda text,x
sta $0400,x
dex
bne loop
rts
.text "hello world!"
There, now yo don't have to bother with the "cpx" instruction at all.
sparerib1968 2 years ago 5
Comment removed
joecassara 2 years ago
@sparerib1968 : but that won't show the first char, afaik
jtopland 2 years ago
org $1000
ldx #$0b
loop lda text,x
sta $0400,x
dex
bpl loop
rts
.text "hello world!"
There
sparerib1968 2 years ago
Good tutorial, nicely done
hughieadams 3 years ago
Even if this one was a bit easy, l really enjoyed this tutorial. I am just trying to learn assembly for the c64. I hope there will be a lot more of them soon!
Kind Regards, Manuel.
mmeewezen 3 years ago 9