Changes

Jump to: navigation, search

Tennis Cup 2 (cartridge)

311 bytes removed, 12:58, 1 February 2010
/* Analog Joystick */
cpl
ld (8082h),a ;; joy 0
 
push af
ld a,06h ;; keyboard line for joy 1
cpl
ld (8084h),a ;; pause?
 
pop bc
ld a,82h
out (c),c
260c 0e00 ld c,00h260e 3a0868 ld a,(6808h) ;; analogue input channel 02611 d61f sub 1fh2613 fe14 cp 14h2615 f21f26 jp p,261fh2618 feec cp 0ech261a fa2326 jp m,2623h261d 1806 jr 2625h 261f set 3,c ;; right jr 2625h 2623 set 2,c ;; left
261f cbd9 set 3,c ;; right2621 1802 jr 2625h 2623 cbd1 set 2,c ;; left  2625 3a0968 ld a,(6809h) ;; analogue input channel 12628 d61f sub 1fh262a fe14 cp 14h262c f23926 jp p,2639h262f feec cp 0ech2631 f23b26 jp p,263bh 2634 cbc1 set 0,c ;; up 2636 c33b26 jp 263bh 2639 cbc9 set 1,c ;; down  263b 3a8280 ld a,(8082h) ;; joy 0 fire.263e e610 and 10h2640 b1 or c2641 328580 ld (8085h),a
The keyboard is read to determine the state of the digital joysticks and the P button (pause button on gx4000 console).
2,541
edits