User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Assembly section within the Software Development category of DaniWeb, a massive community of 456,417 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,606 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Assembly advertiser: Programming Forums
Views: 1121 | Replies: 3
Reply
Join Date: Apr 2007
Posts: 1
Reputation: AsmNewb is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
AsmNewb AsmNewb is offline Offline
Newbie Poster

Need help please

  #1  
Apr 8th, 2007
I used a guide from Ticalc.org. ANd the assembler gave me this code, could someone please tell me what's wrong? I have all the requirements that are required for TASM.

Heres the error that MS-DOS had given me.

C:\ASM\TASM>asm hello
==== Now assembling hello.z80 for the TI-83 Plus ====
TASM Z80 Assembler. Version 3.2 September, 2001.
Copyright (C) 2001 Squak Valley Software
tasm: pass 1 complete.
c:\asm\source\hello.z80 line 0006: Label not found: (t2ByteTok)
c:\asm\source\hello.z80 line 0006: Label not found: (tAsmCmp)
c:\asm\source\hello.z80 line 0007: unrecognized instruction. (B_CALL(_CLRLCDFULL))
c:\asm\source\hello.z80 line 0011: unrecognized instruction. (B_CALL(_PUTS))
c:\asm\source\hello.z80 line 0012: unrecognized instruction. (B_CALL(_NEWLINE))
tasm: pass 2 complete.
tasm: Number of errors = 5
==== Errors!!! ====
==== Done ====

Here's the original code of the asm program.

.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


---Thanks.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2007
Posts: 6
Reputation: uaefame is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
uaefame's Avatar
uaefame uaefame is offline Offline
Newbie Poster

Re: Need help please

  #2  
Apr 8th, 2007
Hey dude i recommend you to start HLA more documentation are around ... but if u want to continue with this... i guess wait for an expert...i started HLA ... therefore anyone who done any HLA program can PM me about anything... i am still chapter 2...
Help me now i help the new generation
Reply With Quote  
Join Date: Sep 2008
Posts: 2
Reputation: codehound is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
codehound codehound is offline Offline
Newbie Poster

b_call(...) error

  #3  
Sep 2nd, 2008
I'm a newbie with the same problem. Getting the error on the b_call(...) lines. I noticed in the t83plus.inc include file there is a commented out section, see below. Does anyone have any clues?
  1. ;======================================================================
  2. ; Macro to call base code from an app,
  3. ;======================================================================
  4. ;
  5. ;rBR_CALL EQU 28h ; NEEDED FOR APPS
  6. ;BRT_JUMP0 EQU 50h
  7. ;
  8. ;B_CALL macro label
  9. ; RST rBR_CALL
  10. ; DW _&label
  11. ; .endm
  12. ;
  13. ;B_JUMP macro label
  14. ; CALL BRT_JUMP0 ; fixed location on page 0
  15. ; DW _&label
  16. ; .endm
Last edited by cscgal : Sep 2nd, 2008 at 10:45 pm. Reason: Added code tags
Reply With Quote  
Join Date: Sep 2008
Posts: 2
Reputation: codehound is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
codehound codehound is offline Offline
Newbie Poster

Re: Need help please

  #4  
Sep 2nd, 2008
OK, I got my code to compile in TASM by including the following at the top of the code just below the other #include directive:

#define B_CALL(xxxx) rst 28h \ .dw xxxx

I saw this in other examples and tried it. I don't know what this does yet, but it might help you along.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Assembly Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Assembly Forum

All times are GMT -4. The time now is 12:55 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC