Sharp EL-5250 Manual de Serviço Página 93

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 132
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 92
91
2B or not 2B (N-base conversion)
The conversion functions and logical operations can be used in the NBASE
program mode. The following is a simple program that converts a decimal
number to binary, pental, octal and hexadecimal formats.
1. Press b 2 1 1 to open a
window for creating a NEW program in
the NBASE program mode.
2. Type NBASE for the title then press e.
•A NEW program called ‘NBASE’ will be created.
3. Enter the program as follows.
Program code Key operations
Print”ENTER A i 1 @ a ENTER s A
; e
Print”DECIMAL NUMBER i 1 @ a DECIMAL s
NUMBER ; e
Input Y i 2 ; Y e
Y¬BIN ; Y @ z e
Print”BINARY i 1 @ a BINARY ;
e
Print Y i 0 ; Y e
Wait i 3 e
Y¬PEN ; Y @ r e
Print”PENTAL i 1 @ a PENTAL ;
e
Print Y i 0 ; Y e
Wait i 3 e
NBASE :NBASE
PROGRAM?
Chapter 8: Application Examples
Vista de página 92
1 2 ... 88 89 90 91 92 93 94 95 96 97 98 ... 131 132

Comentários a estes Manuais

Sem comentários