[A83] Re: Detecting strings in BASIC programs


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

[A83] Re: Detecting strings in BASIC programs




> Van: JCartmanSP@aol.com
> 
> I got that part already.  What I need to know is how to detect those
strings 
> to have them appear in a shell, like how Mirage detects the colon.

	ld	hl,prog_name
	rst	20h
	bcall(_chkfindsym)
	ex	de,hl	; HL = pointer to sizebytes
	inc	hl
	inc	hl	; sizebytes skipped
	ld	a,(hl)	; A = first byte of prog

Now check if A is the byte you want it to be... Also take a look at
asmguru, for reading the VAT directly.

	Henk Poley <><