[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Issue compiling BASIC code
On Dec 2, 3:27 pm, Brian <bpic...@gmail.com> wrote:
> OK, so I'm using the Einstein compiler for a BASIC game I wrote this
> week. It compiles without any errors, but when I run the program, it
> crashes during certain actions (sometimes when a sound is initiated,
> sometimes when gosubbing to a subroutine, etc). I can see no issues
> with the code and in fact it works flawlessly when ran from BASIC
> without compiling it first. I also tried using another compiler,
> TASC, with similar results. I've written a few programs in the past
> and never experienced this. The only differences between those
> programs and this one is that I'm using shape tables here, but can't
> see why that would cause this. I also don't have an obscene number
> of nested gosubs or anything. Any ideas? Could I send the code to
> one of you to see what might be happening?
By the way, this is an HGR2 program. The code I was using for loading
the shapes is:
10 SCALE=1:ROT=0
20 SH = 25000:D$ = CHR$ (4)
30 PRINT D$;"BLOAD ORBSHAPES,A";SH
40 POKE 232,SH - INT (SH / 256) * 256:POKE 233, INT (SH / 256)
Is that the optimal location for it? Tweaking the "25000" value seems
to improve/make worse the crashing incidence.