6502 3D 10 PRINT using the BBC BASIC assembler

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024
  • A line-by-line conversion of the 3D "10 PRINT" program from BBC BASIC to 6502 using the assembler built in to BBC BASIC. The code is all OS legal and runs with or without the Tube enabled.
    The Tube processor is the emulated 6502 JIT processor (*FX 151,230,24) provided by PiTubeDirect Hognose: github.com/hog...
    Code editing uses the The BASIC Editor 1.45 by Acornsoft and enhanced by Tom Seddon: github.com/tom...
    Mark Moxon's excellent, fully-documented BBC Elite source code: www.bbcelite.com and, in particular, the LSFR random function: www.bbcelite.c...
    At the end, the PiTubeDirect is shifted into a Z80 Tube emulation mode (*FX 151,230,4) and a Z80 version of the program is assembled using the Z80 version of BBC BASIC by Richard Russell.

ความคิดเห็น • 26

  • @timsneath87
    @timsneath87 ปีที่แล้ว +3

    That was beautifully explained. I loved how you gradually introduced key concepts through the assembly translation. I wish I'd had this video available to me in the early 1980s!

  • @zx85
    @zx85 ปีที่แล้ว

    What a brilliant demonstration of how to move from BASIC to assembler. Thank you!

  • @MikePerigo
    @MikePerigo ปีที่แล้ว +3

    Nicely Done. Well presented. Thanks for reviving many memories.

    • @edgeeffect
      @edgeeffect ปีที่แล้ว

      Yeah... I haven't seen OSWRCH "Ozwirch" for so many years. ;)

  • @edgeeffect
    @edgeeffect ปีที่แล้ว +3

    I so miss having a high level language (even one as rudimentary as BASIC) with an embedded assembler. Pre calculating constants is just SO much easier when you can wrap your assembly up in code that gets executed at assemble time.
    In modern times, I can wrap the assembly process up in a bit of JS or Python... but nothing was as simple as Acorn BASICs.

  • @LockdownElectronics
    @LockdownElectronics 10 หลายเดือนก่อน

    Excellent video, thank you

  • @circuithijacker
    @circuithijacker 11 หลายเดือนก่อน +1

    Very cool! Awesome channel and very informative!

  • @10p6
    @10p6 ปีที่แล้ว +1

    Nice. Can you write a version for the ZX81 and Spectrum please :-)

  • @igorwollersheim464
    @igorwollersheim464 ปีที่แล้ว +2

    Again a great video with lots of information. Again learned a lot from your video.

  • @edgeeffect
    @edgeeffect ปีที่แล้ว +1

    Can you run your editor in MODE 6... no "wierd" teletext characters in MODE 6 ;)

    • @johnrichardson519
      @johnrichardson519 9 หลายเดือนก่อน +1

      Yes, loved this video, but all the way through I was wishing he was editing in MODE 0 or perhaps MODE 3!
      I pretty much only used MODE 7 to edit programs (or anything else) in the 1980's - but that was because I was restricted to a 12" black and white TV which had anything but a flat screen.
      MODEs 0 and 3 were unreadable. Those days are gone!

  • @Spongman
    @Spongman ปีที่แล้ว +1

    Excellent.

  • @mikeh_nz
    @mikeh_nz ปีที่แล้ว

    I like the RTS at the end :)

  • @pradolover
    @pradolover ปีที่แล้ว

    ❤❤❤

  • @skjerk
    @skjerk ปีที่แล้ว

    Love it!

  • @DAVIDGREGORYKERR
    @DAVIDGREGORYKERR 9 หลายเดือนก่อน

    What about going with a 65F02 FPGA based 6502.

    • @lsbyte
      @lsbyte  9 หลายเดือนก่อน +1

      I have one of those in my Plus/4 to replace the 8501 that stopped working properly. I initially had one of the adapters and replacement ROMs to allow you to use a 6510, but that didn't control the tape. The 8502 FPGA version just works like a native chip and obviously doesn't affect the programming (which is the aim of it!).

  • @jamesdecross1035
    @jamesdecross1035 ปีที่แล้ว

    Q: could this work in the BBC BASIC emulator in RISC OS on the Raspberry Pi, do you think? Thanks.

    • @lsbyte
      @lsbyte  ปีที่แล้ว +4

      I think it would work if you could run !65Tube or !65Host, but I don't know if they are available for the Pi - I've never seen them.
      Certainly the BASIC version would, though (as it's still BBC BASIC), although you might need to check the screen modes are the same. If you ported the code to ARM then it would work in the ARM assembler on there. I've almost done the ARM version but I'm away for a few weeks now, so won't finish it.

    • @dh2032
      @dh2032 ปีที่แล้ว

      @@lsbyte it would be more to do with is the emulator or a simulator a simulator just does the look and feel, but it's only skin deep, anything could be happening out of the users site, but true emulator mimics all area's of what's be emulated, even the bits the user does not normal see or interacted with?

    • @lsbyte
      @lsbyte  ปีที่แล้ว +2

      Following this up a bit more, I have now written an ARM version which should run under RISC OS, as well as the Native ARM Tube processor on the BBC provided by the PiTubeDirect. If you're interested in that, let me know and I may do a video about it!

  • @suvetar
    @suvetar ปีที่แล้ว

    Hiya, Sorry to hijack the topic but I couldn''t find out a way to reach you. I was hoping you might be able to weigh in on Adrian's Digital Basements' new video (th-cam.com/video/MS_KFcSZaLs/w-d-xo.html) He's got a BBC Master that isn't cooperating!
    Thank you so much, and I love this video too - BBC Basic is genius.

    • @suvetar
      @suvetar ปีที่แล้ว

      BBC Master 128 that is.

    • @lsbyte
      @lsbyte  ปีที่แล้ว +1

      I haven't had time to watch that video yet but there's already a thread about fixing his master on the Acorn forum Stardot: stardot.org.uk/forums/viewtopic.php?f=3&t=27013 - I'll see what problem he has, though, although my help is normally software only: you definitely don't want me doing anything electronic (especially at something above about 5V!).
      Most BBC Masters are 128 (the plain BBC Master is 128K). There is a Master 512 that has a 80186 in and things like the Master ET that was cut down to just be used as an Econet terminal.
      My next video was planning to go over customising the Master's 128KB ROM but it's been hijacked by a ZX81, but that's nearly done.

    • @suvetar
      @suvetar ปีที่แล้ว

      @@lsbyte No worries man! It's just that I saw his problem and as it's exacerbated by his less familiarity with British computers! I've always been blown away by your content here, especially your seemingly bottomless well of BBC Basic comprehension, well you were the first person I thought of to hook him up 😀
      I've loved BBCs since forever, I recall being amazed in the 80s that people could write their own * commands, but I never learned the technique myself ... do you have any content about that?
      This was '88 though, I recall moving on to the Archimedes very quickly ... couldn't tell you how many times I got kicked out of the Computer lab for playing Pac-Mania or Jaguar E-Type! Dab hand at making the batman logo in Pro-Artisan *rofl*.
      There was a ray tracing program too, named after an ancient Greek guy? Can't remember the name though ... irritating 😀

  • @tonystanley5337
    @tonystanley5337 ปีที่แล้ว

    I am so not worthy.