[A83] Re: A few questions..
[Prev][Next][Index][Thread]
[A83] Re: A few questions..
>From: Jeff Ruud <pyroboy_04@yahoo.com>
>Reply-To: assembly-83@lists.ticalc.org
>To: assembly-83@lists.ticalc.org
>Subject: [A83] A few questions..
>Date: Tue, 13 Mar 2001 16:44:22 -0800 (PST)
>
>
>I have a few questions....
>1. How can i compare a 16-bit number with a register? You have to use
>register a for CPing, and that is only an 8-bit register.
Put the value into HL,
make sure clear the carry flag is clear (or a),
put the value to compare HL to into either BC or DE,
and use SBC hl,de (or bc).
HL will be modified, hope you pushed/saved it first.
>2. What is the code to horizontally center text on the screen?
X = (screen width - length of string) / 2
That's just the formula, ask someone else for the code.
>3. Hmm...i guess i forgot my 3rd question....
>
>
>
>---------------------------------
>Do You Yahoo!?
>Yahoo! Auctions - Buy the things you want at great prices!
>
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com