killbits.pdf

(6 KB) Pobierz
KILLBITS.PRN
;
;
;
;
;
;
;
;
;
0000
0000
0003
0005
0008
0009
000A
000B
000C
000D
0010
0012
0013
0014
0015
0018
210000
1680
010E00
1A
1A
1A
1A
09
D20800
DBFF
AA
0F
57
C30800
Kill the Bit game by Dean McDaniel, May 15, 1975
Object: Kill the rotating bit. If you miss the lit bit, another
bit turns on leaving two bits to destroy. Quickly
toggle the switch, don't leave the switch in the up
position. Before starting, make sure all the switches
are in the down position.
org
lxi
mvi
lxi
ldax
ldax
ldax
ldax
dad
jnc
in
xra
rrc
mov
jmp
end
0
h,0
d,080h
b,0eh
d
d
d
d
b
beg
0ffh
d
d,a
beg
;initialize counter
;set up initial display bit
;higher value = faster
;display bit pattern on
;...upper 8 address lights
;increment display counter
;input data from sense switches
;exclusive or with A
;rotate display right one bit
;move data to display reg
;repeat sequence
beg:
Here is the program in octal for easier entry into the Altair:
000: 041 000 000 026 200 001 016 000
010: 032 032 032 032 011 322 010 000
020: 333 377 252 017 127 303 010 000
Page 1
Zgłoś jeśli naruszono regulamin