Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Digital Archaeology » Computer Arcana » Apple » Apple II » tool to read boot sector ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
tool to read boot sector ? [message #371868] Wed, 08 August 2018 14:08 Go to next message
Anonymous
Karma:
Originally posted by: John Pham

Is there tool to read boot sector?
I want to disassemble Apple II Pascal boot, there is no doc
on Apple II Pascal boot process

thanks
Re: tool to read boot sector ? [message #371870 is a reply to message #371868] Wed, 08 August 2018 14:22 Go to previous messageGo to next message
Steve Nickolas is currently offline  Steve Nickolas
Messages: 2039
Registered: October 2012
Karma: 0
Senior Member
On Wed, 8 Aug 2018, John Pham wrote:

> Is there tool to read boot sector?
> I want to disassemble Apple II Pascal boot, there is no doc
> on Apple II Pascal boot process
>
> thanks
>

The Copy ][+ sector editor, maybe?

-uso.
Re: tool to read boot sector ? [message #371871 is a reply to message #371868] Wed, 08 August 2018 14:25 Go to previous messageGo to next message
mverpelli is currently offline  mverpelli
Messages: 289
Registered: May 2013
Karma: 0
Senior Member
On Wednesday, August 8, 2018 at 8:08:10 PM UTC+2, John Pham wrote:
> Is there tool to read boot sector?
> I want to disassemble Apple II Pascal boot, there is no doc
> on Apple II Pascal boot process
>
> thanks

Any utility capable of reading the disk, i.e. Copy II+
The boot sector has nothing special compared to all other sectors of the disk.

Marco
Re: tool to read boot sector ? [message #371873 is a reply to message #371871] Wed, 08 August 2018 14:32 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Wednesday, August 8, 2018 at 11:25:48 AM UTC-7, Marco Verpelli wrote:
> On Wednesday, August 8, 2018 at 8:08:10 PM UTC+2, John Pham wrote:
>> Is there tool to read boot sector?
>> I want to disassemble Apple II Pascal boot, there is no doc
>> on Apple II Pascal boot process
>>
>> thanks
>
> Any utility capable of reading the disk, i.e. Copy II+
> The boot sector has nothing special compared to all other sectors of the disk.
>
> Marco


I think I just use the code from Beneath Apple Dos to do a disk read
into memory and disassemble it from there
Re: tool to read boot sector ? [message #371882 is a reply to message #371873] Wed, 08 August 2018 15:28 Go to previous messageGo to next message
Antoine Vignau is currently offline  Antoine Vignau
Messages: 1860
Registered: October 2012
Karma: 0
Senior Member
From all Apples, disk II controller card in slot 6, from the monitor:

9600<C600.C6FFM
96F8:60 --> see below
9600G
C0E8

--> If booting from the IIgs with a 5.25 disk drive:
96FB:60

track 0, sector 0 at $800..$9FF

av
Re: tool to read boot sector ? [message #371885 is a reply to message #371882] Wed, 08 August 2018 15:51 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Wednesday, August 8, 2018 at 12:28:51 PM UTC-7, Antoine Vignau wrote:
> From all Apples, disk II controller card in slot 6, from the monitor:
>
> 9600<C600.C6FFM
> 96F8:60 --> see below
> 9600G
> C0E8
>
> --> If booting from the IIgs with a 5.25 disk drive:
> 96FB:60
>
> track 0, sector 0 at $800..$9FF
>
> av

sorry, I didnt read your next step below - that would be a fast way to read the boot sector.
Re: tool to read boot sector ? [message #371887 is a reply to message #371885] Wed, 08 August 2018 16:10 Go to previous messageGo to next message
Antoine Vignau is currently offline  Antoine Vignau
Messages: 1860
Registered: October 2012
Karma: 0
Senior Member
On Wednesday, August 8, 2018 at 9:51:14 PM UTC+2, John Pham wrote:
> On Wednesday, August 8, 2018 at 12:28:51 PM UTC-7, Antoine Vignau wrote:
>> From all Apples, disk II controller card in slot 6, from the monitor:
>>
>> 9600<C600.C6FFM
>> 96F8:60 --> see below
>> 9600G
>> C0E8
>>
>> --> If booting from the IIgs with a 5.25 disk drive:
>> 96FB:60
>>
>> track 0, sector 0 at $800..$9FF
>>
>> av
>
> sorry, I didnt read your next step below - that would be a fast way to read the boot sector.

The ROM code for slot 6 on the IIgs, if not set to your card and after the code is relocated, requires a change at $96FB and not at $96F8

av
Re: tool to read boot sector ? [message #371893 is a reply to message #371868] Wed, 08 August 2018 17:50 Go to previous messageGo to next message
TommyGoog is currently offline  TommyGoog
Messages: 112
Registered: January 2013
Karma: 0
Senior Member
On Wednesday, August 8, 2018 at 1:08:10 PM UTC-5, John Pham wrote:
> Is there tool to read boot sector?
> I want to disassemble Apple II Pascal boot, there is no doc
> on Apple II Pascal boot process
>
> thanks

Hi John,

Are you interested in ONLY the Pascal boot sector, or do you plan on disassembling more of the Pascal boot process.

If you search around (Wizardry re-engineered), you will find I started with the boot sector and disassembled most of the run-time Pascal system in my efforts to disassemble and successfully re-engineer versions of Wizardry.

When you write "Apple II Pascal boot", which version of Pascal are you interested in? Also there are a few different run-time versions (based on system memory size if I recall correctly).

I used a version of CopyII+ for most of my sector reading.

Tommy
Re: tool to read boot sector ? [message #371903 is a reply to message #371893] Wed, 08 August 2018 23:26 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Wednesday, August 8, 2018 at 2:50:30 PM UTC-7, TommyGoog wrote:
> On Wednesday, August 8, 2018 at 1:08:10 PM UTC-5, John Pham wrote:
>> Is there tool to read boot sector?
>> I want to disassemble Apple II Pascal boot, there is no doc
>> on Apple II Pascal boot process
>>
>> thanks
>
> Hi John,
>
> Are you interested in ONLY the Pascal boot sector, or do you plan on disassembling more of the Pascal boot process.
>
> If you search around (Wizardry re-engineered), you will find I started with the boot sector and disassembled most of the run-time Pascal system in my efforts to disassemble and successfully re-engineer versions of Wizardry.
>
> When you write "Apple II Pascal boot", which version of Pascal are you interested in? Also there are a few different run-time versions (based on system memory size if I recall correctly).
>
> I used a version of CopyII+ for most of my sector reading.
>
> Tommy

wow, I didn't know someone already did most of the work. I'm looking at version 1.1, i have version 1.2 and 1.3 but for now 1.1. I think the later version support larger directory/subdirectory or is that UCSD Pascal 4.0?

Just wondering, but have you traced Apple Pascal boot in scsi environment?
Re: tool to read boot sector ? [message #371904 is a reply to message #371893] Wed, 08 August 2018 23:42 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Wednesday, August 8, 2018 at 2:50:30 PM UTC-7, TommyGoog wrote:
> On Wednesday, August 8, 2018 at 1:08:10 PM UTC-5, John Pham wrote:
>> Is there tool to read boot sector?
>> I want to disassemble Apple II Pascal boot, there is no doc
>> on Apple II Pascal boot process
>>
>> thanks
>
> Hi John,
>
> Are you interested in ONLY the Pascal boot sector, or do you plan on disassembling more of the Pascal boot process.
>
> If you search around (Wizardry re-engineered), you will find I started with the boot sector and disassembled most of the run-time Pascal system in my efforts to disassemble and successfully re-engineer versions of Wizardry.
>
> When you write "Apple II Pascal boot", which version of Pascal are you interested in? Also there are a few different run-time versions (based on system memory size if I recall correctly).
>
> I used a version of CopyII+ for most of my sector reading.
>
> Tommy

also did you get a chance to look at UCSD Pascal 1.5 or II.0 source release? I think it is on Yahoo UCSD Pascal group
Re: tool to read boot sector ? [message #371908 is a reply to message #371904] Thu, 09 August 2018 01:44 Go to previous messageGo to next message
TommyGoog is currently offline  TommyGoog
Messages: 112
Registered: January 2013
Karma: 0
Senior Member
On Wednesday, August 8, 2018 at 10:42:46 PM UTC-5, John Pham wrote:

Just wondering, but have you traced Apple Pascal boot in scsi environment?

also did you get a chance to look at UCSD Pascal 1.5 or II.0 source release? I think it is on Yahoo UCSD Pascal group



Hi John,

I'm not exactly sure what you mean by "traced Apple Pascal in scsi environment." When I was working on Wizardry IV a few years ago, I was using a Windows computer running AppleWin to examine the Pascal 1.2 boot code.

I mostly worked with Pascal 1.1 and Pascal 1.2. I am not familiar with Pascal 1.5 or II.0.

A long time ago I boot traced Wizardry III to the start of the actual program and have that information in paper form in a box in a closet.

Long after I did that work, I stumbled upon something you might be interested in.

You should search for: Apple 2 Pascal 11 PCodeIntDism.pdf

It is titled: "Apple II Pascal 1.1 P-Code Interpreter 6502 Disassembly"
By: Willi Kusche

When I did the boot tracing for Wizardry IV, it was for Pascal 1.2 and I have notes on that in text format on my current computer.

Tommy
Re: tool to read boot sector ? [message #371915 is a reply to message #371908] Thu, 09 August 2018 04:55 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Wednesday, August 8, 2018 at 10:44:48 PM UTC-7, TommyGoog wrote:
> On Wednesday, August 8, 2018 at 10:42:46 PM UTC-5, John Pham wrote:
>
> Just wondering, but have you traced Apple Pascal boot in scsi environment?
>
> also did you get a chance to look at UCSD Pascal 1.5 or II.0 source release? I think it is on Yahoo UCSD Pascal group
>
>
>
> Hi John,
>
> I'm not exactly sure what you mean by "traced Apple Pascal in scsi environment." When I was working on Wizardry IV a few years ago, I was using a Windows computer running AppleWin to examine the Pascal 1.2 boot code.
>
> I mostly worked with Pascal 1.1 and Pascal 1.2. I am not familiar with Pascal 1.5 or II.0.
>
> A long time ago I boot traced Wizardry III to the start of the actual program and have that information in paper form in a box in a closet.
>
> Long after I did that work, I stumbled upon something you might be interested in.
>
> You should search for: Apple 2 Pascal 11 PCodeIntDism.pdf
>
> It is titled: "Apple II Pascal 1.1 interpreter 6502 Disassembly"
> By: Willi Kusche
>
> When I did the boot tracing for Wizardry IV, it was for Pascal 1.2 and I have notes on that in text format on my current computer.
>
> Tommy

I believe UCSD II.0 on DEC PDP-11 became the base for Apple Pascal and everyone else. I have Randy Hyde Apple Pascal disassembly book, did some of the tracing for the floating back in the late 80s. I often look at the PDP-11 code for the P-code interp, it's a very clean design. I wonder why Apple doesn't release the 6502 P-code interp
Re: tool to read boot sector ? [message #371921 is a reply to message #371915] Thu, 09 August 2018 07:53 Go to previous messageGo to next message
Steven Hirsch is currently offline  Steven Hirsch
Messages: 799
Registered: October 2012
Karma: 0
Senior Member
On 08/09/2018 04:55 AM, John Pham wrote:

> I wonder why
> Apple doesn't release the 6502 P-code interp

Probably because they wouldn't be able to find it. Even if they did locate
it, there are probably third-party IP considerations and they're not going to
incur the legal costs and bother to review it.
Re: tool to read boot sector ? [message #371962 is a reply to message #371915] Fri, 10 August 2018 03:20 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Brooks

On Thursday, August 9, 2018 at 1:55:34 AM UTC-7, John Pham wrote:
> On Wednesday, August 8, 2018 at 10:44:48 PM UTC-7, TommyGoog wrote:
>> On Wednesday, August 8, 2018 at 10:42:46 PM UTC-5, John Pham wrote:
>>
>> Just wondering, but have you traced Apple Pascal boot in scsi environment?
>>
>> also did you get a chance to look at UCSD Pascal 1.5 or II.0 source release? I think it is on Yahoo UCSD Pascal group
>>
>>
>>
>> Hi John,
>>
>> I'm not exactly sure what you mean by "traced Apple Pascal in scsi environment." When I was working on Wizardry IV a few years ago, I was using a Windows computer running AppleWin to examine the Pascal 1.2 boot code.
>>
>> I mostly worked with Pascal 1.1 and Pascal 1.2. I am not familiar with Pascal 1.5 or II.0.
>>
>> A long time ago I boot traced Wizardry III to the start of the actual program and have that information in paper form in a box in a closet.
>>
>> Long after I did that work, I stumbled upon something you might be interested in.
>>
>> You should search for: Apple 2 Pascal 11 PCodeIntDism.pdf
>>
>> It is titled: "Apple II Pascal 1.1 interpreter 6502 Disassembly"
>> By: Willi Kusche
>>
>> When I did the boot tracing for Wizardry IV, it was for Pascal 1.2 and I have notes on that in text format on my current computer.
>>
>> Tommy
>
> I believe UCSD II.0 on DEC PDP-11 became the base for Apple Pascal and everyone else. I have Randy Hyde Apple Pascal disassembly book, did some of the tracing for the floating back in the late 80s. I often look at the PDP-11 code for the P-code interp, it's a very clean design. I wonder why Apple doesn't release the 6502 P-code interp

I move the boot sector to a ProDOS BIN file by creating a temp bin file to hold block 0:

bsave /ram/boot,a$800,l$200

then I use ProSel's BlockWarden (Also on ProDOS 2.4.2) to F)ollow File "/ram/boot" to see what block was allocated to hold it's 512 data bytes.
Then I C)hange the slot & drive to the device with the boot block I want to copy and R)ead block 0 into Block Warden.
Then I C)hange back to S3,D2 and W)rite the block to the block # found earlier from F)ollow file.

Then I copy /ram/boot to a HD partition, then disassemble it.


Apple Pascal is based on UCSD II.1, of which there are no surviving sources known to the UCSD open-source team. II.0 is the most recent version to be open-sourced.

I have compiled the II.0 Filer source under my Pascal 1.4a and gotten it to run. I have not been able to compile+run the System due to the many changes Apple made to the II.1 runtime.

I made 1.4a as a heavily optimized successor to 1.3, which loads into aux LC to coexist with ProDOS. 1.4a launches from ProDOS, quits back to ProDOS, and requires 65c02 opcodes and 128K.

1.4a places pcode and constant data in aux 64k with user data in main 64k, similar to 1.2 & 1.3, but has a lot less bank-change overhead than 1.2 or 1..3. 1.4a can also mount a Pascal HD partition of up to 16MB on a ProDOS disk using Willi Kusche's modified Profile driver & utils.


My goal with 1.4 was to speed up the pcode interpreter and modify the BIOS to use ProDOS as the native file system, similar to how the Z-80 port of II..x used CP/M for device access and file I/O.

However, my 1.4 effort stalled when I moved into upgrading ProDOS & creating VidHD.

I like the Datamost PDQ tools which include a pcode assembler and disassembler, but it has problems with the 1.2/1.3 file format. Anyone know of a good disasm+asm combo for 1.3? Even better would be a decompiler, but that appears to be a manual process.

-JB
@JBrooksBSI
Re: tool to read boot sector ? [message #371969 is a reply to message #371962] Fri, 10 August 2018 10:14 Go to previous messageGo to next message
ol.sc is currently offline  ol.sc
Messages: 211
Registered: January 2013
Karma: 0
Senior Member
Hi,

> I move the boot sector to a ProDOS BIN file by creating a temp bin file to =
> hold block 0:
>
> bsave /ram/boot,a$800,l$200
>
> then I use ProSel's BlockWarden (Also on ProDOS 2.4.2) to F)ollow File "/ra=
> m/boot" to see what block was allocated to hold it's 512 data bytes.
> Then I C)hange the slot & drive to the device with the boot block I want to=
> copy and R)ead block 0 into Block Warden.
> Then I C)hange back to S3,D2 and W)rite the block to the block # found earl=
> ier from F)ollow file.

Maybe a viable alternative would be a cc65 program with...

d = dio_open(device);
dio_read(d, 0, buffer);
dio_close(d);

f = open("/ram/boot", O_WRONLY);
write(f, buffer, 512);
close(f);

Regards,
Oliver
Re: tool to read boot sector ? [message #372004 is a reply to message #371868] Sat, 11 August 2018 05:17 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: R.Kiefer.SPAEM

John Pham wrote:

> Is there tool to read boot sector?

In the 1980s I used a Disk Editor and Disassembler under the p-System.
Last year I extracted the first 1kB using a HexEditor and the Disk Image
(running Windows). My favourite Disassembler in the world of Windows is
DASMx 1.40.


> I want to disassemble Apple II Pascal boot, there is no doc
> on Apple II Pascal boot process

I did this job again last year because there was no Apple II available.

The boot sectors of Apple Pascal 1.1 and 1.2 are the same. Version 1.3
(from 1885) is different I think because of SmartPort. Version IV.0
(from 1981) is also another code.

Do you use another mail address than Google? If yes send PM, and I send
you my files. These configuration files for DASMx are not perfect but
more than raw code :-)

Regards
Ralf
Re: tool to read boot sector ? [message #372005 is a reply to message #371962] Sat, 11 August 2018 05:41 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: R.Kiefer.SPAEM

John Brooks wrote:

> Apple Pascal is based on UCSD II.1, of which there are no surviving
> sources known to the UCSD open-source team. II.0 is the most recent
> version to be open-sourced.

Which code is open source, and which is not?


> I have compiled the II.0 Filer source under my Pascal 1.4a and gotten it
> to run. I have not been able to compile+run the System due to the many
> changes Apple made to the II.1 runtime.

In 1986 I got most of the sources of Apple Pascal 1.1 (BIOS&Interpreter,
Command, Filer and probably some more, but no Assembler). I compiled my
own 1.1-System, optimized my BIOS with CMOS opcodes and added some very
fast drivers. I'm planning to restore this stuff. But I didn't touch the
disks for decades :-(

Now I'm interested in getting the assembler to add support for CMOS
opcodes, 65802 and more opcodes (i.e. Mitsubishi M50xxx).


> My goal with 1.4 was to speed up the pcode interpreter

I learned a lot about low level code :-) First I added CMOS opcodes
which shortened and accelerated the code noticeable. Than I changed the
structure of the driver table.

Regards
Ralf
Re: tool to read boot sector ? [message #372021 is a reply to message #372005] Sat, 11 August 2018 11:43 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Brooks

On Saturday, August 11, 2018 at 2:42:01 AM UTC-7, Ralf Kiefer wrote:
> John Brooks wrote:
>
>> Apple Pascal is based on UCSD II.1, of which there are no surviving
>> sources known to the UCSD open-source team. II.0 is the most recent
>> version to be open-sourced.
>
> Which code is open source, and which is not?
>
>
>> I have compiled the II.0 Filer source under my Pascal 1.4a and gotten it
>> to run. I have not been able to compile+run the System due to the many
>> changes Apple made to the II.1 runtime.
>
> In 1986 I got most of the sources of Apple Pascal 1.1 (BIOS&Interpreter,
> Command, Filer and probably some more, but no Assembler). I compiled my
> own 1.1-System, optimized my BIOS with CMOS opcodes and added some very
> fast drivers. I'm planning to restore this stuff. But I didn't touch the
> disks for decades :-(
>
> Now I'm interested in getting the assembler to add support for CMOS
> opcodes, 65802 and more opcodes (i.e. Mitsubishi M50xxx).
>
>
>> My goal with 1.4 was to speed up the pcode interpreter
>
> I learned a lot about low level code :-) First I added CMOS opcodes
> which shortened and accelerated the code noticeable. Than I changed the
> structure of the driver table.
>
> Regards
> Ralf

Hi Raif. I would love to get the 1.1 sources and/or any improvements you'd like to share.

Here is a link to my 1.4a build from last year:

https://drive.google.com/file/d/0B9I8jo6bktRAZ3FyN2UzSWt0MEc wNUpOQ3djTHk4Y09HcHJJ/view

Usage notes below. My disasm & optimized BIOS/interp sources are a bit scattered, but I can pull them together for you too if you are interested.

-JB
@JBrooksBSI

Attached is an alpha version of my UCSD PCode v1.4 runtime. It includes the PPM (Profile HD Partition Manager) drivers for hosting pascal disk images on a ProDOS HD.

Attached are two disk images (rename _zip to .zip & extract).

1) 800K PCodeBoot.2mg (Slot 5, Drive 1)
2) 32MB PCodeDev.2mg (Slot 7, Drive 1)

I've tested these disk images on 3x emulators
1) GSplus (KEGS)
2) GSport (KEGS)
3) Virtual ][

Booting the 32MB slot 7 image (PCodeDev) will load ProDOS 2.4.1 NSC which contains a built-in driver for the no-slot clock. I plan to have the v1.4 BIOS call ProDOS to get date & time, but haven't gotten to that yet.

S7,D1:/PCODE.1.4A1
----------------------------------------
- PRODOS !
- QUIT.SYSTEM !
- BITSY.BOOT !
- BASIC.SYSTEM ! BITSY BYE
/COPY.II !
/UTIL !
- KIX.SYSTEM !
/BIN !
B ED ! BY
/KYAN !
B DUCSD !
T DUCSD.MNEMONICS !
/MERLIN8 !
- CHAM.SYSTEM ! J.BROOKS
T CHAMELEON.DOC !
- PCODE.SYSTEM !
PASCAL.AREA ! P.FERRIE
!
!
!
----------------------------------------
RETURN:SELECT ESC:BACK TAB,#:NEW VOL

PCode.system is the new ProDOS-hosted SYSTEM.APPLE replacement which runs in Aux LC. It looks for SYSTEM.PASCAL on s5,d1 and boots up with PPM drivers active:

Command: F(ile, E(dit, R(un, C(omp, L(ink, X(ecute, A(ssem, ? [1.3]







Welcome PAS14A1, to Apple II Pascal 1.3

Based on UCSD Pascal II.1

Current date is 7-Nov-84


Pascal system size is 128K



Copyright Apple Computer 1979,1980,1983,1984,1985
Copyright U.C. Regents 1979
Assign volumes to their default unit number? (Y/N) n


Here is the PPM pascal disk image volume list:

Volume Manager Copyright 1983 Apple Computer, Inc. Version 1.0.1
------------------------------------------------------------ ----------------
A(ssign, R(elease, C(reate, D(elete, W(Prot, M(odify, K(runch, N(ext, Q(uit


ProFile drive: 1
WP Name Description Unit WP Name Description Unit
SPARE Reserved HD MTK PasTools2 v1.2
II0SRCB UCSD II.0 B TK PasTools1 v1.2
II0SRCA UCSD II.0 A ATTACH Attach v1.3
FUTIL1 TribbySrcFileIO APPLE3 Apple3 v1.3
IO TribbySrc Drvrs APPLE2 Apple2 v1.3
PSYS TribbySrc Sys APPLE1 Apple1 v1.3
PRDEV TribbySrcDisasm APPLE0 Apple0 v1.3
TOOLS0 TribbySrc 5.25 PAS14A1 PCode 1.4 SYS
DISKMAP TribbySrc 5.25
PDQ Datamost PDQ
CONSTFF Forum Input2
CONUIR Forum Input1
UIR.REL Forum Debug2
DEBUG Forum Debug1
GP PasTools4 v1.2
MTXKIT PasTools3 v1.2

The 800K image (PCodeBoot.2mg) can also be booted as Apple Pascal 1.3. It contains v1.3 APPLE0-APPLE3, ATTACH, and v1.2 Pascal Tools 1-4 (mouse toolkit). MTK.START.CODE will run under both 1.3 & my 1.4a1 by replacing the current (PPM) ATTACH.DRIVERS and ATTACH.DATA with the MTK versions.

The 80-column MouseText GUI MTXKIT only works on v1.2 currently. I haven't looked into why it fails on v1.3 & my 1.4a1 yet.

Eventually v1.4 PCode.System will be able to use a boot image from the HD PascalArea instead of 3.5", but I haven't gotten there yet.

Here are the code files on the 800K image:

Press <space> to continue
PAS14A1:
LIBRARY.CODE 8 3-Sep-85 369 512 Codefile
LIBMAP.CODE 11 3-Sep-85 377 512 Codefile
FORMATTER.CODE 7 3-Sep-85 397 512 Codefile
BINDER.CODE 5 3-Sep-85 411 512 Codefile
LINEFEED.CODE 2 3-Sep-85 416 512 Codefile
SET40COLS.CODE 5 3-Sep-85 418 512 Codefile
SETUP.CODE 33 7-Feb-79 512 512 Codefile
ATTACHUD.CODE 14 3-Sep-85 568 512 Codefile
ADMERG.CODE 4 3-Sep-85 582 512 Codefile
CONVAD.CODE 4 3-Sep-85 586 512 Codefile
SHOWAD.CODE 5 3-Sep-85 590 512 Codefile
IM.CODE 3 3-Sep-85 595 512 Codefile
CONFIRM.CODE 10 11-May-88 604 512 Codefile
PATCH.CODE 10 11-May-88 614 512 Codefile
PPM.CODE 43 21-Dec-83 638 512 Codefile
FILER.CODE 61 21-Dec-83 681 512 Codefile
TK.START.CODE 23 3-Jun-85 882 512 Codefile
MTK.START.CODE 7 3-Jun-85 933 512 Codefile
MTXKIT.CODE 53 8-Jan-85 940 512 Codefile
PSAMPLE.CODE 10 11-Apr-85 1035 512 Codefile
GP.START.CODE 6 3-Jun-85 1063 512 Codefile
< UNUSED > 531 1069

While v1.4a1 does have the pcode BIOS & INTERP running from aux with ProDOS launch & quit, I am not yet disabling the ProDOS /RAM disk which gets stomped by Pascal, so after quitting back to ProDOS, any app which tries to use /RAM will crash/hang.

I'd like to get the PPM Extended Filer working if possible. I'm also missing the PPM backup utility.

I like the PDQ pcode asm/disasm tools, but they are not compatible with 1.2/1.3 pcode files.

I'm currently using Dave Tribby's DISASSM tool on PRDEV as it will handle 1..3 opcodes and disassembles both pcode & 6502 procedures. Now I just need a way to modify those procedures (like PDQ asm).

Here are my improvements to the pcode runtime:

CfgGetOpBorder = 0 ;Change GS border color during pcode opcode fetch
CfgBiosBorder = 0 ;Change GS border color during bios calls
CfgPascal2 = 0 ;Incomplete. Attempt to use compiled UCSD ii.0 sources
CfgIrqOn = 1 ;Enable IRQ for GS control panel access
CfgP8Boot = 1 ;BIOS+INTERP in aux LC to allow startup from ProDOS + MLI calls + exit to ProDOS
CfgP8SysCom = 1 ;Save & restore SysCom area which overlaps ProDOS $BFxx
CfgP8Quit = 1 ;Quit back to ProDOS when XIT $D6 opcode executes
CfgFixDelKey = 1 ;Allow 'delete' key to act like backspace
CfgFastBiosCall = 1 ;Self-mod to call BIOS handlers instead of indirect jump
CfgNewInit = 1 ;Optimize pcode initialization code
CfgNewGetBig = 1 ;Optimize pcode arg fetch
CfgGetOpAuxMem = 1 ;Optimize pcode interp by keeping aux 48K enabled for arg fetch after pcode opcode fetch
CfgFastAndOrNot = 1 ;Optimize pcodes Op84_LAND, Op8D_LOR, Op93_LNOT
CfgFastAbiAdiNgi = 1 ;Optimize pcodes Op80_ABI, Op82_ADI, Op91_NGI, Op95_SBI
CfgFastAbrNbr = 1 ;Optimize pcodes Op81_ABR, Op92_NGR
CfgFastJump = 1 ;Optimize pcodes OpA1_FJP, OpB9_UJP
CfgFastOpJump = 1 ;Optimize pcode dispatch via 65c02 jump (abs,x) instead of 6502 mod jmp (abs)
CfgFastTrvStat = 1 ;Optimize stack traverse via 65c02 opcodes
CfgSmallTrvStat = 1 ;Smaller code size via 65c02 opcodes in OpB2_LDA, OpB6_LOD, OpB8_STR
CfgFastChkGDirP = 1 ;Optimize file dir cache checks via GDIRP high-byte chk & 65c02 opcodes
CfgSmallXEQERR = 1 ;Smaller code size in error dispatch via 65c02 opcodes
CfgFastSLDC = 1 ;Optimize short constant opcodes $00-$7F via 65c02 opcodes & direct dispatch of next pcode
CfgFastLDC = 1 ;Optimize OpB3_LDC
CfgFastLdmStm = 1 ;Optimize OpBC_LDM, OpBD_STM
CfgFastXJP = 0 ;Buggy
CfgFastNew = 1 ;Multiple optimizations to Csp01_NEW
CfgFastMarkRls = 1 ;Multiple optimizations to Csp20_MRK, Csp21_RLS
CfgFastIntMulDiv = 0 ;Incomplete
CfgFastOnline = 1 ;Opt Csp05_UREAD, Csp06_UWRITE, Csp0C_USTAT, Csp23_UBUSY, Csp25_UWAIT, Csp26_UCLEAR, UnitOnline, ClearSysUnit
CfgFastGetBlockBuf = 1 ;Optimize alloc of 512-byte BlockBuf
CfgFastURWIS = 1 ;Optimize dispatch to user drivers
CfgRequireIIe = 1 ;Remove 80-col on 40-col ][+ features (L/R screen toggle, auto-follow, force-uppercase)
CfgFastReadWrite = 1 ;Initial optimizations for Csp05_UREAD, Csp06_UWRITE
CfgFastConText = 0 ;1 ;Buggy in PPM. Optimize CWRITE
CfgFastText80 = 0 ;Incomplete. Fast replacement for 80-col firmware
CfgFastPower10 = 1 ;Optimize Csp24_POT
CfgFastOp9F_LDCN = 1 ;Optimize Op9F_LDCN
CfgGetOpIncHi = 1 ;Smaller code size in GetOp PC page increment

There are two 800K pascal disk images you can mount with PPM that have the UCSD II.0 sources on them if you want to try compiling it:
II0SRCB UCSD II.0 B
II0SRCA UCSD II.0 A
Re: tool to read boot sector ? [message #372025 is a reply to message #372021] Sat, 11 August 2018 12:47 Go to previous messageGo to next message
mverpelli is currently offline  mverpelli
Messages: 289
Registered: May 2013
Karma: 0
Senior Member
> Here is a link to my 1.4a build from last year:
>
> https://drive.google.com/file/d/0B9I8jo6bktRAZ3FyN2UzSWt0MEc wNUpOQ3djTHk4Y09HcHJJ/view

Would not you mind sharing the link with everyone?

Marco
Re: tool to read boot sector ? [message #372027 is a reply to message #372025] Sat, 11 August 2018 13:12 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Brooks

On Saturday, August 11, 2018 at 9:47:05 AM UTC-7, Marco Verpelli wrote:
>> Here is a link to my 1.4a build from last year:
>>
>> https://drive.google.com/file/d/0B9I8jo6bktRAZ3FyN2UzSWt0MEc wNUpOQ3djTHk4Y09HcHJJ/view
>
> Would not you mind sharing the link with everyone?
>
> Marco

Whoops. I thought it was shared with everyone.

Try it now.

-JB
@JBrooksBSI
Re: tool to read boot sector ? [message #372030 is a reply to message #372027] Sat, 11 August 2018 13:29 Go to previous messageGo to next message
mverpelli is currently offline  mverpelli
Messages: 289
Registered: May 2013
Karma: 0
Senior Member
On Saturday, August 11, 2018 at 7:12:51 PM UTC+2, John Brooks wrote:
> On Saturday, August 11, 2018 at 9:47:05 AM UTC-7, Marco Verpelli wrote:
>>> Here is a link to my 1.4a build from last year:
>>>
>>> https://drive.google.com/file/d/0B9I8jo6bktRAZ3FyN2UzSWt0MEc wNUpOQ3djTHk4Y09HcHJJ/view
>>
>> Would not you mind sharing the link with everyone?
>>
>> Marco
>
> Whoops. I thought it was shared with everyone.
>
> Try it now.
>
> -JB
> @JBrooksBSI

Downloaded, thanks I'll try it with AppleWin

Marco
Re: tool to read boot sector ? [message #372054 is a reply to message #372021] Sun, 12 August 2018 10:09 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: R.Kiefer.SPAEM

John Brooks wrote:

> I would love to get the 1.1 sources and/or any improvements you'd
> like to share.

I'm planning to restore the whole stuff. You must be patient :-)

I mentioned the fact that there were source files available in the 1980s
in West-Germany. Probably another p-System enthusiast may remember this.


> Here is a link to my 1.4a build from last year:

Thanks.


> Usage notes below. My disasm & optimized BIOS/interp sources are a bit
> scattered, but I can pull them together for you too if you are interested.

I got the source files on 140kB disks. So the sources were partitioned.
I merged them because I used a 640kB drive, 1MB RAM disks and the UCSD
editor from the Modula-2-System which is not really limited in file
size.

Regards
Ralf
Re: tool to read boot sector ? [message #372074 is a reply to message #371868] Sun, 12 August 2018 18:39 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: James Davis

Could you guys use this:

I have two printouts (and the 5.25" floppy "disk of the month") of the Apple Bay Area Computer Users Society's, "All Text listings from A.B.A.C.U.S. D..O.M. #41: Attach-BIOS Document for Apple II Pascal 1.1, and 4 program text listings." (The first printout is on a thermal printer paper scroll from the first printer I had for my Apple II Plus, way back when.) If you can use it, John Brooks (who lives across the S.F. bay from me, I.I.R.C.) is welcome to come to my house and copy the disk for publication on Asimov. Or, you could send me a floppy and a return S.A.S.E. mailer and I'll make a copy of it for you. Email me personally to arrange things.

James Davis
Re: tool to read boot sector ? [message #372133 is a reply to message #372004] Mon, 13 August 2018 13:47 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Saturday, August 11, 2018 at 2:17:19 AM UTC-7, Ralf Kiefer wrote:
> John Pham wrote:
>
>> Is there tool to read boot sector?
>
> In the 1980s I used a Disk Editor and Disassembler under the p-System.
> Last year I extracted the first 1kB using a HexEditor and the Disk Image
> (running Windows). My favourite Disassembler in the world of Windows is
> DASMx 1.40.
>
>
>> I want to disassemble Apple II Pascal boot, there is no doc
>> on Apple II Pascal boot process
>
> I did this job again last year because there was no Apple II available.
>
> The boot sectors of Apple Pascal 1.1 and 1.2 are the same. Version 1.3
> (from 1885) is different I think because of SmartPort. Version IV.0
> (from 1981) is also another code.
>
> Do you use another mail address than Google? If yes send PM, and I send
> you my files. These configuration files for DASMx are not perfect but
> more than raw code :-)
>
> Regards
> Ralf

just gmail
Re: tool to read boot sector ? [message #372135 is a reply to message #372005] Mon, 13 August 2018 14:02 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Saturday, August 11, 2018 at 2:42:01 AM UTC-7, Ralf Kiefer wrote:
> John Brooks wrote:
>
>> Apple Pascal is based on UCSD II.1, of which there are no surviving
>> sources known to the UCSD open-source team. II.0 is the most recent
>> version to be open-sourced.
>
> Which code is open source, and which is not?
>
>
>> I have compiled the II.0 Filer source under my Pascal 1.4a and gotten it
>> to run. I have not been able to compile+run the System due to the many
>> changes Apple made to the II.1 runtime.
>
> In 1986 I got most of the sources of Apple Pascal 1.1 (BIOS&Interpreter,
> Command, Filer and probably some more, but no Assembler). I compiled my
> own 1.1-System, optimized my BIOS with CMOS opcodes and added some very
> fast drivers. I'm planning to restore this stuff. But I didn't touch the
> disks for decades :-(
>
> Now I'm interested in getting the assembler to add support for CMOS
> opcodes, 65802 and more opcodes (i.e. Mitsubishi M50xxx).
>
>
>> My goal with 1.4 was to speed up the pcode interpreter
>
> I learned a lot about low level code :-) First I added CMOS opcodes
> which shortened and accelerated the code noticeable. Than I changed the
> structure of the driver table.
>
> Regards
> Ralf

Have you ever though of using an atmel/microchip/AVR, convert 6502 assembly code to AVR, and use the AVR as a fast pcode engine
Re: tool to read boot sector ? [message #372136 is a reply to message #372135] Mon, 13 August 2018 14:52 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: R.Kiefer.SPAEM

John Pham wrote:

> Have you ever though of using an atmel/microchip/AVR, convert 6502
> assembly code to AVR, and use the AVR as a fast pcode engine

No. But there is a 20years old dream :-) Running the p-Machine native
on a Motorola 68060.

Regards
Ralf
Re: tool to read boot sector ? [message #372490 is a reply to message #372136] Sat, 18 August 2018 18:35 Go to previous messageGo to next message
Anonymous
Karma:
Originally posted by: John Pham

On Monday, August 13, 2018 at 11:52:35 AM UTC-7, Ralf Kiefer wrote:
> John Pham wrote:
>
>> Have you ever though of using an atmel/microchip/AVR, convert 6502
>> assembly code to AVR, and use the AVR as a fast pcode engine
>
> No. But there is a 20years old dream :-) Running the p-Machine native
> on a Motorola 68060.
>
> Regards
> Ralf

but the ultimate, is to use one of those opencore cpumaker and generate a FPGA P-engine and run at hardware level?
Re: tool to read boot sector ? [message #372527 is a reply to message #372490] Sun, 19 August 2018 05:15 Go to previous message
Anonymous
Karma:
Originally posted by: R.Kiefer.SPAEM

John Pham wrote:

> but the ultimate, is to use one of those opencore cpumaker and generate a
> FPGA P-engine and run at hardware level?

That's not my focus. But 68k code is :-)

Regards
Ralf
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ROL Instruction
Next Topic: Porting ProDOS the "Easy" Way and Other Apple /// Things
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun May 12 14:28:03 EDT 2024

Total time taken to generate the page: 0.09934 seconds