GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - polluks/ucsd-c128: UCSD for Commodore 128

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
AGENTS.md
AGENTS.md
 
 
README.md
README.md
 
 
UCSD-PASCAL.D64
UCSD-PASCAL.D64
 
 
UTIL-D1.D80
UTIL-D1.D80
 
 
analyze_comodore.py
analyze_comodore.py
 
 
analyze_comodore2.py
analyze_comodore2.py
 
 
analyze_d80.py
analyze_d80.py
 
 
analyze_io_final.py
analyze_io_final.py
 
 
comodore.info
comodore.info
 
 
comodore.s
comodore.s
 
 
convert_d80_to_d81.py
convert_d80_to_d81.py
 
 
create_d64.py
create_d64.py
 
 
create_d81.py
create_d81.py
 
 
disasm_comodore.py
disasm_comodore.py
 
 
gen_da65_info.py
gen_da65_info.py
 
 
mon_cmds.txt
mon_cmds.txt
 
 
mon_test.txt
mon_test.txt
 
 
parse_codefile.py
parse_codefile.py
 
 
patch_comodore.py
patch_comodore.py
 
 
verify_d64.py
verify_d64.py
 
 
x128_mon_cmds.txt
x128_mon_cmds.txt
 
 

Repository files navigation

UCSD p-System CBM 8096 → C128 Port

Port of SYSTEM.COMODORE from the UCSD Pascal p-System utility disk for the CBM 8096 (UTIL-D1.D80, 8050 format) to the Commodore 128 (1581/D81 format).

Source

UTIL-D1.D80 — D80 (8050 drive, 77 tracks) image containing:

File Type Blocks Content
PRIBOOT PRG 5 BASIC boot loader
PASCAL1 REL 682 p-machine interpreter (part 1)
PASCAL2 REL 682 p-machine interpreter (part 2)
PASCAL3 REL 682 p-machine interpreter (part 3)

Output

UCSD-PASCAL.D81 — D81 (1581 drive, 80 tracks) image containing:

File Type Blocks Content
SYSTEM.COMODORE PRG 63 Hardware-dependent segment (15,872 B)
PRIBOOT PRG 5 Original boot loader

Process

  1. Extract — Follow the REL side-sector chains to extract raw data from PASCAL1 (173,056 bytes, record length 128)
  2. Segment — Take only the first 15,872 bytes of PASCAL1 (the SYSTEM.COMODORE segment, which starts at file offset 0)
  3. Write — Prepend a PRG load address ($0F26) and write to a fresh D81 via c1541

The PASCAL1/PASCAL2/PASCAL3 files form a UCSD p‑System codefile containing multiple segments. The first segment — SYSTEM.COMODORE (segment num $A363, kind $4C) — is the hardware‑dependent I/O layer. Only this segment is needed; the interpreter segments in PASCAL2 and PASCAL3 are not part of the C128 port.

Usage

Use with VICE emulator or a real C128 + 1581 drive:

x64sc -drive8 1581 -8 UCSD-PASCAL.D81

Or write to a 3.5" 1581-format disk with a tool like cbmcopy or StarCommander.

Files

  • UTIL-D1.D80 — original CBM 8096 disk image
  • UCSD-PASCAL.D81 — converted C128 disk image
  • convert_d80_to_d81.py — extraction script
  • analyze_d80.py — D80 structure analysis

About

UCSD for Commodore 128

Topics

ucsd-pascal

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.