From 8291259cd6ed6865728e1f8b73830f8fe420e540 Mon Sep 17 00:00:00 2001
From: Mooffie <mooffie@gmail.com>
Date: Tue, 13 Dec 2016 17:06:12 +0200
Subject: [PATCH 09/13] extfs: hp48: documentation: explain the reply to the
DIRECTORY command.
It was not at all easy to find a sample reply on the internet (the one found
was in a screenshot actually), so we record it here.
---
src/vfs/extfs/helpers/hp48+.in | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/src/vfs/extfs/helpers/hp48+.in b/src/vfs/extfs/helpers/hp48+.in
index b67fce5..ef136ec 100644
a
|
b
|
|
17 | 17 | # ascii (editable on the pc) |
18 | 18 | # - start the server on the HP48: <left shift> - i/o - srvr - serve |
19 | 19 | # or the shortcut <right shift> - <right arrow> |
20 | | # - on MC's commandline enter "cd hp48:" |
| 20 | # - on MC's commandline enter "cd hp48://" |
21 | 21 | # |
22 | 22 | # Make sure you have kermit installed and that it's using the right serial |
23 | 23 | # device by changing /dev/ttyXX on the next line |
… |
… |
hp48_retsize() |
48 | 48 | printf "%d" "$2" 2>/dev/null |
49 | 49 | } |
50 | 50 | |
| 51 | # |
| 52 | # Parses the reply to the DIRECTORY command. |
| 53 | # |
| 54 | # Here's an example reply (taken from [1][2]): |
| 55 | # |
| 56 | # { HOME } 105617 |
| 57 | # STRAY 185.5 Directory 29225 |
| 58 | # YEN 30.5 Program 53391 |
| 59 | # JYTLIGHT 21848.5 String 62692 |
| 60 | # IOPAR 37.5 List 61074 |
| 61 | # |
| 62 | # The meaning of the fields (according to [3][4]): |
| 63 | # |
| 64 | # { Current_directory } Free_space |
| 65 | # Object_name Object_size_bytes Object_type Object_CRC |
| 66 | # ... |
| 67 | # |
| 68 | # [1] http://newarea48.tripod.com/kermit.html |
| 69 | # [2] http://www.hpmuseum.org/forum/thread-4684.html |
| 70 | # [3] https://groups.google.com/d/msg/comp.sys.hp48/bYTCu9K3k20/YWQfF--W3EEJ |
| 71 | # [4] http://www.columbia.edu/kermit/hp48.html (also has a link to the HP's user manual). |
| 72 | # |
51 | 73 | hp48_parser() |
52 | 74 | { |
53 | 75 | HP48_DIRS= |