1
ASM / unrecognised instruction
« on: September 22, 2013, 01:28:06 pm »
Hi there,
I tried to assemble a simple asm script with tasm. The code is litterally copied from a tutorial, so it should work.
this is the batch that should compile my program:
This is the example program:
I copied the ti83plus.inc from here:
http://www.brandonw.net/calcstuff/ti83plus.txt
And these are the errors I get whenever I try to assemble/compile the code:
I am sure the `variables` _CLRLCDFULL, _PUTS and _NEWLINE are defined in the included ti83plus.inc file. So, I think, B_CALL() is undefined, but I am too noobish in assembly to be sure about that.
Can somebody help me a bit with this issue?
greetings
EDIT:
ahw, I see this is an dublicate of:
http://ourl.ca/15212
(Is there a moderator that can delete this post?)
sorry, for not googling enough before posting ..
I tried to assemble a simple asm script with tasm. The code is litterally copied from a tutorial, so it should work.
this is the batch that should compile my program:
Code: [Select]
@echo off
echo ==== Compileert %1.z80 voor de TI-83+ of TI-84+. ====
tasm64 -80 -i -b c:\asm\source\%1.z80 c:\asm\exec\%1.bin
if errorlevel 1 goto FOUTEN
cd c:\asm\exec
c:\asm\tasm\devpac8x %1
cd c:\asm\tasm
echo ==== Klaar; het programma is opgeslagen in Exec\%1.8xp ====
goto KLAAR
:FOUTEN
echo ==== Fouten!!! ====
:KLAAR
del c:\asm\exec\%1.bin > NUL
echo ==== Klaar ====
This is the example program:
Code: [Select]
.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
I copied the ti83plus.inc from here:
http://www.brandonw.net/calcstuff/ti83plus.txt
And these are the errors I get whenever I try to assemble/compile the code:
Code: [Select]
c:\asm\Tasm>asm example
==== Compileert example.z80 voor de TI-83+ of TI-84+. ====
TASM Z80 Assembler. Version 3.2 September, 2001.
Copyright (C) 2001 Squak Valley Software
tasm: pass 1 complete.
c:\asm\source\example.z80 line 0007: unrecognized instruction. (B_CALL(
_CLRLCDFULL))
c:\asm\source\example.z80 line 0011: unrecognized instruction. (B_CALL(
_PUTS))
c:\asm\source\example.z80 line 0012: unrecognized instruction. (B_CALL(
_NEWLINE))
tasm: pass 2 complete.
tasm: Number of errors = 3
==== Fouten!!! ====
==== Klaar ====
I am sure the `variables` _CLRLCDFULL, _PUTS and _NEWLINE are defined in the included ti83plus.inc file. So, I think, B_CALL() is undefined, but I am too noobish in assembly to be sure about that.
Can somebody help me a bit with this issue?
greetings
EDIT:
ahw, I see this is an dublicate of:
http://ourl.ca/15212
(Is there a moderator that can delete this post?)
sorry, for not googling enough before posting ..