view 3rdparty/utils/boisy/makdir.asm @ 2210:7ee1bed662f2

Fixed driver to copy D.SysPrc in Level 2 to D.Proc before link
author boisy
date Mon, 16 Mar 2009 14:39:49 +0000
parents 0e08f0830fd8
children
line wrap: on
line source

         nam     MakDir Vr. 5
         ttl     Automatically capitalizes directories

         ifp1
         use     defsfile
         endc

         mod     Size,Name,Prgrm+Objct,ReEnt+1,Start,Fin

Name     fcs     /MakDir/
Vrsn     fcb     $05

         org     0

Stuff    rmb     80
Stack    rmb     200
Fin      equ     .

Start    pshs    x
Loop     lda     ,x+
         cmpa    #'a
         blo     DecIt
         cmpa    #'z
         bhi     DecIt
         anda    #$df
         sta     -1,x
DecIt    decb
         bne     Loop
         puls    x
MakDir   ldb     #$bf
Execute  os9     I$MakDir 
         bcs     Error
         clrb
Error    os9     F$Exit 

         emod
Size     equ     *
         end