Megalextoria
Retro computing and gaming, sci-fi books, tv and movies and other geeky stuff.

Home » Archive » net.micro.pc » Re: PC-DOS/MS-DOS `touch' command
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: PC-DOS/MS-DOS `touch' command [message #80898] Tue, 04 June 2013 00:01
gino is currently offline  gino
Messages: 61
Registered: May 2013
Karma: 0
Member
Message-ID: <484@voder.UUCP>
Date: Mon, 29-Oct-84 16:30:50 EST
Article-I.D.: voder.484
Posted: Mon Oct 29 16:30:50 1984
Date-Received: Fri, 2-Nov-84 04:13:23 EST
References: <419@voder.UUCP>
Organization: National Semiconductor, Santa Clara
Lines: 27

[untouchable line]

I posted the source to a `touch' command for MS-DOS 2.x; it ran fine on
my PC at work (where I used v 1.27 of the Microsoft Macro Assembler), but
I later discovered that a bug in the IBM Macro Assembler v1.00 causes
incorrect assembly.  The problem is in the sixth line below (the one with
`xor' in it):
 >  to_upper:
 >  	cmp	al,'a'		; convert to UC
 >  	jb	short uc_end	; this isn't lc
 >  	cmp	al,'z'
 >  	ja	short uc_end	; nor is this
 >  	xor	al,'a' xor 'A'	; this one was
 >  uc_end:	ret
One work-around is to change the line to:
 	xor	al,'a'-'A'	; this one was
This bug is among those documented a few months ago in Dr Dobb's Journal, I
think (but I haven't checked).  Another work-around, of course, is to use the
Microsoft assembler.

As long as I'm here, I'd like to mention that the message:
 >  no_file	  db	'touch: file not found',0dh,0ah,'$'
in my code is probably misleading; it would be more accurate if it said:
  no_file	  db	'touch: no matching file name',0dh,0ah,'$'
or some such.
-- 
Gene E. Bloch (...!nsc!voder!gino)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Responses to 8086 query - (nf)
Next Topic: KERMIT for AT&T PC-6300 and HP-150 Wanted.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Apr 19 19:57:43 EDT 2024

Total time taken to generate the page: 0.02179 seconds