Download Issue 10 June 1980

Transcript
o
7cB
4ooo
CA
OOEE
cc
2250
CE
7
0 2D0
20r
L2C2
; sK/o
;RETN -- PUNDER, POVER, and PFLO return here
ONECH -iY2+I --
PFtOl
EE
CHAR STRINGS
OZDZ
D8
DE
OVER z ol+o7 o2O5 OOoo -- Uses a
UNDER; O6O3 OLOT 0500
code
I'1,0
r,
o8o9
o4oo
INIT
special non-ASCII
for this program
only
.
L]NE
-- Do sub. Scrol-l- up one line
-- Set X coordinate=/ (feftl
6D38 ;VD=J8 -- Set Y coordinate=38 (bottom)
00EE iRETN -- Return from subroutine
O2E2 ILIIYEt 221t4 SCRIC
E&
6000 iVC=gl
n6
EB
SHOW STACK
EA STACK z 22Ez ILINE -- Reset VC,VD and scroll up
EC
BEAO
Save stack pointer in VE
rVE=VA
EE
POP
2232
-- P op an item from the staek
0 2F0
;SK 0K -- If flag not s et , then skip
3Fo0
F2
Else done. Go reset and exit "
tZsc STAC2
F-
-F
r sHohl
ONE NUMBER
F4
F6
F0
F'B
7c05
FA
1zEE
zg
I -- I addresses ROM bits for Vil value
Displ ay the LSD of Vfl
Add 5 toXcoordinate
;VC+5
STAC 1
Go l-oop until done
;SET
r SHOW
;RESET STACK
FC STAC?: BAEO
FE
OOEE
;
saved value in VE
stack shown on dlsplay
VA from
-- RestoreE-
TRETN -- Return
IVIACHII\E LANGUAGE SCROLL SUB
o4oo
gB
0
00
410
;VA=VE
BE BF FB OO AE FB OB AF 4n 5E 1E BF 3A og FB
5E 1E BE 3A oF D4 00 00 00 00 00 00 00 00 00
ANSWERS TO LAST MONTHIS
IITTLE
LOOPS
f) The best place to enter a timing loop, slowing the CHIP-B
prirne number prograrn to a respectabl-e rate is not in the SHOW
PnfUn (SHOPR)-suu" The purpose of this questi-6fr-was to inspire
you to dig into the l-isting. At address O254, and only therer w€
can be sure that V4 is prime. Entering a loop at that: point wil-ldelay showing each prime number by as much as you want. The
fol-l-owing will do the job:
0 2 ,LO , L 9