RE: A83: Creating a basic program with ASM


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

RE: A83: Creating a basic program with ASM




Please disregard this post.  I have already figured out what I did wrong,
before it sent, and I forgot it was still in my mail box.

-----Original Message-----
From: owner-assembly-83@lists.ticalc.org
[mailto:owner-assembly-83@lists.ticalc.org]On Behalf Of Robby Proie
Sent: Monday, December 11, 2000 8:24 PM
To: assembly-83@lists.ticalc.org
Subject: A83: Creating a basic program with ASM



I made, (or edited) this program that would create a basic program to
perform the folling opperation.

[A]^-1 * [B] --> [B]

When I ran it, however, It creates several lines of garbage.  I noticed
several things, also.
1. tMatA shows up as a ?
2. tRecip and tMul show up fine
3. This resst is up to anyones oppinion

Can someone please help me out and debug this code.  Most of it was taken
from ASMGURU and I am pretty sure that it is editied almost correctly.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

  ld hl,progname1   ; the name of the prog
  rst rMOV9TOOP1
  B_CALL ChkFindSym	; look it up
  ld hl,9			; length of program (in bytes)
  B_CALL CreateProg	; create it
  inc de            ; skip 1st length byte
  inc de            ; skip 2nd length byte
  ld hl,prog1       ; program data
  ld bc,9          ; program data length
  ldir              ; copy data

  ret               ; all done!

progname1:
  db ProgObj,"ABC",0
prog1:
  db tMatA,tRecip,tMul,tMatB,tStore,tMatB,tEnter

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Also, it does create program ABC just fine


PLEASE HELP ME.

Thanks in advance





References: