Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.sys.apple2    |    Discussion about Apple II micros    |    56,720 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 56,177 of 56,720    |
|    Wyatt Wong to martindo...@gmail.com    |
|    Re: Routine to detect CPU type (was Re:     |
|    25 May 23 12:25:27    |
      From: wyattwongtf@gmail.com              On Wednesday, 10 May 2023 at 02:43:21 UTC+8, martindo...@gmail.com wrote:       > On Tuesday, May 9, 2023 at 12:47:06 PM UTC-4, Wyatt Wong wrote:        > > On Sunday, 3 December 2000 at 20:12:04 UTC+8, David Empson wrote:       > [snip]       > > > Here is a BASIC subroutine to implement the above routine.        > > > 6000 REM IDENTIFY THE PROCESSOR       > [snip]        > > > 6060 RETURN        > [snip]       > >        > > 2. In the BASIC Program, line 6060 should be END instead of RETURN. Since       there is NO GOSUB statement, the original line 6060 RETURN will generate an       error.       > Wyatt, I think David's BASIC code is OK because it's presented as a       subroutine and is not intended to run as a stand-alone program. I agree that       if you want to exercise the code stand-alone, you would need to either change       RETURN to END, or add a line        on the front like 10 GOSUB 6000 : END              It is ***YOUR*** assumption that David's BASIC code is presented as a       subroutine. But It does NOT mean that EVERYONE who read his message will get        the SAME impression at all.              I simply mentioned that changing line "6060 RETURN" into "6060 END" will NOT       generate error when execute the code. For those who incorporate David's code       as part of their BASIC program, they can simply ignore what I suggest.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca