[A83] Re: program size


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

[A83] Re: program size




> Van: Darkfire139@aol.com
>
> Sure... In Ion and Mirage, it displays how big a program is in bytes,
usually 
> between 500 and 11000. If you have it on your calc (83+), you can press
2nd, 
> Mem(+ sign), 2 then 7. This will display all of the progs on your calc,
and 
> the number next to each prog is the size in bytes.
> 
> > Could somebody tell me how (where) I can find the program size in
bytes, in 
> > assembly???

I guess he probably wants to know this:

	ld	hl,namestring	; (HL) = name of prog
	bcall(_chkfindsym)	; looks up prog
	; (DE) = sizebytes
	; (HL) = VAT entry
	ex	de,hl		; HL now points to sizebytes
	bcall(_ldhlind)		; HL contains size of program

namestring:
	.db $05,"BLAH"