A83: Creating a basic program with ASM
[Prev][Next][Index][Thread]
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
Follow-Ups:
References: