summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools
diff options
context:
space:
mode:
authorGravatarGravatar Vas Crabb <vas@vastheman.com>2019-02-24 14:25:42 +1100
committerGravatarGravatar Vas Crabb <vas@vastheman.com>2019-02-24 14:25:42 +1100
commit0ed2d2684e5ce5798cde34fbc48799e30148c5ca (patch)
treea35fd0a43a33ebfa040872d8f7d71c62997c910f /src/tools
parent30ae22c2e218b4e3abde191bcc596ed9ff9dec4e (diff)
srcclean (nw)
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/imgtool/modules/rt11.cpp124
-rw-r--r--src/tools/testkeys.cpp482
2 files changed, 303 insertions, 303 deletions
diff --git a/src/tools/imgtool/modules/rt11.cpp b/src/tools/imgtool/modules/rt11.cpp
index 3cce60a050f..f7f5a515f2c 100644
--- a/src/tools/imgtool/modules/rt11.cpp
+++ b/src/tools/imgtool/modules/rt11.cpp
@@ -6,68 +6,68 @@
DEC RT-11 disk images
- References:
-
- VaFFM -- bitsavers://pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PD6PA-TC_RT-11_Volume_and_File_Formats_Manual_Aug91.pdf
- DHM -- bitsavers://pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PE7VA-TC_RT-11_Device_Handlers_Manual_Aug91.pdf
- SSM -- bitsavers://pdf/dec/pdp11/rt11/v5.0_Mar83/AA-H379B-TC_5.0_SWsuppMar83.pdf
- TSX+ -- bitsavers://pdf/dec/pdp11/tsxPlus/manuals_6.31/TSX-Plus_UsersRef_Jan88.pdf
- PUTR -- http://www.dbit.com/pub/putr/putr.asm
-
- To do:
- - filter for text files
- - read-write support
- - report empty 'last modified' time if date field is all zeros
- - report free space
- - arbitrary sized images
- - don't crash when strings in home block have non-ascii chars (charconverter does not apply)
- - do something about bootblock bug in imgtool (commit aca90520)
-
- LBN Contents
- --- --------
- 0 Reserved (primary bootstrap)
- 1 Reserved (home block)
- 2-5 Reserved (secondary bootstrap)
- 6-7 Directory segment 1
- ... Directory segment 2-n
- ... Data
-
- Home block
- ----------
- 000-201 Bad block replacement table
- 202-203 ?
- 204-251 INITIALIZE/RESTORE data area
- 252-273 BUP information area
- 274-677 ?
- 700-701 (Reserved for Digital, must be zero)
- 702-703 (Reserved for Digital, must be zero)
- 704-721 ?
- 722-723 Pack cluster size (= 1)
- 724-725 Block number of first directory segment
- 726-727 System version (RAD50)
- 730-742 Volume Identification
- 744-757 Owner name
- 760-773 System Identification
- 776-777 Checksum
-
- Directory segment header
- ------------------------
- 0 The total number of segments in this directory.
- 1 The segment number of the next logical directory segment. If this word is 0, there are no more segments in the list.
- 2 The number of the highest segment currently in use. Valid only in the first directory segment.
- 3 The number of extra bytes per directory entry, always an unsigned, even octal number.
- 4 The block number on the volume where the actual stored data identified by this segment begins.
-
- Directory entry
- ---------------
- 0 Status word
- 1 File name 1-3 (RAD50)
- 2 File name 4-6 (RAD50)
- 3 File type 1-3 (RAD50)
- 4 Total file length (blocks)
- 5 Job#, Channel# (RT-11 uses this information only for tentative files)
- 6 Creation date
- 7- Optional extra words
+ References:
+
+ VaFFM -- bitsavers://pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PD6PA-TC_RT-11_Volume_and_File_Formats_Manual_Aug91.pdf
+ DHM -- bitsavers://pdf/dec/pdp11/rt11/v5.6_Aug91/AA-PE7VA-TC_RT-11_Device_Handlers_Manual_Aug91.pdf
+ SSM -- bitsavers://pdf/dec/pdp11/rt11/v5.0_Mar83/AA-H379B-TC_5.0_SWsuppMar83.pdf
+ TSX+ -- bitsavers://pdf/dec/pdp11/tsxPlus/manuals_6.31/TSX-Plus_UsersRef_Jan88.pdf
+ PUTR -- http://www.dbit.com/pub/putr/putr.asm
+
+ To do:
+ - filter for text files
+ - read-write support
+ - report empty 'last modified' time if date field is all zeros
+ - report free space
+ - arbitrary sized images
+ - don't crash when strings in home block have non-ascii chars (charconverter does not apply)
+ - do something about bootblock bug in imgtool (commit aca90520)
+
+ LBN Contents
+ --- --------
+ 0 Reserved (primary bootstrap)
+ 1 Reserved (home block)
+ 2-5 Reserved (secondary bootstrap)
+ 6-7 Directory segment 1
+ ... Directory segment 2-n
+ ... Data
+
+ Home block
+ ----------
+ 000-201 Bad block replacement table
+ 202-203 ?
+ 204-251 INITIALIZE/RESTORE data area
+ 252-273 BUP information area
+ 274-677 ?
+ 700-701 (Reserved for Digital, must be zero)
+ 702-703 (Reserved for Digital, must be zero)
+ 704-721 ?
+ 722-723 Pack cluster size (= 1)
+ 724-725 Block number of first directory segment
+ 726-727 System version (RAD50)
+ 730-742 Volume Identification
+ 744-757 Owner name
+ 760-773 System Identification
+ 776-777 Checksum
+
+ Directory segment header
+ ------------------------
+ 0 The total number of segments in this directory.
+ 1 The segment number of the next logical directory segment. If this word is 0, there are no more segments in the list.
+ 2 The number of the highest segment currently in use. Valid only in the first directory segment.
+ 3 The number of extra bytes per directory entry, always an unsigned, even octal number.
+ 4 The block number on the volume where the actual stored data identified by this segment begins.
+
+ Directory entry
+ ---------------
+ 0 Status word
+ 1 File name 1-3 (RAD50)
+ 2 File name 4-6 (RAD50)
+ 3 File type 1-3 (RAD50)
+ 4 Total file length (blocks)
+ 5 Job#, Channel# (RT-11 uses this information only for tentative files)
+ 6 Creation date
+ 7- Optional extra words
****************************************************************************/
diff --git a/src/tools/testkeys.cpp b/src/tools/testkeys.cpp
index a536e4ac272..9ee08808c19 100644
--- a/src/tools/testkeys.cpp
+++ b/src/tools/testkeys.cpp
@@ -26,263 +26,263 @@ struct key_lookup_table { int code; const char *name; };
static constexpr key_lookup_table sdl_lookup[] =
{
- KE(UNKNOWN)
+ KE(UNKNOWN)
- KE(A)
- KE(B)
- KE(C)
- KE(D)
- KE(E)
- KE(F)
- KE(G)
- KE(H)
- KE(I)
- KE(J)
- KE(K)
- KE(L)
- KE(M)
- KE(N)
- KE(O)
- KE(P)
- KE(Q)
- KE(R)
- KE(S)
- KE(T)
- KE(U)
- KE(V)
- KE(W)
- KE(X)
- KE(Y)
- KE(Z)
+ KE(A)
+ KE(B)
+ KE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KE(PAUSE)
- KE(INSERT)
- KE(HOME)
- KE(PAGEUP)
- KE(DELETE)
- KE(END)
- KE(PAGEDOWN)
- KE(RIGHT)
- KE(LEFT)
- KE(DOWN)
- KE(UP)
+ KE(PRINTSCREEN)
+ KE(SCROLLLOCK)
+ KE(PAUSE)
+ KE(INSERT)
+ KE(HOME)
+ KE(PAGEUP)
+ KE(DELETE)
+ KE(END)
+ KE(PAGEDOWN)
+ KE(RIGHT)
+ KE(LEFT)
+ KE(DOWN)
+ KE(UP)
- KE(NUMLOCKCLEAR)
- KE(KP_DIVIDE)
- KE(KP_MULTIPLY)
- KE(KP_MINUS)
- KE(KP_PLUS)
- KE(KP_ENTER)
- KE(KP_1)
- KE(KP_2)
- KE(KP_3)
- KE(KP_4)
- KE(KP_5)
- KE(KP_6)
- KE(KP_7)
- KE(KP_8)
- KE(KP_9)
- KE(KP_0)
- KE(KP_PERIOD)
+ KE(NUMLOCKCLEAR)
+ KE(KP_DIVIDE)
+ KE(KP_MULTIPLY)
+ KE(KP_MINUS)
+ KE(KP_PLUS)
+ KE(KP_ENTER)
+ KE(KP_1)
+ KE(KP_2)
+ KE(KP_3)
+ KE(KP_4)
+ KE(KP_5)
+ KE(KP_6)
+ KE(KP_7)
+ KE(KP_8)
+ KE(KP_9)
+ KE(KP_0)
+ KE(KP_PERIOD)
- KE(NONUSBACKSLASH)
- KE(APPLICATION)
- KE(POWER)
- KE(KP_EQUALS)
- KE(F13)
- KE(F14)
- KE(F15)
- KE(F16)
- KE(F17)
- KE(F18)
- KE(F19)
- KE(F20)
- KE(F21)
- KE(F22)
- KE(F23)
- KE(F24)
- KE(EXECUTE)
- KE(HELP)
- KE(MENU)
- KE(SELECT)
- KE(STOP)
- KE(AGAIN)
- KE(UNDO)
- KE(CUT)
- KE(COPY)
- KE(PASTE)
- KE(FIND)
- KE(MUTE)
- KE(VOLUMEUP)
- KE(VOLUMEDOWN)
- KE(KP_COMMA)
- KE(KP_EQUALSAS400)
+ KE(NONUSBACKSLASH)
+ KE(APPLICATION)
+ KE(POWER)
+ KE(KP_EQUALS)
+ KE(F13)
+ KE(F14)
+ KE(F15)
+ KE(F16)
+ KE(F17)
+ KE(F18)
+ KE(F19)
+ KE(F20)
+ KE(F21)
+ KE(F22)
+ KE(F23)
+ KE(F24)
+ KE(EXECUTE)
+ KE(HELP)
+ KE(MENU)
+ KE(SELECT)
+ KE(STOP)
+ KE(AGAIN)
+ KE(UNDO)
+ KE(CUT)
+ KE(COPY)
+ KE(PASTE)
+ KE(FIND)
+ KE(MUTE)
+ KE(VOLUMEUP)
+ KE(VOLUMEDOWN)
+ KE(KP_COMMA)
+ KE(KP_EQUALSAS400)
- KE(INTERNATIONAL1)
- KE(INTERNATIONAL2)
- KE(INTERNATIONAL3)
- KE(INTERNATIONAL4)
- KE(INTERNATIONAL5)
- KE(INTERNATIONAL6)
- KE(INTERNATIONAL7)
- KE(INTERNATIONAL8)
- KE(INTERNATIONAL9)
- KE(LANG1)
- KE(LANG2)
- KE(LANG3)
- KE(LANG4)
- KE(LANG5)
- KE(LANG6)
- KE(LANG7)
- KE(LANG8)
- KE(LANG9)
+ KE(INTERNATIONAL1)
+ KE(INTERNATIONAL2)
+ KE(INTERNATIONAL3)
+ KE(INTERNATIONAL4)
+ KE(INTERNATIONAL5)
+ KE(INTERNATIONAL6)
+ KE(INTERNATIONAL7)
+ KE(INTERNATIONAL8)
+ KE(INTERNATIONAL9)
+ KE(LANG1)
+ KE(LANG2)
+ KE(LANG3)
+ KE(LANG4)
+ KE(LANG5)
+ KE(LANG6)
+ KE(LANG7)
+ KE(LANG8)
+ KE(LANG9)
- KE(ALTERASE)
- KE(SYSREQ)
- KE(CANCEL)
- KE(CLEAR)
- KE(PRIOR)
- KE(RETURN2)
- KE(SEPARATOR)
- KE(OUT)
- KE(OPER)
- KE(CLEARAGAIN)
- KE(CRSEL)
- KE(EXSEL)
+ KE(ALTERASE)
+ KE(SYSREQ)
+ KE(CANCEL)
+ KE(CLEAR)
+ KE(PRIOR)
+ KE(RETURN2)
+ KE(SEPARATOR)
+ KE(OUT)
+ KE(OPER)
+ KE(CLEARAGAIN)
+ KE(CRSEL)
+ KE(EXSEL)
- KE(KP_00)
- KE(KP_000)
- KE(THOUSANDSSEPARATOR)
- KE(DECIMALSEPARATOR)
- KE(CURRENCYUNIT)
- KE(CURRENCYSUBUNIT)
- KE(KP_LEFTPAREN)
- KE(KP_RIGHTPAREN)
- KE(KP_LEFTBRACE)
- KE(KP_RIGHTBRACE)
- KE(KP_TAB)
- KE(KP_BACKSPACE)
- KE(KP_A)
- KE(KP_B)
- KE(KP_C)
- KE(KP_D)
- KE(KP_E)
- KE(KP_F)
- KE(KP_XOR)
- KE(KP_POWER)
- KE(KP_PERCENT)
- KE(KP_LESS)
- KE(KP_GREATER)
- KE(KP_AMPERSAND)
- KE(KP_DBLAMPERSAND)
- KE(KP_VERTICALBAR)
- KE(KP_DBLVERTICALBAR)
- KE(KP_COLON)
- KE(KP_HASH)
- KE(KP_SPACE)
- KE(KP_AT)
- KE(KP_EXCLAM)
- KE(KP_MEMSTORE)
- KE(KP_MEMRECALL)
- KE(KP_MEMCLEAR)
- KE(KP_MEMADD)
- KE(KP_MEMSUBTRACT)
- KE(KP_MEMMULTIPLY)
- KE(KP_MEMDIVIDE)
- KE(KP_PLUSMINUS)
- KE(KP_CLEAR)
- KE(KP_CLEARENTRY)
- KE(KP_BINARY)
- KE(KP_OCTAL)
- KE(KP_DECIMAL)
- KE(KP_HEXADECIMAL)
+ KE(KP_00)
+ KE(KP_000)
+ KE(THOUSANDSSEPARATOR)
+ KE(DECIMALSEPARATOR)
+ KE(CURRENCYUNIT)
+ KE(CURRENCYSUBUNIT)
+ KE(KP_LEFTPAREN)
+ KE(KP_RIGHTPAREN)
+ KE(KP_LEFTBRACE)
+ KE(KP_RIGHTBRACE)
+ KE(KP_TAB)
+ KE(KP_BACKSPACE)
+ KE(KP_A)
+ KE(KP_B)
+ KE(KP_C)
+ KE(KP_D)
+ KE(KP_E)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ER)
+ KE(AC_SEARCH)
+ KE(AC_HOME)
+ KE(AC_BACK)
+ KE(AC_FORWARD)
+ KE(AC_STOP)
+ KE(AC_REFRESH)
+ KE(AC_BOOKMARKS)
- KE(BRIGHTNESSDOWN)
- KE(BRIGHTNESSUP)
- KE(DISPLAYSWITCH)
- KE(KBDILLUMTOGGLE)
- KE(KBDILLUMDOWN)
- KE(KBDILLUMUP)
- KE(EJECT)
- KE(SLEEP)
+ KE(BRIGHTNESSDOWN)
+ KE(BRIGHTNESSUP)
+ KE(DISPLAYSWITCH)
+ KE(KBDILLUMTOGGLE)
+ KE(KBDILLUMDOWN)
+ KE(KBDILLUMUP)
+ KE(EJECT)
+ KE(SLEEP)
- KE(APP1)
- KE(APP2)
+ KE(APP1)
+ KE(APP2)
};
static char const *lookup_key_name(int kc)