No Subject


[Prev][Next][Index][Thread]

No Subject




I am trying to create my first assembly program, but when I try to
compile it using tasm I get a bunch of errors.  If someone can tell me
what I am doing wrong, I would greatly appreciate it.  By the way, the
program is at the bottom of the letter.  

asse2.txt line 0034: label value misalligned.           (JR)
asse2.txt line 0034: unrecognized instruction.          (JR)
asse2.txt line 0037: Label not found: (call)
asse2.txt line 0037: label value misalligned.           (call)
asse2.txt line 0037: unrecognized directive.            (call)
asse2.txt line 0038: Label not found: (ld)
asse2.txt line 0038: label value misalligned.           (ld)
asse2.txt line 0038: unrecognized instruction.          (ld)
asse2.txt line 0039: Label not found: (ld)
asse2.txt line 0039: label value misalligned.           (ld)
asse2.txt line 0039: unrecognized directive.            (ld)
asse2.txt line 0040: Label not found: (ld)
asse2.txt line 0040: label value misalligned.           (ld)
asse2.txt line 0040: unrecognized instruction.          (ld)
asse2.txt line 0041: Label not found: (call)
asse2.txt line 0041: label value misalligned.           (call)
asse2.txt line 0041: unrecognized directive.            (call)
asse2.txt line 0042: Label not found: (jr)
asse2.txt line 0042: label value misalligned.           (jr)
asse2.txt line 0042: unrecognized instruction.          (jr)
asse2.txt line 0053: No END directive before EOF.
tasm: pass 2 complete.
tasm: Number of errors = 79


    
.include "ti-86.h"
.org $D748

call     _clrLCD

GetLoop:
call _getkey 
cp kMode
jr Equal
cp kMem
jr Equal
cp kPrgm
jr Equal
cp kCustom
jr Equal
cp kLinkIO
jr Equal
cp kUp
jr End

Equal:
call     _clrLCD
ld       hl,0
ld       ($c00f),hl
ld       hl,title_message1
call     _puts
JR GetLoop

End:
call     _clrLCD
ld       hl,0
ld       ($c00f),hl
ld       hl,title_message2
call     _puts
jr end2

title_message1:                 
         .db      "----------------------------"
         .db      "|Permission Denied|"
         .db      "----------------------------",0

title_message2:                 
         .db      "---------------"
         .db      "|Good Bye|"
         .db      "---------------",0

end2: .end


Follow-Ups: References: