From: Krogg
Subject: Re: pb3.5:asm shl di,6 why dont it werk?
Bob Zale wrote:
>
> > Nope,just use these equates,
> >
> > %pusha =&h60
> > %popa =&h61
> > then use them like so,
> > asm dw %pusha
> > asm ;screw with the registers all ya want
> > asm dw %popa
> >
>
> The concept is excellent, but the implementation will fail. The DW
> opcode defines a WORD. So you'll get a byte of &h61 (PUSHA) followed by
> another byte of &h00, which would be the lead-in byte for another
> opcode. Change those DW's to DB and it will work perfectly.
>
> Bob Zale
> PowerBASIC Inc.
wooops,typo.sorry it should have been
asm db %pusha
asm ;skrewwithem registers all ya want
asm db %popa
Thanks Bob,I hope none tried that b4 seeing the correction.
I am flaberghasted(?) at my mistake,I must have typed db about
100 times that nite,I dunno where that "w" came from.
Regards,
Krogg.
By the way,I got the idea from a file called pbagi.zip,a library for
640x400x256 graphics,by Tenie Remmel.It was converted for power basic
compatibility by Hans Lunsing.I am asumming that Hans is the one who came up
with the idea in the first place,but again he might have saw it
somewhere too.(there are some other cool ideas there as well)
I am trying to convert some of the subs to work with mode 13h in POWERbasic
3.5.I have ran in to a real snag trying to make the primitives get drawed
into a buffer,you can read about it in
my post "drawing in a screen buffer:help".
--
THE
/\ \\ // /\
/ \ \\ // / \
/ /\/ /""""""\ \/\ \
/ / SEE HIS ( / \ \ SEE HIS \ \
\ \ FACE \/ \/ SMILE / /
\ \ / W \ / /
\ \ /\_|||||_/\ / /
/ \ // ||| \\ / \
/ /\ \ // ' \\ / /\ \
/ / / / \ \ \ \
\ \/ \_______________________/ \/ /
\_________________________________/
krogg.no.to.spam@inspace.net
Remove no.to.spam to reply
http://www.inspace.net/~carcher/krogg/aani.htm
Gory javascript animations for your enjoyment
*** QwkNews (tm) v2.1
* [TN71] Toast House Import
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/561)
|