home *** CD-ROM | disk | FTP | other *** search
- 26-Oct-84 19:14:57-PDT,11168;000000000001
- Return-Path: <tdn@cmu-cs-spice.arpa>
- Received: from CMU-CS-SPICE.ARPA by SUMEX-AIM.ARPA with TCP; Fri 26 Oct 84 19:13:55-PDT
- Date: Friday, 26 October 1984 22:00:24 EDT
- From: Thomas.Newton@cmu-cs-spice.arpa
- To: info-mac@sumex-aim.arpa
- Subject: FEditR.Asm (TO BE ARCHIVED)
- Message-ID: <1984.10.27.1.58.20.Thomas.Newton@cmu-cs-spice.arpa>
-
- ;______________________________________________________________________
- ;
- ; This program is designed to provide disk information and to
- ; edit disk files on the Macintosh.
- ;
- ; Copyright (C) John H. Mitchell, September 1984.
- ;
- ; All rights reserved.
- ;
- ; Permission is granted for non commercial usage. This source
- ; and its associated code file may be copied and distributed
- ; freely, provided that you do not attempt to sell it, use it
- ; as the basis for a commercial program, or otherwise obtain any
- ; financial gain from it. You may modify it in any way that you
- ; feel appropriate within these limits.
- ;
- ;______________________________________________________________________
-
- String_Format 2
-
- Visible EQU 1
- Invisible EQU 0
-
- GoAway EQU 1
- NoGoAway EQU 0
-
- Enabled EQU 0
- Disabled EQU 128
-
- MACRO MakeMENU Name,ID,Flags =
- RESOURCE 'MENU'{ID} 'z'
- DC.B {ID}>>8,{ID}
- DC.B 0,0
- DC.B 0,0
- DC.B 0,0
- DC.B 0,0
- LongHex {Flags}
- DC.B {Name}
- |
-
- MACRO MenuItem Text,Mark,Key =
- DC.B {Text}
- DC.B 0
- DC.B {Key}
- DC.B {Mark}
- DC.B 0
- |
-
- MACRO MakeSTR ID,Text =
- RESOURCE 'STR ' {ID} 'z'
- DC.B {Text}
- |
-
- MACRO MakeDLOG ID,RectTop,RectLeft,RectBottom,RectRight,VisibleFlag,GoawayFlag,Procedure,DITL =
- RESOURCE 'DLOG' {ID} 'z'
- DC.B {RectTop}>>8,{RectTop},{RectLeft}>>8,{RectLeft}
- DC.B {RectBottom}>>8,{RectBottom},{RectRight}>>8,{RectRight}
- DC.B {Procedure}>>8,{Procedure}
- DC.B {VisibleFlag}
- DC.B 0
- DC.B {GoawayFlag}
- DC.B 0
- DC.B 0,0,0,0
- DC.B {DITL}>>8,{DITL}
- DC.B 0,0
- |
-
- MACRO MakeALRT ID,RectTop,RectLeft,RectBottom,RectRight,DITL,Stages =
- RESOURCE 'ALRT' {ID} 'z'
- DC.B {RectTop}>>8,{RectTop},{RectLeft}>>8,{RectLeft}
- DC.B {RectBottom}>>8,{RectBottom},{RectRight}>>8,{RectRight}
- DC.B {DITL}>>8,{DITL}
- DC.B {Stages}>>8,{Stages}
- |
-
- MACRO MakeDITL ID,Count =
- RESOURCE 'DITL' {ID} 'z'
- DC.B 0,{Count}-1
- |
-
- MACRO DITLButn EnableFlag,RectTop,RectLeft,RectBottom,RectRight,Text =
- DC.B 0,0,0,0
- DC.B {RectTop}>>8,{RectTop},{RectLeft}>>8,{RectLeft}
- DC.B {RectBottom}>>8,{RectBottom},{RectRight}>>8,{RectRight}
- DC.B 4+{EnableFlag}
- DC.B {Text}
- |
-
- MACRO DITLEdit EnableFlag,RectTop,RectLeft,RectBottom,RectRight =
- DC.B 0,0,0,0
- DC.B {RectTop}>>8,{RectTop},{RectLeft}>>8,{RectLeft}
- DC.B {RectBottom}>>8,{RectBottom},{RectRight}>>8,{RectRight}
- DC.B 16+{EnableFlag}
- DC.B 0
- |
-
- MACRO DITLStat EnableFlag,RectTop,RectLeft,RectBottom,RectRight,Text =
- DC.B 0,0,0,0
- DC.B {RectTop}>>8,{RectTop},{RectLeft}>>8,{RectLeft}
- DC.B {RectBottom}>>8,{RectBottom},{RectRight}>>8,{RectRight}
- DC.B 8+{EnableFlag}
- DC.B {Text}
- |
-
- MACRO DITLIcon EnableFlag,RectTop,RectLeft,RectBottom,RectRight,ID =
- DC.B 0,0,0,0
- DC.B {RectTop}>>8,{RectTop},{RectLeft}>>8,{RectLeft}
- DC.B {RectBottom}>>8,{RectBottom},{RectRight}>>8,{RectRight}
- DC.B 32
- DC.B 2 ; Always enabled
- DC.B {ID}>>8,{ID}
- |
-
- MACRO MakeICON ID =
- RESOURCE 'ICON' {ID} 'z'|
-
- MACRO LongHex V =
- DC.B {V}>>24,{V}>>16,{V}>>8,{V}|
-
- RESOURCE 'MENU' 1 'z'
- DC.B 0,1
- DC.B 0,0
- DC.B 0,0
- DC.B 0,0
- DC.B 0,0
- LongHex $FFFFFFFB
- DC.B $01,$14
- MenuItem 'About Fedit...',0,0
- MenuItem '-',0,0
- DC.B 0
-
- MakeMENU 'File',2,$FFFFFFF7
- MenuItem 'Open Volume...',0,0
- MenuItem 'Open File...',0,0
- MenuItem 'Close',0,0
- MenuItem 'Quit',0,$51
- DC.B 0
-
- MakeMENU 'Edit',3,$FFFFFDAF
- MenuItem 'Read Next Block',0,$4E
- MenuItem 'Read Previous Block',0,$50
- MenuItem 'Read Block...',0,$42
- MenuItem '-',0,0
- MenuItem 'Write Block',0,$57
- MenuItem '-',0,0
- MenuItem 'ASCII Modify',0,$41
- MenuItem 'Hex Modify',0,$48
- MenuItem '-',0,0
- MenuItem 'Undo Changes',0,$5A
- DC.B 0
-
- MakeMENU 'Options',4,$FFFFFFF1
- MenuItem 'Resource Fork',0,0
- MenuItem 'Data Fork',0,0
- MenuItem '-',0,0
- MenuItem 'Display in Hex',0,0
- MenuItem 'Display in ASCII',$12,0
- DC.B 0
-
- MakeMENU 'Display',5,$FFFFFFF9
- MenuItem 'File Information',0,0
- MenuItem 'Disk Information',0,0
- DC.B 0
-
- MakeMENU '*** ASCII modify command active ***',6,$FFFFFFFD
- MenuItem '-',0,0
- MenuItem 'End Modifications',0,$43
- DC.B 0
-
- MakeMENU '*** Hex modify command active ***',7,$FFFFFFFD
- MenuItem '-',0,0
- MenuItem 'End Modifications',0,$43
- DC.B 0
-
- MakeSTR 257,'Hex:'
- MakeSTR 258,'Position:'
- MakeSTR 259,'Block:'
- MakeSTR 260,'Logical EOF is after position'
- MakeSTR 261,'in this block'
-
- MakeDLOG 51,60,120,220,400,Visible,NoGoAway,1,51
- MakeDLOG 52,100,152,236,360,Visible,NoGoAway,1,52
- MakeDLOG 53,100,55,185,455,Visible,NoGoAway,1,53
-
- MakeALRT 21,100,96,228,416,21,$4444
- MakeALRT 22,100,96,228,416,22,$4444
- MakeALRT 23,100,96,228,416,23,$4444
- MakeALRT 24,100,96,228,416,24,$4444
- MakeALRT 25,100,96,228,416,25,$4444
- MakeALRT 26,100,96,228,416,26,$4444
- MakeALRT 27,100,96,228,416,27,$4444
- MakeALRT 28,100,96,228,416,28,$4444
- MakeALRT 29,100,96,228,416,29,$4444
-
- MakeDITL 21,4
- DITLButn Enabled,90,50,116,150,'No'
- DITLButn Enabled,90,180,116,280,'Yes '
- DITLIcon Enabled,30,20,62,52,1
- DITLStat Enabled,23,70,84,310,'Do you really want to discard the changes that you have made to this block? '
-
- MakeDITL 22,3
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,0
- DITLStat Enabled,25,70,84,310,'Unable to open that fork because it has no disk blocks allocated. '
-
- MakeDITL 23,3
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,0
- DITLStat Enabled,25,70,84,310,'An error occurred while attempting to open the file on disk.'
-
- MakeDITL 24,3
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,0
- DITLStat Enabled,25,70,84,310,'An error occurred while attempting to read a block from the disk file.'
-
- MakeDITL 25,3
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,0
- DITLStat Enabled,25,70,84,310,'An error occurred while attempting to rewrite this block in the disk file.'
-
- MakeDITL 26,4
- DITLButn Enabled,90,50,116,150,'Cancel'
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,1
- DITLStat Enabled,25,70,84,310,'Are you sure you want to write this block to disk?'
-
- MakeDITL 27,3
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,0
- DITLStat Enabled,25,70,84,310,'An error occurred while attempting to read a block from the disk volume.'
-
- MakeDITL 28,3
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,0
- DITLStat Enabled,25,70,84,310,'An error occurred while attempting to write this block to disk. '
-
- MakeDITL 29,3
- DITLButn Enabled,90,180,116,280,'OK'
- DITLIcon Enabled,22,20,54,52,0
- DITLStat Enabled,25,70,84,310,'This file cannot be displayed because it contains no data or resource blocks. '
-
- MakeDITL 51,4
- DITLStat Enabled,30,70,50,270,'File and Volume Edit Program'
- DITLStat Enabled,100,25,116,260,'This program was written for the'
- DITLStat Enabled,120,35,136,260,'Macintosh by John H. Mitchell '
- DITLIcon Enabled,24,20,56,52,511
-
- MakeDITL 52,5
- DITLButn Enabled,59,12,77,92,'Open'
- DITLButn Enabled,100,12,118,92,'Cancel'
- DITLButn Enabled,59,116,77,196,'Eject '
- DITLButn Enabled,100,116,118,196,'Drive '
- DITLStat Disabled,20,70,38,196,' '
-
- MakeDITL 53,4
- DITLButn Enabled,50,250,72,325,'OK'
- DITLButn Enabled,50,80,72,155,'Cancel'
- DITLStat Disabled,20,20,36,300,'Enter number of block to read from disk '
- DITLEdit Disabled,20,320,36,380
-
- MakeICON 511
- LongHex $0007FF80
- LongHex $00080000
- LongHex $00087E20
- LongHex $00080120
- LongHex $00080120
- LongHex $04080120
- LongHex $0C080120
- LongHex $08080120
- LongHex $66080120
- LongHex $99080120
- LongHex $8108FE20
- LongHex $80080020
- LongHex $80080020
- LongHex $4A001F20
- LongHex $34000020
- LongHex $00FC0020
- LongHex $03000000
- LongHex $0401FFF0
- LongHex $04000008
- LongHex $03E01FE4
- LongHex $00100552
- LongHex $001000A9
- LongHex $00200001
- LongHex $002001FE
- LongHex $00180000
- LongHex $00040000
- LongHex $0000C000
- LongHex $00012000
- LongHex $00025000
- LongHex $00008800
- LongHex $00000800
- LongHex $00001000
-
- END
-