Super Pascal Compiler and Software Development System for the C64 published by Abacus.

  Рет қаралды 9,046

My Developer Thoughts

My Developer Thoughts

Күн бұрын

Join me as I explore the Super Pascal Compiler and Software Development System for the C64 published by Abacus.
If you have some time, follow along. Here is what you will need:
Second edition of the book: Pascal User Manual and Report
pascal.hansotten.com/uploads/b...
.g64 of Super Pascal can be found here as well as the manual:
www.lyonlabs.org/commodore/on...
Corrections (When you see, you can chuckle at them like I did when reviewing the video)
- 256 * 8 does not equal 4,096. There are 8 512 byte pages in each 4k block.
- Every so often you will hear me call procedures functions and functions procedures.
Timeline:
0:00 Intro
1:13 Getting Started
2:35 Starting Pascal Environment
4:13 Formatting the projects disk
6:20 Exploring the projects disk
7:59 Hello World
11:58 Variables, Constants and Statements
17:27 Comments
18:37 Blank lines
19:18 Saving and compiling
20:00 For Loops
23:13 Compiler Errors
25:33 Speed compared to BASIC
26:43 Procedures
30:15 Assembly Language Procedures
35:10 Including Files
35:18 Distributing the program
38:57 Final Thoughts

Пікірлер: 43
@erinwiebe7026
@erinwiebe7026 5 ай бұрын
I took pascal in high school. Our class used Turbo Pascal on XT class PC's and we saved all our work on 5 1/4" floppies. I found a couple boxes of my old floppy disks recently and I decided to build a mid 90's era PC to see if I could discover what was on them. When it came time to check out the disks, I was pleasantly surprised to find some of my old pascal assignments! I loaded up Turbo Pascal for the first time in decades and there it was. I compiled and ran the assignment and the program prompted "Enter 2 numbers.". I typed two numbers, 4 & 6 and pressed enter. The program simply stated "The sum is 10". It was then that I suddenly remembered my computer teacher encouraging me to make my program a little more user friendly. It's amazing what one can find on an old floppy disk. Fond memories!
@ChopsticksDIYGarden
@ChopsticksDIYGarden 25 күн бұрын
Pascal was my first programming language in college. Had a chance to learn record, pointer, New(), Dispose(), etc. It's great programming language.
@JSRFFD2
@JSRFFD2 5 ай бұрын
This was my first Pascal compiler, and a vital step in my programming journey. Basic was slow and clunky (no modularity) and 6502 assembly was daunting. Pascal was a wonderful compromise.
@DevilsHandyman
@DevilsHandyman 5 ай бұрын
You are an excellent presenter and explain clearly what you are doing and why. Thank you for sharing.
@stephenjohnston7630
@stephenjohnston7630 5 ай бұрын
Oh those were the days! I ran Pascal on the Acorn Electron in the mid-80s, loaded from an audio cassette, but I also used it on a friend's C64. And despite my endless teenage complaints, it's a language family that's served me surprisingly well over the years.
@LZCatt
@LZCatt 5 ай бұрын
Love this! You described my 1986 life perfectly as I was taking Pascal in college and did homework on my C64. Fun days.
@shankthebat8654
@shankthebat8654 5 ай бұрын
This was very interesting, and wonderfully detailed.
@FlyingInHD
@FlyingInHD 5 ай бұрын
Excellent presentation of a very interesting product. Well done!
@00Skyfox
@00Skyfox 5 ай бұрын
I took a Pascal class in college back in ‘94 and I don’t remember the slightest thing about it. Same for COBOL and FORTRAN after it. Fun to do but a waste of money. At least I still have the textbooks so I could relearn them if I wanted, and had the language systems to work with.
@TakeTheRedPill_Now
@TakeTheRedPill_Now 5 ай бұрын
Great trip back memory lane! Used to start 'serious' programming with a C64, a 1541 floppy drive whose disks had to be swapped constantly, and Super Pascal in 1986. Loved the language. Incredible how far we've come in just a couple of years. Thanks for doing this!
@MrGareth1973
@MrGareth1973 5 ай бұрын
Welcome back and thx for the video. I never used Pascal on c64. Was 11 in '84 when I got C64 and BASIC was all I could go into. Later in secondary school we used FORTRAN and Pascal on 286 and 386. I liked Pascal a lot at that time and later used to program in Borland Delphi. Sadly other languages took over...
@joe--cool
@joe--cool 5 ай бұрын
Delphi is still around. Version 12 released recently. There is also Lazarus as an open source alternative.
@stephenelliott7071
@stephenelliott7071 5 ай бұрын
I've always liked Pascal since college, and how cool there was a version for an 8-bit system like the C64 - and you're covering it in a very detailed way, great work! Excellently presented and well written code to, with modern touches like indentation of code and spacing.
@algonix11
@algonix11 5 ай бұрын
I love Pascal
@8-bitwallofdoom
@8-bitwallofdoom 5 ай бұрын
Nicely done. I vividly recall buying Abacus Music and Graphics apps on cassette when I lived in Berkeley in the mid 80s but was not aware of this title. Yes (at my age), I was an AP CS student and we learned Pascal on CBM PETs. What a towering achievement (that they put this much work in); thanks for featuring it!
@TheStuffMade
@TheStuffMade 5 ай бұрын
Interesting and a very nice demonstration 👍 I didn't even know there was a Pascal compiler for the C64. I wonder if anyone used this for commercial software for the C64. They should've added REU support to allow for larger programs and avoiding all the disk access.
@Brian-vs9sd
@Brian-vs9sd 5 ай бұрын
Also be interesting to see a comparison in speed against a version of Forth for the 64 like you used in a previous video. Thanks for the content.
@MK-ge2mh
@MK-ge2mh 5 ай бұрын
You’re back!!!!!! Yes!!!!!!!
@edgeeffect
@edgeeffect 5 ай бұрын
Can we pause and take a moment to contemplate the wonders of the cover design on the Pascal User Manual and Report.
@davidgari3240
@davidgari3240 5 ай бұрын
Reminds me of why I never got into P-code in the first place (45 years ago): Restrictive and arcane af. Call me Assy Magee. Good video though. Well done.
@b213videoz
@b213videoz 4 ай бұрын
I recently wrote a XONIX game in Pascal for Atari 800, perhaps I should try compiling and linking it for C64 😄
@movax20h
@movax20h 5 ай бұрын
Super cool video. I was always interesting in high level language compilers for these home computers, but never managed to use one. Only used BASIC, assembly, then switched to real stuff on PC, with C, Pascal, etc. This is pretty usable, but the editor is pretty meh. I was hoping for some decent full screen editor.
@G.B...
@G.B... 5 ай бұрын
Just another nice Pascal for the C64 ruined by the abysmally slow disk drive. As far I know, the only C64 Pascal that wasn't ruined was G-Pascal, which had the editor and compiler always loaded in memory - so no need to use the drive all the time. But this convenience came at a price: G-Pascal was actually a subset of Pascal and only supported integer arithmetic (no real numbers). Anyway, I wonder what that other Pascal system you mentioned will be (in part 2). Let me guess, Kyan Pascal, maybe?
@alandickey4480
@alandickey4480 5 ай бұрын
I did my Pascal homework on my C-128 running a CP/M version of Turbo Pascal and converting the disk format with Big Blue Reader for use on the PCs at school. I had the 128 versions of Super Pascal and Kyan Pascal, but I found that I liked Oxford Pascal 128 the best. Did anyone do benchmark comparisons among the different C= versions of Pascal?
@MK-ge2mh
@MK-ge2mh 5 ай бұрын
In high school, the first programming class was BASIC and the advanced programming was Pascal. Later in college when studying for my degree in CS, the language of the day was C++. The compiler we had to write for the compiler construction class was Pascal. It was more difficult (only slightly) to write a Pascal compiler than a C compiler due to the variable scoping of nested functions and that function arguments could be pass-by-value (as in C) or pass-by-reference (as in FORTRAN). One question about that Pascal compiler you’re using. Is it generating P-code which has to be emulated in a VM and not machine code?
@jimnicholls2911
@jimnicholls2911 5 ай бұрын
Like many Pascal systems of the day, this one does generate pcode. It’s the reason fillasm is so much faster than fillscr.
@Brian-vs9sd
@Brian-vs9sd 5 ай бұрын
Very cool. Have you tried out TRSE (Turbo rascal syntax error). A full system for writing code in a Pascal inspired language for many of the older systems. Also generates a .asm file to see the assembly source it generates.
@RonHelton
@RonHelton 5 ай бұрын
👍👍👍👍👍👍
@sevzas
@sevzas 5 ай бұрын
Great video but line numbers and pascal don't work together.
@DerMannInDerWand
@DerMannInDerWand 5 ай бұрын
Great video, super interesting! I would be curious how much of a difference not truncating the screencode on every address loop iteration but only once per screencode loop iteration would make in the pure Pascal variant, as it happens with the asm variant.
@MyDeveloperThoughts
@MyDeveloperThoughts 5 ай бұрын
kzfaq.info/get/bejne/sKmla82Ezrbej6c.html What a great question. I had to find out the answer. So I put together this really quick video to demonstrate the effect of removing the low function from the inner for loop.
@gcewing
@gcewing 5 ай бұрын
Couldn't you declare screencode as a byte in the first place and avoid any conversions?
@MyDeveloperThoughts
@MyDeveloperThoughts 5 ай бұрын
@@gcewing For Loops in this version of Pascal can only iterator over integers.
@AndrewRoberts11
@AndrewRoberts11 5 ай бұрын
Have you tried the port of the BBC BASIC interpreter / compiler for the C64, as that allows Assembler procedures to be embedded / included in BASIC listings, and has a user selectable 1, 2 or 3 pass compiler.
@MyDeveloperThoughts
@MyDeveloperThoughts 5 ай бұрын
Not familiar with this package. It looks pretty interesting, maybe I'll check that out in the future. mdfs.net/Software/BBCBasic/C64/
@AndrewRoberts11
@AndrewRoberts11 5 ай бұрын
Last reply deleted, as contained a link. The 3D 10 PRINT videos offer a very BASIC overview.
@desertfish74
@desertfish74 5 ай бұрын
Why on earth does it have its own custom disk format?
@gcewing
@gcewing 5 ай бұрын
It's likely based on some other Pascal system such as UCSD Pascal or something similar. UCSD was its own little universe, which was good for portability but not so good for compatibilty with other systems.
@UltimatePerfection
@UltimatePerfection 5 ай бұрын
Is it faster than BASIC? How good is it for making games?
@MyDeveloperThoughts
@MyDeveloperThoughts 5 ай бұрын
It's much faster than BASIC, and because of the included assembler you could definitely write games in it. I know the first 3 Wizardry games on the Apple i][ and C64 were written in Pascal (Not this Pascal compiler though).
@b213videoz
@b213videoz 5 ай бұрын
30:48 any reason why you must have used integer instead of byte for your pascal fill function? What's the point to mark the argument as integer but then use low() on it ? 😂
@MyDeveloperThoughts
@MyDeveloperThoughts 5 ай бұрын
Check out the comments below :) I made a quick video in the comments showing the speed boost from fixing that issue. Thanks for the feedback, much appreciated!
Complete beginners guide to creating sprites on the Commodore 64 / C64 in BASIC
25:47
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 11 МЛН
Happy 4th of July 😂
00:12
Alyssa's Ways
Рет қаралды 70 МЛН
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 6 МЛН
Red❤️+Green💚=
00:38
ISSEI / いっせい
Рет қаралды 81 МЛН
Why Isn't Functional Programming the Norm? - Richard Feldman
46:09
Pascal (Not Just Nickel & Dime) - Computerphile
11:59
Computerphile
Рет қаралды 58 М.
Understanding how a demo works on the Commodore 64 (English)
8:41
Commodore 64 & 6510 retro-programming
Рет қаралды 5 М.
What was Coding like 40 years ago?
29:05
The Coding Train
Рет қаралды 1,7 МЛН
CrowdStrike IT Outage Explained by a Windows Developer
13:40
Dave's Garage
Рет қаралды 2 МЛН
The first LowSpec Processor
28:11
LowSpecGamer
Рет қаралды 603 М.
Learn FORTH on the VIC-20
39:09
My Developer Thoughts
Рет қаралды 3,2 М.
How Does Epyx Fastload Make Loading Faster on a Commodore 64?
29:16
Commodore History
Рет қаралды 32 М.
My New Favourite C64 One-Liner?
48:09
8-Bit Show And Tell
Рет қаралды 43 М.
C64 Sprite Multiplexing (EN)
12:34
agpxnet
Рет қаралды 17 М.
Самый Молодой Актёр Без Оскара 😂
00:13
Глеб Рандалайнен
Рет қаралды 11 МЛН