HDTenEightyP/NetNews huggingface dataset:
From: tbates@austin.ibm.com (Tom Bates)
Subject: Re: tolower() function?
Originator: tbates@rama.austin.ibm.com
Date: Mon, 25 Jan 1993 14:39:32 GMT
Organization: IBM Austin


In article <1993Jan24.093340.17437@psg.com>, edw@psg.com (Ed Wright) writes:
> In article <1993Jan22.012739.26965@chpc.utexas.edu> rshouman@chpc.utexas.edu (Radey Shouman) writes:
> >In article <C184vr.p5q@austin.ibm.com> tbates@austin.ibm.com (Tom Bates)
> >writes:
> >
> >>Quoting "The AWK Programming Language",
> >>
> >>	"The cleanest way to do case conversion in awk is with an array that
> >>maps each letter...it's better to use...tr"
> >>
> >>I often use tr for this very reason. For example:
> >>
> >>	echo "HeLlO, wOrLd!" | tr [:upper:] [:lower]
>  try                         | tr [A-Z] [a-z]
> -- 
>  REAL RADIOS             edw@m2xenix.psg.com            GLOW IN THE DARK
>         ^^^^^^^^^^^^^^^^^^^^^^^^<<^^>>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>     >>No Voice>>>>>> Amateur Radio   KA9AHQ @ 28.340  <<<<<<<No Vice<<
>   >>> Kshatriya Auscultating 9 Ailurophiles Hypothesizing Quodlibets <<<


The advantage to using [:upper:] and [:lower:] instead of [A-Z] and [a-z] is
locale support.  Not everyone uses ASCII and US English.

Sincerely,
Tom
-- 
Tom Bates

IBM Austin

Newsgroups: alt.lang.awk
From: emcoop@bnr.ca (hume smith)
Subject: Re: tolower() function?
Organization: Bell-Northern Research, Ottawa, Canada
	<EMCOOP.93Jan25124421@bcars148.bnr.ca> <C1Iy9K.2r8p@austin.ibm.com>
Date: Thu, 28 Jan 1993 17:32:40 GMT

In article <C1Iy9K.2r8p@austin.ibm.com> tbates@austin.ibm.com () writes:

   In article <EMCOOP.93Jan25124421@bcars148.bnr.ca>, emcoop@bnr.ca (hume smith) writes:
   > In article <C1EzDw.FtF@austin.ibm.com> tbates@austin.ibm.com (Tom Bates) writes:
   > 
   >    The advantage to using [:upper:] and [:lower:] instead of [A-Z] and [a-z] is
   >    locale support.  Not everyone uses ASCII and US English.
   > 
   > here's a shocker: not all tr's have that notation.  must be an IBMism :-)

   Here's a shocker, IBM supports it because it is part of AT LEAST the XPG4
   standard. :)

here's a shoker: it's actually a good idea. :-)  ASCII and EBCDIC are, after all, not
everything.

question: tr was often used to implement the usenet rot13:
	tr [A-Za-z] [N-ZA-Mn-za-m]
is there a way of doing that with this portable notation?  there's some way
of specifying a subrange, surely.

do we need an alt.lang.tr group?  :-)
--
Hume Smith                                Honour sick and davey cris-cross
hume.smith@acadiau.ca                     McTruloff sentimie
emcoop@bnr.ca                             A parsnip inner pair threes.
From: churchyh@ccwf.cc.utexas.edu (Henry Churchyard)
Newsgroups: alt.lang.awk
Subject: More recent gawk for MS-DOS than 2.11.1?
Date: 23 Jan 1993 00:45:19 GMT
Organization: The University of Texas at Austin, Austin TX
Distribution: world
Reply-To: churchyh@ccwf.cc.utexas.edu (Henry Churchyard)
NNTP-Posting-Host: grumpy.cc.utexas.edu
Originator: churchyh@grumpy.cc.utexas.edu

   Are there any more recent versions of gawk compiled for MSDOS
anywhere on the net?  There's a version on SIMTEL/oak/wuarchive, but
it's 2.11, patchlevel 1.
--
         --Henry Churchyard     churchyh@ccwf.cc.utexas.edu

Newsgroups: alt.lang.awk
From: lwv26@cas.org (Larry W. Virden)
Subject: Re: Help learning awk
Followup-To: alt.lang.awk
Reply-To: lvirden@cas.org (Larry W. Virden)
Organization: Nedriv Software and Shoe Shiners, Uninc.
Date: Fri, 22 Jan 1993 11:51:07 GMT

I know of several alternatives for you.  Perhaps someone else can provide 
you with details on how to locate them.

1. Contact a local library (college, university or public) and have a
literature search down for the awk programming language.  There have been
tutorials written in various Sun oriented and Unix oriented magazines 
teaching awk usage over the past few yrs.

For instance, the SIGPLAN Notices, V18 #12 - Dec. 1983 has an article
called "A Walk Through AWK" written by Leon S Levy of Bell Labs which
is very good.

2. Look for a document, which is available online somewhere, called:
"A Supplemental Document for AWK, - or -, Thanks Al, Pete, And Brian
Didn't Mention Much" by John W Pierce, Univ of California, San Diego.

3. Using gopher, go searching for guides to awk written at other colleges
and universitys.
-- 
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
Newsgroups: alt.lang.awk
From: chucker@bnr.ca (Ron Mcewen)
Subject: Re: Weird message
Organization: Bell-Northern Research, Ontario, Canada
Date: Thu, 21 Jan 1993 13:32:57 GMT

In article <1993Jan21.115758.5011@cas.org> lvirden@cas.org (Larry W. Virden) writes:
>I personally don't know - has anyone - perhaps the creator of this group -
>checked?  I think you only get two or three of these msgs - or perhaps
>only one each day...
>
I sent him some email and he claims that comp.lang.shell is the forum for
awk questions and that this news group 'could never hope to' have the
quality of readership that it does.
I don't know why he doesn't post to this group if he's so concerned. He's
graciously put me on a list so that I won't receive his automated email.
It's all very weird to me.
-- 

Ron McEwen     | email : chucker@bnr.ca | phone: (613) 765-4591
Bell-Northern Research Ltd., Ottawa, Ontario, Canada
Newsgroups: alt.lang.awk
From: emcoop@bnr.ca (hume smith)
Subject: Re: tolower() function?
Organization: Bell-Northern Research, Ottawa, Canada
	<1993Jan22.012739.26965@chpc.utexas.edu>
	<1993Jan24.093340.17437@psg.com> <C1EzDw.FtF@austin.ibm.com>
Date: Mon, 25 Jan 1993 17:44:21 GMT

In article <C1EzDw.FtF@austin.ibm.com> tbates@austin.ibm.com (Tom Bates) writes:

   In article <1993Jan24.093340.17437@psg.com>, edw@psg.com (Ed Wright) writes:
   > In article <1993Jan22.012739.26965@chpc.utexas.edu> rshouman@chpc.utexas.edu (Radey Shouman) writes:
   > >In article <C184vr.p5q@austin.ibm.com> tbates@austin.ibm.com (Tom Bates)
   > >writes:
   > >
   > >>Quoting "The AWK Programming Language",
   > >>
   > >>	"The cleanest way to do case conversion in awk is with an array that
   > >>maps each letter...it's better to use...tr"
   > >>
   > >>I often use tr for this very reason. For example:
   > >>
   > >>	echo "HeLlO, wOrLd!" | tr [:upper:] [:lower]
   >  try                         | tr [A-Z] [a-z]

   The advantage to using [:upper:] and [:lower:] instead of [A-Z] and [a-z] is
   locale support.  Not everyone uses ASCII and US English.

here's a shocker: not all tr's have that notation.  must be an IBMism :-)
--
Hume Smith                                Honour sick and davey cris-cross
hume.smith@acadiau.ca                     McTruloff sentimie
emcoop@bnr.ca                             A parsnip inner pair threes.
From: churchyh@ccwf.cc.utexas.edu (Henry Churchyard)
Newsgroups: alt.lang.awk
Subject: Re: Help learning awk
Date: 21 Jan 1993 19:08:51 GMT
Organization: The University of Texas at Austin, Austin TX
NNTP-Posting-Host: sneezy.cc.utexas.edu

  There is a long tutorial in the distribution of gawk, but you might
have to use emacs to view it (texinfo format).
--
         --Henry Churchyard     churchyh@ccwf.cc.utexas.edu
From: meyering@cs.utexas.edu (Jim Meyering)
Newsgroups: alt.lang.awk
Subject: using tr's [::] notation [Was: Re: tolower() function?
Date: 27 Jan 1993 22:04:38 -0600
Organization: U of TX at Austin CS Dept
NNTP-Posting-Host: ai.cs.utexas.edu
Summary: GNU tr supports [:class:] notation

|   > >>I often use tr for this very reason. For example:
|   > >>
|   > >>	echo "HeLlO, wOrLd!" | tr [:upper:] [:lower]
|   >  try                         | tr [A-Z] [a-z]
|
|   The advantage to using [:upper:] and [:lower:] instead of [A-Z] and [a-z] is
|   locale support.  Not everyone uses ASCII and US English.
|
| here's a shocker: not all tr's have that notation.  must be an IBMism :-)

If your version of tr doesn't support it, get GNU tr -- it does.
Maybe you should get it anyway;  it's significantly faster in many cases
than the few vendor-supplied versions I've compared it to.
You can find a version in the GNU textutils-1.4 release.

Jim Meyering             | Member of the League for Programming Freedom
meyering@cs.utexas.edu   | Contact me or lpf@uunet.uu.net for more info.
-- 
Jim Meyering             | Member of the League for Programming Freedom
meyering@cs.utexas.edu   | Contact me or lpf@uunet.uu.net for more info.
Newsgroups: alt.lang.awk
From: gswan@psych.toronto.edu (George Swan)
Subject: awk compilers for MS-DOS (was Re: About AWKCC)
Summary: Such things exist
Organization: Department of Psychology, University of Toronto
Distribution: na
Date: Fri, 22 Jan 1993 21:04:56 GMT

In article <1993Jan22.115028.17060@cas.org> lvirden@cas.org (Larry W. Virden) writes:
>awkcc is a package one purchases from ATT Toolchest BBS.  That's the only
>place of which I am aware that it exists.

Mortice Kern Systems, of Waterloo Ontario, sells an awk compiler
for MS-DOS.  I haven't used it yet myself, as it is a new product.
It was one of the new features listed in an announcement of the
newest version of their MKS toolkit.  (Your 150 favourite UNIX
utilities, ported to DOS.)

Thompson Automation, of uh, I forget, has been selling
an awk compiler for MS-DOS for at least a year now.
I have basically been happy with it.  One strange feature
is that all of the binaries it has created for me have all
been the same size.

Enjoy!
From: ig25@fg70.rz.uni-karlsruhe.de (Thomas Koenig)
Newsgroups: alt.lang.awk
Subject: Re: tolower() function?
Date: 28 Jan 93 13:16:55 GMT
Organization: University of Karlsruhe, Germany
NNTP-Posting-Host: fg70.rz.uni-karlsruhe.de

tbates@austin.ibm.com () writes:


>Quoting "The AWK Programming Language",

>	"The cleanest way to do case conversion in awk is with an array that
>maps each letter...it's better to use...tr"

It certainly is cleaner, but not every system which has awk also has
tr.

For the heck of it, I timed converting a 200 K text file to all upper
with an awk - script with self - written toup - function,and tr, on a HP
9000/720 (not exactly a slow machine :-)

Here are the results:

$ time tr [[:lower:]] [[:upper:]] < faq.linux >/dev/null

real    0m0.33s
user    0m0.16s
sys     0m0.07s

$ time toupper < faq.linux >/dev/null

real    0m33.32s
user    0m32.12s
sys     0m0.07s

$ cat toupper
#! /usr/bin/awk -f
BEGIN	{
	    a="abcdefghijklmnopqrstuvwxyz"; b="ABCDEFGHIJKLMNOPQRSTUWVXYZ"
	    for (i=1; i<=length(a); i++)
	        touptab[substr(a,i,1)] = substr(b,i,1)
	}
	{ print toup($0) }
function toup(a     ,i ,ch ,res)
{
    res = ""
    for (i=1; i<=length(a); i++)
    {
	ch = substr(a,i,1)
	if (ch in touptab)
	    res = res touptab[ch]
	else
	    res = res ch
    }
return res
}

Which again shows...  leave the stuff which can be handeled by more
specialized utilities to these, and only use awk when you really need
it.

Regards
-- 
Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet
The joy of engineering is to find a straight line on a double
logarithmic diagram.
Newsgroups: alt.lang.awk
From: lwv26@cas.org (Larry W. Virden)
Subject: Re: Weird message
Followup-To: alt.lang.awk
Reply-To: lvirden@cas.org (Larry W. Virden)
Organization: Nedriv Software and Shoe Shiners, Uninc.
Date: Thu, 21 Jan 1993 11:56:02 GMT

The sysop in question probably is of one of the following opinions: a) he 
didn't see any discussion of the need and purpose for this group, b) he
is against creating groups when the traffic in an existing group does
not justify having the group split, or c) he is against alt groups.

I personally don't know - has anyone - perhaps the creator of this group -
checked?  I think you only get two or three of these msgs - or perhaps
only one each day...


-- 
Larry W. Virden                 UUCP: osu-cis!chemabs!lvirden
Same Mbox: BITNET: lvirden@cas  INET: lvirden@cas.org
Personal: 674 Falls Place,   Reynoldsburg, OH 43068-1614
Newsgroups: alt.lang.awk
From: rshouman@chpc.utexas.edu (Radey Shouman)
Subject: Re: tolower() function?
Organization: The University of Texas System - CHPC
Date: Fri, 22 Jan 93 01:27:39 GMT

In article <C184vr.p5q@austin.ibm.com> tbates@austin.ibm.com (Tom Bates)
writes:

>Quoting "The AWK Programming Language",
>
>	"The cleanest way to do case conversion in awk is with an array that
>maps each letter...it's better to use...tr"
>
>I often use tr for this very reason. For example:
>
>	echo "HeLlO, wOrLd!" | tr [:upper:] [:lower]
>
>This gives you:
>
>	hello, world!
>
>To use tr from awk:
>
>#!/bin/awk -f
>   {
>   "echo "$0" | tr [:upper:] [:lower:]" | getline
>   print
>}

Note that this will give squirelly results if handed any characters
special to /bin/sh, like quotes, or <>|, or backslash, or backtick,
or $, or ...

In order to do this generally, one would have to quote the argument to
echo in single quotes, e.g.:

  gsub(/'/, "'\\''" $0);
  "echo '"$0"' | tr [A-Z] [a-z]" | getline

Doing this inside a shell script would make it look particularly ugly.

This approach, while undeniably clever, has a few other drawbacks:

1) It's really slow, if it has to be done repeatedly, since we fork a
   new subshell for each string we want to downcase.

2) It's very Un*x specific.


tolower and toupper are such innocuously handy functions that I have 
trouble understanding why they weren't included in the original nawk.

Here, just for fun, is an alternative implementation of tolower, in awk.
It's probably slower than one based on a mapping array, but it was faster
for me to type:

BEGIN {
  Aa = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz";
}

function tolower(str,     s, i, c) {
  i = 1;
  s = str;
  while (match(substr(s, i), /[A-Z]/))
    {
      i += RSTART - 1;
      c = substr(s, i, 1);
      c = substr(Aa, index(Aa,c) + 1, 1);
      s = substr(s, 1, i - 1) c substr(s, i + 1);
      i++;
    }
  return s;
}

--Radey
-- 
Radey Shouman					rshouman@chpc.utexas.edu
From: cosc192o@menudo.uh.edu (Perplexed Prophet)
Newsgroups: alt.lang.asm
Subject: TASM help
Date: 26 Jan 93 23:25:44 GMT
Organization: University of Houston
NNTP-Posting-Host: menudo.uh.edu

I am a first time user of Turbo Assembler.  I currently am writing a program
which uses direct screen writes in C.  The procedure to aid me in direct 
screen writes is written in ASM.  Now originally, I wrote the ASM procedure
for Pascal programs, now I wish to incorporate it with C programs.  

Will I have to change the .MODEL??

If so what is the model....It is currently TPascal?

Thanks in advance.
Organization: Penn State University
Date: Thu, 21 Jan 1993 01:24:45 EST
From: Senthil Ramas Kumar <SRK106@psuvm.psu.edu>
Newsgroups: alt.lang.asm
Subject: Re: Help with OOP in asm.

try oak.oakland.edu, in pub/msdos/ddjmag, file = ddj9203.zip

In OAK, there is a directory, that has all the source code for the listings
in Dr.Dobbs Journal.

take a look at the directory, some very interesting stuff.  BTW the above
mentioned file has some info on OOP in TASM etc.

Kumar
From: terra@diku.dk (Morten Welinder)
Newsgroups: alt.lang.asm
Subject: Re: Hardware bug / max()min()
Date: 25 Jan 93 16:16:33 GMT
Organization: Department of Computer Science, U of Copenhagen

stumble@utopia.hacktic.nl (Yeats) writes:

> I recently discovered what may be a rare hardware bug -
>the following code will freeze my old 6-8-10mhz 286 AT :
> 
>   MOV AX,[DI]
>   INC DI
>   MOV AX,[DI]
> 
> Other index registers cause the same hangups but the [DI] never
>fails to hang at once.
> Surprisingly, a keyboard reset still worked - as did the LED's.
>Otherwise my system works fine (WIN3 crashes, so what).
> On accessing memory using REP MOVSW and then again in a loop with
>STOSB in two SEPARATE but close pieces of code, there was a more
>subtle messing up of certain bytes as it run over the 64K segment
>wrap-around - this bug disappeared when the REP MOVSW was replaced
>by REP MOVSB with twice the count.
> 
> Does anyone know anything about this bug ?
> 

The above piece of code is supposed to generate a generel protection
exception if (and only if) DI is 0FFFFh before or "after". That should
certainly crash the system: the GP exception corresponds to Int 13h -- 
disk io!  Try loading a zero into DI before.

Then again you might to having some other kind of trouble.

Morten Welinder
terra@diku.dk
-- 
-------------------------------------------------------------------------
Visit the lyrics archive at ftp.uwp.edu (mirrored to nic.funet.fi, a site
in Finland). All kinds of lyrics available -- upload "yours" and join.
-------------------------------------------Morten Welinder, terra@diku.dk
Newsgroups: alt.lang.asm
From: jt@fuw.edu.pl (Jerzy Tarasiuk)
Subject: Re: FPU
Organization: Warsaw University Physics Dept.
Date: Thu, 21 Jan 1993 11:20:00 GMT

>>>>> On Wed, 13 Jan 1993 20:56:44 GMT, riouxm@JSP.UMontreal.CA (Rioux Martin) said:
Rioux> 1. OK, Here's my question, Is it possible to use (EAX EBX ...) with the FPU
Rioux> commands ex.( FMUL EAX ) IF not how can you speed up the process..?

CPU and FPU communicate through I/O ports (286/287 or better) F0..FF,
but I don't know if it is possible to use these ports by instructions
to send EAX directly to FPU. Seems opcode should be send to port F8,
operand to FC (or 800000F8,800000FC on 386). But I couldn't get it
working. To get maximum speed without register to FPU transfer: store
EAX in memory at doubleword-aligned address using register (e.g. BX)
as address: mov [BX],EAX followed by FILD [BX]; note conversion from
integer to FPU-s internal form takes about 10 times more time than
data transfer from CPU to memory and from memory to FPU. 

Why you need transfer data directly from CPU to FPU ?
They use different data formats.
FPU loads 32-bit REAL in 20 clock cycles, 64-bit REAL in 25,
while loading 32-bit INTEGER takes 45 and 16-bit - 61!
Note CPU can access memory in 2-3 clock cycles. :-)

Rioux> 2. When I use FMUL TEMP,ST(3) I get an ( extra character on line ) I think 
Rioux> I used that line before ...!!! but now it doesn't work anymore... HELP!

Opcode specifying any of ST() other than ST(0) cannot specify memory
address or CPU register because ST index uses same opcode bits as
memory R/M field specifying memory addressing mode.
Can:	FMUL TEMP - multiply ST(0) by REAL TEMP
	FIMUL TEMP - multiply ST(0) by INTEGER TEMP
	FMUL ST(i) - multiply ST(0) by ST(i)
	FMUL ST(i),ST(0) - multiply ST(i) by ST(0)
Result comes to ST(0) except the last when it comes to ST(i).

Jerzy Tarasiuk <jt@fuw.edu.pl>
Newsgroups: alt.lang.asm
From: mikeh@ausom.oz.au (Mike Hamilton)
Subject: Looking for CopyBits source
Date: Sun, 24 Jan 1993 05:28:26 GMT
Organization: AUSOM - The Apple Users Society of Melbourne
Keywords: asm 80x86 copybits

Hello,
 
Can anyone point me source in 80x86 for a CopyBits routine 
along the lines of
 
    CopyBits(Src,Dest,SrcBitNo,DestBitNo,NBits)           
 
 
Any help much appreciated.
 
If replying by email, please use the *full* address below.


-- 
| --------------------------------------------------
| Mike Hamilton (mikeh%ausom.oz@sol.cc.deakin.oz.au)
Newsgroups: alt.lang.asm
Subject: Help on int 39h & int 3ch Create sub/file
From: tarheit@jupiter.cse.utoledo.edu (Tim Arheit AKA Fool Boy)
Date: 27 Jan 93 23:10:45 EST

I am currently working a program that calls int 39h (Create sub)
and int 3ch (Create file) from an interrupt.  When creating a sub
or file on a hard, ram, or stacker drive it works just fine.
But when creating a sub or file on a floppy drive it simply halts
in the middle of the interrupt call.  Note that the exact same code
works just fine when called from a non resident program.
Is the some oddity of dos that does not allow int 39h and int 3ch
to be called from a resident program when writing to floppy drive,
or is there something I may be doing wrong?


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++  Tim Arheit			     ++                        ++ 
++  University of Toledo	     ++ (New .SIG on order)    ++
++  Electrical Engineering     	     ++                        ++
++  tarheit@jupiter.cse.utoledo.edu  ++                        ++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From: prangana@rnd.GBA.NYU.EDU (Nicky Ranganathan)
Newsgroups: alt.lang.asm
Subject: TASM routines anyone?
Summary: looking for TASM example routines
Date: 25 Jan 93 19:11:51 GMT
Followup-To: alt.lang.asm
Organization: NYU Stern School of Business

I will be teaching a course here at NYU this term mostly dealing with
digital logic and assembly language programming (using TASM). I've 
been following this newsgroup for a few weeks now, though there is
not too much activity.

I am looking for *small* and interesting TASM routines that I can use 
as examples in my class. Also, any "overviews" of assembly language
programming would help. I have checked out the archives at
oak.oakland.edu and found some interesting (though oldish) stuff
which I have ftp'ed. Anybody know any other sources/repositories.

Thanks in advance. Email or post please.

--Nicky
From: stumble@utopia.hacktic.nl (Yeats)
Newsgroups: alt.lang.asm
Subject: Hardware bug / max()min()
Date: Fri, 22 Jan 93 22:51:39 GMT
Organization: HACK-TIC NETWORK FOUNDATION

 I recently discovered what may be a rare hardware bug -
the following code will freeze my old 6-8-10mhz 286 AT :
 
   MOV AX,[DI]
   INC DI
   MOV AX,[DI]
 
 Other index registers cause the same hangups but the [DI] never
fails to hang at once.
 Surprisingly, a keyboard reset still worked - as did the LED's.
Otherwise my system works fine (WIN3 crashes, so what).
 On accessing memory using REP MOVSW and then again in a loop with
STOSB in two SEPARATE but close pieces of code, there was a more
subtle messing up of certain bytes as it run over the 64K segment
wrap-around - this bug disappeared when the REP MOVSW was replaced
by REP MOVSB with twice the count.
 
 Does anyone know anything about this bug ?
 
 
 
Btw, here's the max() routine discussed earlier,
 made one byte shorter ;-)
 
 AX := unsigned-max (AX,DX)
 --------------------------
   SUB AX,DX
   CMC        ; leave this out to get AX := MIN(AX,DX)
   SBB CX,CX
   AND AX,CX
   ADD AX,DX
 
 



 ---
stumble@utopia.hacktic.nl (Yeats)
Newsgroups: alt.lang.asm
From: sfought@cs.umr.edu (Shane Fought)
Subject: graphics
Date: Sun, 24 Jan 1993 02:03:48 GMT
Organization: University of Missouri - Rolla, Rolla, MO

     I am trying to learn how to do some graphics in tasm.  I just want to be able to light up some pixels on the screen in vga.  This is what I want to do..

          mov ah, 0
          mov al, 12h ; vga I think
          int 10h
          mov bx, some value that will light up a pixel
          mov [0b88], bx ; plug some value into video memory which starts at b800 I think
          int 10h

But I get some errors doing this, something about invalid immediate value at the mov [0b88], bx..  If some one could help me out I would greatly appreciate it..  I need some pixels to light up in vga..  Thanks in advance.  Please either e-mail me or post here..

                               --Shane

-- 
===============================================================================
|  "Jack in, Rock out, and feed your head..."    |    s112252@umrvma.umr.edu  |
|    "If it's easy it ain't worth doin..."       |      sfought@cs.umr.edu    |
===============================================================================
Newsgroups: alt.lang.asm
From: johnm@cory.Berkeley.EDU (John D. Mitchell)
Subject: Re: TASM help
Organization: University of California, at Berkeley
Date: Wed, 27 Jan 1993 01:27:36 GMT

In article <1k4h9oINN1j2@menudo.uh.edu> cosc192o@menudo.uh.edu (Perplexed
Prophet) writes:
>I am a first time user of Turbo Assembler.  I currently am writing a program
>which uses direct screen writes in C.  The procedure to aid me in direct 
>screen writes is written in ASM.  Now originally, I wrote the ASM procedure
>for Pascal programs, now I wish to incorporate it with C programs.  
>
>Will I have to change the .MODEL??
>
>If so what is the model....It is currently TPascal?

The Turbo Assembler manual has whole chapters devoted to interfacing with
C/C++ and Turbo Pascal.

John

Newsgroups: alt.lang.asm