;
; Adjacent Ropes patch (second try)
;
; Change all IX+9 references to IX+6
; Change all IX+11 (bit 0) references to IX+0 (bit 5)
;

;; Testing code is commented out like this.

;; Move Willy's start room closer to the Beach, for ease of debugging
;;	org	87EBh
;;	defb	53

	org	92A8h
	ld	(ix+6),0
	
	org	92CCh
	ld	a,(ix+6)

	org	92D2h
	set	5,(ix+0)
	cp	(ix+6)
	jr	nz,930Eh
	bit	5,(ix+0)

	org	9313h
	ld	a,(ix+6)

	org	9350h
	ld	a,(ix+6)
	cp	(ix+4)
	jr	z,935Eh
	inc	(ix+6)

	org	9369h
	res	5,(ix+0)
	jr	93B3h
	bit	5,(ix+0)
;
; Sample data for testing:
;
;;	org	0A00Ch
;;	defb	12	;Shorten the ropes so they don't bump into things

;;	org	0FAF0h	;Put 3 ropes in the Beach
;;	defb	1,8, 1,16, 1, 24, 0FFh

	end	
