-->
Data() and appvars
-->
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
-->
Home
About
Team
Rules
Stats
Status
Sitemap
Chat
Downloads
Forum
News
Our Projects
Major Community Projects
Recent Posts
Unread Posts
Replies
Tools
SourceCoder3
Other Things...
Omnimaga Radio
TI-83 Plus ASM File Unsquisher
Z80 Conversion Tools
IES TI File Editor
Free RAM areas
Comprehensive Getkeyr table
URL Shortener
Online Axe Tilemap Editor
Help
Contact Us
Change Request
Report Issue/Bug
Team
Articles
Members
View the memberlist
Search For Members
Buddies
Login
Register
Omnimaga
»
Forum
»
Calculator Community
»
TI Calculators
»
Axe
(Moderator:
Runer112
) »
Data() and appvars
« previous
next »
Print
Pages:
1
[
2
]
Go Down
Author
Topic: Data() and appvars (Read 7246 times)
0 Members and 1 Guest are viewing this topic.
dinosteven
LV4
Regular (Next: 200)
Posts: 194
Rating: +10/-1
Re: Data() and appvars
«
Reply #15 on:
July 21, 2012, 06:17:10 pm »
Why did everything turn into a 0? It's probably because of the line
:Copy(GDB1,A,64)
But how can I fix this?
Logged
Nick
LV9
Veteran (Next: 1337)
Posts: 1166
Rating: +161/-3
You just got omnom'd
Re: Data() and appvars
«
Reply #16 on:
July 21, 2012, 06:39:51 pm »
i'm not into axe, but it sound like S is only an integer (1 byte, 8 bits) zo that it can only hold one value at a time, and not an array of values.
by copying everything to S, you overflow it, and corrupt the data after the memory address of S
(that's what i think it is)
Logged
Deep Toaster
So much to do, so much time, so little motivation
Administrator
LV13
Extreme Addict (Next: 9001)
Posts: 8217
Rating: +758/-15
Re: Data() and appvars
«
Reply #17 on:
July 21, 2012, 06:41:35 pm »
Before you do anything else, I'd recommend you clear your RAM then try again. Sounds like you've corrupted your RAM somewhere along the way (better get used to it
), so it'd be better to start again on a clean slate.
Your code works fine for me. Why not update Axe to
the latest version
first? There are always lots of bugfixes between versions.
EDIT:
Can you post your new code? I don't understand what you mean by replacing GDB1 with S.
«
Last Edit: July 21, 2012, 06:43:21 pm by Deep Thought
»
Logged
Runer112
Project Author
LV11
Super Veteran (Next: 3000)
Posts: 2289
Rating: +639/-31
Re: Data() and appvars
«
Reply #18 on:
July 21, 2012, 06:47:22 pm »
In Axe 1.0.0, a new optimization system was added: a peephole optimizer. Unfortunately, with it came quite a few bugs in its initial and few following releases of Axe. Axe 1.0.5 is one version which has a few bugs, one of which affects any program that contains a
Copy()
command for which the third argument is a constant (in this case, 64).
The best way to fix this would be to upgrade to the latest version of Axe:
1.1.2
. Alternatively, you can fix this temporarily by disabling the peephole optimizer when compiling by pressing ZOOM to compile your program from Axe's list of source programs to compile instead of pressing ENTER.
Logged
dinosteven
LV4
Regular (Next: 200)
Posts: 194
Rating: +10/-1
Re: Data() and appvars
«
Reply #19 on:
July 21, 2012, 06:55:29 pm »
Yes! After an update to Axe v 1.1.2, RAM clearing, compiling, and running, the error message disappeared.
Thanks for all the help!
Logged
Deep Toaster
So much to do, so much time, so little motivation
Administrator
LV13
Extreme Addict (Next: 9001)
Posts: 8217
Rating: +758/-15
Re: Data() and appvars
«
Reply #20 on:
July 21, 2012, 07:24:35 pm »
You know, I've been wondering why so many new members seem to start at Axe 1.0.5... Seems like that's the version at ticalc.org:
http://www.ticalc.org/archives/files/fileinfo/428/42813.html
Someone needs to fix that
Logged
leafy
CoT Emeritus
LV10
31337 u53r (Next: 2000)
Posts: 1554
Rating: +475/-97
Seizon senryakuuuu!
Re: Data() and appvars
«
Reply #21 on:
July 21, 2012, 10:24:40 pm »
I would, but they rejected The Mighty Jill Off
Logged
In-progress: Graviter (...)
parserp
Hero Extraordinaire
LV10
31337 u53r (Next: 2000)
Posts: 1455
Rating: +88/-7
The King Has Returned
Re: Data() and appvars
«
Reply #22 on:
July 21, 2012, 10:34:38 pm »
What does that have to do with updating Axe? And I thought only the original author could update their programs?
Logged
ticalc.org
|
Cemetech
|
TI-Freakware
|
casiocalc.org
Print
Pages:
1
[
2
]
Go Up
« previous
next »
Omnimaga
»
Forum
»
Calculator Community
»
TI Calculators
»
Axe
(Moderator:
Runer112
) »
Data() and appvars
\n\t\t\t\t\t\t\t\t\t
<' + '/div>\n\t\t\t\t\t\t\t\t\t
%body%<' + '/textarea>
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
Max characters: 20000; characters remaining:
...<' + '/span><' + '/span>
\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t<' + '/div>\n\t\t\t\t\t\t\t\t<' + '/div>', sTemplateSubjectEdit: '
', sTemplateBodyNormal: '%body%', sTemplateSubjectNormal: '
%subject%<' + '/a>', sTemplateTopSubject: 'Topic: %subject% (Read 7246 times)', sErrorBorderStyle: '1px solid red' }); aJumpTo[aJumpTo.length] = new JumpTo({ sContainerId: "display_jump_to", sJumpToTemplate: "
Jump to:<" + "/label> %dropdown_list%", iCurBoardId: 162, iCurBoardChildLevel: 1, sCurBoardName: "Axe", sBoardChildLevelIndicator: "==", sBoardPrefix: "=> ", sCatSeparator: "-----------------------------", sCatPrefix: "", sGoButtonLabel: "go" }); aIconLists[aIconLists.length] = new IconList({ sBackReference: "aIconLists[" + aIconLists.length + "]", sIconIdPrefix: "msg_icon_", sScriptUrl: smf_scripturl, bShowModify: true, iBoardId: 162, iTopicId: 16607, sSessionId: "e6ba467136c5c5c41174f33b70fe5397", sSessionVar: "fb31c6c76", sLabelIconList: "Message Icon", sBoxBackground: "transparent", sBoxBackgroundHover: "#ffffff", iBoxBorderWidthHover: 1, sBoxBorderColorHover: "#adadad" , sContainerBackground: "#ffffff", sContainerBorder: "1px solid #adadad", sItemBorder: "1px solid #ffffff", sItemBorderHover: "1px dotted gray", sItemBackground: "transparent", sItemBackgroundHover: "#e0e0f0" }); } function tick2() { if (typeof(document.forms.quickModForm) != "undefined") { calcCharLeft2(); setTimeout("tick2()", 1000); } else setTimeout("tick2()", 800); } function message_onkeyup() { if (typeof(document.forms.quickModForm) != "undefined" && typeof(document.forms.quickModForm.message) != "undefined") { document.forms.quickModForm.message.onkeyup = function onkeyup(event) { storeCaret(this); calcCharLeft2(); }; } else setTimeout("message_onkeyup()", 800); } message_onkeyup(); function calcCharLeft2() { var maxLength = 20000; var oldEditor = "", currentEditor = document.forms.quickModForm.message.value; if (!document.getElementById("editorLeft2")) return; if (oldEditor != currentEditor) { oldEditor = currentEditor; if (currentEditor.replace(/\r/, "").length > maxLength) document.forms.quickModForm.message.value = currentEditor.replace(/\r/, "").substring(0, maxLength); currentEditor = document.forms.quickModForm.message.value.replace(/\r/, ""); } setInnerHTML(document.getElementById("editorLeft2"), maxLength - currentEditor.length); } // ]]>-->