Skip Navigation
Zaphod42 Zaphod42 @lemmy.sdf.org
Posts 1
Comments 4
BASIC for the Masses
  • Originally coded for a Sharp PC-1251. Basically my "Hello World" in every programming language I try:

    10: INPUT "GEWICHT IN KG" , M
    20: INPUT "GROESSE IN M" ,L
    30: B=M/L^2
    40: PRINT "BMI = ";B
    

    I ported this to LF-BASIC https://github.com/LiquidFox1776/LF-BASIC, a BASIC-interpreter written in Python:

    10 LET M=0
    20 LET L=0
    30 LET B=0
    40 INPUT "GEWICHT IN KG "; M
    50 INPUT "GROESSE IN CM "; L
    60 LET L=L/100
    70 LET B=M/L^2
    80 PRINT "BMI = "; B
    

    Then I started using PDP-8-Emulation and TSS-8:

    10 LET M=0
    20 LET L=0
    30 LET B=0
    35 PRINT "WEIGHT IN KG.G:"
    40 INPUT M
    45 PRINT "HEIGHT IN CM:"
    50 INPUT L
    60 LET L=L/100
    70 LET B=M/L^2
    75 PRINT "YOUR BMI IS:"
    80 PRINT B
    90 END
    
  • Leave a link to your own gopher hole in this thread:
  • gopher://tilde.club/1/~zaphod42/

    gopher://sdf.org/1/users/zaphod42

  • Sharp PC-1251
  • This guy is awesome. Bought a LCD and replaced it.

    The machine is back to life ...

  • Sharp PC-1251
  • Thank you. I check this out ...

  • Sharp PC-1251

    I own a Sharp PC-1251. Untill a few Years ago it was in full working condition, then the LCD deceased. Ist there any chance to replace or repair this with moderate efforts? I miss my BASIC-spaghetti-code and the micro-cassette drive for storage ,,, !

    5