• #### help!

From Chris Hoppman@1:129/305 to All on Monday, February 23, 2004 04:31:09
Was wondering what this is about.

b:boolean;
by:byte;
---

b := (by and 6 = 6);

---

I have it in two places in my com routines that I am tring to convert to asm and don't really know how it goes about evaluating this experssion. So, don't know if I can convert it.

I saw in the help file. If by = 6 then it's true/ if by <> 6 then it is false and via versa, but what does = 6 at the end of it play.

I understand this. b := (by and 6), but don't understand b:=(by and 6 = 6);

I havn't had time to do some test to figure it out and hoped for a quick answer in this group.

chris

* Origin: The Titantic BBS Telnet - ttb.slyip.com (1:129/305)
• From Jasen Betts@3:640/1042 to Chris Hoppman on Tuesday, February 24, 2004 08:53:38
Hi Chris.

23-Feb-04 04:31:09, Chris Hoppman wrote to All

Was wondering what this is about.

b:boolean; by:byte; ---

b := (by and 6 = 6);

---

I have it in two places in my com routines that I am tring to
convert to asm and don't really know how it goes about evaluating
this experssion. So, don't know if I can convert it.

something like

mov al,by
and al,6
cmp al,6
jnz @ZZ0
mov b,1
jmp @ZZ1
@ZZ0:
mov b,0
@ZZ1:

I saw in the help file. If by = 6 then it's true/ if by <> 6 then
it is false and via versa, but what does = 6 at the end of it
play.

I understand this. b := (by and 6), but don't understand b:=(by
and 6 = 6);

do you understand this? b:= (by = 6)

b:=(by and 6 = 6); means the same as b:=((by and 6) = 6);

does that help ?

Bye <=-

---
* Origin: How to make Kleenex dance? Blow a little boogie in it. (3:640/1042)
• From Chris Hoppman@1:129/305 to Jasen Betts on Wednesday, February 25, 2004 05:18:05
do you understand this? b:= (by = 6)

b:=(by and 6 = 6); means the same as b:=((by and 6) = 6);

does that help ?

Yes, I get it now.

thanks
bw