Brass - 1.0.5.3 update [06/02/2014]
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
- KermMartian
- Calc Wizard
- Posts: 549
- Joined: Tue 05 Jul, 2005 11:28 pm
- Contact:
I've been curious for a while, with support for tabbed forward labels, what happens if a mnemonic is misspelled? For exampleWouldn't this create a label by the name of "rte"?
Code: Select all
routine
add a,10
rte
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
hey ben, you know that app tutorial at the brass online manual..
it got me this error:
http://www.freewebs.com/lawcompany/apptest.PNG
am i forgetting something?
it got me this error:
http://www.freewebs.com/lawcompany/apptest.PNG
am i forgetting something?
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
- benryves
- Maxcoderz Staff
- Posts: 3089
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Er, wait, of course.
You're using the Latenite template for programs - this inserts all sorts of stuff into the file, like the AsmPrgm token and so on. Apps don't have any of that stuff in them whatsover.
As you are redefining page 0 after this stuff has been output (onto page 0), it gets confused.
Edit the project properties to compile Program.asm instead of Includes/Headers.asm. Copy and paste the "define bcall..." stuff for the 83+ into Program.asm. Add .inclabels "Headers/ti8x.lbl". Er... that might work.
EDIT: To clarify, when Brass assembles the project, it assembles Includes/Headers.asm first, which in turn includes ../Program.asm - this is where all these problems are coming from.
You're using the Latenite template for programs - this inserts all sorts of stuff into the file, like the AsmPrgm token and so on. Apps don't have any of that stuff in them whatsover.
As you are redefining page 0 after this stuff has been output (onto page 0), it gets confused.
Edit the project properties to compile Program.asm instead of Includes/Headers.asm. Copy and paste the "define bcall..." stuff for the 83+ into Program.asm. Add .inclabels "Headers/ti8x.lbl". Er... that might work.
EDIT: To clarify, when Brass assembles the project, it assembles Includes/Headers.asm first, which in turn includes ../Program.asm - this is where all these problems are coming from.
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am
i thought it might be that, but i thought it would just stuff the asmprgm token into the program and set some equates and that sort of stuff, but i'll stop confusing brass and do it the right way.
edit: wow i've never been this clever, i made a new header file for apps all by myself!! (lol there's hardly anything in it but still..)
even better is that I came to understand hooks today, but i just copied the the stuff to saferam and set it up there (like ld hl,appbackupscreen \ in a,(6) \ bcall(_EnableRawKeyHook) )
edit: wow i've never been this clever, i made a new header file for apps all by myself!! (lol there's hardly anything in it but still..)
even better is that I came to understand hooks today, but i just copied the the stuff to saferam and set it up there (like ld hl,appbackupscreen \ in a,(6) \ bcall(_EnableRawKeyHook) )
-
- Calc King
- Posts: 1513
- Joined: Sat 05 Aug, 2006 7:22 am