6502 3D 10 PRINT using the BBC BASIC assembler
HTML-код
- Опубликовано: 9 сен 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.
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!
Nicely Done. Well presented. Thanks for reviving many memories.
Yeah... I haven't seen OSWRCH "Ozwirch" for so many years. ;)
Very cool! Awesome channel and very informative!
Excellent video, thank you
What a brilliant demonstration of how to move from BASIC to assembler. Thank you!
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.
Again a great video with lots of information. Again learned a lot from your video.
Nice. Can you write a version for the ZX81 and Spectrum please :-)
Excellent.
I like the RTS at the end :)
Love it!
❤❤❤
Can you run your editor in MODE 6... no "wierd" teletext characters in MODE 6 ;)
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!
What about going with a 65F02 FPGA based 6502.
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!).
Q: could this work in the BBC BASIC emulator in RISC OS on the Raspberry Pi, do you think? Thanks.
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.
@@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?
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!
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 (ruclips.net/video/MS_KFcSZaLs/видео.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.
BBC Master 128 that is.
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.
@@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 😀
I am so not worthy.