view 3rdparty/utils/dladd/cls.asm @ 2813:b8445469ab90 lwtools-port

Update to cls command in the dladd utils.
author David Ladd <drencor-xeen@users.sf.net>
date Tue, 12 Feb 2013 12:51:35 -0600
parents 1f47bdb9f356
children
line wrap: on
line source

********************************************************************
* cls - Clear Screen
*
* $Id$
*
* Edt/Rev  YYYY/MM/DD  Modified by
* Comment
* ------------------------------------------------------------------
*   1      1986/12/27  David Ladd
* Started.
*

         nam   cls
         ttl   Clear Screen

         ifp1
         use   defsfile
         endc

tylg     set   Prgrm+Objct
atrv     set   ReEnt+Rev
rev      set   $00
edition  set   1

         org   0
         rmb   $0100      for the stack
size     equ   .

         mod   eom,name,tylg,atrv,start,size

name     fcs   /cls/
         fcb   edition

clearn   fcb   C$FORM
LCLEAR   equ   *-clearn

* Entry of program
Start    leax   <clearn,pc
         ldy    #LCLEAR
         lda    #1
         os9    I$Write
         clrb
         OS9   F$Exit

         emod
eom      equ   *
         end