home *** CD-ROM | disk | FTP | other *** search
- <>
- @3{PROGRAMMING HIGH-TECH MACHINES, SUCH AS THE BBC
- @4}by Converse of A.F
- @1
- Hi, welcome to Amiga Frontier. Err,
- bollox, wrong mag.
- Aaannyyway, I've ventured out of A.F
- to lend a hand to the creators of
- B.S.E. Beyond Chastity, or summit
- like that! Just kidding guys. I'll
- be waffling on about BBC programming,
- but you know as well as I do that I'll
- end up rambling on about something
- else at the end of the article. I
- s'ppose just about everyone reading
- this mag has access to a crappy BBC
- micro in school. So, assuming this,
- here's a little program to impress yer
- mates with, if you have any that is.
- @6
- -=-=-=-
- @1
- Here's a rather rude division program,
- which should work. But seeing as I
-
-
-
-
- haven't used a BBC before, I can't be
- sure. But hey! It works on my
- Electron....
- @5
- 5 REM Another shyte program by
- Converse of A.F
- 10 DIM Q% 100
- 20 FOR I=0 TO 3 STEP 3
- 30 P% = Q%
- 40 [OPT I
- 50 .Start CLD
- 60 LDY # 8
- 70 .Loop ASL &72
- 80 ROL &73
- 90 LDA &73
- 100 BCC Label
- 110 SBC &71
- 120 STA &73
- 130 SEC
- 140 JMP Shift
- 150 .Label SEC
- 160 SBC &71
- 170 BCC Shift
- 180 STA &73
- 190 .Shift ROL &70
- 200 DEY
- 210 BNE Loop
- 220 RTS
- 230 ]
- 240 NEXT
- 250 INPUT "Numerator "numerator%
- 260 INPUT "Denominator "denominator%
- 270 P% = &71
- 280 [OPT 3
- 290 EQUB denominator%
- 300 EQUW numerator%
- 310 RTS
- 320 ]
- 330 CALL Start
- 340 Print "Quotient is ";?&70
- 350 Print "Remainder is ";?&73
- @1[7
- Yes, yes, yes! I know it's useless
- crap, but I'm a bit crap when it comes
- to programming.
- In the next issue of Beyond Chastity I
- will be showing you a rather rude
- Basic program which will stop nosey
- gits from being able to read your
- program, dead easy only a few
- lines.... Hang on... What's that I
- hear you say? Why don't I ever give
- programming listings in A.F? Err,
- probably cos I don't want to spoil our
- reputation and make us seem "clever".
- (even though we're not) It's strange
- writing for other mags, especially
-
-
-
-
-
-
-
-
-
-
-
- when you're only writing little art
- tickles. Well, I'll see you in the
- next issue.... maybe.