'goto" gone from computer languages or is it!

lee davison leeedavison at yahoo.co.uk
Thu May 12 17:37:10 CDT 2005


>> Even BASIC has a call stack that will eventually overflow.

> On a 6502 (PET, Apple II...) it's not that deep because of
> the 1-page stack. ISTR about 5 levels of GOSUBs were possible
> before you ran the risk of stack overflow, but it might have
> been as deep as 8.

Assuming the stack is cleared by RUN then you can nest 40 to
50 levels of GOSUBs in most 6502 BAISCs.

FOR ... NEXT is the stack hog, you can usually only nest that
15 deep or less.

With C= BASIC you have lass room as the top 10 bytes or so of
the stack are reserved for float to ASCII conversion.

Lee.










.


	
	
		
___________________________________________________________ 
Yahoo! Messenger - want a free and easy way to contact your friends online? http://uk.messenger.yahoo.com


More information about the cctalk mailing list