[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

16-Bit Math on 8-Bit Numbers, the Conclusion (was Re: 16-Bit Math on 8-Bit Numbers [HPLOT in Machine Language, Part II])



Thanks for all of the replies. I knew it was something obvious.

I picked one out, compiled it along with the rest of my code, and it worked!

Now I just need to build a custom output routine and an Applesoft
interface to it. Does Applesoft's FRMNUM subroutine (at location DD67)
stop calculating formulas when it reaches a comma?

I would like to do something like CALL 16599,(31-3),VAL(X$)+X+21,333-X
(assuming the Applesoft interface routine starts at 16599, (31-3) is a
horizontal coordinate, VAL(X$)+X+21 is a vertical coordinate, and 333-X is
a character number for a font).

I'm thinking of calling $DEBE to skip over the first comma, calling $DD67
to put the next number in the FAC, converting the FAC to an integer,
storing the integer at some memory location, calling $DEBE to skip over
the second comma, calling $DD67 to put the next number in the FAC, and so
on.

-- 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
jonrelay@napanet.net                        dimension18.cjb.net
"Remember, if it's not a secure web server, it's an _insecure_
web server!"                                              -- Me

 *_     Syntax Error: an error on a criminal's tax record.
   |    Bad Subscript: a criminal reading a book on a subway.
  ---   Unimplemented Trap: when a bear trap isn't set up 
 |' ,|  properly and thus does not work.
  ---   Overflow: too many ice cubes.      <Can't Restart>

Figure 1.1: Most Applications Crash - If Not, The Operating
            System Hangs

    Building Assembly Language for Sabine 9-Bit Text System.
                          Please Wait...
          Don't forget: Tammy Day on February 15th!
Please remove capital letters from my e-mail address to respond.