0 Members and 2 Guests are viewing this topic.
Hmmm, so maybe it has something to do with the total size of the program?
In other news, Frey continues kicking unprecedented levels of ass.
Okay, I'm sure that this is just stupidity on my part, but I just can't see a bug in this.Axe 1.0.5Code: [Select].ZAText(0,0,F(5,6)>Dec)Text(50,0,F(6,5)>Dec)Text(0,10,F((6-1),(6+1))>Dec)Text(50,10,F(6,6)-1>Dec)Text(0,20,F(6,(5+4))>Dec)Text(50,20,F(6,5)+F(6,4)>Dec)Pause 5000Lbl Fr1*r2+r1+r2ReturnCompiling halts at 57% during the first pass -- error message: "WRONG # OF ARGS".Pressing [pgrm] jumps to the sixth 'Text'Code: [Select]Text(50,20,F(6,5)+F(6,4)>Dec) ^(In case anybody was wondering, I was brute-forcing a solution to an SAT problem (in my defense, I was feeling too tired to be clever)).
.ZAText(0,0,F(5,6)>Dec)Text(50,0,F(6,5)>Dec)Text(0,10,F((6-1),(6+1))>Dec)Text(50,10,F(6,6)-1>Dec)Text(0,20,F(6,(5+4))>Dec)Text(50,20,F(6,5)+F(6,4)>Dec)Pause 5000Lbl Fr1*r2+r1+r2Return
Text(50,20,F(6,5)+F(6,4)>Dec) ^
Pick that post back up and take it right on over to the bug reports thread, because that's definitely Axe's fault, not yours. It's treating +F as adding the variable F instead of noticing the opening parenthesis immediately following it and treating it as adding the return value of a function.
I found freyadays bug, it was in his code and not in Axe
#include "Axe.inc".dw AXM_HEADER.dw 3.db AXM_ALL.dw tok_Load.db AXM_INLINE.db AXM_1ARG call sub_Axiom2.dw 1.db AXM_ALL.dw 0.db AXM_SUB.db AXM_0ARGS ret.dw 0
:.AA:#Axiom(AXM):Pic0:Load():Data(255)->Pic0
:.BB:#Axiom(AXM):Data(255)->Pic0:Pic0:Load()
ld hl,$9d9c call $9d9c ret ret .db $ff
ld hl,$9d9c call $9d9d ret .db $ff ret
Copy(L₆,GetCalc("Pic0"),756)
ld hl,plotSScreen push hl ld hl,Pic0 call p_GetCalc push hl ld hl,756 pop de ex (sp),hl pop bc ldir retp_GetCalc: ; ...Pic0: .db PictObj,tVarPict,tPic0
ld hl,plotSScreen push hl ld hl,Pic0 call p_GetCalc push hl ld hl,756 pop de ex (sp),hl pop bc .db $ed ; ???p_GetCalc: ; ...Pic0: .db PictObj,tVarPict,tPic0
jacobly, what do you mean by that? Do you mean it doesn't display correctly? How do you think it should be displayed? o.O
In the mean time, "LA" can be replaced with [015D]"A".