Python Forum
DEC pack, unpack and disk-images
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DEC pack, unpack and disk-images
#31
(Jul-08-2024, 08:53 PM)Curbie Wrote: I just reversed your "pack()" function for an "unpack()" function and it's doing the same "raise" thing, although it's rad50 functions flawlessly
If you don't post all the code, we can't guess what's going wrong.
« We can solve any problem by introducing an extra level of indirection »
Reply
#32
I haven't given up trying to chase and fix the issue(s), just thanking you, no code necessary to post.

Just playing between tutorials, it's hard for me to keep focus to learn a new language not knowing that the end language, will work for what I need. The play code is to answer some of those "will it work for what I need" questions, I presume that finishing the tutorials will help me clean-up the "play" code.
Reply
#33
After the obligatory amount of tail-chasing, last night I got my Alpha Micro computer rad50 “Pack” and “Unpack” routines up and fairly tested, I'm getting known good output now which I recognize.

(start of system directory, LIT = BINary file)
AMOS  .LIT  AMSORT.SYS  AM334 .LIT  APPEND.LIT  ASCDMP.LIT  ATTACH.LIT
BADBLK.LIT  BASIC .LIT  BAUD  .LIT  BITMAP.LIT  CACHE .LIT  CAL100.LIT
CAL120.LIT  CLEAR .LIT  CMDLIN.SYS  COMPIL.LIT  CONVRT.TBL  COPY  .LIT
CPMCPY.LIT  CPMDIR.LIT  CREATE.LIT  CRT410.LIT  CRT415.LIT  CRT420.LIT
CRT610.LIT  CRT620.LIT  DATE  .LIT  DCACHE.SYS  DEL   .LIT  DEVTBL.LIT
DING  .LIT  DIR   .LIT  DIRSEQ.LIT  DO    .LIT  DSKANA.LIT  DSKCPY.LIT
DSKDDT.LIT  DSKDMP.LIT  DSKFIL.LIT  DSKPAK.LIT  DUMP  .LIT  ERASE .LIT
Thanks to Gribouillis who got me started down a path which ended with successful routines, his pseudo routines inspired my newbee interpretation, I’ll post the code if anyone wants to beat it up or just newbee code for a 50 year old obscure computer, even though my recollection is, the Alpha Micro rad50 “Pack” and “Unpack” routines are slightly different than the DEC routines, although those differences may be corrected by altering the ASCII map table
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mirroring disk structures in nested dictionaries Curbie 12 2,196 Oct-01-2024, 10:52 PM
Last Post: Curbie
  Windows Disk Cleanup Code Help Needed nal2us2 3 1,012 Jul-19-2024, 04:03 AM
Last Post: deanhystad
  Too much values to unpack actualpy 3 1,425 Feb-11-2024, 05:38 PM
Last Post: deanhystad
  Hard disk structure like a file selection dialog malonn 2 1,696 Aug-09-2023, 09:14 PM
Last Post: malonn
  unpack dict menator01 1 1,743 Apr-09-2022, 03:10 PM
Last Post: menator01
  ValueError: not enough values to unpack (expected 4, got 1) vlearner 2 8,233 Jan-28-2022, 06:36 PM
Last Post: deanhystad
  JS Buffer.from VS struct.pack DreamingInsanity 3 3,546 Apr-05-2021, 06:27 PM
Last Post: DreamingInsanity
  [SOLVED] [geopy] "ValueError: too many values to unpack (expected 2)" Winfried 2 3,696 Mar-30-2021, 07:01 PM
Last Post: Winfried
  Cannot unpack non-iterable NoneType object, i would like to ask for help on this. Jadiac 3 11,149 Oct-18-2020, 02:11 PM
Last Post: Jadiac
  subprogram issues: cannot unpack non-iterable function object error djwilson0495 13 8,674 Aug-20-2020, 05:53 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020