Hello everybody.
Sorry for asking help but to date I have been unable to find what seemed a simple piece of information. I am playing with Acornsoft ISO pascal and it is working great (with some quirks) but it is a black box to me. I would like to use the pascal interpreter alone as a virtual machine on ROM and make a few tests to see how efficient could be in term of code space.
Anyone pointing me to some resource to understand the object format and the underlying VM?
Acornsoft ISO Pascal object-code format?
-
- Posts: 215
- Joined: Tue Jul 03, 2007 10:40 am
- Location: italy
- Contact:
Re: Acornsoft ISO Pascal object-code format?
Have a look at its compiler? Or rather, one that's as close as you can get given the actual source is lost in the Acorn Drawing Office.nicolagiacobbe wrote: ↑Thu Apr 11, 2024 8:05 pm Hello everybody.
Sorry for asking help but to date I have been unable to find what seemed a simple piece of information. I am playing with Acornsoft ISO pascal and it is working great (with some quirks) but it is a black box to me. I would like to use the pascal interpreter alone as a virtual machine on ROM and make a few tests to see how efficient could be in term of code space.
Anyone pointing me to some resource to understand the object format and the underlying VM?
https://gtoal.com/acorn/arm/TutuPascal/AComp/
I was adapting the 6502 one for ARM in late 1985/early 1986, having done a 65816 version earlier in 1985 for the Communicator, as well as bug fixing the 6502 one that was written by Ben and Li (hence BL code). I'd adapted it fairly carefully for wider pointers etc.: see comments containing "Tutu - was" ...
Miserable old curmudgeon who still likes a bit of an ARM wrestle now and then. Pi 4, 3, ARMX6, SA Risc PC, A540, A440
-
- Posts: 215
- Joined: Tue Jul 03, 2007 10:40 am
- Location: italy
- Contact:
Re: Acornsoft ISO Pascal object-code format?
Thanks SKS1, now that you pointed me to it I think is the best way, just hoping for something more specific but this is already great.
Re: Acornsoft ISO Pascal object-code format?
I think the 6502 optimiser is lost as well; that was needed to be able to fit the BL coded compiler into a single ROM, otherwise it's about 20KB. It scanned the compiler output for commonly-found sequences and squeezed them into previously unused BL codes. I also think the disc-based compiler was slightly more functional.nicolagiacobbe wrote: ↑Thu Apr 11, 2024 8:34 pm Thanks SKS1, now that you pointed me to it I think is the best way, just hoping for something more specific but this is already great.
I don't recall seeing a disassembly of the 6502 BL code interpreter here?
Miserable old curmudgeon who still likes a bit of an ARM wrestle now and then. Pi 4, 3, ARMX6, SA Risc PC, A540, A440
-
- Posts: 215
- Joined: Tue Jul 03, 2007 10:40 am
- Location: italy
- Contact:
Re: Acornsoft ISO Pascal object-code format?
neither do I, it would be nice. It could be solved but I fear it could become another rabbit pit...
- dominicbeesley
- Posts: 2210
- Joined: Tue Apr 30, 2013 12:16 pm
- Contact:
Re: Acornsoft ISO Pascal object-code format?
I'd be interested in finding out more about the 816 version. Is that lost?
Re: Acornsoft ISO Pascal object-code format?
Ah, there seems to be a copy of the optimiser on Graham's site, as well as the BL code disassemblerSKS1 wrote: ↑Thu Apr 11, 2024 8:39 pmI think the 6502 optimiser is lost as well; that was needed to be able to fit the BL coded compiler into a single ROM, otherwise it's about 20KB. It scanned the compiler output for commonly-found sequences and squeezed them into previously unused BL codes. I also think the disc-based compiler was slightly more functional.nicolagiacobbe wrote: ↑Thu Apr 11, 2024 8:34 pm Thanks SKS1, now that you pointed me to it I think is the best way, just hoping for something more specific but this is already great.
https://gtoal.com/acorn/arm/TutuPascal/BBCPascal/
Miserable old curmudgeon who still likes a bit of an ARM wrestle now and then. Pi 4, 3, ARMX6, SA Risc PC, A540, A440
Re: Acornsoft ISO Pascal object-code format?
As far as I am aware, yes. Worked OK, interpreter stayed in 16-bit mode all the time, using 24-bit pointers everywhere for all Pascal objects.dominicbeesley wrote: ↑Fri Apr 12, 2024 1:39 pm I'd be interested in finding out more about the 816 version. Is that lost?
Miserable old curmudgeon who still likes a bit of an ARM wrestle now and then. Pi 4, 3, ARMX6, SA Risc PC, A540, A440
Re: Acornsoft ISO Pascal object-code format?
They're Beeb executables, can't remember whether they are run under the BL interpreter.
Miserable old curmudgeon who still likes a bit of an ARM wrestle now and then. Pi 4, 3, ARMX6, SA Risc PC, A540, A440