Josip Retro Bits

Josip Retro Bits

8-bit Programming, Embedded Programming, Commodore 64 and other vintage Computers.
Commodore BASIC, C and Assembly programming.

Flooder | Commodore 64 Game

Flooder | Commodore 64 Game

Can ChatGPT fix my code?

Can ChatGPT fix my code?

Пікірлер

  • @saganandroid4175
    @saganandroid41755 күн бұрын

    17:54 no matter what i do, l cannot see what you are typing at screen bottom. Using Google's KZread app to view. Went fullscreen. Tried changing orientation. No use.

  • @JosipRetroBits
    @JosipRetroBits3 күн бұрын

    Sorry about that. I will send you here full code today.

  • @JosipRetroBits
    @JosipRetroBits3 күн бұрын

    I was explaining how "on goto" was used as "if then else" In case (g<28) is true; the result will be -1, so then we have "on - (-1) goto 2" which gives "on 1 goto 2". So it will jump to line 2. Once we reach 28, (g<28) is false = 0, then we have "on -0 goto 2"; we will not jump on line 2, but the rest of that line will be executed. ?"time our":end (game over) in short, it's a kind of replacement for if then else: on (condition) {then}: {else}

  • @RaymondDay
    @RaymondDay27 күн бұрын

    Thank you it worked. But should change it a little when you type in the device number press enter and it show just ?? should show something like Enter new SD2IEC number. But I know it says enter current and new but hard to know to do it with a comma between the numbers. Any way were did you get the SD2IEC you have plug in the back of your C=64? I looked for photos for the SD2IEC and did not see any like the board you have. That's a very good way to have it. Plug in the drive port and cassette power port at the same time. Thank you.

  • @JosipRetroBits
    @JosipRetroBits24 күн бұрын

    Nice to see this little tip still helps someone :). Maybe it's slightly different firmware, but if it works that is awesome :) This SD2IEC model is modified so that I can use it on C64, plus/4 and C16l. (It's still available to buy on ebay) Cheers!

  • @marko.p.radojcic
    @marko.p.radojcicАй бұрын

    I have this demo. Love it. Thank you. Still have working C64 and C128 with home built SD2IEC

  • @JosipRetroBits
    @JosipRetroBits3 күн бұрын

    Thank You and sorry for my late feedback :)

  • @MegaFonebone
    @MegaFoneboneАй бұрын

    This is awesome, from a proof of concept standpoint anyway! 😂😂😂 Is there a way to do it with smaller pitch increments than semitones, or would it cause too much lag? Can I make a request for a future project? How about a C-64/SID vocoder?

  • @JosipRetroBits
    @JosipRetroBits3 күн бұрын

    Thank You. Yes it can be faster, I used BASIC but in C or assembly it can be done much more better :) Vocoder, wow, I'm not expert in that field but maybe something rudimental maybe :) Sorry for my late feedback!

  • @thomassauer27.75
    @thomassauer27.752 ай бұрын

    kzread.info/dash/bejne/iY5_zc6Dd5C7kbw.htmlsi=eKGN-c-iEQ3B5L_e

  • @Retro4u
    @Retro4u2 ай бұрын

    Hi all

  • @seongjep
    @seongjep2 ай бұрын

    Can you please compile and share this file to run faster? I tried and had no success using basic compiler by Data Becker. it gives me error everytime.

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    I will not work using the BASIC compiler, It will fail because of those POKE commands. I will make a version that can be compiled and then I will ping you :) Cheers!

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Here You go Sir: github.com/josipk/Commodore64/blob/main/Petscii_Art/basic60th_blitz_compiler.d64 Modified code is on the disk. I used a Blitz compiler but u can use any other BASIC compiler. Enjoy :)

  • @Retro4u
    @Retro4u2 ай бұрын

    60 years wow who would have thought it. Loved the patterns and the music went so well with it :) great video keep up the good work 😊

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Yap, older than me :) Thank You very much! Cheers!

  • @JohnMDiLiberto
    @JohnMDiLiberto2 ай бұрын

    Very neat, Josip! I can strongly recommend a 38-minute KZread documentary on the creation of BASIC at Dartmouth University, New Hampshire, USA. I viewed the doc two or three years ago . . . it's titled ""Birth of BASIC" and may be found on the "Dartmouth" KZread channel.

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Yap, I saw the "Birth of BASIC"; and the whole story is just awesome :) Maybe I should do a documentary-style video. Thank You for watching :) Cheers!

  • @indiocolifa
    @indiocolifa2 ай бұрын

    Love it. How about feeding the programs through BASIC compilers ? Thanks

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You. Well Yes, but those POKE commands would not work correctly, that part of the code should be changed, but Yes in that case it would be faster :) Cheers!

  • @RudysRetroIntel
    @RudysRetroIntel2 ай бұрын

    Already 60 years!! Thanks for a very cool video!!

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Yes, 60 years and still rocking!!! :) Thank You Rudy :)

  • @seongjep
    @seongjep2 ай бұрын

    Awesome! Love it!

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank you! Cheers!

  • @CaptainCommodore
    @CaptainCommodore2 ай бұрын

    Very nice explanation

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You :) Cheers!

  • @LechPolska2023
    @LechPolska20232 ай бұрын

    Po polsku

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Yes :)

  • @Commodoreretro-programming
    @Commodoreretro-programming2 ай бұрын

    Nice job. Thanks for sharing your knowledge!

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You. There is a ver.2 with a simpler design :) Cheers!

  • @akkudakkupl
    @akkudakkupl2 ай бұрын

    You could do the table as a binary tree. Lets say dot means 0 and dash means 1. Then you need a table of 32 elements (because the tree has a depth of 5). You would construct the pointer by left shifting your dot and dash representations. So lets say you receive morse code for 8 (because numbers are coded by 5 symbols) - - - . . => 11100 => go to table element 28. When you get illegal code you could print an error, wait for a pause in received code (start of next character) and decode next character.

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Yes, I should have done this using a binary tree, it would be more professional and maybe even easier to implement in the code but... :) Maybe I will rewrite the code. Thanks :) ...and Thank You for watching! Cheers!

  • @RudysRetroIntel
    @RudysRetroIntel2 ай бұрын

    Wow! Excellent progress!! Very cool, and thanks for sharing

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You Rudy :) Well I could implement the whole Morse code table but this is just demo so... Cheers!

  • @CaptainCommodore
    @CaptainCommodore2 ай бұрын

    Great video, very thorough explanation too, am intrigued to see how your gonna decode into words

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You very much :) Yap, part three is out! Cheers!

  • @daibonehead
    @daibonehead2 ай бұрын

    Hi. I have a Speedlink Competition Pro Extra but for some reason I can't seem to get BMC64 to recognise it. Has anyone else managed to get it working?

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    It should be possible to setup USB joystick; have You tried on a regular PC with VICE? (sorry for my late replay)

  • @8BitRetroReFix
    @8BitRetroReFix2 ай бұрын

    Awesome work, mate ... --- .. - .. lol 😆

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thanks 😁 Cheers!

  • @akkudakkupl
    @akkudakkupl2 ай бұрын

    Cool!

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You for watching :) Cheers!

  • @RudysRetroIntel
    @RudysRetroIntel2 ай бұрын

    Amazing work, and I'm looking forward to your next video! Thanks for sharing

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank you Rudy :) Cheers!

  • @CaptainCommodore
    @CaptainCommodore2 ай бұрын

    Great video, loving the old school transistors ,looking forward to some assembly

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    You and me both :) Thank You for watching :) Cheers!

  • @CyberhugTechnologies
    @CyberhugTechnologies2 ай бұрын

    This is awesome Josip, great thinking for a video like this also, very well explained! Many thanks! I had a similar idea, decades ago for a circuit built around the joystick port instead - but never finished the project! This is far more advanced! Cheers!

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You very much :) Joystick, yes for sure it can be done. Cheers!

  • @RudysRetroIntel
    @RudysRetroIntel2 ай бұрын

    Excellent and well presented! Thanks for sharing

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Glad you liked it :) Cheers!

  • @JohnMDiLiberto
    @JohnMDiLiberto2 ай бұрын

    Very cool, Josip! 73 de AB3ZI

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You for watching :) Part two and three are also out :) Cheers!

  • @Red_Dead_Director
    @Red_Dead_Director2 ай бұрын

    very cool I saw this right away - this video's gonna have a over a million views next I check- I guess I'm staying up another half hour yet tonight

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You, so far a bit under the million but still hoping :) Cheers!

  • @leonardovallone
    @leonardovallone2 ай бұрын

    Great video! @osolabs

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You :) Cheers!

  • @Kellerberger128
    @Kellerberger1282 ай бұрын

    Würde mich Interessieren, wie du das gemacht hast. Kommt dazu noch ein Video heraus?

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    I didn't plan to do a video but maybe I should. I connected C64 to the printer serial port and used G code commands for moving axes. Cheers!

  • @iballa2
    @iballa23 ай бұрын

    Jeez gloop

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    Thank You for watching :) Cheers!

  • @ConclusiveLion663
    @ConclusiveLion6633 ай бұрын

    Thats worse than real hardware.

  • @JosipRetroBits
    @JosipRetroBits2 ай бұрын

    It's better :) ha ha

  • @ArneChristianRosenfeldt
    @ArneChristianRosenfeldt3 ай бұрын

    The 6502 has this exception philosophy when it needs to carry over to the high byte. The GitHub about Oscar says that C needs to support datatypes > char . But often in my code I have small numbers. I cannot guarantee it, though. Or I have a loop and the high byte stays fixed most of the time. So usually you write an outer loop for the high byte. Pointers are either immediates or stored in the zero page. Both times: 16 bit. I argue about speed, not code density. Floats for example should stay in interpreted code.

  • @JosipRetroBits
    @JosipRetroBits3 ай бұрын

    Yes, Oscar64 is a 16bit based C language; latter in assembly it gets converted to 8bit. 8bit char, or 8bit int, or byte is the same or it should be. For execution speed; it's a ok for convenience of easy coding :) Thank You for watching :) Cheers!

  • @cubeflinger
    @cubeflinger3 ай бұрын

    As messy as this was I learnt a bit about the PSU. I decided to free up slack in the ac mains cable itself and source from there as ut enters the case as I could not be bothered working into the resin.

  • @JosipRetroBits
    @JosipRetroBits3 ай бұрын

    Nice, as long we eliminate the original 5V DC converter, everything else is way better :) Cheers!

  • @saganandroid4175
    @saganandroid41753 ай бұрын

    That is a crime against theremins.

  • @JosipRetroBits
    @JosipRetroBits3 ай бұрын

    I know, but I had to do this anyway 😁

  • @Supermatic_is_in_trash
    @Supermatic_is_in_trash3 ай бұрын

    Can you do windows 1.0

  • @Tarizam
    @Tarizam3 ай бұрын

    Nice❤

  • @JosipRetroBits
    @JosipRetroBits3 ай бұрын

    Thanks 😊

  • @mr.anonymoose2810
    @mr.anonymoose28103 ай бұрын

    Idk why but this reminds me of rain

  • @JosipRetroBits
    @JosipRetroBits3 ай бұрын

    A bit, Yes :)

  • @iLoveYoutubePoopAndMemes
    @iLoveYoutubePoopAndMemes3 ай бұрын

    Nice

  • @JosipRetroBits
    @JosipRetroBits3 ай бұрын

    Thanks :)

  • @8bitHamburger
    @8bitHamburger3 ай бұрын

    Lets compile better games now :)

  • @JosipRetroBits
    @JosipRetroBits3 ай бұрын

    Games get better and better every year, for sure :) Cheers!

  • @TEZZMADETHIS
    @TEZZMADETHIS4 ай бұрын

    Interesting stuff, Loved my c64, keep up the good work of keeping it alive bud! 🙂👍 Subbed and liked.

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Thank You very much :) I will do my best :) Cheers!

  • @rafaelmmartinez9170
    @rafaelmmartinez91704 ай бұрын

    Nice video. Question, taking the reset to low, basically is making a short? That is a doubt I have. Reset line is always at 5v, so linking it to gnd makes a short right and produce the reset. Is this safe?

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Yes it is; that is how reset button works :) Reset line is not a power line, it's a signal line. It can be high or low. I do have a new version of this little circuit kzread.info/dash/bejne/fGymj5ebeJucoKQ.html Thank You for watching :) Cheers!

  • @rafaelmmartinez9170
    @rafaelmmartinez91704 ай бұрын

    @@JosipRetroBits oh ok, I'm making a switch with arduno and I had that doubt. Not sure if was safe to reset that way. Thank you!

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    @@rafaelmmartinez9170 Any time :)

  • @blackterminal
    @blackterminal4 ай бұрын

    I think better to use a dc to dc converter and not destroy so much.

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Yap, I destroyed this enclosure too much, I know. But still think that AC to DC is better because the original transformer runs much cooler with the load on the 9V coil. But any solution other than the original commodore is ok :)

  • @blackterminal
    @blackterminal4 ай бұрын

    @@JosipRetroBits I am going to open one of these and fit a modern dc to dc converter and swap the output cable for one that fits a Commodore +4 I have. I do not often have a supply on long enough for it to get hot.

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Sure :) Oh, the square one for +4; nice.

  • @blackterminal
    @blackterminal4 ай бұрын

    @JosipRetroBits I carefully opened the black wedged shaped one. I disconnected the 7805 regulator (which was actually working fine but I didn't like it being in expoxy) and wired in a buck convertor to the raw 12v dc and setup a 4.95v output. I was not sure if that would be enough for the plus 4 but touch wood it seems ok with that. Better lower voltage as it means less heat. The convertor gets hotter than I'd like but the fact is the Plus 4 mostly just stays in its box as I don't have time for all my computers. At least it has a safer power supply now. The original was a 110v epoxy brick.

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    @@blackterminal Very nice. I would still go with 5.0V on DC-DC converter, there are some voltage drops inside the +4 (on the motherboard). Some ICs will not work if voltage is too low. But nice work :)

  • @CaptainCommodore
    @CaptainCommodore4 ай бұрын

    Superb old school logic , very nice explanation

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Thank You Lee :) Cheers!

  • @stajpi
    @stajpi4 ай бұрын

    malo pitanje - imam c64, kad ga ukljucim, bude samo plavi ekran. da li je do napajanja ili do maticne ploce? sto prvo gledati?

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Plavi commodore ekran bez teksta? Ili je plavi ekran pd tv-a?

  • @stajpi
    @stajpi4 ай бұрын

    @@JosipRetroBits samo plavi ekran, bez teksta... Znas ono kad ga upalis, plavi ekran i onda se za sekund pojavi tekst... Na tom plavom ekranu je zapeo

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Ok. Moguce jedan od ROM chipova. Ili Basic ili Kernel. A mozda i character rom

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    C64 longboard ili shortboard?

  • @zzmaj
    @zzmaj4 ай бұрын

    Very nice, but what happens when you play games with Joystick 1 and you need to go diagonally down right ?

  • @RudysRetroIntel
    @RudysRetroIntel4 ай бұрын

    Excellent work and upgrade to the design! Thanks for sharing

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    Thank You Rudy. I'm very happy with the design. I need to manufacture a proper PCB to make it sexy :) Cheers!

  • @RudysRetroIntel
    @RudysRetroIntel4 ай бұрын

    @JosipRetroBits Great idea, and if you need any help with that, let me know.

  • @JosipRetroBits
    @JosipRetroBits4 ай бұрын

    I will :) Thank You@@RudysRetroIntel