can sombody make a hello world tutorial for BRASS
Moderator: MaxCoderz Staff
can sombody make a hello world tutorial for BRASS
I am having trouble with all asm efforts and am looking to just be able to get something to compile. (in any compiler for any emu/real calc) so if I could get something very, very specific to, say for instance, just display hello world in brass/latenite, Id be most happy.
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
- Run Latenite.
- Select TI-8x Program, and type "Hello" in the name field. Click 'Create New Project'.
- Double-click 'Program.asm' on the right hand side. This will open up the source file for editing.
The program will start at the "Main" label, regardless of shell options. So, your code should come after Main. The 'ret' returns back to the shell afterwards, ending program execution.
Modify the code so that it looks like this:
Code: Select all
; ===============================================================
; Hello
; ===============================================================
.module Program
.export
Main
; Program entry point
xor a
ld (curCol),a
ld (curRow),a
ld hl,HelloString
bcall(_PutS)
bcall(_GetKey)
ret
HelloString
.db "Hello, world!", 0
.endmodule
Hit F6 and the following should appear (it gets faster after you've run Brass for the first time):
Code: Select all
------ Building: Source File: Headers.asm, Script: TI-83 Plus (Ion).cmd ------
Brass Z80 Assembler 1.0.4.7 - Ben Ryves 2005-2006
-------------------------------------------------
Assembling...
Pass 1 complete. (81ms).
Pass 2 complete. (29ms).
Writing output file...
Warning: The TIOS gets confused with variable names containing lowercase characters ('Hello').
Errors: 0, Warnings: 1.
Writing error log...
Writing debug log...
Writing list file...
Done!
------ Build Process Complete ------
========== Build: 0 errors, 1 warning ==========
If you expand the Bin folder, you should now see "Hello - TI-83 Plus (Ion).8xp" which would run under Ion on your calculator.
To run the program in PTI easily, press F5. You must have an 83+ ROM renamed to ti8x.rom - located at Debug\PindurTI\ROMs\ti8x.rom - to run this, though.
Let me know how you get on!
sure...can I get an email adress? I can't figure out why programs I compile with it don't seem to work even though they ressble tasm compiled programs I have gottent to work. out of couriosisty, why inst there a straight build option where the headers and all are just the same way that tasm does it?
I would like to suggest heading over to revsoft and trying out SPASM.necro wrote:sure...can I get an email adress? I can't figure out why programs I compile with it don't seem to work even though they ressble tasm compiled programs I have gottent to work. out of couriosisty, why inst there a straight build option where the headers and all are just the same way that tasm does it?
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
Try the (email) button under the post.necro wrote:sure...can I get an email adress?
Neither can I. I'm puzzled!I can't figure out why programs I compile with it don't seem to work even though they ressble tasm compiled programs I have gottent to work.
If you look at the size of the header file's code, you'd notice that there's a lot of it (declaring character mapping, adding in icons/descriptions, even putting on a footer for 83 programs). At least this way breaks the code away from the headers.out of couriosisty, why inst there a straight build option where the headers and all are just the same way that tasm does it?
There's nothing stopping you from doing it the TASM way, though. Create a new project, open the main source file, nuke all the template code from it (the "Main" bit), then go File->Project Properties and select it as the file to build instead of Headers.asm.
- benryves
- Maxcoderz Staff
- Posts: 3087
- Joined: Thu 16 Dec, 2004 10:06 pm
- Location: Croydon, England
- Contact:
I'm afraid not. :\ If you didn't put in a subject line (or a non-descriptive one) chances are it was removed as spam. (I have to sort through ~200 emails every morning, so be kind). Unless you're sending from a linuxmail.org or .jp domain, that is, where it'll be deleted before it even gets to my inbox...necro wrote:So, um, did you recieve them?
One recommendation. DO NOT use TASM compiled source with SPASM. It will create a world beyond frustration for you. Or the other way around DO NOT use SPASM compiled source with TASM. So if working with someone on a project make sure you both have a copy of the same compiler. I was devasted when this happened to me and I tried to compile my source that compiled fine with TASM on SPASM and got 311 errors. I was like O.o
- Jim e
- Calc King
- Posts: 2457
- Joined: Sun 26 Dec, 2004 5:27 am
- Location: SXIOPO = Infinite lives for both players
- Contact:
Thats REALLY odd. Theres only 2 or 3 things different from my understanding, the most damaging being .org.Halifax wrote:One recommendation. DO NOT use TASM compiled source with SPASM. It will create a world beyond frustration for you. Or the other way around DO NOT use SPASM compiled source with TASM. So if working with someone on a project make sure you both have a copy of the same compiler. I was devasted when this happened to me and I tried to compile my source that compiled fine with TASM on SPASM and got 311 errors. I was like O.o
-
- Calc King
- Posts: 2195
- Joined: Sun 27 Mar, 2005 4:06 am
- Location: sleeping
- Contact: