[Slackers] New slangb1.20 up
Jaymz Julian
jaymz at artificial-stupidity.net
Wed May 31 06:10:01 CDT 2006
On Tue, May 30, 2006 at 01:27:38PM -0600, Steve Judd wrote:
> Hey Jaymz,
>
> > Hrm, sadly I can't get this to output validly linked code - the jsr into no
> > mans land still appears at the multiply point :(. But I find myself wondering
> > if I need a new version of core.l
>
> Ah, sorry, should have included that. Try this one:
>
> http://www.ffd2.com/fridge/slang/coretest.zip
>
> I just recompiled CORE.I.S and used that. There's also a stupid demo
> program in there to make sure it's not doing JSR 0000 anymore.
No go. Same result exactly:
.C:5b72 A9 00 LDA #$00
.C:5b74 8D 91 74 STA $7491
.C:5b77 A9 00 LDA #$00
.C:5b79 8D 92 74 STA $7492
.C:5b7c A9 0A LDA #$0A
.C:5b7e CD 91 74 CMP $7491
.C:5b81 A9 00 LDA #$00
.C:5b83 ED 92 74 SBC $7492
.C:5b86 30 4A BMI $5BD2
.C:5b88 AE 91 74 LDX $7491
.C:5b8b BD CC 71 LDA $71CC,X
.C:5b8e 85 02 STA $02
.C:5b90 AD 91 74 LDA $7491
.C:5b93 85 69 STA $69
.C:5b95 AD 92 74 LDA $7492
.C:5b98 85 6A STA $6A
.C:5b9a A9 18 LDA #$18
.C:5b9c 85 6B STA $6B
.C:5b9e A9 00 LDA #$00
.C:5ba0 85 6C STA $6C
.C:5ba2 20 94 96 JSR $9694 <----- right here
.C:5ba5 18 CLC
.C:5ba6 A5 69 LDA $69
.C:5ba8 69 0D ADC #$0D
.C:5baa 8D 00 10 STA $1000
.C:5bad A5 6A LDA $6A
.C:5baf 69 00 ADC #$00
.C:5bb1 18 CLC
from the slang compiler output:
:1b72 sub initTables()
:1b72 SetZpTemp mainZp
:1b72 int x
:1b72 ubyte y
:1b72 a9 00 8d 91
:1b76 34 a9 00 8d
:1b7a 92 34 a9 0a
:1b7e cd 91 34 a9
:1b82 00 ed 92 34
:1b86 30 4a for+ x=0:(mazeWidth-1)
:1b88 ae 91 34 bd
:1b8c cc 31 85 02
:1b90 ad 91 34 85
:1b94 69 ad 92 34
:1b98 85 6a a9 18
:1b9c 85 6b a9 00
:1ba0 85 6c 20 72 <-- the '20 72 1b' here corrisponds to the '20 94 96' above, after linking...
:1ba4 1b 18 a5 69
:1ba8 69 0d 8d 00
:1bac 10 a5 6a 69
:1bb0 00 18 8d 01
:1bb4 10 ad 00 10
:1bb8 69 1f a6 02
:1bbc 9d d7 31 ad
:1bc0 01 10 69 00
:1bc4 9d d8 31 xtable(x)=x*24+13+31
:1bc7 ee 91 34 d0
:1bcb 03 ee 92 34
:1bcf 4c 7c 1b endfor
I have no idea, btw, what is causing this :). Note that 'mazeWidth' above is
an equ, btw. I don't remember if slang optimizes that out or not :). I
zipped the code, btw, that generates this and put it at
http://dspaudio.com/~jaymz/wor-broken.zip. All of this with the latest beta,
and the new core.l.
--jj
--
--
Jaymz Julian - Coder, Visionary, Fat Ass.
"Hannibal is a serial killer. He only likes to kill and eat people.
Very few people have `I want to be killed and eaten' on their cards,
so Hannibal is out of a job." - http://cards.sf.net
More information about the Slackers
mailing list