[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Apple II!" on a ROM 3



Rather than disassembling SysFailMgr as Steve suggested,
I think what I did was use Nifty List to search the
ROM for certain Sound Toolset calls.
Like fc/0.ff/ffff\find [A2 #ffstartsound] I think.
(Yep, just tried it, it returns fe/803.)
 
Anyway, here's the code/data to a _simple_ program
to dump the data to disk:
 
;
	mcopy	aii.mac
 
; look in bank FE, around 7F0 for the parameter blocks
; The code to play the Apple II yell is at FE/07C6.
; The parameter block is at FE/080C.
 
part1_loc	gequ	$FF1000
part1_size	gequ	$0C00
part2_loc	gequ	$FF1D00
part2_size	gequ	$1F00
 
main	start
 
	phk
	plb
 
	_CreateGS crt
	bcs	err
	_OpenGS op
	bcs	err
	lda	opref
	sta	wrref1
	sta	wrref2
	sta	clref
	_WriteGS wr1
	bcs	err
	_WriteGS wr2
	bcc	end
 
err	_SysBeep
end	anop
	_CloseGS cl
	_QuitGS quitrec
	_SysBeep
quitrec	dc	i2'0'	;hit break if error from QuitGS
 
;D8 = sampled sound
;3 = sound resource file
;C3 = normal access
 
crt	dc	i2'2'
	dc	i4'path'
	dc	i2'$C3'
 
op	dc	i2'3'
opref	ds	2
	dc	i4'path'
	dc	i2'2'	;write
 
wr1	dc	i2'4'
wrref1	ds	2
	dc	i4'part1_loc'
	dc	i4'part1_size'
	ds	4
 
wr2	dc	i2'4'
wrref2	ds	2
	dc	i4'part2_loc'
	dc	i4'part2_size'
	ds	4
 
cl	dc	i2'1'
clref	ds	2
 
path	dc	i2'pathend-path-2'
	dc	c'8:Apple.II.yell'
pathend	anop
 
	end

--
 -- Jay, j.krell@cornell.edu