head	1.2;
access;
symbols;
locks
	yap:1.2; strict;
comment	@# @;


1.2
date	97.09.26.21.23.58;	author yap;	state Exp;
branches;
next	1.1;

1.1
date	97.09.24.17.13.23;	author yap;	state Exp;
branches;
next	;


desc
@@


1.2
log
@*** empty log message ***
@
text
@New stuff for putting out on faq:

Q: Would the following work: 

	mov [Input +1],al 

  where Input is a variable? 

A: This is an error for TASM.
The text in section 10.2.2 does
not mention this possibility.  Rather,
you must always use a based or index register
(BX, SI, etc) for indirect addressing.
Note that indirect addressing is always indicated
by [...].

You can always check if it works by writing
a program with this instruction, and
trying to assemble it!

Q: USEFUL TRICKS:
	
	in the command line for tasm,
	you can insert a file containing
	part of the command line, provided
	you append "@@" to the file name.

	e.g., :> tasm @@myoptions.ta hw1.asm

	where myoptions.ta contain some assembler
	options!

	You can string together several of these
	@@ files if you wish.

Q: TASM Options:
	/z is useful to ask tasm to
	list the offending lines with
	your errors.

Q: How to set working directory for TASM:

From lrs209@@is7.nyu.edu Tue Sep 23 17:30 EDT 1997
Date: Tue, 23 Sep 1997 17:30:17 -0400 (EDT)
From: Luke R Scalcione <lrs209@@is7.nyu.edu>
To: Chee Yap <yap@@jinai.cs.nyu.edu>
Subject: Thank You
Mime-Version: 1.0

Dear Professor Yap,
	I recieved your e-mail.  I have found out some little
technicalities about TASM and TLINK in the ACF labs.  The default settings
that the ACF lab has for TASM and TLINK does not allow you to make an obj
or exe file without following these directions...

1- go to applications folder--programming--dos programming
2- you should now see icons for TASM TLINK TD etc.
3- highligh the TASM icon
4- right click on TASM so you get a pop up menu
5- click "properties"
6- select "program" from the tabs on this menu
7- were it says working file the default is "Z:\BIN\TASM4\BIN"
8- change the default so it reads "a:\"
9- you can now create an obj file by double clicking on the icon TASM
10- **the obj file will be written to the a: drive so make sure you have a
floppy disk


Q: BAT files

A:	@@rem remark!
	echo this is my bat file
	tasm /zi hw1
	tlink /v hw1
	td hw1




@


1.1
log
@Initial revision
@
text
@a2 39
Q: HOW DO I PRINT A HARDCOPY OF WHAT IS SHOWN ON THE SCREEN?

A: The easiest is to invoke the [PRINT SCREEN] key
	(this is a single key).
	To print the image of the entire screen, press [PRINT SCREEN]
	To print the image of the window that is currently
	active, press [ALT]+[PRINT SCREEN] (this is a combination
	of two keys).
<p>
	Unfortunately, [PRINT SCREEN] seems to
	be disabled in the ACF labs.  An alternative
	was is to use the COPY and PASTE
	functions of the windowing system.  In the MS-DOS COMMAND PROMPT
	window, you can left-click the MS-DOS icon at the left
	corner of the title bar, or right-click the title bar.
	A pull-down menu appears, and you can choose edit->mark.
	You now mark the region of the window you want to copy:
	press the left button at the top-left of the region and drag
	the mouse to the bottom-right of the region, and release mouse. 
	Next, use the pull-down menu again and choose edit->paste.
	This saves a copy of the region into a temporary file.  If you
	now open a new file (say "foo")
	in a text editor, you can paste the
	contents of the temporary file into "foo".  You may
	now print "foo" from your editor.
<p>
	A third option which may work for you is to
	re-direct the output of your program to a file
	and to print that file.  For instance, to redirect
	the output of your program hw1.exe to the file "foo",
	you invoke 
	<pre>
	:&gt;	hw1 > foo
	</pre>
	Normally, the output of hw1 is sent to your screen
	("the standard output").  The ">" command tells
	the system to send it to "foo" instead.  (This is
	another idea from UNIX that has been stolen by Microsoft.)

@
