;*************************** AMUS Program Label ******************************
; Filename: UDIR.M68 Date: 01/30/89
; Category: UTIL Hash Code: 755-547-731-423 Version: 1.0(100)
; Initials: ULTR/AM Name: DAVID PALLMANN
; Company: ULTRASOFT CORP. Telephone #:
; Related Files:
; Min. Op. Sys.: Expertise Level: BEG
; Special: Demonstration program only. Source code not complete.
; Description: A fancy directory program using windowing like the Macintosh.
; Please send all feedback regarding this program to ULTR/AM.
;
;*****************************************************************************
;Copyright (C) 1988 UltraSoft Corp. All Rights Reserved.
;Written by: David Pallmann
;
;Edit History:
;1.0(100) 01-Sep-88 created. /DFP
SCREEN: CUROFF
CLS
HIGH
TYPESP UltraSoft Directory of
TSTB SPEC(A5)
BNE 10$
TYPE *.*
BR 20$
10$: TTYL SPEC(A5)
20$: CURSOR #1,#47.
TYPESP Total of
MOV BLKCNT(A5),D1
DCVT 0,OT$TRM!OT$TSP
TYPE block
CMP D1,#1
BEQ 30$
TYPE s
30$: TYPE < in >
MOV FILCNT(A5),D1
DCVT 0,OT$TRM!OT$TSP
TYPE file
CMP D1,#1
BEQ 40$
TYPE s
40$: CURSOR #3,#1
LOW
TYPE <File .Ext Blocks Bytes>
HIGH
CALL SORT.BY.EXT
ENDDIR: MOV FILCNT(A5),D7
DEC D7
CMP D7,#16.
BLOS 10$
SUB #16.,D7
10$: MOV D7,OFFSET(A5)
JMP PAGE
FINISH: CURSOR #24.,#1
CURON
HIGH
EXIT: EXIT
;************
;* GETFIL *
;************
;Copy file information from DDB @A4 into file entry @A3
;Adds one to FILCNT(A5)
;Sets space (linked) or C (contiguous) into FI.TYP(A3)
HLP: HIGH
CURSOR #5,#47.
TYPE N
CURSOR #6,#47.
TYPE E
CURSOR #7,#47.
TYPE A
CURSOR #8.,#47.
TYPE D
LOW
CURSOR #5,#49.
TYPE <- name order>
CURSOR #6,#49.
TYPE <- extension order>
CURSOR #7,#49.
TYPE <- ascending size order>
CURSOR #8.,#49.
TYPE <- descending size order>
HIGH
OR #F$HELP,FLAGS(A5)
RTN