#: 18609 S3/Languages
27-Aug-93 06:37:50
Sb: #BASIC to Assem prob
Fm: JOSEPH CONSUGAR 73007,3264
To: all
I hope someone here can help me with the problem I am having.
I am trying to write an assembly language program that will print a string
passed to it from BASIC09. The problem I am having deals with the routine
I$WritLn.
I am loading the X register as: LDX [param1,s] and the Y register as:
LDY len1,s and the path as: LDA #1
When I try to call I$Writln with this setup, I get an error #244, which at
first glance, has nothing to do with writing to the screen.
The routine works fine if I reference X and Y to constants located in the data
area, and I still get the error if I specifically load Y with a constant (e.g.
LDY #4).
I my problem with the way parameters are passed from BASIC09 on the stack? Or
is it some simple thing I am overlooking?
Any help will be much appreciated.
Joe Consugar
There is 1 Reply.
|