0 Members and 2 Guests are viewing this topic.
.BITUL8R"THE 16 BITULATOR, UTILIZING THE LATEST IN 8.8 TECHNOLOGY?"Lbl STARTIf getKey(15)ReturnrEndsub(INP)A→thetaClrHomeWhile getKey(54)Endsub(INP)Lbl 0ClrHomeDisp "+-*/"Repeat getKey→KEnd!If K-10Lbl 10Repeat 0rand→BIf getKey(15)ReturnrEndEnd!If B^2!If B^3Goto 10End!If B^5Goto 10End!If B^7Goto 10EndElse!If K-11Lbl 11Repeat 0rand→BIf getKey(15)ReturnrEndEnd!If B^3!If B^2Goto 11End!If B^5Goto 11End!If B^7Goto 11EndElse!If K-12Lbl 12Repeat 0rand→BIf getKey(15)ReturnrEndEnd!If B^5!If B^2Goto 12End!If B^3Goto 12End!If B^7Goto 12EndElse!If K-13Lbl 13Repeat 0rand→BIf getKey(15)ReturnrEndEnd!If B^7!If B^2Goto 13End!If B^3Goto 13End!If B^5Goto 13EndElseGoto 0Endsub(I)Lbl IIf getKey(15)ReturnrEnd!If B-0sub(START)Else!If B^2sub(ADD)Else!If B^3sub(SUB)Else!If B^5sub(PROD)Else!If B^7sub(DIV)EndLbl ADDFor(Q,0,65535)If getKey(15)ReturnrEndA++theta--If getKey(0)Disp A>Hex,theta>Hex,Q>Hex,iEnd!If thetaGoto AthetaEndEndLbl Atheta0→B0→Bsub(I)Lbl SUB~A→Asub(ADD)Lbl PRODtheta**A→A0→Bsub(I)Lbl DIVA^^-1→Asub(PROD)Lbl INPClrHomeRepeat getKey(54)Output(0,,A>HexEndIf getKey(0)If getKey(15)ReturnrEnd!If getKey(54)If getKey(1)A++EndIf getKey(2)A++EndIf getKey(3)A--EndIf getKey(4)A--EndGoto INPEndGenerated by the BBify'r (http://clrhome.org/resources/bbify/)
In other news, Frey continues kicking unprecedented levels of ass.
It calculates.
Quote from: Freyaday on October 06, 2011, 05:26:41 pmIt calculates.calculates what?
I wonder if it is possible to write a z80 emulator for calcs. Of course it would be slow as crap but.....