Added: 3 years ago
From: uhellstr
Views: 27,950
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (55)

Sign In or Sign Up now to post a comment!
  • Wow, I felt pretty cool when i learned puts "Hello World!" in ruby ...

  • 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.

  • Comment removed

  • Comment removed

  • 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 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?

  • Bra stuff!!! Du får det att verka enkelt.. !! =)

  • 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 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.)

  • 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.

  • Stiil stupid. You do not tell HOW to assemble. Can't explain how stupid that is.

  • @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 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 !!!

  • @uhellstr

    As i see, the 6502 Assembler is very familiar with the SNES Assembler. Great tutorial by the way.

  • @zoranrazarac RTFM

  • @zoranrazarac

    You're a pathetic fucktard who couldn't code his way out of a combination lock.

  • 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

  • This is how I've always done it!!! Great video.

  • Cool, nice introduction, makes me want to pull out the old C64 and play around :)

  • 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.

  • great video. but. most. annoying. accent. ever.

  • Why does the output come out in capitals, and yet the source code is in lowercase?

  • @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.

  • @marloweos Yeah, I was wondering that same thing... Quite odd...

  • 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 That's where they got it from.

  • @SoapyWaterz: That's because the C64 startup screen is what inspired the GTA:VC screen you refer to.

  • 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

  • Absolutely amazing tutorial. I'm off to code :D

  • Comment removed

  • [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".

  • Comment removed

  • 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.

  • try writing a 6502 emulator, its so cool. Or much more challenging, a NES emulator, which requires some serious patience when debugging.

  • What is your favorite metal band?

  • that's three complaints

  • You are an extremely rude individual.

  • awesome...thanks for this vid...

  • I am not YouTuber. I am serial intruder.

  • casn you make more of this tutorial.plss

  • i think your videos are very interesting. please post more videos on how to program the 6502. your commenting is very good and motivating :)

  • its fun

  • 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.

  • Comment removed

  • @sparerib1968 : but that won't show the first char, afaik

  • org $1000

    ldx #$0b

    loop lda text,x

    sta $0400,x

    dex

    bpl loop

    rts

    .text "hello world!"

    There

  • Good tutorial, nicely done

  • 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.

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more