Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: BYTE / 2 Problem Kategorie: Programmierung Basic (von Hans - 13.10.2005 19:24)
 Als Antwort auf Re: BYTE / 2 Problem von Eckhard - 13.10.2005 9:38
Hans nutzt:  CC1-M-Unit V1.2/2.0
I had nothing and now i have 2 solutions
and your solution works also as i want it

Vielen Dank


>
> >
> > define resultat Byte
> > define mask    &B00001111       'Maskierungsbyte
> >
> >
> > Resultat = byte1 and mask    (low)    ' 01010111 and 00001111 = 00000111
> >  Byte1   = byte1  shr 4                     ' 01110101
> > Resultat = byte1 and  mask  (high)    '01110101 and 00001111 = 00000101
> >
> > Gruß
> > Eckhard
> >
>

 Antwort schreiben

Bisherige Antworten: