Informazioni su operando bit shift – Support Elsist https://support.elsist.biz/forums/topic/informazioni-su-operando-bit-shift/feed/ Fri, 30 Oct 2026 08:32:22 +0000 https://bbpress.org/?v=2.6.20 it-IT https://support.elsist.biz/forums/topic/informazioni-su-operando-bit-shift/#post-76141 Informazioni su operando bit shift https://support.elsist.biz/forums/topic/informazioni-su-operando-bit-shift/#post-76141 Thu, 22 Feb 2024 15:33:09 +0000 Gastone Berni S.r.l Vorrei sapere se possibile dove posso trovare informazione sull’utilizzo del bit shift SHL, magari con degli esempi di programmazione.

]]>
https://support.elsist.biz/forums/topic/informazioni-su-operando-bit-shift/#post-76144 Rispondi a: Informazioni su operando bit shift https://support.elsist.biz/forums/topic/informazioni-su-operando-bit-shift/#post-76144 Fri, 23 Feb 2024 07:42:02 +0000 Sergio Bertana Tutte le informazioni sugli operatori definiti all’interno dell’ambiente LogicLab sono reperibili sul manuale utente. Nella fattispecie l’help dell’operatore SHL riporta:

  • Descrizione: Shift a sinistra di input#0 per il numero di bit indicato da input #1 con riempimento di zero a destra.
  • Numero di operandi: 2
  • Tipo di dato input: Qualsiasi tipo numerico, Qualsiasi tipo numerico
  • Tipo di dato output: Lo stesso di input #0
  • Esempi: OUT := SHL( IN := 16#1000CAFE, 16 );  // OUT = 16#CAFE0000

In pratica eseguire lo shift a sinistra di un valore equivale a moltplicarlo per 2.

]]>
https://support.elsist.biz/forums/topic/informazioni-su-operando-bit-shift/#post-76342 Rispondi a: Informazioni su operando bit shift https://support.elsist.biz/forums/topic/informazioni-su-operando-bit-shift/#post-76342 Fri, 01 Mar 2024 11:19:51 +0000 Gastone Berni S.r.l Buongiorno Sig. Bertana, ho una domanda da farle sempre relativa all’operatore SHL, ma dopo che SHL ha fatto il suo lavoro come faccio a riportarlo all’inizio del conteggio.

Forse non sono stato chiaro, la ringrazio comunque se potrà darmi un aiuto.

Saluti.

]]>