[TI ASM] Problems assembling

Got questions? Got answers? Go here for both.

Moderator: MaxCoderz Staff

Post Reply
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

[TI ASM] Problems assembling

Post by CompWiz »

I'm sure I'm doing something very simple wrong. I'm starting in on the asm in 28 days guide after doing some with the assembly programming basics guide a few months ago. I set up the folder exactly how the 28 days said to, but when I tried to assemble the hello world program, tasm gave me errors. I copied it directly out of the guide, so it wasn't a typing error. I then tried to compile the first program from assembly programing basics, and it assembled with no errors. However, devpack said that the file was not found. I didn't get any output. Here is the text of both programs, as well as a picture of the DOS output and the contents of the assembler folder.

28 days hello world program

Code: Select all

.nolist
#include "ti83plus.inc"
#define    ProgStart    $9D95
.list
.org    ProgStart - 2
    .db    t2ByteTok, tAsmCmp
    b_call(_ClrLCDFull)
    ld    hl, 0
    ld    (PenCol), hl
    ld    hl, msg
    b_call(_PutS)            ; Display the text
    b_call(_NewLine)
    ret

msg:
    .db "Hello world!", 0
.end
.end


assembly programming basics first program

Code: Select all

#define B_CALL(xxxx)	rst 28h \ .dw xxxx		;This defines the two macros, bcall and bjump
#define B_JUMP(xxxx)	call 50h \ .dw xxxx		;Don't worry about bjump too much because you won't you use it very often

_clrlcdfull		=4540h			;The calls we will be using are defined here
_homeup		=4558h

	.org	9D95h			;This tells the calculator that the program will start at the mem adress 9D95h

	B_CALL(_homeup)		;Bringing up the home screen
	B_CALL(_clrlcdfull)				;Clearing the screen
	ret				;Returning to TI-OS
.end					;End of program
END

Image

Image
In Memory of the Maxcoderz Trophy Image
User avatar
Jim e
Calc King
Posts: 2457
Joined: Sun 26 Dec, 2004 5:27 am
Location: SXIOPO = Infinite lives for both players
Contact:

Post by Jim e »

That first program needs the macro B_CALL defined.

For your second program, it didn't find the output from tasm, so if you could show the contents of the batch file that would help.
Image
threefingeredguy
Calc King
Posts: 2195
Joined: Sun 27 Mar, 2005 4:06 am
Location: sleeping
Contact:

Post by threefingeredguy »

You could also use Spasm+Wabbit. My batchfile for that is [quote="MakeSSP.bat]assembler ssptwo.z80 ssptwo.bin
wabbit ssptwo.bin ssptwo.8xp[/quote]and I am thinking about adding a line to send it to PindurTI. Then you don't have to worry about many of tasm's problems.

Your problem though is that Sigma uses a different include file. Try "bcall" instead of "B_CALL".
Image
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

Post by CompWiz »

ok, I got the hello world program working, thanks. :) changing the B-CALL to bcall did it.

Isn't wabbit for apps only?

Does anyone know where I can find the latest version of latenite?
In Memory of the Maxcoderz Trophy Image
User avatar
NanoWar
Extreme Poster
Posts: 365
Joined: Fri 17 Dec, 2004 6:39 pm
Location: #$&"%§!
Contact:

Post by NanoWar »

Wabbit is also a devpack replacement and can produce .8xp files.

Scan the Latenite thread for a link.
Revolution Software
User avatar
kv83
Maxcoderz Staff
Posts: 2735
Joined: Wed 15 Dec, 2004 7:26 pm
Location: The Hague, Netherlands
Contact:

Post by kv83 »

Does anyone know where I can find the latest version of latenite?
You may want to wait a few days, since a new version is on the move i believe. It will fix quite a few "minor" bugs in it. If you can't wait, you'll find it in the LateNite thread somewhere on the last 5 pages iirc
Image
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

Download for Latenite is here; http://benryves.com/bin/latenite/
Contains very outdated version of Brass + templates, so (as kv suggested) probably best to stick to Notepad for the moment until I get the 1.0.6.0 released.

If you use Brass, chuck .binarymode ti8x somewhere in your source then asseble with "Brass <sourcefile.asm>", and it'll spit out a .8xp.
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

Post by CompWiz »

Ok, I'll stick with notepad until the new version of latenite comes out. :) Thanks all.
In Memory of the Maxcoderz Trophy Image
Liazon
Calc Guru
Posts: 962
Joined: Thu 27 Oct, 2005 8:28 pm

Post by Liazon »

CompWhiz: check to make sure you have the latest version of ti83plus.inc. Some of the old versions screw up TASM32
Image Image Image
User avatar
benryves
Maxcoderz Staff
Posts: 3087
Joined: Thu 16 Dec, 2004 10:06 pm
Location: Croydon, England
Contact:

Post by benryves »

The official version won't work either unless you add a "#define EQU .equ" in there, delete half of the labels (it contains two copies of each label, one in mixed case, one in lower case) and delete all the macros it has defined in it (which are ZDS syntax). Look around on ticalc.org for devpacks containing a TASM-converted include file (or use something like Dwedit's include file, which is also TASM friendly).
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

Post by CompWiz »

yeah, I downloaded the one that said it was set up for tasm. :)
In Memory of the Maxcoderz Trophy Image
Post Reply